How Do Children Get Worms: Causes and Prevention

Children pick up intestinal worms primarily through the fecal-oral route, meaning parasite eggs or larvae travel from contaminated surfaces, soil, food, or hands into a child’s mouth. The specific pathway depends on the type of worm, but most infections share a common thread: young children touch things that carry microscopic parasite eggs, then put their fingers in their mouths before washing up. Some worms are passed directly between people, others come from contaminated ground, and a few arrive courtesy of household pets. Understanding which routes matter most makes prevention far more practical than a vague instruction to “keep things clean.”

Pinworms and the Fecal-Oral Cycle

In developed countries, pinworm is by far the most common childhood worm infection. Estimates suggest that around 20% of kindergarten and primary-school children in Europe carry pinworms at any given time, with the highest risk falling between the ages of four and eleven.1PubMed Central. The Diagnosis and Treatment of Pinworm Infection The cycle is almost comically efficient: female pinworms crawl out of the anus at night to lay eggs on the surrounding skin. The resulting itch prompts scratching, which transfers thousands of eggs to the fingertips and under the nails. Those fingers then touch toys, bedding, doorknobs, and eventually make it back to the child’s mouth or another child’s mouth.

What makes pinworms so persistent is that the eggs are hardy and nearly invisible. They survive on surfaces for two to three weeks at room temperature, so a contaminated bedroom can keep re-exposing a child long after the initial infection started. Nail-biting and poor hand-washing compliance are the two biggest behavioral risk factors that keep the cycle going.1PubMed Central. The Diagnosis and Treatment of Pinworm Infection Pinworms are also easily shared within households, daycare groups, and classrooms, which is why an entire family often needs treatment at the same time.

Soil-Transmitted Worms

A different group of worms, collectively known as soil-transmitted helminths, follows a longer route through the environment. Roundworm (Ascaris), hookworm, and whipworm (Trichuris) all require a period of development in warm, moist soil before they become infectious. The eggs or larvae enter the ground through human feces, often in areas where sanitation is limited, and mature over days to weeks.

Children in areas with dirt floors, exposed yard soil, open defecation, and dogs roaming the yard face higher baseline infection rates. A study of preschool children in rural Panama found that Ascaris infection was linked to dirt floors, dogs, exposed soil, and open defecation.2PubMed. Ascaris and hookworm transmission in preschool children from rural Panama: role of yard environment, soil eggs/larvae and hygiene and play behaviours Reinfection after treatment was associated with different environmental factors like water storage conditions, vegetation cover, and garbage near the home, suggesting that the environment around a child’s house matters at least as much as anything happening inside it.

Hookworm is unique among common childhood worms because its larvae don’t need to be swallowed. They can penetrate the skin directly, usually through bare feet walking on contaminated soil. This is one of the few worm infections where wearing shoes actually makes a measurable difference.

Pets, Sandboxes, and Toxocara

Dog and cat roundworm, known as Toxocara, represents a separate transmission route that catches many parents off guard. Toxocara eggs are shed in pet feces, and after a few weeks of sitting in the environment they become infectious to humans. Children then accidentally swallow them when playing in contaminated areas.3PubMed Central. Toxocariasis: clinical aspects, epidemiology, medical ecology, and molecular aspects Unlike the human-specific worms described above, Toxocara can’t complete its life cycle in a human host, but the migrating larvae still cause real problems, including eye damage and organ inflammation.

Public playgrounds are a documented source of exposure. A survey of sandpits in Belgian playgrounds and kindergartens found Toxocara eggs in about 14% of public playground sand samples.4Veterinary Parasitology: Regional Studies and Reports. Toxocara in sandpits of public playgrounds and kindergartens in Flanders (Belgium) Earlier research in Montreal detected Toxocara eggs in both surface and subsurface sand at daycare centers, sometimes alongside Ascaris and hookworm.5PubMed Central. Parasite contamination of sand and soil from daycare sandboxes and play areas The takeaway is that sandboxes and parks visited by dogs and cats are legitimate exposure sites, not just a theoretical concern.

Food and Water as Overlooked Routes

Soil-transmitted worm eggs don’t only travel on hands and feet. Raw vegetables grown in or near contaminated soil can carry eggs directly to the plate. Research in northern Iran documented helminth egg contamination on commonly consumed raw vegetables, concluding that unwashed produce is a meaningful transmission route.6PubMed. Contamination of commonly consumed raw vegetables with soil transmitted helminth eggs in Mazandaran province, northern Iran Leafy greens and herbs with rough surfaces are the worst offenders because eggs lodge in the folds and crevices.

