How Do You Get Threadworms? Causes and Spread

Threadworms spread through a deceptively simple route: you swallow their microscopic eggs, usually by touching your mouth after your fingers have picked them up from a contaminated surface, piece of bedding, or another person’s skin. The worms, formally known as Enterobius vermicularis, are the most common intestinal parasite in temperate countries, and their lifecycle is built around exploiting a single habit that nearly everyone shares at some point, especially children: putting fingers near the mouth. What makes threadworm so persistent, and so frustrating for families dealing with repeat infections, is that the eggs are invisible, remarkably hardy, and designed by evolution to complete a loop between the anus and the mouth with very little help.

The Lifecycle That Drives Every Infection

A threadworm infection begins when you swallow eggs. These eggs are tiny enough to be invisible to the naked eye, and they can arrive on your fingers, under your nails, on food, or even inhaled from dust in a room where bedding has been shaken out. Once swallowed, the eggs travel to the small intestine, where they hatch. The larvae migrate down to the large intestine and mature into adult worms over the next few weeks. Adult females then make a distinctive nighttime journey: they crawl out of the anus to lay thousands of eggs on the surrounding skin, usually while the host sleeps. The eggs are coated in a sticky substance that helps them cling to skin and fabric, and they become infectious within just a few hours of being laid.

This is where the cycle feeds itself. The egg-laying causes intense itching, especially at night. Scratching transfers eggs to the fingers and under the fingernails. If those hands reach the mouth before being washed, the person reinfects themselves. Researchers describe two documented modes of transmission among humans: the direct oral-anal route, where a person transfers eggs from their own perianal area to their mouth, and the indirect route, where eggs land on surfaces and are picked up later by the same person or someone else. The direct oral-anal route appears to be the older and more biologically favored pathway, also observed in other primates that carry their own species of pinworm.1PubMed. Human enterobiasis in evolution: origin, specificity and transmission

Why Children Are the Primary Carriers

Threadworm infection skews heavily toward school-age children, and the reasons are behavioral rather than biological. The main risk factors include age between roughly four and eleven years, uncontrolled contact between the anus, fingers, and mouth, nail-biting, unsupervised personal hygiene, and poor handwashing habits.2PubMed Central. The Diagnosis and Treatment of Pinworm Infection Young children are more likely to share toys, put objects in their mouths, and resist thorough handwashing. In group settings like daycare centers and primary schools, these habits combine with close physical contact to create near-ideal conditions for the eggs to circulate.

Studies consistently find peak infection rates among preschool and early primary school children. In one survey of children in Eastern Slovakia, the highest prevalence was in children aged three to six, at about 5%, with four- and five-year-olds contributing the most positive samples. Children under two had the lowest rate, just under 1%, likely because they have less independent mobility and are not yet in group care environments.3PubMed Central. The Incidence of Pinworm (Enterobius Vermicularis) in Pre-school and School Aged Children in the Eastern Slovakia A study across six primary schools in Turkey found that roughly one in six children tested positive for pinworm eggs using the tape method.4PubMed Central. Egg positive rate of Enterobius vermicularis and Taenia spp. by cellophane tape method in primary school children in Sivas, Turkey

Adults can and do get threadworms, though. Parents and caregivers of infected children are at obvious risk through handling bedding, wiping during toileting, and sharing living spaces. Sexual partners of infected individuals can also pick up the infection, which is why treatment guidelines stress that everyone in a household needs to be treated simultaneously.2PubMed Central. The Diagnosis and Treatment of Pinworm Infection

How Eggs Move Through a Household

The sticky eggs that female worms deposit on perianal skin do not stay in one place. They transfer to underwear, pajamas, and bedsheets within hours. From there, they can end up on towels, toilet seats, bathroom floors, door handles, and toys. Eggs remain viable on surfaces for up to two or three weeks at room temperature, which means a contaminated bedroom can keep reintroducing the infection long after the initial worms have been treated if the environment is not cleaned.

