How to Get Rid of Drain Flies (2026 Guide)
How to get rid of drain flies: tape-test each drain, scrub slime with a brush, fix moisture. Why bleach fails, explained.
DIY-friendly: Usually DIY-able: correct ID + sealed entry + label-led method. Act on first signs — it only gets cheaper early. Hiring guide →
In this guide
Drain flies never travel far from home. These fuzzy, moth-like gnats fly only a few feet at a time and rest on the nearest wall, which turns their laziness into your diagnostic tool: the drain they sit on is usually the drain they bred in. Kill the adults and the nursery refills within days. Find every nursery, scrub its slime to bare pipe, dry its moisture, and the cloud thins across two to three weeks. Skip the detective work and every bottle poured down the drain treats a symptom.
Are they really drain flies?
Confirm the species before opening a single trap. Biofilm is the gelatinous slime of bacteria, fungi and decay coating wet surfaces, and drain-fly larvae live inside it, breathing through tubes while feeding on the decay. Adults run 1/6 to 1/5 inch, dark and densely hairy, wings folded roof-like over the body at rest, most active toward evening. They hop in short jerky flights when disturbed rather than zooming off like fruit flies, and swatted ones puff a cloud of fine wing dust.

Fuzzy body, roof-folded wings, weak short hops. That combination names drain flies against fruit flies and gnats.
Post-vacation clouds deserve patience, not panic. Kentucky entomologists note drain flies often bloom after travel: stagnant traps and dry bowls grow film for a week, then normal flushing and trap refills starve the nursery out. Swat the stragglers and resume routine. Clouds persisting past two normal-use weeks, or dozens gathering at windows and light fixtures, signal a permanent breeding site that needs the full routine below.
Which drain breeds them?
Test every suspect instead of guessing. Stretch clear tape most of the way across each drain mouth overnight, leaving airflow so emerging flies still rise. Texas A&M’s drain-fly guide calls a taped fly a found source, and rooms routinely hide several: the guest-bathroom sink, the basement floor drain, the disposal splash guard, the fridge drip pan. Oil-smeared cups inverted over drains work the same way across several nights. Check the odd spots too: toilet tanks and bowls in unused bathrooms, shower overflows, garbage-can bottoms, mop buckets, sump pits, and icemaker condensate lines.

