Stomach worms (intestinal parasites) are treated with prescription or over-the-counter anti-parasitic medications that typically clear the infection within one to three days. The specific medication depends on which type of worm you have, so getting the right diagnosis is the first step toward getting rid of them for good.
Common Types of Intestinal Worms
The three most common intestinal worms in humans are pinworms, roundworms, and tapeworms. Each spreads differently and causes slightly different symptoms, but they share a core set of signs: diarrhea, abdominal pain, gas, bloating, nausea, and vomiting.
Pinworms are the most common intestinal parasite in the United States, especially in children. These tiny, thread-like worms spread when you touch a contaminated surface and then put your hands near your mouth. The eggs hatch in your small intestine, and at night, female worms crawl to the anal area to lay more eggs. This causes intense anal itching, which is often the first and most obvious symptom.
Roundworms look like tiny earthworms under a microscope. You pick them up by swallowing eggs from contaminated soil, which is common in areas with poor sanitation or where human waste is used as fertilizer. Heavy infections can cause coughing (as larvae migrate through the lungs), abdominal pain, and in severe cases, intestinal blockages.
Tapeworms have flat, ribbon-like bodies made of segments. You get them from eating undercooked pork, beef, or fish that contains larvae, or by swallowing eggs from a contaminated surface. Tapeworms are the one type you might actually notice in the toilet. Segments break off and appear in your stool as small, white, rice-grain-sized pieces.
How Worms Are Diagnosed
For most intestinal parasites, your doctor will order a stool sample to look for eggs or worm fragments under a microscope. Pinworms are the exception, because their eggs are laid outside the body and rarely show up in stool.
Pinworms are diagnosed with a simple tape test you can do at home. First thing in the morning, before bathing, press the sticky side of a one-inch strip of clear cellophane tape firmly against the skin around the anus for a few seconds. The eggs stick to the tape. Then transfer the tape sticky-side down onto a glass slide, seal it in a plastic bag, and bring it to your doctor. Because egg-laying doesn’t happen every night, the test often needs to be repeated on three separate mornings for an accurate result.
Prescription Medications
Anti-parasitic drugs are the standard treatment and work quickly. These medications paralyze the worms or starve them of nutrients so your body can flush them out naturally. The specific drug and duration depend on the type of worm.
For roundworms, a single dose of albendazole is highly effective. Mebendazole is another option, taken twice daily for three days. Hookworms and whipworms follow similar treatment plans, though whipworm typically requires three days of medication rather than a single dose. Tapeworm infections use a different class of drugs that your doctor will prescribe based on the specific species involved.
Most people feel better within a few days of starting treatment. Side effects from these medications are generally mild and short-lived, things like stomach discomfort or headache. Your doctor may request a follow-up stool test a few weeks after treatment to confirm the infection has cleared.
Over-the-Counter Treatment for Pinworms
Pinworms are the one intestinal parasite you can treat without a prescription. Pyrantel pamoate is available at most pharmacies and works by paralyzing the worms so they release their grip on the intestinal wall and pass out in your stool. The dose is based on body weight: 11 milligrams per kilogram, up to a maximum of one gram. It’s taken as a single dose.
The packaging says not to repeat the dose unless directed by a doctor. In practice, many physicians recommend a second dose two weeks later to catch any worms that hatched from eggs after the first treatment, since the medication kills adult worms but not eggs. If symptoms persist after a second dose, it’s time to see your doctor for a prescription alternative.
Do Natural Remedies Work?
Papaya seeds, pumpkin seeds, garlic, and various “parasite cleanses” are widely promoted online, but the evidence behind them is thin. A 2007 study of 60 Nigerian children found that 71% who received papaya seeds cleared parasites from their stool, which sounds promising. But as Cleveland Clinic gastroenterologist Dr. Christine Lee points out, these are small studies that shouldn’t be applied broadly without larger, well-designed clinical trials confirming both effectiveness and safety.
The core issue is that proven medications work reliably and quickly, while natural remedies remain unverified. Using them instead of standard treatment risks letting an infection worsen or spread to others. If you’re interested in trying papaya seeds or similar remedies, treat them as a supplement to medical treatment, not a replacement.
Stopping Reinfection
Killing the worms is only half the battle. Reinfection is extremely common, especially with pinworms, because the eggs are microscopic and can survive on household surfaces for two to three weeks. A single infected child can reinfect an entire household through doorknobs, bedding, and shared towels.
To break the cycle:
- Wash bedding and towels in hot water on the first morning of treatment. This removes eggs deposited overnight.
- Trim fingernails short and scrub under them frequently. Eggs collect under nails when you scratch, then transfer to your mouth.
- Shower in the morning rather than at night. This washes away eggs laid during the night before you can spread them.
- Avoid shaking out bedding or clothing, which sends eggs airborne. Roll sheets carefully and go straight to the washing machine.
- Clean bathroom surfaces, toys, and frequently touched areas with hot water and soap or disinfectant wipes for at least two to three weeks after treatment.
- Wash hands thoroughly before meals and after using the bathroom. This is the single most effective prevention measure for all intestinal parasites.
Preventing New Infections
Different worms have different entry routes, so prevention depends on what you’re trying to avoid. For pinworms, handwashing and keeping fingernails short are the main defenses. For roundworms and hookworms, avoid walking barefoot in areas where soil may be contaminated with human waste, and wash produce thoroughly. For tapeworms, cook pork, beef, and fish to safe internal temperatures, as larvae in undercooked meat are the primary source of infection.
If one person in your household is diagnosed, it’s worth treating everyone at the same time, particularly for pinworms. The infection spreads so easily through shared spaces that treating only the symptomatic person often leads to a cycle of reinfection within the family.