Skip to main content

Local pest control help is one call away.

Treatment

How to Get Rid of Drain Flies (At the Source)

8 min read March 2025

Small fuzzy flies hovering around your sink, tub, or floor drain are drain flies (sewer or moth flies), not fruit flies. They breed inside the pipe, in a gelatinous biofilm coating the drain walls, and a single undisturbed drain can produce hundreds of adults a week.

This guide gives you the 8-step protocol that actually finishes the job: a tape test to confirm the source, a stiff-brush scrub to strip the biofilm, and a 7-night enzyme cycle that outlasts the 7-20 day egg-to-adult window.

If bleach already failed for you, the next section explains why it almost always does, and what replaces it.

Drain flies feel impossible to kill because the eggs and larvae live below the water line, embedded in biofilm that bleach, boiling water, and diatomaceous earth run right past. The adults you knock down today are replaced by the generation maturing inside the pipe wall by the end of the week.

The fix is mechanical, not chemical. Strip the biofilm with a stiff drain brush, then pour an enzyme cleaner that digests whatever the brush misses. Repeat every night for a week to outlast the life cycle. That breaks the colony, not just the visible adults.

Key Takeaways

  • Drain flies are 1-5mm, fuzzy, moth-winged, and weak fliers. Fruit flies are smooth, hover near produce, and fly stronger. Fix the right pest.
  • A tape test (clear packing tape over the drain overnight) names the breeding drain in 8 hours. Skip this and you treat the wrong pipe.
  • Bleach kills surface adults but does not penetrate biofilm. Scrubbing plus enzyme contact time is the only DIY that ends the cycle.
  • The 7-20 day egg-to-adult window means treatment must run 7 consecutive nights, not 2 or 3.
  • Flies persisting after a clean protocol point to a leak under a slab, a sweating condensate line, or a forgotten floor drain, structural, not surface.
WARNING

Why Bleach (and DE) Almost Never Finish the Job

Bleach runs past biofilm in seconds without penetrating it, the larvae underneath stay alive. Diatomaceous earth needs dry surfaces to abrade insect cuticles, but drain interiors are wet. Both kill surface adults and miss the next generation entirely. Mechanical scrubbing plus 6+ hours of enzyme contact is what works.

STILL SEEING FLIES AFTER 7 NIGHTS?

Cannot find the breeding source?

When the tape test does not name a drain and a full 7-night protocol does not stop the flies, the breeding site is usually a hidden leak, a sweating condensate line, or a damaged section of drain pipe. A local pro can scope the line, find the wet substrate, and tell you whether it is a pest job or a plumbing job.

8 Steps to End a Drain Fly Problem

Run these in order. The two failure modes are skipping the tape test and stopping treatment at day 3 when adult counts drop.

1

Confirm It Is a Drain Fly, Not a Fruit Fly

Look at one up close. Drain flies are 1-5mm, dark gray, fuzzy, with rounded wings held tent-style over the body at rest. They fly in short clumsy hops. Fruit flies are 3-4mm, smooth-bodied, tan or brown with red eyes, and hover steadily over produce or open drinks. Treating one as the other wastes a week, fruit flies breed in fruit and trash, drain flies breed inside pipes.

TIP

If you can swat one easily, it's almost certainly a drain fly. Fruit flies are notably faster fliers.

2

Run the Tape Test to Pinpoint the Source

Cover each suspect drain with clear packing tape, sticky side down, leaving a small slit for airflow. Leave overnight. Count adults stuck in the morning, the drain with the most is your primary breeding site. Test every drain in the room: kitchen sink, dishwasher air gap, bathroom sink, tub, tub overflow, shower, basement and laundry floor drains.

TIP

The tub overflow is the most-missed site in any bathroom. Pop the cover off and tape that opening separately, it traps its own biofilm and rarely gets flushed.

3

Scrub the Biofilm With a Stiff Drain Brush

Buy a stiff-bristled drain brush at least 24 inches long. Push it into the drain and twist firmly against the pipe walls, working it down as far as it reaches. The slimy gray-brown coating that comes out is the biofilm, this is the substrate the eggs and larvae actually live in. Bleach cannot reach it. A brush can.

TIP

If the brush comes out clean, you are either not deep enough or treating the wrong drain. Switch to a longer brush or rerun the tape test.

4

Pour an Enzyme Cleaner and Let It Sit Overnight

Right after scrubbing, pour a bio-enzymatic drain product (Invade Bio Foam, BioMax, or any cleaner labeled for grease digestion or drain fly treatment) down the drain just before bed. The enzymes digest residue your brush could not reach. Do not run water for at least 6 hours, contact time is what makes enzymes work.

