How to Get Rid of Drain Flies for Good
Drain flies (also called moth flies) breed in the slimy biofilm that coats the inside of drains. To get rid of them for good, you must remove that breeding ground: mechanically scrub the drain walls with a brush, flush with boiling water, and follow up with an enzyme drain cleaner for several nights. Bleach and bug spray alone will not work because they do not remove the slime where the larvae live. If the flies return after thorough cleaning, a broken pipe or sewer issue may be feeding them, and a plumber should inspect the line.
What Are Drain Flies?
Drain flies are tiny, fuzzy, moth-like insects about 2–5 millimeters long, with rounded wings and a habit of sitting still on walls near sinks, showers, and floor drains. They do not bite and they do not spread disease the way houseflies do, but they are a sign that organic slime is building up in your pipes. A female lays 30–100 eggs at a time in the biofilm inside a drain, and the larvae hatch within 48 hours, so a small problem becomes a swarm in about a week. Their lifespan is short — about two weeks — but new generations keep emerging until the breeding site is cleaned out.
How to Confirm They Are Drain Flies
Before treating, make sure the flies are actually coming from a drain and not from fruit, plants, or trash. The tape test is the standard check: cover each suspect drain with a strip of clear packing tape overnight, sticky side down, leaving a small gap at the edges for air. In the morning, check the tape — drain flies trying to emerge will stick to it. Repeat for a few nights and test every drain in the room, including floor drains and rarely used sinks, because the breeding drain is not always the one nearest the flies.
Where They Breed
Drain flies need a thin layer of organic slime and standing moisture, and they find it in more places than you might expect.
- Kitchen and bathroom sink drains, especially around the overflow hole.
- Shower and bathtub drains where hair and soap scum collect.
- Floor drains in basements, laundry rooms, and garages.
- Garbage disposals and the rubber splash guard.
- Condensation drain lines from air conditioners.
- Septic tank lids and sump pump basins.
- Cracked or leaking drain pipes where wastewater seeps into the soil.
Step 1: Scrub the Drain Walls
This is the step most people skip, and it is the one that matters most. Chemicals alone cannot dissolve the thick biofilm where larvae live — you have to scrub it off physically. Remove the drain cover or stopper, then push a stiff drain brush (or a long bottle brush) as far into the pipe as it will go, twisting and pulling to scrape the walls. Rinse the brush and repeat several times until it comes back clean. For sink drains, also scrub the overflow channel: pour water into the overflow hole and scrub what you can reach. Do this for every drain the tape test identified.
Step 2: Kill the Larvae
After scrubbing, kill any remaining larvae with heat and enzymes. Pour a full kettle of boiling water slowly down the drain — the heat kills larvae on contact. Follow with an enzyme-based drain cleaner (not a caustic chemical drain opener) every night for 5–7 nights: the enzymes digest the remaining organic matter so larvae have nothing to eat. Keep the drain covered with tape or a plug between treatments so adult flies cannot escape and lay new eggs. You should see far fewer flies within a few days, and none within two weeks if the breeding site is fully cleaned.
What Does Not Work
Bleach poured down the drain is the most common failed remedy: it flows past the slime too quickly to kill the larvae buried inside it, and it can damage pipes and septic systems. Bug spray kills adult flies on the wall but does nothing about the larvae in the drain, so new flies appear the next day. Boiling water alone helps but rarely finishes the job without scrubbing. And pouring vinegar and baking soda down the drain is satisfying to watch but does not remove biofilm. Scrubbing plus enzymes is the combination that actually works.
Preventing Drain Flies From Coming Back
Once the flies are gone, keep them gone with simple drain hygiene. Run water in rarely used drains weekly so the traps do not dry out — a dry trap also lets sewer gas in. Clean sink and shower drains monthly with a brush and enzyme cleaner. Keep garbage disposal splash guards clean, and run the disposal with cold water after each use. Fix any slow drains promptly, because slow water lets biofilm build up faster. In basements and garages, pour a gallon of water into floor drains every month to keep the trap sealed.
When to Call a Plumber
Call a licensed plumber if the flies keep returning after two weeks of thorough cleaning, if several drains are affected at once, or if you notice a sewage smell along with the flies. Persistent drain flies can indicate a cracked drain pipe, a broken sewer line, or a failed wax ring letting wastewater pool under a fixture — problems that no amount of scrubbing will fix. A plumber can run a camera inspection to find the hidden breeding source and repair the pipe, which solves the fly problem permanently.
When to Call a Professional
Call a plumber if flies return after two weeks of scrubbing and enzyme treatment, if multiple drains are affected at once, or if you smell sewage — these point to a cracked pipe or broken sewer line feeding the infestation.
What a Plumber Will Do
A plumber runs a camera inspection to find hidden breeding sources, hydro-jets the affected drain lines to strip biofilm, and repairs any cracked or leaking pipes so the flies cannot return.
Frequently Asked Questions
Are drain flies harmful?
Drain flies do not bite humans or pets, and they are not known to transmit disease. However, they can trigger allergies and asthma in sensitive people, and a large infestation signals unsanitary conditions in your drains that should be cleaned up.
How long does it take to get rid of drain flies?
With thorough scrubbing plus nightly enzyme treatments, you should see a big reduction within 3–5 days and no flies within two weeks. If they persist beyond two weeks, the breeding site has not been fully cleaned or there is a hidden plumbing problem.
Will bleach kill drain flies?
Bleach kills adult flies it touches but does not remove the biofilm where larvae live, so it rarely solves the problem. Scrubbing the drain walls and using an enzyme cleaner is far more effective, and safer for your pipes.
Do drain flies come from the sewer?
They usually breed in the biofilm inside your own drains, not the city sewer. But if flies appear in large numbers from multiple drains at once, a cracked sewer line or broken pipe may be the source, and a plumber should inspect it.
Do drain flies mean my house is dirty?
No. Drain flies breed in the normal biofilm that builds up inside any drain, including in clean homes. They are a plumbing maintenance issue, not a cleanliness failure.
