Most roundworms do not spread directly from one person to another the way a cold or the flu does, but that does not mean they are harmless or hard to catch. The term “roundworm” covers dozens of parasitic species, each with its own route into the human body. Some travel through contaminated soil, others hitch a ride on unwashed vegetables or raw fish, and one common species spreads readily between household members through microscopic eggs on bedsheets and fingernails. Understanding which roundworm you are dealing with changes everything about how to prevent it.
Pinworms Are the Exception That Spreads Person to Person
If you are wondering whether a family member can give you roundworms, the answer is probably yes, but only if you are talking about pinworms. Pinworms (Enterobius vermicularis) are the most directly contagious roundworm in humans. Female pinworms crawl to the perianal area at night and deposit eggs on the skin. Those eggs become infectious within hours and can survive on clothing, bedding, and household surfaces for days.1Frontiers in Public Health. Pinworm (Enterobius vermicularis) in children and adults: a practice-oriented narrative review and household–school algorithm The nighttime itching prompts scratching, which traps eggs under fingernails. From there, eggs transfer to toys, doorknobs, and shared surfaces. A child who bites their nails or puts their fingers in their mouth completes the cycle, and any housemate who touches the same contaminated objects can become infected too.
Pinworm eggs can even become airborne. Shaking out contaminated bedding, for instance, can launch microscopic eggs into the air, where they may be inhaled or swallowed.2International Journal of Dermatology. Assessment of frequency, transmission, and genitourinary complications of enterobiasis (pinworms) This is why pinworms sweep through daycare centers and elementary schools so efficiently, and why treating only the symptomatic child rarely solves the problem. Recurrences are common even after effective medication, largely because autoinfection (reinfecting yourself from eggs already on your own skin or nails) restarts the cycle before the drug has cleared every worm.3PubMed. Pinworm (Enterobius Vermicularis) Infestation: An Updated Review Short fingernails, frequent hand washing, and laundering bedding in hot water help, but physicians often recommend treating the entire household at once to break the transmission chain.
Soil-Transmitted Roundworms and the Fecal-Oral Route
The large human roundworm, Ascaris lumbricoides, is the most widespread intestinal worm on the planet. Unlike pinworms, it does not jump from person to person through casual contact. Instead, infected individuals pass eggs in their stool, and those eggs need time in warm, moist soil to mature before they become infectious. Once they have matured, anyone who swallows contaminated soil, whether from unwashed hands, dirty water, or produce grown in contaminated ground, can become infected. The eggs hatch in the gut, and the larvae undertake a distinctive migration through the liver and lungs before settling back in the intestine as adults.4PubMed Central. The long and winding road of Ascaris larval migration: the role of mouse models
Hookworms work differently. Their larvae develop in contaminated soil and penetrate directly through the skin, typically the soles of bare feet. You do not need to swallow anything; walking barefoot in an area where human feces has contaminated the ground is enough. Whipworms (Trichuris trichiura) follow the same egg-in-soil-to-mouth route as Ascaris. All three species thrive where sanitation is poor and open defecation occurs, and the burden falls disproportionately on children in low- and middle-income regions.5Frontiers in Public Health. Prevalence and correlates of soil-transmitted helminths in schoolchildren aged 5 to 18 years in low- and middle-income countries: a systematic review and meta-analysis The socioeconomic gradient is steep: the lower a country’s development index, the higher the infection rates.6PubMed Central. Global burden of soil-transmitted helminth infections, 1990-2021
The key takeaway is that soil-transmitted roundworms are not passed by sharing a drink or sitting next to an infected person. The soil itself is the reservoir, and it can remain contaminated for years because the eggs are extraordinarily tough.
Roundworms You Can Catch from Pets
Dog and cat roundworms, primarily Toxocara canis and Toxocara cati, are among the most common zoonotic parasites in the world. Infected pets shed millions of microscopic eggs in their feces, and those eggs can persist in soil, yards, and parks long after the feces has decomposed. Dogs and cats excrete eggs directly into the human environment without any need for an intermediate host or a biting insect.7Veterinary Parasitology. Veterinary and public health aspects of Toxocara spp Young puppies and kittens are the biggest shedders because their immune systems have not yet learned to suppress the infection.
When a person accidentally swallows Toxocara eggs, usually a child playing in contaminated soil, the larvae hatch but cannot complete their life cycle in a human body. Instead they wander through tissues, causing a condition broadly called toxocariasis. Depending on where the larvae migrate, the result can range from mild symptoms to serious eye damage or organ inflammation.8International Journal for Parasitology. The epidemiology and public health importance of toxocariasis: A zoonosis of global importance Despite widely available deworming drugs for pets, human toxocariasis remains a real public health concern because environmental contamination persists even after individual animals are treated.
A survey of veterinary practices in western Canada found that only about 13% of veterinarians recommended puppy deworming protocols consistent with established guidelines.9PubMed Central. Small animal deworming protocols, client education, and veterinarian perception of zoonotic parasites in western Canada Kittens fared somewhat better, at 39%. That gap matters because regular, properly timed deworming of young animals is one of the most effective ways to reduce egg shedding into the environment.
Wildlife Roundworms and a More Dangerous Cousin
Raccoons harbor their own roundworm, Baylisascaris procyonis, and it poses a disproportionately serious threat to humans compared with most other roundworm species. Raccoons tend to defecate in communal sites called latrines, which can accumulate enormous concentrations of eggs. Those eggs mature in the environment and become infective, just as with other soil-transmitted roundworms.10Veterinary Parasitology. Baylisascariosis—Infections of animals and humans with ‘unusual’ roundworms
The reason Baylisascaris is feared more than Toxocara or Ascaris is what the larvae do once ingested. In a human host, they migrate aggressively into the brain and eyes, causing severe neurological disease that is difficult to diagnose and for which effective treatment options are limited.11PubMed Central. Update on Baylisascariasis, a Highly Pathogenic Zoonotic Infection Cases are rare, but outcomes tend to be devastating, especially in young children who are more likely to put contaminated soil or objects in their mouths.12Microbes and Infection. Severe and fatal central nervous system disease in humans caused by Baylisascaris procyonis, the common roundworm of raccoons: a review of current literature If you live in an area with raccoons, discouraging them from nesting near your home and keeping children away from known latrine sites are the most practical prevention steps. Cleaning up raccoon feces is best done with caution, since ordinary disinfectants do not reliably kill the eggs.
Food, Vegetables, and Raw Seafood
You do not need direct contact with feces or soil to encounter roundworm eggs. Fresh vegetables grown in contaminated ground or irrigated with contaminated water can carry eggs right to your plate. A study examining raw produce from local markets in southern Ethiopia found that over half of the samples were contaminated with at least one parasite, and Ascaris was the most commonly detected species, present on roughly one in five items tested.13PubMed Central. Parasitic contamination of raw vegetables and fruits collected from selected local markets in Arba Minch town, Southern Ethiopia This is not unique to one country; wherever human waste is used as fertilizer or where irrigation water is contaminated, the risk exists. Research has focused on how effectively different washing methods remove Ascaris eggs from vegetables, confirming that a quick rinse under the tap is not enough to make produce safe in high-risk areas.14Wadi Alshatti University Journal of Pure and Applied Sciences. Effectiveness of Common Washing Methods in Eliminating Ascaris lumbricoides Contamination from Fresh Vegetables Collected from Farms in Brack Alshatti
An entirely separate route involves raw or undercooked seafood. Anisakis, a roundworm that lives in the guts of marine mammals, spends part of its lifecycle in fish and squid. People become infected when they eat raw or lightly prepared seafood containing live larvae.15PubMed Central. Anisakis Nematodes in Fish and Shellfish- from infection to allergies The larvae cannot mature in a human body, but they can burrow into the stomach or intestinal wall and cause intense pain, nausea, and allergic reactions. Cooking fish to an internal temperature that kills the larvae, or freezing it at commercial-grade temperatures beforehand, eliminates the risk. Sushi and sashimi restaurants in regulated markets use specific freezing protocols for this reason.
Yet another food-borne roundworm, Trichinella, infects people who eat undercooked meat from infected animals, particularly wild boar and certain game. Trichinellosis remains a public health concern globally because of the zoonotic potential of consuming undercooked meat harboring Trichinella larvae.16PubMed Central. Controlled freezing inactivates Trichinella britovi in wild boar meat: Insights from a murine infection model and multiplex polymerase chain reaction Proper cooking to a safe internal temperature is the simplest prevention, though controlled freezing has also been shown to inactivate certain Trichinella species in wild boar meat.
Where Contamination Lurks in Urban Areas
People sometimes assume roundworm transmission is only a rural or tropical concern. Soil sampling in cities tells a different story. A study of public school grounds in southern Thailand found that playgrounds had the highest Toxocara egg contamination rate, at about 42%, significantly higher than other school areas like sidewalks or cafeterias.17PubMed Central. Soil Contamination with Toxocara Eggs in Public Schools in Rural Areas of Southern Thailand Sandpits are another hotspot. In Belgium, Toxocara eggs were found in 14% of public sandpits and 2% of kindergarten sandpits, with cats identified as the most likely source.18Veterinary Parasitology: Regional Studies and Reports. Toxocara in sandpits of public playgrounds and kindergartens in Flanders (Belgium) Public parks in urban Iran have also tested positive for Toxocara eggs.19PubMed. Soil contamination with Toxocara spp. eggs in the public parks from three areas of Khorram Abad, Iran
Children are the most vulnerable because they play at ground level, dig in soil, and frequently put their hands in their mouths. Covering sandpits when not in use, fencing playground areas to keep out stray animals, and enforcing pet waste cleanup are the most practical interventions. The eggs themselves are sticky and resistant to drying, so once a patch of soil is contaminated, it can stay infectious for months or even years without anyone adding fresh feces.
Why Reinfection Happens So Quickly After Treatment
One of the most frustrating features of roundworm infections is how rapidly people become reinfected after being treated. Deworming drugs like albendazole are effective at clearing adult worms from the gut, but they do nothing about the eggs sitting in the surrounding soil. As soon as treatment ends, anyone living in a contaminated environment is immediately re-exposed. In a study of schoolchildren in Yunnan, China, Ascaris prevalence rebounded to about 76% just four months after a triple-dose treatment course, and reached roughly 84% by six months.20PubMed Central. Rapid re-infection with soil-transmitted helminths after triple-dose albendazole treatment of school-aged children in Yunnan, People’s Republic of China
Another study of Ethiopian schoolchildren found that among those cured of Ascaris, about 18% were reinfected within just eight weeks.21PubMed Central. Reduced efficacy of single-dose albendazole against Ascaris lumbricoides, and Trichuris trichiura, and high reinfection rate after cure among school children in southern Ethiopia: a prospective cohort study Hookworm reinfection tended to be slower, while whipworm came back faster still. A multi-arm trial looking at different drug combinations found reinfection rates of about 35% for Ascaris and 37% for whipworm at 18 weeks, regardless of which drug combination was used.22PubMed Central. Efficacy and reinfection with soil-transmitted helminths 18-weeks post-treatment with albendazole-ivermectin, albendazole-mebendazole, albendazole-oxantel pamoate and mebendazole
This pattern is why mass deworming campaigns alone, without accompanying improvements in sanitation, water quality, and hygiene education, have been a subject of debate in global health circles. Drugs clear worms, but the environmental reservoir of eggs ensures the cycle restarts almost immediately. The eggs are resilient enough that even biological approaches like vermicomposting (using earthworms to process waste) fail to destroy them. Over a six-month experiment, Ascaris eggs maintained about 77% viability even in the presence of composting worms, falling far short of the one-log reduction needed for safe disposal.23Water Environment Federation. Ascaris suum Egg Inactivation and Destruction by the Vermicomposting Worm, Eisenia foetida
How Your Body Responds to Roundworm Invasion
When Ascaris larvae hatch in the gut and begin migrating through the liver and lungs, the immune system mounts a response dominated by what immunologists call a type 2 reaction, the same general category of response triggered by allergens.24Nature Reviews Disease Primers. Whipworm and roundworm infections This explains the wheezing and coughing that some people experience during early Ascaris infection, sometimes called Löffler syndrome, as larvae pass through the lungs and the body reacts with inflammation.
Research in animal models has shown that a specific type of white blood cell, eosinophils, floods the gut lining during the phase when worms are being expelled. That surge coincides with the worms being pushed toward the end of the intestine and ultimately out of the body. After the worms are gone, eosinophil counts drop back to normal.25PLOS Neglected Tropical Diseases. The Intestinal Expulsion of the Roundworm Ascaris suum Is Associated with Eosinophils, Intra-Epithelial T Cells and Decreased Intestinal Transit Time Mice that were vaccinated with a specific roundworm protein showed over 70% protection against a subsequent infection, suggesting the immune system can learn to fight these parasites more effectively with the right prompting.26PubMed Central. Pyrophosphatase of the roundworm Ascaris suum plays an essential role in the worm’s molting and development A human vaccine remains a long way off, but the research at least points to why some people seem to resist reinfection better than others: their immune memory against the parasite is stronger.
Diagnosis Beyond the Microscope
The traditional way to diagnose a roundworm infection is straightforward: a lab technician examines a stool sample under a microscope and looks for eggs. This works well for heavy infections, but it can miss light ones. The method also cannot distinguish between species that produce similar-looking eggs, and it does not detect larvae migrating through tissues before they have reached the gut.
Molecular tools have begun to change that picture. DNA-based tests can identify roundworm species with high sensitivity and specificity, even at very low egg counts. The amount of parasite DNA detected correlates strongly with the number of eggs in the sample, making these tests useful not just for diagnosis but for tracking how well treatment is working.27PubMed Central. Human Ascariasis: Diagnostics Update These techniques are becoming cheaper and faster, though they are not yet standard in many of the settings where roundworm infections are most common. For conditions like toxocariasis or Baylisascaris infection, where the parasites never produce eggs in the human gut, blood tests looking for antibodies against the parasite are often the primary diagnostic approach. Confirming Baylisascaris, in particular, remains difficult and sometimes requires ruling out other causes of brain inflammation when larvae have already reached the central nervous system.