Water can also carry eggs in places where human waste enters the water supply. This matters less in regions with treated municipal water but remains an important factor in rural and low-income settings worldwide. For families who grow their own produce or buy from local markets, a thorough wash under running water, and in some cases a brief soak in a vinegar or salt solution, removes most surface contamination.

Why Young Children Are Especially Prone

Almost every worm has evolved a transmission strategy that exploits exactly what small children do all day. Kids put things in their mouths. They play in dirt. They touch everything and wash their hands reluctantly. These aren’t character flaws; they’re normal developmental behaviors that happen to be a parasite’s dream.

Research on mouthing behavior found that young children put soil-contaminated objects in their mouths far more often than they eat soil directly. In one study, about 60% of observed children mouthed objects with soil on them, compared to 18% who mouthed soil itself.7PubMed. Mouthing of Soil Contaminated Objects is Associated with Environmental Enteropathy in Young Children That means a toy that rolled through the yard or a stick picked up at the park can deliver a dose of parasite eggs just as effectively as a handful of dirt.

Children who tested positive for Toxocara infection also had higher blood lead levels, likely because both exposures share the same hand-to-mouth pathway.8Neurotoxicology and Teratology. Toxocara canis infection in preschool age children: Risk factors and the cognitive development of preschool children The implication is that the children most exposed to worms are often the same children exposed to other environmental hazards, and the common denominator is the behavior itself rather than any single contaminant.

What Worm Infections Do to a Growing Body

A single pinworm infection in an otherwise healthy child is usually more annoying than dangerous. The nighttime itching disrupts sleep, and scratching can sometimes cause a secondary skin infection, but the worms themselves don’t typically steal nutrients or cause lasting harm. The real health burden comes from heavier infections with soil-transmitted worms, especially when they go untreated for months or years.

A systematic review of intestinal parasitic infections in children under five found that Ascaris infection was linked to roughly double the odds of stunting. Giardia, a protozoan rather than a worm but often found alongside helminth infections, was associated with increased risk of stunting, wasting, and being underweight.9PubMed Central. Intestinal Parasitic Infection and Nutritional Status in Children under Five Years Old: A Systematic Review The review noted that these infections can occur very early in life and cause significant growth problems during the period when children need every calorie and micronutrient they can get.

Hookworms attach to the intestinal wall and feed on blood, so chronic hookworm infection is a well-established cause of iron deficiency anemia. Whipworm does something similar. In children already eating marginal diets, these worms push nutrition from borderline to deficient. The effects compound over time: a child with chronic worm infection may fall behind on growth curves not because of a lack of food, but because parasites are diverting nutrients or causing chronic intestinal inflammation that impairs absorption.

Treatment Options

The good news is that most childhood worm infections respond well to a short course of medication. For pinworms, the approved drugs include mebendazole, pyrantel, and pyrvinium, with success rates above 90%.1PubMed Central. The Diagnosis and Treatment of Pinworm Infection A single dose is usually followed by a repeat dose two weeks later to catch any eggs that have hatched since the first treatment. Over-the-counter pyrantel is available in many countries without a prescription, which makes pinworm one of the few infections a parent can treat at home once they recognize the symptoms.

For soil-transmitted worms, albendazole and mebendazole are the standard treatments, though their effectiveness varies by species. Albendazole works well against hookworm but performs poorly against whipworm. In a clinical trial, the cure rate for whipworm with albendazole alone was just 2.6%, while the combination of oxantel pamoate and albendazole performed substantially better.10PubMed. Oxantel pamoate-albendazole for Trichuris trichiura infection This matters because whipworm is often present alongside other soil-transmitted species, and a treatment that clears one worm but leaves another can create a false sense of resolution.

Treatment alone doesn’t end the story if the source of exposure remains. Particularly with pinworms, successful eradication requires treating everyone in the household at the same time, including adults and sexual partners, alongside thorough hygiene measures to remove eggs from the living environment.1PubMed Central. The Diagnosis and Treatment of Pinworm Infection Washing bedding and towels in hot water, trimming nails short, and temporarily discouraging nail-biting during treatment all reduce the chances of reinfection looping right back.

Prevention at Home

Preventing worm infections doesn’t require anything exotic. The basics work remarkably well when they’re actually practiced consistently:

  • Handwashing: After using the toilet, before eating, and after playing outside. This single habit interrupts the fecal-oral cycle that nearly every common childhood worm depends on.
  • Nail care: Short nails harbor fewer eggs. Since nail-biting is a major pinworm risk factor, keeping nails trimmed reduces the egg payload even when a child does bite.
  • Shoe-wearing: In areas where hookworm is endemic, shoes prevent larvae from penetrating the skin of the feet.
  • Produce washing: Thorough rinsing of raw fruits and vegetables under running water removes most surface-level contamination.
  • Sandbox covers: Covering sandboxes when not in use keeps cats and other animals from using them as litter boxes.

