How Does a Child Get Pinworms: Causes and Spread

Children get pinworms by swallowing microscopic pinworm eggs, almost always carried to the mouth on their own fingers. The eggs are invisible to the naked eye and can survive on surfaces for two to three weeks, which is why pinworms spread so easily in households, classrooms, and daycare settings. Once a child swallows the eggs, the entire infection cycle takes about one month from ingestion to the point where new eggs are being laid.

How Eggs Get Into a Child’s Mouth

The most common route is straightforward: a child touches a contaminated surface, then puts their fingers in their mouth. Pinworm eggs end up on doorknobs, toys, toilet handles, bedding, clothing, and any shared surface a child with an active infection has touched. Because the eggs are microscopic, there’s no way to see them, and a surface can look perfectly clean while carrying thousands of viable eggs.

The second most common route is self-reinfection. A child who already has pinworms scratches the itchy skin around their bottom (usually at night, when symptoms are worst), picks up fresh eggs under their fingernails, and then transfers those eggs back to their mouth. This creates a cycle that can keep the infection going indefinitely without treatment. In rare cases, eggs become airborne when bedding is shaken out and can be inhaled and then swallowed.

What Happens Inside the Body

After a child swallows pinworm eggs, the larvae hatch in the small intestine. The young worms then travel down to the large intestine and set up residence in a pouch-like area near the beginning of the colon. They feed and mature there over the course of several weeks.

About one month after the eggs were first swallowed, the adult female worms are ready to lay their own eggs. They do this at night, crawling out of the anus onto the surrounding skin and depositing eggs as they move. This nighttime migration is what causes the intense itching that most parents notice first. A single female can lay thousands of eggs in one trip. The eggs become infectious within just a few hours of being laid, which is why the reinfection cycle moves so quickly.

There’s also a less common path called retroinfection: newly hatched larvae on the skin around the anus can migrate back up into the rectum on their own, restarting the cycle without the child ever swallowing eggs. How often this actually happens isn’t well established, but it’s another reason pinworm infections can be stubborn to clear.

Why Children Are Especially Vulnerable

Pinworm transmission depends on hand-to-mouth contact, and young children do this constantly. They share toys, touch their faces, bite their nails, and often resist thorough handwashing. These habits make elementary schools and daycare centers ideal environments for spreading the parasite. A large multi-center study tracking over 27,000 preschool children between 2019 and 2024 found infection rates in both urban and rural settings, though rates were slightly higher in rural preschools (0.55%) compared to urban ones (0.44%).

Children who bite their nails or suck their thumbs are at higher risk simply because they transfer whatever is on their hands to their mouths more frequently. Crowded sleeping arrangements, like shared bedrooms or sleepovers, also increase the chance of exposure since eggs accumulate in bedding overnight.

Recognizing the Signs

The hallmark symptom is itching around the anus, particularly at night. Some children sleep restlessly, become irritable, or scratch without realizing it. You might notice your child complaining about an itchy bottom or squirming in their seat. In some cases, the infection causes no obvious symptoms at all, and the child unknowingly spreads eggs to others in the household.

If you suspect pinworms, the most reliable check is a tape test done first thing in the morning, before your child bathes or uses the toilet. Press a strip of clear adhesive tape firmly against the skin around the anus for a few seconds, then stick the tape onto a glass slide or place it in a sealed plastic bag. A doctor can examine it under a microscope for eggs. Because female worms don’t lay eggs every single night, this test may need to be repeated on three separate mornings to catch a positive result.

How the Infection Spreads Through a Household

Once one child in a home has pinworms, the rest of the family is at significant risk. Eggs shed at night end up on pajamas, underwear, sheets, and blankets. When the child touches those items and then touches shared surfaces like light switches, remote controls, or kitchen counters, eggs spread throughout the house. Because the eggs can survive two to three weeks on objects without being cleaned, the window for exposure is wide.

Pinworms are not caused by poor hygiene. Infections happen in clean homes and well-maintained schools. The parasite is simply very efficient at spreading through the normal hand-to-surface-to-mouth pathway that’s part of everyday life with children.

Treatment and Breaking the Cycle

Pinworm infections are treated with an antiparasitic medication taken as a single oral dose. An over-the-counter option is available for children age two and older, dosed by weight. Because the medication kills live worms but not eggs, a second dose is typically given about two weeks later to catch any worms that hatched after the first treatment. Many doctors recommend treating the entire household at once, since family members may carry the infection without symptoms.

Medication alone won’t solve the problem if eggs are still circulating in the home. On the morning treatment starts, wash all bedding, towels, and pajamas in hot water and dry on high heat. Have your child bathe or shower that morning rather than at night, to wash away any eggs deposited overnight. For the first few days after treatment, change underwear and pajamas daily and avoid shaking out bedding, which can send eggs into the air.

Preventing Reinfection

Handwashing with soap and warm water is the single most effective prevention measure. The key moments are after using the toilet, after changing diapers, before eating, and before preparing food. Because eggs lodge under fingernails so easily, keeping your child’s nails trimmed short and scrubbed clean removes one of the main hiding spots.

Discourage nail biting and thumb sucking during and after treatment. If your child scratches at night, consider having them wear snug underwear to bed, which creates a barrier and reduces the amount of eggs that transfer to fingers and bedding. Washing hands immediately after waking up, before eggs have a chance to spread, is especially important during the weeks after treatment when reinfection risk is highest.