Finding worms in your toilet is surprisingly common, and in most cases the culprit isn’t a human parasite. The creatures you’re seeing are usually insect larvae living in your drain, not worms that came from your body. That said, intestinal parasites are a real possibility, so it helps to know exactly what you’re looking at and how to tell the difference.
What You’re Most Likely Seeing
The majority of “worms” that show up in toilet bowls are actually larvae from insects that breed in the organic buildup inside your plumbing. Two types are especially common.
Drain fly larvae are the most frequent offender. These small, gray, legless creatures are about 3/8 inch long (roughly 8 to 10 millimeters) with darker coloring at each end. They look like tiny worms but are actually the juvenile stage of the small, fuzzy, moth-like flies you may have noticed near your bathroom drains. They feed on the slimy film of bacteria and organic matter that accumulates inside pipes, and they can appear in any toilet that isn’t flushed regularly or has buildup in the overflow drain.
Bloodworms are thin, bright red worms that sometimes appear in toilet water. These are larvae of midges, a type of non-biting fly. They get their vivid red color from hemoglobin in their blood, the same oxygen-carrying molecule found in human blood. Bloodworms thrive in water polluted with organic matter and are a sign that your plumbing has stagnant water or heavy biofilm buildup somewhere in the line.
When It Could Be a Human Parasite
Intestinal worms that actually come from your body look distinctly different from drain larvae, and they almost always come with other symptoms.
Pinworms are the most common human worm infection in the United States. They’re tiny, white, thread-like worms, and you’re far more likely to spot them around the anus than in the toilet bowl itself. Female pinworms leave the intestine at night to lay eggs on the surrounding skin, which causes the hallmark symptom: intense itching around the anus, especially at night. Some people also experience restless sleep, abdominal pain, or vaginal irritation if the worms migrate to that area. Pinworms spread when someone accidentally swallows microscopic eggs, which can survive two to three weeks on bedding, clothing, and other surfaces. Children and their household members are most commonly affected.
Tapeworm segments are the one intestinal parasite you might actually notice in the toilet. They look like small, flat, white grains of rice embedded in stool. These are pieces of the tapeworm’s body that break off and pass out along with eggs. Most other intestinal parasites shed only microscopic eggs in stool, so you wouldn’t see them without lab testing.
If the worms you’re seeing are clearly in the water and not in your stool, or if they’re gray, red, or translucent rather than white, a human parasite is unlikely. If they are white, appear in or on your stool, and you have symptoms like anal itching, abdominal pain, or unexplained digestive problems, a parasite is worth investigating.
How Worms Get Into Your Plumbing
Drain larvae don’t crawl up from the sewer. They hatch right inside your pipes. Adult drain flies enter your bathroom through open windows or doors, then lay eggs in the moist organic film that coats the inside of drains. The larvae develop in that film, and when conditions are right, they can migrate into the toilet bowl itself. Toilets in guest bathrooms or vacation homes that go unflushed for days are especially prone.
Actual earthworms, the brown or pink segmented kind, can enter your toilet through cracks or breaks in sewer pipes. Underground worms find their way into the compromised pipe and eventually make it to your fixtures. A leaking wax ring seal at the base of the toilet or a faulty trap drain can also create entry points. If you’re finding earthworms, the problem is structural. Pest control won’t help because the fix is plumbing repair, not extermination.
Getting Rid of Drain Larvae
Because drain fly and midge larvae feed on the organic film inside your pipes, killing the larvae without removing their food source just means more will hatch. The goal is to physically clean the drain, not just pour chemicals down it.
Start by scrubbing the inside of the drain with a stiff brush or using a plastic drain-cleaning tool (sometimes called a hair snake) to pull out any buildup of hair, soap scum, and gunk. This removes both the larvae and the biofilm they depend on. Pouring boiling water down the drain can help loosen organic buildup but rarely solves the problem on its own.
Enzyme-based drain cleaners are designed to digest organic buildup over time and can be effective as a follow-up to physical cleaning. Pour them down the drain before bed, when nobody will be using the fixture for several hours. For toilets specifically, enzyme cleaners tend to sit in the bowl rather than reaching the internal plumbing where larvae actually live, so focus your cleaning effort on the overflow drain and the area beneath the rim.
If drain flies keep returning after you’ve cleaned the drains, the breeding source may be the seal at the base of the toilet. Replacing the wax ring and sealing around the base with silicone caulk eliminates the gap where moisture and organic matter can accumulate. You can test whether flies are coming from under the toilet by taping clear packing tape over the base overnight and checking for trapped flies in the morning.
Testing for Intestinal Parasites
If you suspect the worms came from your body rather than your plumbing, a stool test can confirm or rule out a parasitic infection. The standard test is called an ova and parasite exam, where a lab examines your stool sample under a microscope for eggs or worm fragments. The CDC recommends submitting three or more stool samples collected on separate days, because parasites don’t shed eggs consistently and a single sample can easily come back negative even when an infection is present. Samples are typically placed in a container with preservative fluid, or refrigerated (not frozen) if no preservative is provided.
For pinworms specifically, the standard stool test often misses them. The more reliable method is a “tape test,” where a piece of clear adhesive tape is pressed against the skin around the anus first thing in the morning, before bathing or using the toilet. The tape picks up any eggs that were deposited overnight and is then examined under a microscope. Another diagnostic approach is simply checking the anal area two to three hours after the person falls asleep, when female pinworms are most active.
If stool tests come back negative but symptoms persist, the next step is typically a more direct visual examination of the intestine using a scope inserted through the mouth or rectum. This is uncommon for routine cases but can catch infections that stool samples miss.
Quick Guide to Identifying What You Found
- Small, gray, legless, about 1 cm long: Drain fly larvae. They live in your pipes, not your body.
- Thin, bright red, in the water: Bloodworms (midge larvae). A sign of organic buildup in your plumbing.
- Brown or pink, segmented, looks like an earthworm: Likely an actual earthworm that entered through a cracked sewer pipe.
- Tiny, white, thread-like, near the anus: Possibly pinworms. Look for nighttime anal itching as a confirming symptom.
- Small, flat, white, rice-grain shapes in stool: Possibly tapeworm segments. Worth a medical evaluation.