How Do I Get Rid of Drain Flies

Updated: Feb 9

How to Get Rid of Drain Flies (Fast) — and Keep Them From Coming Back
“This article may contain affiliate links, when you buy through our links, we may earn a commission”
If you’ve spotted tiny, fuzzy, moth-like flies hanging out near your sink, shower, or floor drain… you’re not dealing with “random flies.”
You’re dealing with a moisture + gunk problem.
Drain flies (also called moth flies or filter flies) love the gross little layer most of us never see: the gelatinous biofilm that builds up inside drains, overflows, and traps. Adults hover around the source. Larvae feed in that slime. And the cycle repeats until you remove the breeding site.
The good news: you can usually fix this yourself in a weekend—without ripping out plumbing or turning your bathroom into a chemistry lab.
Let’s do it the clean, effective way.
What drain flies are (and why they won’t leave just because you swat them)
Drain flies are small (often 1/8 inch), fuzzy-winged flies that rest on walls near drains and move in short hops. The adults are annoying—but the real action is happening inside the drain system.
Most infestations come from:
Sink, shower, tub, or floor drains
Overflow openings (sink overflow holes are a sneaky favorite)
P-traps with sludge buildup
Garbage disposals with gunk under the splash guard
Leaky pipes or wet areas under cabinets
Rarely: sump pits, HVAC condensate lines, or septic-related moisture spots
Drain flies go through egg → larva → pupa → adult, and under typical conditions they can complete that cycle in about 21–27 days (faster in warmth).
That’s why quick fixes feel like they “work”… for a few days. You kill adults, but the next generation hatches right on schedule.
The #1 mistake that keeps drain flies alive
Only treating the visible drain opening.
In practice, people pour something down the drain, run water, and hope. But larvae often live:
just below the drain lip
along the sides of the pipe
inside the overflow channel
in the P-trap
in slime lines where water sits slowly (floor drains, rarely used sinks)
So if you don’t physically remove that film (or dissolve it thoroughly), the infestation comes right back.
My preference: mechanical cleaning first, then a biofilm-targeting treatment, then drying/maintenance.
Step 1: Confirm it’s drain flies (60-second “tape test”)
Before you deep-clean every drain in your life, confirm the breeding site.
Tape test (easy + effective):
At night, dry the drain area.
Place clear tape (or painter’s tape) sticky-side down over the drain opening (leave tiny gaps for airflow).
In the morning, check for trapped flies on the underside of the tape.
If you catch them, that drain (or nearby moisture point) is a likely source. UC IPM notes adults usually stay close to the development site because they’re weak flyers—so this test is surprisingly telling.
No flies on tape? Try the next nearest drain or check hidden moisture (Step 3).
Step 2: The fastest way to get rid of drain flies (the method that actually works)
The “Clean + Treat + Dry” method (do this for each suspect drain)
A. Clean the biofilm (this is the non-negotiable part)
What you need:
Long drain brush (or a stiff bottle brush)
Gloves
Flashlight
Old toothbrush (for the drain rim and overflow)
What to do:
Remove the drain cover/stopper if possible.
Scrub the inside lip and as far down as you can reach.
If it’s a sink: scrub the overflow hole/channel (this is where many infestations hide). Use a thin brush or pipe cleaner and work it around.
For garbage disposals: scrub under the rubber splash guard—gunk collects there.
Virginia Tech and NC State Extension both emphasize that the key is eliminating the moist organic buildup—this is the breeding material.
B. Treat what you can’t reach (enzyme/foaming drain gel)
After scrubbing, use a product designed to break down organic matter (not just “unclog”). Look for:
enzyme drain gel
bio-enzymatic drain foam
“build-up remover” labeled for organic sludge/biofilm
Use it at night so it sits longer, and repeat for several days based on label instructions.
Recommended biofilm remover (Amazon): “enzyme drain gel that targets organic buildup"
C. Flush correctly (hot water—strategically)
Hot water helps, but it’s not magic by itself. It works best after you’ve scrubbed and treated.
A CDC-associated study in a different setting (drains in hospitals) found that sustained hot water flushing at about 60°C (140°F) for extended periods helped suppress moth flies, especially paired with mechanical biofilm removal. That supports the basic idea: heat + biofilm removal is more effective than chemicals alone.
At home: run very hot water for a few minutes after treatment (following product directions). Don’t burn yourself, and don’t assume a quick splash is enough.
Step 3: If they’re not coming from the drain, check these “hidden sources”
If the tape test is inconclusive, or you cleaned drains and still see flies, expand your search:
Under-sink leaks
Even a tiny drip keeps wood and grime damp—perfect breeding conditions.
Floor drains (laundry rooms, basements)
These are classic because they’re often ignored and can dry out or get funky.
Condensate lines (HVAC)
If there’s algae/slime buildup, it can support small fly populations.
Toilet base or wax ring issues
Moisture + organic residue can attract pests (less common, but worth checking if flies cluster near toilets).
Michigan State and UC IPM both note larvae can develop anywhere organic material accumulates in moist conditions—not just the drain opening you’re staring at.
Quick troubleshooting guide: “If you see this… do that”
Use this like a decision shortcut:
If flies are mostly in one bathroom:→ Treat every drain in that room, including sink overflow + shower drain.
If flies spike after you run water:→ The breeding site is likely in the drain line/P-trap—do the scrub + enzyme routine.
If flies are in a basement near a floor drain:→ Clean the drain + pour water weekly to keep the trap sealed (and treat biofilm).
If you cleaned drains but adults still appear daily:→ You probably missed an overflow channel, a secondary drain, or a hidden leak.
If you see tiny worm-like larvae in slime:→ That’s confirmation. Focus on removing the sludge and keeping the area dry.
Comparison table: What works best for drain flies?
Here’s the honest breakdown:
Method | Best for | Pros | Cons | My take |
Mechanical scrubbing (brush) | Biofilm removal | Fast, cheap, highly effective | Gross + requires effort | Top choice (do this first) |
Enzyme/foaming drain gel | Dissolving leftover organic matter | Targets “food” source | Needs repeat applications | Best follow-up after brushing |
Hot water flush | Supporting treatment | Helps after cleaning | Alone is rarely enough | Useful after you scrub |
Chemical drain openers | Severe clogs only (not fly control) | Clears some clogs | Fumes/burn risk, may not remove biofilm | Not my go-to for flies; use cautiously |
Bug sprays (aerosols) | Killing visible adults | Quick “relief” | Doesn’t solve breeding site | Cosmetic fix only |
Professional drain cleaning | Recurring, widespread issues | Deep clean + inspection | Cost | Worth it if you suspect plumbing defects |
Safety notes (please don’t skip this)
Drain work seems harmless… until someone mixes products and ends up coughing in the driveway.
Never mix bleach with ammonia, acids, or drain openers. Dangerous gases can form (chloramines/chlorine gas).
Many drain cleaners contain lye or sulfuric acid and can cause burns or eye injury—use gloves, ventilation, and eye protection if you use them.
If you suspect a plumbing defect, sewage leak, or you’re immunocompromised and seeing heavy drain pest activity, consider professional help. (Research has documented moth flies interacting with bacteria-rich environments; hygiene matters.)
Disclaimer: This article provides general home-maintenance information, not medical or plumbing advice. If you suspect a significant leak, sewer gas issue, or you feel unwell after chemical exposure, contact a licensed plumber or local professionals and seek medical guidance as appropriate.
The 7-day drain fly elimination plan (simple, realistic, effective)
Day 1 (Tonight): Identify + prep
Do the tape test on the top 2–4 suspect drains
Gather your brush + enzyme gel
Clear clutter under sinks to check for leaks
Days 2–4: Clean + treat
For each confirmed/suspect drain:
Scrub drain lip + accessible pipe
Scrub overflow channel (sink)
Apply enzyme/foam treatment overnight
Light hot-water flush in the morning (per product instructions)
Days 5–7: Repeat + dry out
Repeat treatment if the label suggests multi-day use
Fix drips, wipe moisture, keep fan running after showers
Consider treating a “secondary drain” in the same room even if it tested negative
Most people see a big drop in adults within a few days—but finishing the week helps break the cycle.
Cost-saving tips (that actually matter)
Skip the sprays unless you need short-term sanity. They don’t solve the source.
Buy one good drain brush and keep it as a “gross-tool” for monthly maintenance.
Use enzyme gel strategically: overnight contact time beats “more product, less time.”
If you’re renting: document the issue (photos + dates), do the basic drain cleaning, and notify the landlord if you suspect leaks or plumbing defects.
How to prevent drain flies permanently (the maintenance rhythm)
Once you’ve cleared them, prevention is mostly boring—in the best way.
Weekly (5 minutes)
Run water in rarely used sinks/floor drains to keep traps filled
Wipe moisture and check for drips under sinks
Monthly (10 minutes)
Quick scrub of drain lip + splash guard (kitchen)
Enzyme maintenance dose (especially for slow drains)
Seasonally
Inspect caulking, seals, and under-sink plumbing
Clean floor drains and basement drains (easy to forget, easy to regret)
Extension guidance consistently points back to the same principle: remove breeding material + correct excess moisture.
FAQs (the questions people always ask)
Do drain flies mean my house is dirty?
Not necessarily. They usually mean organic buildup and moisture exists somewhere—sometimes in a hidden place (overflow, trap, slow drain).
Will bleach kill drain flies?
Bleach may kill some larvae on contact, but it often doesn’t remove biofilm, and it can create safety risks if mixed with other products. I generally prefer mechanical cleaning + enzyme treatment.
Why do they come back after I “got rid of them”?
Because adults were killed, but the breeding site remained—often in the overflow channel, P-trap, or another drain nearby.
How long does it take to fully get rid of drain flies?
Many people see improvement in 2–5 days, but to truly stop the cycle, expect 1–3 weeks depending on how many breeding sites exist and how thoroughly you remove buildup. (Life cycle timing varies with temperature and conditions.)
When should I call a plumber?
Call if:
You smell sewer gas
You have recurring drain flies despite cleaning multiple drains
You suspect a leak inside a wall/floor
Drains are slow repeatedly (possible deeper line issues)
Next steps and key takeaways
If you want the shortest path to “gone for good,” do this:
Confirm the source with the tape test.
Scrub the biofilm (drain lip, overflow channel, trap access).
Treat overnight with an enzyme/foaming biofilm remover (this is where your affiliate product fits naturally).
Dry + maintain long enough to break the life cycle.
Prevent with a simple weekly/monthly rhythm.
Drain flies are stubborn—but they’re not mysterious. Remove what they live on, and they lose the only thing they came for.




Comments