Bedding is one of the most important vectors. When an infected person moves in their sleep or when sheets are shaken out during bed-making, eggs can become airborne in household dust. Inhaling them and swallowing them afterward is a legitimate, if less common, route of infection. This airborne dispersal helps explain why threadworms can spread to household members who have no direct skin contact with the infected person. It also explains why health guidance for treating threadworm always includes washing bedding and towels at high temperatures, vacuuming bedrooms, and damp-dusting surfaces rather than dry-dusting, which just redistributes eggs into the air.

Shared bathrooms are another concentration point. The perianal area sheds eggs onto toilet seats and, if bathing is shared, into bathwater. Though eggs are not known to survive well in water for long periods, they can stick to bath surfaces. Families dealing with an active infection are generally advised to shower rather than bathe, and to use separate towels for each household member.

Reinfection and the Autoinfection Loop

One of the most frustrating aspects of threadworm is that a single round of treatment often does not end the problem. The drugs used to treat pinworm kill the adult worms in the gut, but they do not reliably kill all the eggs already deposited on skin and surfaces. If even a small number of those eggs are swallowed in the days after treatment, the infection restarts. This is called autoinfection when a person reinfects themselves, and it is the main reason threadworms keep coming back.

Nail-biting makes autoinfection much more likely. Eggs lodge under fingernails during scratching and resist casual handwashing. Children who bite their nails effectively guarantee that any eggs on their hands reach their mouths. This is why nail-biting is singled out as a specific risk factor in the clinical literature.2PubMed Central. The Diagnosis and Treatment of Pinworm Infection Keeping nails trimmed short and discouraging nail-biting are practical steps that reduce autoinfection rates even in the absence of medication.

Because autoinfection and household reinfection are so common, treatment protocols typically call for a second dose of medication two weeks after the first, timed to catch any worms that hatched from surviving eggs after the initial dose. Combined with strict hygiene measures, this two-dose approach succeeds in eradicating the infection in the vast majority of cases.5PubMed Central. The Diagnosis and Treatment of Pinworm Infection – Section: Conclusion

How Common Threadworm Infection Really Is

Threadworm is sometimes dismissed as a minor childhood nuisance, but its global prevalence is striking. A systematic review and meta-analysis covering studies from the past two decades estimated the pooled global prevalence among children at roughly 13%. The rates varied dramatically by region: Europe had the highest pooled estimate at about 25%, followed by South America at around 14%, Asia at 13%, and both Africa and North America under 5%.6PubMed Central. Global prevalence of enterobiasis in young children over the past 20 years: a systematic review and meta-analysis

That European figure surprises many people, since threadworm is often mentally filed alongside tropical parasites. In reality, threadworm thrives in temperate climates and is common across all income levels. It is not a marker of poverty or poor sanitation in the way that soil-transmitted helminths often are. The worms need nothing from the environment except a human host and a few hours for eggs to become infectious. Central heating, carpeted bedrooms, and shared children’s spaces in wealthy countries provide perfectly adequate conditions.

There is some evidence that rates are declining, at least in areas with active screening programs. A multi-center study tracking preschool children in China from 2019 to 2024 found that annual pinworm infection rates dropped from about 1.2% to 0.1% over that period, with significant declines in both urban and rural preschools.7PLOS Neglected Tropical Diseases. Understanding the trends, clustering, and risk factors of pinworm infection in preschool settings: A repeated cross-sectional multi-center study between 2019 and 2024 Whether this reflects better hygiene education, more consistent treatment, or simply improved screening that catches infections earlier is not entirely clear.

The Psychological Weight of an “Embarrassing” Infection

The physical consequences of threadworm are usually minor: perianal itching, disturbed sleep, and occasionally irritability or difficulty concentrating in school-age children. But the emotional and social toll on families, especially those dealing with recurrent infections, is often more significant than the physical symptoms suggest. Stigma around worm infections persists, and parents frequently report feeling ashamed, anxious, or blamed for their child’s condition.