TIP

Avoid bleach and chemical drain openers during the enzyme phase. Both kill the bacteria in enzyme products and erase the treatment.

5

Repeat the Scrub and Enzyme Cycle for 7 Nights

Drain fly eggs hatch in about 2 days, and larvae take 7-15 more days to reach adult. One night of treatment kills the adults and the eggs you happened to disturb, nothing else. Scrubbing and pouring enzyme every night for a week ensures every generation hitting the surface meets a hostile drain before it can lay new eggs.

TIP

Mark a 7-night streak on the calendar. Most homeowners quit at day 3 because adult numbers drop fast, the larvae in the pipe are still maturing on schedule.

6

Switch to Weekly Maintenance With Hot Water

After the 7-night cycle, pour a kettle of just-off-boil water down the treated drain once a week, followed by a capful of enzyme cleaner. That keeps biofilm from rebuilding faster than a new colony could establish.

TIP

Run the hot tap for 30 seconds before adding boiling water. Thermal shock can crack older PVC traps holding cold standing water.

7

Inspect for Leaks, Condensate Lines, and Unused Drains

If flies persist after the full protocol on the correct drain, the breeding site is not in the drain. Check for damp drywall under sinks, behind toilets, and at the base of tubs. Inspect the AC condensate line and pan, biofilm in a condensate line is a common hidden source. Pour water into any unused floor drain to refill its trap, a dried-out trap turns a floor drain into an open breeding tube.

TIP

A moisture meter reading above 17 percent in drywall is wet enough to support larvae. That warrants opening the wall to find the leak.

8

Know When to Call a Plumber (Not a Pest Pro)

If you have scrubbed, treated, inspected for leaks, and the flies still return, the substrate is structural: a cracked drain line under a slab, a damaged trap arm, or pitted cast iron holding biofilm no brush can reach. This is a plumbing job, not a pest one. A plumber can camera-scope the line and replace the failed section. Pest pros are the right call only when biofilm in accessible drains keeps regrowing despite treatment.

TIP

Ask for a camera inspection of the main line and any branch lines under the affected fixture. That visual confirmation is what separates a guess from a fix.

Where DIY Attempts Go Sideways

The first failure is treating the wrong drain. Adult drain flies hop between drains looking for mates, so the drain where you see them may not be where they hatched. Without the overnight tape test, homeowners spend a week pouring bleach into a clean kitchen sink while a basement floor drain three rooms away keeps producing the new generation.

The second failure is quitting on day 3. Adult counts drop within 48 hours of the first scrub-and-enzyme night, which feels like the problem is solved. But the larvae deep in the pipe are still maturing on a 7-15 day timer, and the next wave will emerge as adults right when you stop treating. The 7-night cycle is the whole point, anything shorter is just a temporary lull.

TIP

If the Tape Test Comes Back Empty

Lift every removable drain cover, check the dishwasher air gap, tape-test the laundry standpipe, the basement floor drain, the AC condensate line. Drain flies will breed anywhere wet organic material sits undisturbed for more than a week.

Bleach Pour vs Scrub-and-Enzyme Protocol

Two approaches that look similar in the cleaning aisle but produce very different results inside the pipe.

Bleach Pour

What Most Homeowners Try First

  • Pour bleach down the drain once or twice and wait
  • 5 minutes of effort, no tools
  • Adult fly counts drop within hours
  • Cannot penetrate biofilm where eggs and larvae live
  • Best for: knocking down visible adults, not for fixing the colony

A surface reset. Flies rebound within 5-10 days as the next generation matures.

Bleach is a comfort move. Mechanical scrubbing plus enzyme contact time is what removes the breeding site itself.

The Bottom Line

Drain flies are a biofilm problem, not a standing water problem. Until the gelatinous coating inside the pipe is physically removed and digested by enzymes across multiple consecutive nights, the colony keeps producing new adults faster than any swat or spray can keep up. The tape test, the scrub, and the 7-night enzyme cycle turn a chronic nuisance into a one-week project.

If you run the full protocol on the right drain and flies still return, stop treating the drain. The source is structural: a leak under the slab, a sweating condensate line, an unused floor drain with a dry trap, or a cracked pipe behind drywall. A moisture meter, a flashlight, and a camera-scope from a plumber will surface the real source within an hour.

Drain Fly Treatment FAQs

