Are Roundworms Contagious? How They Spread

Discover if roundworms are contagious, how they spread, and essential steps to prevent infection for you and your family.

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. 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. 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. 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.

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. The socioeconomic gradient is steep: the lower a country’s development index, the higher the infection rates.

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. 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. 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. 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.

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. 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. 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. 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.

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. 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. 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. 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. Public parks in urban Iran have also tested positive for Toxocara eggs.

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.

Another study of Ethiopian schoolchildren found that among those cured of Ascaris, about 18% were reinfected within just eight weeks. 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.

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.

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. 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. 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. 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. 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.