How to Get Rid of Roundworms in Humans: Meds & Prevention

Roundworm infections in humans are treated with a single dose of prescription antiparasitic medication, which kills the worms within about three days. The most commonly prescribed option is albendazole, a 400 mg tablet taken once. Treatment is straightforward, but preventing reinfection requires attention to hygiene and household cleaning, since roundworm eggs are remarkably tough and can survive in the environment for weeks to months.

How Roundworm Infections Are Diagnosed

Most roundworm infections are confirmed through a stool sample. A lab technician examines the sample under a microscope, looking for tiny eggs or larvae. One important detail: eggs don’t appear in stool until at least 40 days after infection. If you were recently exposed, a negative stool test doesn’t necessarily mean you’re clear. And if your infection happens to involve only male worms, eggs won’t show up at all.

Blood tests can reveal elevated levels of a specific white blood cell type that rises during parasitic infections, though this finding isn’t unique to roundworms. In heavier infections, imaging like X-rays, ultrasound, or CT scans can sometimes reveal a mass of worms in the intestines, or show larvae that have migrated to the lungs, liver, or pancreas. In severe cases, people have reported seeing worms after coughing or vomiting, or finding them in their stool.

Medications That Kill Roundworms

Albendazole at a single 400 mg oral dose is the standard treatment for uncomplicated roundworm infection (ascariasis) in anyone older than 12 months. It works by disrupting the internal scaffolding of the worm’s cells. Every cell relies on tiny structural tubes to maintain its shape, divide, absorb nutrients, and transport materials internally. Albendazole locks onto a protein in these tubes, collapsing the system. The worms lose the ability to feed, move, and reproduce, and they die within a few days.

The reason this medication is safe for humans is that it binds far more tightly to the worm version of this protein than to the human version. It latches on and won’t let go in the parasite, but releases quickly from human cells, giving it a wide safety margin.

If a roundworm infection coexists with whipworm (a related parasite), a multi-dose course of mebendazole is typically preferred instead. For pregnant women, pyrantel pamoate is the recommended choice, since albendazole and mebendazole carry risks during pregnancy.

What to Expect During Treatment

After taking the medication, the worms die and are passed out of your body in stool over the following one to three days. You may or may not see them. The most common side effects of deworming medications are mild and digestive in nature: abdominal pain, diarrhea, nausea, and occasionally headache or dizziness. These typically resolve quickly.

People with liver problems should be aware that high-dose courses of these medications can be hard on the liver. Your prescriber will factor this in when choosing which drug and dosage to use. In most uncomplicated cases, though, a single dose handles the infection with minimal side effects.

A follow-up stool test a few weeks after treatment can confirm the infection has cleared. In areas where roundworm is common, reinfection is frequent enough that periodic retreatment is sometimes part of routine care.

Cleaning Your Home to Remove Eggs

Killing the worms inside your body is only half the job. Roundworm eggs shed in stool are extraordinarily resilient. They resist drying out and survive most common household disinfectants. Left undisturbed on surfaces, they can remain capable of causing infection for weeks to months. This means standard spray-and-wipe cleaning with a typical disinfectant is not enough on its own.

The most effective decontamination methods are heat-based. Steam cleaning with at least 30 to 60 seconds of direct contact time kills parasite eggs on hard surfaces. For items that can’t be steamed, mechanical removal matters more than chemical treatment. Wipe surfaces using a damp cloth with hot soapy water, wiping in one direction rather than scrubbing back and forth, to physically lift and remove eggs rather than spreading them around. Rinse your cloth frequently, and flush the dirty water down the toilet rather than pouring it down a sink.

For fabrics, bedding, and clothing, wash everything in hot water with detergent. Anything that can be thrown away (like contaminated rags or disposable gloves used during cleaning) should be bagged and discarded.

Hygiene Habits That Prevent Reinfection

Roundworm eggs enter the body through the mouth, almost always via contaminated hands, food, or water. The cycle is simple: eggs from contaminated soil or surfaces get on your hands, and from your hands to your mouth. Breaking that cycle requires consistent habits, especially during and after treatment.

  • Handwashing: Wash thoroughly with soap and warm running water after using the toilet, after working or playing outdoors, and before eating or preparing food. This single habit is the most effective barrier against reinfection.
  • Food preparation: Wash all fruits and vegetables under running water before eating, particularly produce grown in or near soil. In regions where roundworm is endemic, peeling produce or cooking it thoroughly adds a layer of protection.
  • Outdoor precautions: If you’ve been in contact with potentially contaminated soil, scrub or remove your shoes before entering the house. Disposable gloves are worth using during gardening or yard cleanup in affected areas.
  • Nail care: Keep fingernails trimmed short. Eggs lodge under nails easily and survive handwashing if nails are long enough to shelter them.

Treating the Whole Household

If one person in a household has a confirmed roundworm infection, others in the same environment may have been exposed to the same source of contamination. This is especially true in homes with young children, who are more likely to put contaminated hands or objects in their mouths. A healthcare provider may recommend testing or treating other household members at the same time to prevent a cycle of reinfection passing back and forth between family members.

For the specific roundworm species most common in humans (Ascaris lumbricoides), person-to-person transmission isn’t immediate. Eggs passed in stool need time in warm, moist soil to become infectious, usually a few weeks. This means the risk is highest in settings with poor sanitation or where human waste contacts soil. In homes with modern plumbing, the primary concern is contamination brought in from outside rather than direct household spread.