Common questions about this guide and what to do next.

  • Why does bleach not kill drain flies even when I pour a lot of it? Toggle answer for: Why does bleach not kill drain flies even when I pour a lot of it?

    Bleach runs past the biofilm in seconds without penetrating it. The eggs and larvae live inside a gelatinous organic layer coating the inside of the pipe walls, and that layer protects them from anything that does not stick around long enough to digest it. Within hours of a bleach pour the larvae continue developing on schedule.

    The fix is mechanical. A stiff drain brush physically scrapes the biofilm off the pipe walls, then an enzyme cleaner left to sit overnight digests whatever the brush could not reach. That combination removes the substrate the larvae depend on, which is what bleach alone never accomplishes.

  • How do I find which drain the flies are actually coming from? Toggle answer for: How do I find which drain the flies are actually coming from?

    Run the tape test. Cover each suspect drain with a piece of clear packing tape, sticky side down, leaving a small gap for airflow. Leave the tape in place overnight, and in the morning count the flies stuck to each piece. The drain with the most flies is your primary breeding site.

    Test every drain in the room, including floor drains, the bathtub overflow opening, and the dishwasher air gap. Drain flies often breed in the drain you forgot existed, and adults hop drain to drain looking for mates, so the drain you see them on may not be the one they hatched from.

  • Do I really have to do the treatment for seven nights in a row? Toggle answer for: Do I really have to do the treatment for seven nights in a row?

    Yes, and skipping nights is the single most common reason DIY treatment fails. Drain fly eggs hatch on a roughly 2-day cycle, and larvae take 9 to 15 days to mature inside the biofilm. A single treatment kills only the adults and the eggs you happened to disturb, leaving developing larvae deeper in the pipe to emerge as adults a week later.

    Scrubbing and applying enzyme cleaner every night for seven consecutive nights ensures every emerging generation hits a hostile drain before it can lay new eggs. Most homeowners quit after 2 or 3 days because adult numbers drop fast, but the larvae are still developing. Run the full streak.

  • What kind of brush and cleaner should I buy? Toggle answer for: What kind of brush and cleaner should I buy?

    Use a stiff-bristled drain brush at least 24 inches long. The brush has to reach past the trap and scrape the actual pipe walls where the biofilm lives. A short bottle brush stops in the wrong section of pipe and tells you nothing.

    For the cleaner, look for a bio-enzymatic drain product labeled for drain fly treatment or grease digestion. Avoid bleach and chemical drain openers during the enzyme phase, both kill the helpful bacteria in enzyme cleaners and undo the treatment. Pour just before bed and let it sit at least six hours so the enzymes have contact time to work.

  • Why are the flies still coming back after I finished a full treatment cycle? Toggle answer for: Why are the flies still coming back after I finished a full treatment cycle?

    The most common reason is a second breeding site you missed. Tape-test every drain in the room and the adjacent rooms, including the bathtub overflow, the laundry standpipe, the basement floor drain, and the dishwasher air gap. Treat any drain that shows fly activity using the same scrub-and-enzyme protocol.

    If every drain tests clean and flies still return, the breeding site is probably not in a drain at all. Look for a hidden plumbing leak under sinks, behind toilets, or at the base of tubs. A slow leak soaks drywall or subfloor, creating a breeding substrate just as suitable as pipe biofilm. A moisture meter reading above 17 percent on suspect drywall is enough to justify opening the wall.

  • Will diatomaceous earth help with drain flies? Toggle answer for: Will diatomaceous earth help with drain flies?

    Not really. Diatomaceous earth needs dry surfaces to abrade insect cuticles, and drain interiors are wet by definition. The powder clumps the moment it hits moisture and loses its desiccating effect entirely. It also cannot reach the eggs and larvae embedded in the biofilm below the water line.

    Mechanical scrubbing plus enzyme contact time is what actually works on drain flies. Save DE for crack-and-crevice work in dry indoor zones where its mode of action makes sense, and treat drains with a brush and a bio-enzymatic cleaner.

  • Could the drain flies be coming from somewhere other than my drains? Toggle answer for: Could the drain flies be coming from somewhere other than my drains?

    Yes, and this is what most homeowners miss. Drain flies will breed in any wet organic substrate that sits undisturbed for more than a week. A slow plumbing leak soaking drywall or subfloor, a damaged section of drain line leaking into a wall cavity, a forgotten plant saucer holding stagnant water, or a sump pit with debris are all viable breeding sites.

    If a full 7-night protocol on every drain in the area does not stop the flies, switch from drain treatment to leak hunting. Use a moisture meter on suspect drywall, check under and behind every fixture, and consider having a plumber scope the drain line for a damaged section that is leaking into the structure itself.

Pest Control Pros serving the city of the state of your city and nearby areas

Talk to a local provider who can scope the drain line, find the hidden leak or damaged trap behind a stubborn drain fly problem, and recommend the right fix.

Available 24/7
(888) 495-1510