Every fixture like this earns an overnight tape test. Adults resting nearby narrow the suspect list fast.
Outdoor nurseries seed indoor clouds all summer. NC State lists the usual outdoor set: damaged septic lines, pooled stormwater growing algae, and air-conditioner condensate draining onto shaded foundations. Adults slip through standard window screen, so a clean house beside a sour condensate puddle keeps refilling. Walk the foundation after rain and follow the green film.
The overnight tape grid
Run this map on night one. Tape every drain in the rooms where adults gather, numbering each strip with a marker. Photograph all strips the next morning before peeling any. Positives get scrubbed first, negatives retest once more, and rooms with adults but no positives expand the grid to tanks, pans and outdoor drains. Cleaning starts only after the map exists, because scrubbing three drains while the fourth breeds wastes the month.
What about disposals, dishwashers and rentals?
Scrub the appliances the grid implicates. Garbage disposals grow thick film under the splash guard and along the grind chamber walls: disconnect power, scrub the guard flaps top and bottom with a brush, run a full load of ice plus citrus to scour, then enzyme-treat overnight. Dishwashers breed flies in clogged filters and standing sump water, so pull and wash the filter monthly and run hot empty cycles with vinegar. Renters should tape-test first, then notify landlords in writing with dated photos, since chronic drain and plumbing defects sit on the owner’s side of most leases. Keep copies until the cloud clears.
How do you kill the breeding site?
Scrub slime to bare wall. Pull drain covers and work a stiff long-handled brush through traps, overflows, disposal baffles and the first inches of pipe until the gelatinous film releases. UC IPM states the myth plainly: boiling water and bleach leave the film intact for, at best, short-term adult knockdown. Enzyme cleaners then maintain what the brush removed, digesting regrowth between scrubbings. Texas A&M adds the safety rule that matters: never pour bleach after a caustic drain opener, since the mix can generate hazardous chlorine gas in the line.
Moisture repair decides whether they return. Fix dripping traps and supply lines, reseat loose toilets, clear condensate routing into proper drains, and run unused fixtures weekly to keep traps full. Broken pipes under slabs and chronically wet crawl spaces breed flies that enter through floor cracks; those need plumbing repair plus sealing, not repeated brushing. Caulk the gaps where pipes meet floors and walls once everything runs dry.
| Action | What it does | Verdict |
|---|---|---|
| Stiff-brush scrubbing to bare pipe | Removes eggs, larvae and food film | The actual cure, do first |
| Enzyme cleaner maintenance | Digests regrowth between scrubs | Best follow-up, per label |
| Leak repair, trap refills, sealing | Ends the standing water nursery | Permanent fix for repeats |
| Tape-test mapping | Finds every nursery before work | An hour that saves weeks |
| Pyrethrin aerosols | Knock down flying adults | Temporary relief only |
| Bleach or boiling water alone | Kills surface adults | Film survives, flies return |
| Insecticide poured down drains | Poisons pipes, not film | Do not do this |
Expect the timeline biology sets. Eggs hatch within two days, larvae feed 9 to 15 days, pupae release adults in another day or two, so the full cycle spans roughly two to three weeks at room temperature. Adults alive during cleaning keep emerging for days after a perfect scrub. Chart the counts down across three tape retests, each a week apart, and log the numbers on paper so the trend stays visible; a flat or rising line means a missed nursery, and the search restarts at the grid, not the spray shelf. The general house-fly tactics in get rid of flies cover the airborne adults meanwhile.
Test, scrub or plumber? Decide in 60 seconds
Match your situation to one row and commit.
- Few flies after travel, normal use resumed: swat, flush fixtures, watch two weeks. No chemicals.
- Steady cloud in one bathroom: tape grid, brush every positive, enzyme maintenance. This weekend.
- Multiple rooms or floor-drain clouds: full grid plus moisture hunt, condensate to slab leaks. This month.
- Rising counts three weeks after full scrub: missed nursery, re-grid everywhere including outdoors.
- Sewage smells, soggy slabs or septic trouble: stop and call a plumber, then a pro. Now.
The fly hub gathers the order as the library grows, starting with the general house-fly guide. Compare the full roster across all pests, and open the pro finder the moment septic faults, slab leaks or commercial kitchens enter the picture.
How to: How to Get Rid of Drain Flies (2026 Guide)
Test each drain, scrub the slime, dry the moisture.
You'll need
- clear packing tape
- long-handled stiff drain brush
- enzyme drain cleaner
- old towels
- caulk and sealant
Tools
- flashlight
- screwdriver for drain covers
- plunger
-
Tape-test every drain overnight
Cover each suspect drain most of the way with tape and check by morning. Mark every positive drain, since rooms often hide two or three nurseries at once.
-
Scrub pipes to bare wall
Pull covers and brush pipe walls, traps, overflows and disposal splash guards until slime comes free. This mechanical removal is the entire cure.
-
Fix the moisture behind it
Repair leaks, run unused fixtures weekly, clear condensate lines and seal slab cracks. No standing water means no next generation.
-
Maintain and monitor three weeks
Dose enzyme cleaner per label, re-tape weekly, and track counts down. Rising numbers after three weeks restart the search, not the spray.
Frequently asked questions
Does bleach kill drain flies?
It kills adults on contact and then fails. Bleach does not dissolve the gelatinous slime where eggs and larvae live, so new adults emerge within days. Scrub the film off mechanically with a brush first, and never pour bleach after a caustic drain cleaner, a mix that can release hazardous chlorine gas.
Does boiling water get rid of drain flies?
Briefly at best. Larvae shelter inside slime and survive heat pulses, and the film stays glued to pipe walls. Use boiling water only as a supplement after brushing, not as the plan. Enzyme cleaners maintain what the brush removes.
How do I find which drain breeds them?
Tape-test every suspect drain: stretch clear tape most of the way across each opening overnight without sealing it fully, since sealed drains stop airflow and flies will not emerge. Stuck flies by morning name the nursery. Repeat across bathrooms, kitchens, basements and floor drains until all sources test clean.
How long until drain flies disappear?
Plan on two to three weeks of declining numbers after a full cleaning, matching the 10 to 15-day life cycle at room temperature. Adults alive at cleaning time keep emerging from pupae for days. Rising counts after three clean weeks mean a missed breeding site, not a failed method.
Are drain flies harmful?
They do not bite, but they shuttle bacteria from slime to food surfaces and their bodies can feed allergies. Restaurants have failed inspections over heavy infestations. Treat them as a sanitation signal: persistent flies point at moisture and decay worth fixing regardless.
Useful links (4)
- Texas A&M AgriLife: Drain Flies (E-184)— extensionentomology.tamu.edu
- NC State Extension: Drain Flies— content.ces.ncsu.edu
- UC IPM Pest Notes: Moth or Drain Flies— ipm.ucanr.edu
- University of Kentucky ENTFACT-615: Drain Flies or Moth Flies— entomology.mgcafe.uky.edu
Photo credits
Thank you to Mvuijlst, Adrian Tync and Stilfehler for sharing these beautiful photographs and helping bring this guide to life.