Drain flies coming from the toilet usually breed in one of three places: the slime under the rim and in the flush holes of a toilet that is rarely used, a leaking seal under the toilet base that keeps the floor damp, or a nearby sink, tub or shower drain. Small gray worms in the bowl are often drain fly larvae. The fix is to clean where the larvae live, flush regularly and repair any leak. Chemicals poured into the bowl rarely solve it on their own.
Why are drain flies coming from your toilet?
Drain fly larvae feed on the gelatinous film of algae, bacteria and fungi that builds up in drains and traps, according to University of Maryland Extension. A toilet can provide that film in several spots:
- A toilet that is rarely flushed. Guest and basement bathrooms are typical. Iowa State University Extension notes that seldom-used drains are especially likely to breed these flies. Film builds up at the waterline, under the rim and in the rim holes.
- A failing wax ring or loose toilet. If flies seem to come from around the base, water may be leaking under the toilet and soaking the subfloor. Drain flies breed in damp organic matter there, out of sight.
- The tank. Slime in a tank that is rarely flushed can harbor organic buildup, though larvae are more common in the bowl and under the rim.
- The real source is somewhere else. Flies rest on walls and fixtures near where they hatch, so flies on the toilet may be coming from the sink, tub, shower or a floor drain. Our guide to drain flies in the bathroom covers those drains.
Drain fly larvae in the toilet: what they look like
Ohio State University Extension describes drain fly larvae as legless, wormlike and gray, about 3/8 inch long, with both ends somewhat darker. They breathe through a tube at the tail end, so you may see them at the waterline or in slime under the rim. Other things people find in toilets:
- Small red worms: often midge larvae, sometimes called bloodworms, which also breed in standing water.
- Thin, white, threadlike worms in stool: these are not drain flies. Talk to a doctor or veterinarian about possible intestinal parasites.
Our guide to drain worms covers the larvae in more detail. They do not bite and are not dangerous to touch with gloves.
How to confirm the toilet is the source
Iowa State suggests covering a suspected drain overnight with clear plastic wrap taped down at the edges. For a toilet, close the lid with plastic wrap stretched over the bowl, or tape the wrap over the bowl itself. If flies are breeding in the toilet, they collect under the plastic within a day or two. Test the sink, tub and shower drains the same way. If none of them trap flies, see drain flies not coming from the drain.
How to get rid of drain flies in your toilet
- Scrub the bowl, waterline and under the rim. Use a toilet brush, and a small brush or old toothbrush for the rim holes. This removes the film larvae feed on.
- Clean the tank. Turn off the water, flush to drain the tank and scrub away slime with a brush and an ordinary cleaner meant for tanks. Check the label first, since some cleaners can damage tank parts.
- Flush several times to wash loosened material through the trap.
- Use an enzyme or bacterial treatment labeled for toilets if flies persist. Ohio State says enzyme-action products work best on the bacterial scum. Repeat as the label directs.
- Flush unused toilets weekly so film cannot build up again.
- Catch the adults. Swat or vacuum them, or use a sticky trap near the toilet. Ohio State notes fly paper and light traps catch some adults but will not end an infestation without cleaning the source.
If the flies come from around the base
Look for a toilet that rocks, discolored grout or flooring, a musty smell or water around the base after flushing. These point to a leaking wax ring. Replacing the ring and drying out the floor removes the breeding site. If the subfloor is soft or stained, call a plumber, because rot may need repair.
What not to pour into a toilet
- Drain cleaners not labeled for toilets. Some caustic drain openers say not to use them in toilets, and they can splash or damage fixtures. Read the label. Our guide to whether Liquid-Plumr kills drain flies covers one example.
- Bleach mixed with toilet bowl cleaner. Many bowl cleaners contain acids, and acid mixed with bleach releases toxic chlorine gas. Use one product at a time and flush well between them.
- Insecticide. Ohio State notes that no insecticides are registered for use in drains or sewage systems, and pouring one down a drain will not reliably kill larvae.
- Bleach on its own. Ohio State says drain fly larvae are surprisingly resistant to bleach, and Iowa State says there is no benefit to treating drains with it.
How to keep drain flies from coming back
- Flush every toilet at least once a week, including guest and basement bathrooms.
- Clean under the rim as part of regular bathroom cleaning.
- Keep sink, tub and shower drains clean, since they are often the real source.
- Fix running toilets, leaks and loose toilets promptly.
- Keep the bathroom ventilated so surfaces dry out.
If flies return after a few weeks, a second breeding site was probably missed. See why drain flies keep coming back.
FAQ
Can drain flies live in toilets?
Yes. Larvae can live in the film under the rim and at the waterline, especially in toilets that are rarely flushed.
Why do I have drain fly larvae in my toilet but no flies?
You may have caught the infestation early, or adults are resting out of sight on walls and behind the toilet. Clean the toilet now and the flies may never show up in numbers.
Are drain fly larvae in the toilet harmful?
No. They do not bite, sting or burrow. Clean them out with a brush and wash your hands afterward.
Will flushing get rid of drain flies?
Regular flushing helps prevent buildup, but it will not remove film that is already established. Scrub first, then flush regularly.
Sources
- University of Maryland Extension: Drain Flies
- Ohio State University Extension: Drain Flies (Moth Flies)
- Iowa State University Extension: Moth Fly