Worms in Your Bathroom: Causes and How to Remove Them

The small worm-like creatures showing up in your bathroom are almost certainly insect larvae, not actual worms. The most common culprit is the drain fly larva, a gray, legless creature about 3/8 inch long that lives in the slimy buildup inside your pipes. Less commonly, you might find red bloodworms in toilet bowls, tiny carpet beetle larvae near baseboards, or fungus gnat larvae around chronically damp spots. All of them are responding to the same thing: moisture and organic matter.

Identifying What You’re Seeing

Drain fly larvae are the species you’ll encounter most often. They’re grayish, roughly 8 to 10 millimeters long, with darker coloring at each end and a small breathing tube on one side. They have no legs and move with a wriggling motion. You’ll typically spot them near drain openings, on shower walls, or on the underside of toilet rims. If you also notice small, fuzzy, moth-like flies hovering near your sink or shower, those are the adults of the same species.

Red or pinkish threadlike creatures in your toilet bowl are likely bloodworms, which are midge larvae. They show up in toilets that sit unused for stretches of time or where a slow leak has allowed stagnant, organically rich water to accumulate. Their red color comes from hemoglobin, the same oxygen-carrying protein in human blood.

Carpet beetle larvae look distinctly different. They’re small, oval, and covered in tiny bristles or hairs. They’re more likely found on bathroom floors near baseboards than in drains, and they feed on shed skin cells, hair, and other dried organic debris. Fungus gnat larvae are translucent with dark heads and tend to appear around potted plants or any spot where soil stays perpetually wet.

Why Your Bathroom Attracts Them

Every drain in your bathroom has a thin coating of biofilm on the inside of the pipe. This biofilm is a living layer of bacteria, fungi, grease, soap residue, and decomposing organic matter. For drain fly larvae, it’s both food and shelter. They feed on the decaying material, bacteria, and microorganisms embedded in this slime, breathing through a small tube they extend through the surface of the film. Eggs are laid directly on this moist organic buildup, often right at drain openings, inside drainpipes, under toilet bowl rims, and sometimes under toilet seats.

The entire life cycle, from egg to adult fly, takes just 8 to 24 days depending on temperature and humidity. Eggs hatch within about 2 days, the larval stage lasts 8 to 15 days, and the pupal stage before an adult emerges is only 1 to 2 days. That’s why an infestation can seem to appear out of nowhere and escalate quickly.

Bloodworm infestations follow a similar pattern. They need stagnant water containing organic matter. Tiled or sealed floors that trap small puddles, rarely used toilets, and leaking water sources all create ideal conditions. If you see bloodworms, it means organic material has contaminated a water source in your bathroom.

Are They Harmful?

Drain fly larvae don’t bite, sting, or transmit diseases to humans. They aren’t attracted to food and won’t harm plants. They’re classified as a nuisance pest, not a health hazard. That said, their presence is a reliable signal that somewhere nearby there’s a buildup of moist, decaying organic material in stagnant water. The larvae themselves aren’t the problem so much as what their existence tells you about conditions inside your plumbing.

How to Get Rid of Them

The critical step is removing the biofilm where larvae live and feed. Without that organic layer, they can’t survive or reproduce. Pouring bleach down the drain is the most common instinct, but it’s largely ineffective. Bleach kills adult drain flies on contact, but it cannot penetrate the structured biofilm coating the inside of your pipes. Larvae embedded in that film survive, and new adults emerge within days.

Enzyme-based drain cleaners are a better option in theory, since they’re designed to break down organic matter. In practice, they work slowly, require repeated applications, and rarely eliminate the entire biofilm layer, which can extend for several feet along the pipe interior. A single treatment poured from the drain opening won’t reach the full extent of the colony.

The most effective approach is mechanical cleaning:

  • Remove the drain cover and use a stiff pipe brush or drain snake to physically scrub the inside walls of the pipe. This breaks up the biofilm that chemicals can’t reach.
  • Flush with boiling water after scrubbing to wash loosened material through the system.
  • Follow up with an enzyme cleaner over the next several days to dissolve residual organic buildup that the brush missed.
  • Repeat the process if you see new larvae within a week. Given the short life cycle, a single cleaning may not catch every generation.

For bloodworms in a toilet, flush several times and clean thoroughly under the rim and inside the tank. If the toilet sits unused in a guest bathroom, flush it at least once a week to prevent stagnation.

When the Problem Points to Plumbing Issues

A sudden, heavy infestation that doesn’t respond to drain cleaning can indicate something more serious. A crack in your home’s sanitary sewer line can create a large breeding ground that no amount of surface-level cleaning will fix. Pipe leaks behind walls or under floors create hidden damp areas where drain flies breed out of sight. If your drain worm problem is accompanied by a sudden appearance of cockroaches or rodents, that combination strongly suggests a compromised sewer line that needs professional inspection.

Earthworms (actual worms, not larvae) occasionally appear in showers or floor drains. Unlike the larvae described above, earthworms don’t breed inside plumbing. Their presence typically means they’ve entered through a crack or gap in a subterranean pipe and worked their way up. This is a plumbing problem, not a pest problem, and it usually requires locating and repairing the damaged section of pipe.

Keeping Them From Coming Back

Long-term prevention comes down to eliminating the conditions larvae need. Run water through every drain in your bathroom at least once a week, including guest bathrooms and floor drains you might otherwise ignore. Stagnant water in unused drains is one of the most common breeding sites. Fix any leaking pipes, faucets, or toilet seals promptly, since even a small, persistent leak creates enough moisture and organic buildup to sustain a colony.

Keep bathroom surfaces dry when possible. Use exhaust fans during and after showers to reduce ambient humidity. Clean drains with a brush monthly rather than waiting for visible larvae to appear. Once the biofilm is established, it regenerates quickly in a warm, wet pipe. Staying ahead of it with routine maintenance is far easier than eliminating an active infestation.