Roundworm infection (ascariasis)
Ascariasis is an infection of the intestine with a large roundworm, Ascaris, caught by swallowing worm eggs from soil or food contaminated with human stool.
Clinician view: includes diagnostic criteria, management and safety detail.

Overview
Ascariasis (say: ass-kuh-RYE-uh-sis) is an infection caused by a large roundworm called Ascaris lumbricoides. The adult worms live in the small intestine, the long tube that takes in food after it leaves your stomach. They look a bit like pale earthworms and can grow to about 15 to 35 cm (6 to 14 inches) long.
It is one of the most common worm infections in the world. It belongs to a group called soil-transmitted helminths, which means worms spread through soil that has been contaminated with human stool (poop). Hundreds of millions of people are infected, mostly in warm, humid places where toilets and clean water are not available to everyone. It is uncommon in Canada and the USA, where it is usually seen in people who have lived in or travelled to areas where it is common.
Many people with a few worms have no symptoms at all. A heavy infection, especially in children, can cause belly pain, poor growth and, rarely, a blocked bowel. The good news is that ascariasis is easy to diagnose and is usually cured with a short course of a safe, inexpensive medicine.
Symptoms
Most people with a light infection feel well and only find out when a worm is passed in their stool or a test is done for another reason. When symptoms happen, they depend on where the worms are in the body.
Early stage: lungs
About 1 to 2 weeks after swallowing eggs, young worms (larvae) travel through the lungs. Some people get:
- A dry cough or wheezing
- Shortness of breath
- Mild fever
- Chest discomfort
- Sometimes an itchy rash
This lung stage is called Loeffler syndrome. It usually settles on its own within a few weeks.
Later stage: intestine
Once adult worms settle in the intestine, a heavier infection may cause:
- Belly pain or cramping
- Nausea, vomiting or loose stools
- Loss of appetite and feeling full quickly
- Weight loss
- A live worm in your stool, or one that comes out through the mouth or nose (this can be upsetting, but it is not dangerous by itself)
In children
Children with many worms over a long time may not grow or gain weight as expected. They can have trouble taking in nutrients from food, low vitamin A and less energy for learning and play.
Causes
Ascariasis spreads through a cycle that involves people and soil:
- Adult female worms in a person's intestine lay huge numbers of eggs, up to about 200,000 a day. The eggs leave the body in stool.
- Where stool gets into soil, for example where there are no toilets or human waste is used as fertilizer, the eggs develop in the warm, moist ground for a few weeks until they can cause infection.
- A person swallows the eggs. This can happen by eating raw fruit or vegetables grown in that soil that were not washed, peeled or cooked well, by drinking unsafe water, or by putting dirty hands in the mouth. Small children playing in soil are at highest risk.
- The eggs hatch in the intestine. The larvae pass through the gut wall, travel in the blood to the lungs, are coughed up and swallowed, and then grow into adult worms in the small intestine. This takes about 2 to 3 months.
Ascariasis does not spread directly from person to person. Fresh eggs in stool need time in soil before they can infect anyone. A closely related worm from pigs, Ascaris suum, can occasionally infect people who live near pig farms.
Risk factors
You are more likely to get ascariasis if you:
- Live in or travel to tropical or subtropical areas with limited sanitation, including parts of Asia, Africa and Latin America
- Are a young child, especially a preschool or school-aged child who plays in soil
- Eat raw vegetables or salads that may have been grown in contaminated soil
- Do not have easy access to toilets, clean water or soap
- Work in farming where human waste is used as fertilizer
- Have recently moved from a region where the infection is common
Diagnosis
Your health care provider will ask about your symptoms, travel and where you have lived. Tests may include:
- Stool test (ova and parasite exam): a sample of your stool is checked under a microscope for worm eggs. This is the main test. Eggs only show up once adult worms are in the intestine, so the test can be negative during the early lung stage. Sometimes more than one sample is needed.
- Looking at a passed worm: if a worm comes out in your stool or vomit, bring it in (in a clean, closed container) so it can be identified.
- Blood tests: a complete blood count may show a raised number of eosinophils, a type of white blood cell that increases with worm infections, especially during the lung stage.
- Imaging: a chest X-ray may show patches in the lungs in the early stage. An ultrasound, X-ray or CT scan of the belly can show worms in the bowel or bile ducts if there is a complication.
Treatment
Ascariasis is treated with deworming medicines called anthelmintics, which kill or paralyze the worms so they pass out of the body in the stool. Treatment is usually just one dose or a few days of tablets.
- albendazole and mebendazole are the most commonly used medicines. They stop the worms from absorbing sugar, so they die.
- pyrantel paralyzes the worms so they are passed out. It may be used in some situations, including in pregnancy when treatment cannot wait.
- ivermectin is another option that works against this worm and some other parasites.
Your provider will choose the medicine and dose based on your age, weight, whether you are pregnant or breastfeeding and what is available. You may see dead or dying worms in your stool for a few days afterward. This is normal.
Side effects are usually mild and short-lived, such as belly pain, nausea or diarrhea. A follow-up stool test may be suggested a few weeks or months later, especially if symptoms continue. Because people can be infected again, those who live in high-risk areas may need repeat treatment.
Treating complications
If worms block the bowel or bile ducts, you will need hospital care. This may include fluids through a vein, a tube to empty the stomach, deworming medicine once it is safe, a procedure using a flexible scope to remove worms from the bile duct, or, less often, surgery.
Living with ascariasis
Once treated, most people feel better quickly and do not need any special care. While you recover:
- Take the medicine exactly as prescribed, and finish the full course if more than one dose is given.
- Wash your hands well with soap and water after using the toilet and before handling food.
- Eat a balanced diet to help your body recover, especially for children who have lost weight.
- If other people in your household have the same exposure, ask your provider whether they should be tested or treated too.
- Tell your provider if your symptoms do not improve, or if you see worms in your stool weeks after treatment.
Complications
Most infections never cause serious problems. Complications are more likely when there are many worms, and they happen most often in young children.
- Bowel blockage (intestinal obstruction): a tangled mass of worms can block the small intestine. This causes severe cramping, vomiting and a swollen belly and needs emergency care.
- Bile duct and pancreas problems: a worm can crawl into the bile duct or pancreatic duct. This can cause sudden pain in the upper right belly, yellow skin or eyes (jaundice), fever, or inflammation of the pancreas (pancreatitis).
- Appendicitis: rarely, a worm can block the appendix.
- Poor nutrition and growth: long-term heavy infection in children can affect growth, weight and school performance.
- Breathing problems: rarely, the lung stage can cause more severe breathing trouble.
Outlook
The outlook is very good. Most people are cured with a single short course of treatment and have no lasting effects. Children who had poor growth often improve with treatment, good nutrition and staying free of new infections. Serious complications are uncommon and are usually treatable when found early. The main ongoing risk is getting infected again if you continue to live where the eggs are in the soil.
Prevention
You can lower your risk of ascariasis by keeping worm eggs out of your mouth:
- Use toilets or latrines, and never let human stool get onto soil where food is grown or children play.
- Wash your hands with soap and water after using the toilet, after working or playing in soil, and before preparing or eating food.
- Wash, peel or cook raw fruits and vegetables, especially when travelling. Avoid salads and raw produce if you are not sure how they were grown or washed.
- Drink water that is safe, such as bottled, boiled or properly treated water, in areas with poor sanitation.
- Teach children to wash their hands and keep dirty hands and objects out of their mouths.
In places where worm infections are common, health programs regularly give deworming medicine to schoolchildren and other groups at risk. There is no vaccine for ascariasis.
In Canada
In Canada, ascariasis is mostly seen in newcomers and returning travellers. Canadian guidance for immigrant and refugee health supports assessing people from endemic regions for intestinal parasites, and the Committee to Advise on Tropical Medicine and Travel (CATMAT) provides travel advice on food and water safety. Albendazole and mebendazole availability can vary, so your provider or pharmacist can advise on what is covered by your provincial drug plan or the Interim Federal Health Program if you are eligible.
Diagnosis
Ascaris lumbricoides is the most prevalent soil-transmitted helminth worldwide. Infection follows ingestion of embryonated eggs; larvae undergo hepatopulmonary migration before maturing in the small intestine (prepatent period about 2 to 3 months).
- Stool microscopy for ova (fertilized or unfertilized eggs) is the standard test; Kato-Katz is used in field settings to quantify intensity. Eggs are absent during larval migration and in male-only infections.
- Pulmonary phase (Loeffler syndrome): cough, wheeze, transient migratory infiltrates and peripheral eosinophilia; larvae may rarely be seen in sputum. Stool is negative at this stage, so repeat stool exam 2 to 3 months later.
- Eosinophilia is typically marked in the migratory phase and mild or absent in established intestinal infection.
- Imaging: ultrasound may show worms in the biliary tree (linear echogenic structures); plain film or CT for suspected obstruction ("whirlpool" worm bolus). ERCP is both diagnostic and therapeutic for biliary ascariasis.
- Consider co-infection with other soil-transmitted helminths and Strongyloides in migrants and travellers.
Management
- First line (CDC, WHO): albendazole 400 mg orally once, or mebendazole 100 mg twice daily for 3 days or 500 mg once. Ivermectin 150 to 200 mcg/kg once is an alternative. Pyrantel pamoate is an option where available.
- Pregnancy: benzimidazoles are generally avoided in the first trimester; WHO supports albendazole or mebendazole in the second and third trimesters in endemic settings. Seek specialist advice.
- Children: WHO-endorsed preventive chemotherapy uses albendazole or mebendazole from 12 months of age (albendazole 200 mg for ages 12 to 23 months).
- Cautions: ivermectin should be avoided or used only after specialist input in people who may have Loa loa infection (risk of encephalopathy) and is not established in pregnancy or children under 15 kg. Benzimidazoles have teratogenic concerns in animal studies.
- Complications: partial obstruction is usually managed conservatively (bowel rest, nasogastric decompression, IV fluids) with anthelmintic once obstruction resolves, as rapid worm paralysis can worsen a bolus. Surgery for complete obstruction, volvulus, perforation or failure of conservative care. Biliary or pancreatic ascariasis: anthelmintics plus ERCP extraction if not resolving.
- Follow-up: repeat stool exam if symptoms persist; reinfection is common in endemic areas, where periodic deworming is standard public health practice.
Red flags: colicky pain with vomiting and distension, biliary colic or cholangitis, pancreatitis, respiratory distress. Prognosis: excellent with treatment; morbidity relates to worm burden and complications.
When to get medical help
See your doctor or health care provider if you:
- See a worm in your stool, or a worm comes out of your mouth or nose
- Have belly pain, nausea or diarrhea that does not go away, especially after travel or living abroad
- Have a cough or wheezing that lasts more than a couple of weeks after travel
- Notice that your child is not growing or gaining weight as expected
- Still have symptoms after finishing treatment
Go to the emergency department or call emergency services if you or your child have severe or worsening belly pain, repeated vomiting (especially if you vomit worms or green fluid), a hard or swollen belly, cannot pass stool or gas, yellow skin or eyes with fever, or trouble breathing.
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Ascariasis. meshb.nlm.nih.gov
- World Health Organization: Soil-transmitted helminth infections. who.int/news-room/fact-sheets/detail/soil-transmitted-helminth-infections
- CDC DPDx: Ascariasis. cdc.gov/dpdx/ascariasis/index.html
- MedlinePlus: Ascariasis. medlineplus.gov/ency/article/000628.htm