Drain Flies in the Bathroom? Treat the Drain, Not Just the Flies
Those small fuzzy flies breed in the slime inside your drain. Scrub it out, break the cycle with an enzyme gel and trap the adults left over.
By Jamilur Rahman Updated November 5, 2026 · 6 min read
- Time
- 20 min plus a week
- Cost
- Under $20
- Difficulty
- Easy
In this guide
Quick answer
To get rid of drain flies in the bathroom, kill the larvae in the drain, not only the flies you see. Scrub the drain walls, flush with very hot tap water, then treat the pipe with an enzyme drain gel overnight so the slime they feed on is gone. Sticky traps catch the adults while the last eggs hatch out.
Free fix vs. permanent fix
Scrub the drain and flush with hot water
- Scrub the drain opening and strainer with a stiff brush
- Flush with very hot tap water, not boiling
- Tape the drain overnight to find the one they use
- Repeat daily for a week
How long it lasts: Often enough for a mild case. Slime left on the pipe walls can bring them back within a couple of weeks.

An enzyme drain gel
Drain flies breed in the film of hair, soap and skin cells on the pipe wall. Hot water and baking soda rinse some of it away. A gel with enzymes or bacteria clings to the pipe and digests the film, so the larvae lose their food and their breeding spot. Bleach and boiling water pass through in seconds.
What to get: Enzyme drain gel
How long it lasts: It keeps working for days while it clings to the pipe walls, and a regular dose keeps the film from rebuilding.
As an Amazon Associate I earn from qualifying purchases.
What you'll need
-
Rubber gloves
For handling the slime you pull out
You have it -
Stiff bottle brush or old toothbrush
For the drain opening and strainer
You have it -
Clear packing tape
To find which drain the flies are using
You have it - Our pick Illustration

Enzyme drain gel
Digests the film the larvae feed on
- Illustration

Sticky fly traps
Catches the adults that are still flying
- Illustration

Long flexible drain brush
Reaches below where a toothbrush can go
Why it happens
Slime in the drain
A film of hair, soap and skin oil builds up on the inside of the pipe. Adult flies lay eggs in it, and the larvae eat it.
A drain that rarely gets used
Guest baths, spare tubs and floor drains can sit for weeks. The water seal dries out and the slime sits undisturbed.
Damp spots around the drain
Overflow holes, a leaking trap under the sink and a wet bath mat can all hold enough moisture for eggs.
A fast life cycle
Eggs hatch in about two days, larvae take a week or two to mature and adults live around two weeks. One cleaning rarely ends it, so you need to keep going for a week or two.
Try this first (free)
Do these in order, starting with the simplest.
-
1. Find the breeding drain
Tool used: Clear packing tapeLay a strip of clear tape across each drain overnight. The drain with flies stuck to it is your source. Check the tub, the shower, the sink, the overflow holes and any floor drain.
-
2. Scrub it out
Tool used: Stiff bottle brush or old toothbrushRemove the stopper or strainer, put on gloves and scrub the drain opening and as far down as you can reach. The slime that comes up is exactly what the larvae eat.
-
3. Flush with very hot water
Run very hot tap water for a minute. Skip boiling water on plastic pipes, since it can soften or warp the joints.
-
4. Treat the pipe overnight
Tool used: Enzyme drain gelPour enzyme gel down the drain at night, when no one will use it, and leave it for about eight hours or as the label says. Repeat on the label's schedule for a week or two.
Illustration
Check price on AmazonTool for this step
Enzyme drain gel · Digests the film the larvae feed on
-
5. Trap the adults
Tool used: Sticky fly trapsPut sticky traps near the drain for a week or two. They catch the adults and show you when the flies are gone.
Illustration
Check price on AmazonTool for this step
Sticky fly traps · Catches the adults that are still flying
-
6. Run unused drains weekly
Run water in guest sinks, tubs and floor drains once a week, so the trap keeps its water seal.
When free fixes aren't enough
If flies keep coming back after two weeks of scrubbing and gel treatment, the breeding site is farther in. That can be a cracked pipe, a leak under the sink, a disposal full of waste, or a sewer line problem. Call a plumber if you also smell sewage, hear gurgling, or see several slow drains. For the ordinary case, the gel is what holds, because flies return for as long as the film is there.
Buy the fix
Still stuck after the free fixes? These are the products we would look at.
| Pick | Product | Fixes | Who it's for | Buy |
|---|---|---|---|---|
| Best pick | ![]() Enzyme drain gel | the slime that drain-fly larvae feed on | Anyone who has scrubbed once and still sees flies. | Check price |
| Budget pick | ![]() Sticky fly traps | adult flies still flying while the drain gets treated | Anyone with a few flies left after the drain is treated. | Check price |

Enzyme drain gel
Fixes: the slime that drain-fly larvae feed on
Look for: Enzymes or live bacteria, listed on the label; A gel that clings, not a thin liquid that rinses through; Safe for pipes and septic systems, per the label.
- Who it's for
- Anyone who has scrubbed once and still sees flies.
- Honest downside
- You just used a chemical drain opener. Flush well with water first, or the product will not work.

Sticky fly traps
Fixes: adult flies still flying while the drain gets treated
Look for: Non-toxic glue cards or stakes; Small enough to sit near the drain; A pack of several, since you will replace them.
- Who it's for
- Anyone with a few flies left after the drain is treated.
- Honest downside
- You expect them to end the problem on their own. They do not touch the larvae in the pipe.
As an Amazon Associate I earn from qualifying purchases. We don't show prices because they change, so use the button to see today's price.
How we picked: How we picked: this page is based on university extension guidance on drain flies and their life cycle, drain-care directions from product makers and what owners report in reviews. We do not test products by hand.
How to get rid of drain flies in the house: check every drain
- Shower and tub: the drain, the overflow plate and the stopper.
- Bathroom sink: the drain, the overflow hole and the trap.
- Floor drains: pour in water monthly so the trap stays full.
- Kitchen: the sink drain, the disposal and the trash bin.
What to skip
Aerosol sprays, bleach and boiling water as the only fix
Aerosol sprays kill flying adults for a minute, not the larvae in the pipe. Bleach and boiling water pass through in seconds and leave the film on the pipe walls. Treating only the flies is why they keep returning.
Frequently asked questions
How to get rid of drain flies permanently, for good?
How to get rid of drain flies with baking soda and vinegar or other home remedies?
How to get rid of drain flies in the shower, house or kitchen?
How to get rid of drain flies quick?
Are drain flies harmful?
As an Amazon Associate I earn from qualifying purchases. Affiliate disclosure