None of these are complicated, but they are easy to let slide, especially with toddlers who treat the world as something to lick and taste. The goal isn’t perfection. It’s reducing the number of eggs that make it from the environment to the mouth, because dose matters. A child who swallows a few eggs may never develop a noticeable infection, while repeated heavy exposure leads to the kinds of symptomatic infections that affect growth and well-being.

Keeping Pets Dewormed

If you have dogs or cats, their deworming schedule directly affects your children’s exposure to Toxocara. European veterinary guidelines recommend monthly deworming for pets in higher-risk categories, but a survey of European pet owners found that dogs and cats averaged only about two dewormings per year. That frequency fell short of the four-times-per-year minimum shown to meaningfully reduce the shedding of Toxocara eggs.11PubMed Central. Survey of European pet owners quantifying endoparasitic infection risk and implications for deworming recommendations

Prompt removal of pet feces from the yard also matters. Toxocara eggs need a few weeks in the environment to become infectious, so picking up after your dog within a day or two eliminates eggs before they pose a risk. The combination of regular deworming and quick feces removal is the most effective household-level intervention against pet-to-child worm transmission.

Geography and Climate Shape Risk

Worm infections are not distributed evenly around the world. Soil-transmitted helminths thrive in warm, moist environments with certain soil types, which is why the heaviest burdens fall on tropical and subtropical regions. Research has confirmed that the abundance and species mix of soil-transmitted worms vary with surface temperature, rainfall, altitude, and soil composition.12PLoS Neglected Tropical Diseases. Geographical distribution of soil transmitted helminths and the effects of community type in South Asia and South East Asia – A systematic review Less arid environments and soils with lower sand content tend to support higher transmission.13The Lancet Global Health. Soil-transmitted helminth infections and the-targeted action of preventive chemotherapy in sub-Saharan Africa

At a broader level, infection rates track closely with economic development. A global analysis found that the prevalence and disease burden of soil-transmitted helminth infections were strongly negatively correlated with a country’s socio-demographic index, meaning that higher development corresponded to dramatically lower infection rates.14PubMed Central. Global burden of soil-transmitted helminth infections, 1990-2021 This isn’t surprising: improved sanitation, paved surfaces, treated water, and access to medication all break transmission chains. But it means that families living in resource-limited settings face a fundamentally different risk landscape than families in wealthier areas, even within the same country.

Mass Deworming Programs

In regions where worm infections are widespread, public health programs don’t wait for individual children to show up at clinics. Instead, they distribute deworming medication to entire populations of school-age children. These programs have achieved significant results. In Sierra Leone, mass drug administration reduced hookworm prevalence by more than 70% and cut the proportion of children with moderate-to-heavy schistosomiasis infections from about 36% to 10%.15PubMed Central. Mass drug administration significantly reduces infection of Schistosoma mansoni and hookworm in school children in the national control program in Sierra Leone

One persistent challenge is reaching children who aren’t enrolled in school. A study in Zambia found that combining school-based treatment with community-based drug distribution gave school-age children roughly five times the chance of being treated compared to school-based programs alone, because the community approach caught children who were absent, not enrolled, or otherwise missed.16PubMed Central. Reach and uptake of mass drug administration for worm infections through health facility-, school-, and community-based approaches in two districts of Zambia Modeling studies also suggest that treating only school-age children won’t eliminate transmission in most settings; treating preschool children and adults as well becomes necessary once transmission intensity rises above a low threshold.17PubMed Central. The coverage and frequency of mass drug administration required to eliminate persistent transmission of soil-transmitted helminths

Worms and the Immune System

One of the stranger findings in parasitology over the past few decades is that worm infections appear to dampen certain types of immune overreaction. Research in children living in poor urban areas of Latin America found that helminth infections were associated with a dose-dependent decrease in skin-prick test reactivity, a marker for allergic sensitivity. At the same time, infected children showed increases in a regulatory immune molecule called IL-10, which is known to suppress the kind of immune response behind allergies and asthma.18PubMed Central. Effects of helminth co-infections on atopy, asthma and cytokine production in children living in a poor urban area in Latin America

This doesn’t mean worm infections are somehow good for children. The growth impairment, anemia, and nutritional harm caused by chronic infections far outweigh any theoretical immune benefit. But the finding has generated real scientific interest in understanding how worms interact with the immune system and whether those mechanisms could someday be harnessed in controlled ways to treat autoimmune diseases. For now, the practical message for parents remains straightforward: prevent and treat worm infections, and leave the immune-modulation research to the lab.