How Do You Know If You Have Worms in Your Poop?

The most reliable sign is seeing the worms themselves, either in the toilet bowl or on toilet paper. Pinworms look like tiny white threads about the size of a staple. Tapeworm segments resemble small grains of rice or pumpkin seeds. Roundworms are much larger and unmistakable, sometimes reaching 20 to 35 cm long. Beyond what you can see, certain symptoms like intense nighttime itching around the anus, unexplained weight loss, or persistent stomach discomfort can point to a worm infection even when nothing is visible in your stool.

What Worms Actually Look Like in Stool

Different types of intestinal worms have distinct appearances, and knowing what to look for makes a real difference.

Pinworms are the most common intestinal worm in the United States. They are small, thin, white, and about the length of a staple (roughly 1 cm). You’re most likely to spot them at night or first thing in the morning, because female pinworms crawl out of the anus while you sleep to lay eggs on the surrounding skin. You might see one or two wriggling on the surface of a bowel movement, on toilet paper, or around the anus itself.

Tapeworm segments (called proglottids) break off from the adult worm living in your intestine and pass out with stool. Fresh segments are flat, white, and roughly the size of a grain of rice, about 2 mm when dried out, hard, and yellowish. Some types are larger, up to 12 to 20 mm long, and may look more like pumpkin seeds that taper at each end. You’ll typically find them on the surface of a fresh bowel movement rather than mixed into it. They can sometimes still be moving.

Roundworms (Ascaris) are the easiest to identify because they’re shockingly large. Adult females measure 20 to 35 cm, and males 15 to 31 cm. They look like pale earthworms. When an adult roundworm is passed in stool, there’s no mistaking it for anything else.

Hookworms are harder to spot. Adults are only 5 to 15 mm long and live in the small intestine. They rarely show up visibly in stool, so diagnosis almost always requires a microscope to detect their eggs.

Things That Look Like Worms but Aren’t

Before you panic, know that several common items in stool closely mimic worms. Undigested food, particularly corn kernels, bean sprouts, grains, and banana fibers, can look suspicious. Excess mucus in stool sometimes appears stringy and worm-like. If what you’re seeing doesn’t move and looks like something you recently ate, it’s probably food. That said, dried tapeworm segments don’t move either, so if you see small rice-grain-sized objects you can’t explain, it’s worth getting tested.

Symptoms That Suggest a Worm Infection

Many worm infections cause no obvious symptoms at all, especially in the early stages. When symptoms do appear, they depend on the type of worm.

Pinworms cause intense itching around the anus, particularly at night when the females are actively laying eggs. This itching can disrupt sleep significantly. In girls and women, pinworms occasionally migrate to the vaginal area and cause irritation and inflammation there.

Tapeworm infections often cause no symptoms until segments start showing up in stool. Some people experience nausea, mild abdominal discomfort, or unexplained weight loss. Roundworm infections can cause stomach pain, nausea, or diarrhea, though light infections often go unnoticed. Hookworms feed on blood in the intestinal wall, so over time they can cause fatigue and signs of iron deficiency.

General red flags that should prompt a visit to your doctor include: diarrhea or stomach pain lasting longer than two weeks, unexplained weight loss, finding a large worm or worm segments in your stool, or a red, itchy, worm-shaped rash on your skin.

How Worm Infections Are Diagnosed

If you think you’ve seen a worm or segment, your doctor will likely order an ova and parasite (O&P) stool test. A lab examines your stool sample under a microscope looking for worm eggs or fragments. A positive result confirms the infection and identifies the specific type of parasite. Because worms don’t shed eggs every single day, you may need to collect stool samples on two or three separate days to get an accurate result. A single test can miss an infection that multiple samples would catch.

Pinworms require a different approach. Their eggs are deposited outside the body, around the anus, so they rarely show up in a standard stool sample. Instead, a “tape test” is used. First thing in the morning, before showering, using the toilet, or getting dressed, you press a piece of clear sticky tape against the skin near the anus, then seal the tape in a bag or press it onto a glass slide. This is repeated on three consecutive mornings to improve accuracy. A lab then checks the tape under a microscope for pinworm eggs, which are too small to see with the naked eye (about 55 micrometers, roughly half the width of a human hair).

What to Do if You Find Something

If you spot something you suspect is a worm, try to preserve a sample. Place the stool (or the suspected worm/segment) in a sealed container or zip-lock bag and bring it to your doctor’s office. A photo can also help if collecting a sample isn’t practical. Your doctor can confirm whether it’s actually a parasite and which type it is, which determines the treatment approach.

Pinworm infections are extremely common, especially in children, and are treated with a short course of oral medication that kills the worms. Tapeworm and roundworm infections also respond well to antiparasitic medication. In most cases, treatment is straightforward and resolves the infection within days to weeks. If you continue passing live worms after treatment, follow up with your doctor, as a second round of medication is sometimes needed.