A review in a pediatric journal noted that the psychological impact of threadworm is significant but often overlooked. Families experiencing recurrent infection frequently restrict normal activities to avoid exposure or reinfection, and the burden of intensive hygiene measures, washing all bedding daily, scrubbing bathrooms, checking for worms at night, becomes distressing in its own right.8Archives of Disease in Childhood: Education and Practice. Fifteen-minute consultation: Threadworm in children The gap between how mild the infection is medically and how much distress it causes socially is real and worth acknowledging. If you are dealing with a repeat bout, the problem is almost certainly not your hygiene standards. Threadworm eggs are extraordinarily good at evading normal cleaning routines.

Rare Complications Worth Knowing About

For the vast majority of people, threadworm stays confined to the large intestine and perianal skin. But there are rare case reports of worms migrating to places they do not belong. Female worms occasionally travel from the anus into the vagina and further up the reproductive tract. In one documented case, a 23-year-old woman in Malaysia was found to have pinworm eggs and adult worm remnants inside a fallopian tube, discovered during surgery for what was initially diagnosed as a ruptured ectopic pregnancy.9PubMed Central. Enterobius vermicularis salpingitis seen in the setting of ectopic pregnancy in a Malaysian patient

Cases like these are genuinely unusual. They appear in case-report journals precisely because they are surprising. The standard threadworm infection does not cause serious organ damage, and most people clear the infection entirely with one or two rounds of over-the-counter medication. But the possibility of vaginal migration is one reason why persistent perianal itching in girls and women should not be automatically attributed to other causes without considering threadworm, particularly when standard treatments for other conditions are not working.

What Threadworms Do to Your Gut Bacteria

An emerging area of research is the relationship between threadworm infection and the balance of bacteria living in the gut. A study examining the intestinal microbiome of infected individuals found that gut bacterial diversity actually increased after pinworm infection. At the broad level, infection was associated with a decrease in one group of bacteria (Fusobacteria) and an increase in another (Actinobacteria). At a more specific level, the relative abundance of Bifidobacterium, a genus generally considered beneficial, went up during infection and remained elevated after treatment with mebendazole.10PubMed Central. Impact of Enterobius vermicularis infection and mebendazole treatment on intestinal microbiota and host immune response

The study also found that levels of a key immune marker in the gut, secretory IgA, dropped during active infection, suggesting the worms may partially suppress the local immune response in the intestine. After treatment, IgA levels recovered in about half of participants. This finding fits a broader pattern seen with other intestinal parasites: many worms appear to dampen the host immune system in ways that help them survive but may also, paradoxically, reduce certain types of inflammatory response. Whether this has any practical health implication for people with threadworm, positive or negative, remains far from settled. It is early-stage research, and no one should delay treating a threadworm infection in hopes of microbiome benefits.

An Infection Nearly as Old as Civilization

Threadworm is not a modern affliction. It is one of the oldest documented human parasites. Pinworm eggs have been identified in human coprolites, preserved fecal material, recovered from caves in Utah that were inhabited by humans from roughly 10,000 B.C. onward. The oldest coprolite containing identifiable pinworm eggs was dated to approximately 7837 B.C., making it the earliest known association between humans and this exclusively human parasite.11PubMed. Enterobius vermicularis: 10,000-year-old human infection

The evolutionary relationship runs even deeper than that archaeological record. Researchers studying the origins of human pinworm have concluded that the most plausible explanation for how we ended up with this parasite is co-evolution: the worm’s ancestors evolved alongside our primate ancestors, becoming increasingly specialized for human hosts over millions of years.1PubMed. Human enterobiasis in evolution: origin, specificity and transmission Unlike many parasites that infect multiple host species and can be picked up from animals, threadworm is strictly a human-to-human infection. You cannot catch it from pets, livestock, or wildlife. Every threadworm infection on Earth traces back to another infected person.

This strict host specificity has practical consequences. It means that thorough treatment of all infected humans in a household, combined with environmental cleaning to destroy lingering eggs, can completely break the cycle. There is no animal reservoir quietly maintaining the parasite in the background. If every person in a family clears the infection and the eggs on surfaces are eliminated, the worm has nowhere to go. The flip side is that because the worm is so well adapted to humans, and to the specific behavioral habits of human children, it remains remarkably good at finding its way back.