How to Get Rid of Drain Flies

Photo: Daniel Dan on Unsplash
To get rid of drain flies, clean the slimy film inside the drain where the larvae live. Scrub the drain opening and pipe with a stiff brush, then use an enzyme or bacteria drain cleaner to break down what the brush cannot reach. Virginia Tech Extension says a thorough mechanical cleaning is the most effective method, and that pouring bleach or vinegar down the drain is not recommended because it is not very effective and may damage pipes.
How to tell drain flies from other small flies
Drain flies, also called moth flies, are small and fuzzy. Virginia Tech describes adults as about 2 to 3 mm long, grayish or brownish, with hairy wings held roof-like over the body. They rest on bathroom walls and fly in short, weak hops. Iowa State Extension notes they do not bite or sting.
| What you see | Likely fly |
|---|---|
| Fuzzy, moth-like flies on bathroom or kitchen walls | Drain flies |
| Tan flies with red eyes around fruit | Fruit flies |
| Small dark flies around houseplants | Fungus gnats |
Step 1: Find the drain they are coming from
Virginia Tech suggests taping clear tape sticky side down over a suspect drain, or coating the inside of a clear plastic cup with a thin film of vegetable oil and turning it upside down over the drain overnight. Flies stuck to it in the morning mean that drain needs cleaning. Check every drain: sinks, tubs, showers, floor drains and any you rarely use.
Iowa State notes that seldom-used or slow-running drains are the usual source, and Virginia Tech adds that homeowners coming back from vacation often find drain flies that developed while they were away.
Step 2: Scrub out the slime
The larvae feed in the gelatinous film inside drains, so removing it removes them.
- Remove the drain cover or stopper.
- Scrub the opening and as far down as you can reach with a stiff pipe brush.
- For clogged drains, Ohio State Extension suggests removing the trap and using a snake with a brush tip to clean the pipe of all the gelatinous material.
- Flush with plenty of hot tap water.
Look for a long drain cleaning brush at a hardware store.
Step 3: Use an enzyme or bacterial drain cleaner
Penn State Extension notes that products containing bacteria or enzymes can break down the gelatinous material in drains. Use one after scrubbing, following the label, often overnight when the drain is not in use. Repeat for several days.
Step 4: Fix other wet spots
Drain flies also breed in any constantly damp organic matter. Virginia Tech lists drip pans and filters under dishwashers, refrigerators, air conditioners and dehumidifiers. Iowa State adds areas under dripping pipes. Fix leaks and clean drip pans.
What not to do
- Do not pour insecticides down a drain. Virginia Tech says this should never be done.
- Do not mix bleach with ammonia or other cleaners. The combination releases toxic gas.
- Do not rely on sprays for the adults. New flies keep emerging until the drain is clean.
Related guides
- How to get rid of flies in the house
- How to get rid of fruit flies
- How to get rid of gnats
- Home pest control
How long does it take to get rid of drain flies?
Alabama Extension puts the drain fly life cycle at 8 to 24 days, so keep cleaning for a couple of weeks. Once the slime is gone and no new larvae develop, the flies stop appearing.
Are drain flies harmful?
They do not bite, sting or damage plumbing, according to Virginia Tech. They are a sign that a drain needs cleaning.
Does boiling water kill drain flies?
Hot water helps flush loosened material, but on its own it does not remove the slime layer. Scrubbing the drain is what works.


