School-age children and preschoolers are most likely to get pinworms. Other at-risk people include people living in crowded spaces and people living in areas with a temperate climate.