You walk into the bathroom, flip on the light, and see a cloud of tiny, fuzzy, moth-like insects hovering around the sink or shower drain. You swat at them, but they just land somewhere else. You have drain flies.
The best starting point for fly control is our hub page.
Also known as moth flies or sink flies, these pests are not just annoying—they can trigger asthma and allergies because they breed in the slimy organic matter inside your pipes. The good news is you don’t need a professional exterminator to get rid of them. You just need to destroy their breeding ground.
Here is the step-by-step guide to getting rid of drain flies in your bathroom and keeping them from coming back.
Why Are There Drain Flies in My Bathroom?
Drain flies don’t fly in from outside. They are breeding inside your plumbing.
These flies lay their eggs in the gelatinous slime (a biofilm of hair, soap scum, and bacteria) that coats the inside of your drain pipes. The larvae feed on this slime, mature into adults, and fly out of the drain to mate. If you have a continuous population of them in your bathroom, it means the slime layer in your sink, shower, or tub drain is thick enough to support them.
Step-by-Step: How to Get Rid of Them
1. The “Tape Test” (To Find the Source)
If you have multiple drains in the bathroom (sink, shower, tub), you need to figure out which one they are coming from. Place a piece of clear packing tape over the drain overnight. In the morning, check the tape. If there are small, fuzzy flies stuck to it, you found the breeding ground.
2. Physically Scrub the Drain
Pouring chemicals down the drain won’t work if you don’t remove the slime they are eating. You need to physically scrub the inside of the drain.
- Remove the drain cover.
- Use a stiff bottle brush or an old toothbrush to scrub the inside of the pipe as far down as you can reach.
- Use a pipe cleaner to pull out hair and debris.
3. Use a Bio-Cleaner (Don’t Use Bleach)
This is the most important step. Do not use bleach or standard Drano. Bleach kills the adult flies but turns the slime into a watery mess that the larvae can still eat. Worse, bleach evaporates before it can kill the eggs.
Instead, use a biological drain cleaner (an enzyme cleaner). These products contain beneficial bacteria that literally eat the organic slime, destroying the food source. Pour it down the drain before bed and let it sit overnight.
4. Boiling Water
After scrubbing, pour a large pot of boiling water down the drain. This will melt away soap scum and flush out the loosened debris. Do this once a week for maintenance.
5. Kill the Adults
Cleaning the drain kills the larvae, but you still have adult flies buzzing around. You can use a standard fly swatter, or place a small bowl of apple cider vinegar mixed with a drop of dish soap near the drain. The flies are attracted to the vinegar and will drown in the soapy water.
How to Prevent Drain Flies from Coming Back
Once the drains are clear, a little maintenance keeps the flies away:
- Run water regularly: If you have a guest bathroom or a tub you rarely use, run the water for a minute every week to keep the trap from drying out and to flush the pipes.
- Clean the overflow hole: The overflow hole near the top of the sink is a hidden breeding ground. Pour a little enzyme cleaner down it monthly.
- Fix Leaks: If you have a slow leak under the sink or in the pipes, the moist environment will attract them. Read our guide on fixing high indoor humidity for more prevention tips.
Frequently Asked Questions
Does vinegar kill drain flies?
While a mixture of apple cider vinegar and dish soap works as a trap for the adults, it will not kill the larvae living inside the pipes. You must physically clean and use an enzyme drain cleaner to stop the breeding cycle.
How long do drain flies live?
Adult drain flies only live for about 1 to 2 weeks. However, if the breeding ground in your pipes is not destroyed, they will continuously reproduce, making it seem like they never go away.
Are drain flies harmful to humans?
They do not bite humans, but they can carry bacteria from the drain to your toothbrush or countertops. They are also known to trigger asthma and allergies in sensitive individuals.
Conclusion
Getting rid of drain flies is a matter of targeting the source. By physically scrubbing the pipes and using an enzyme cleaner to destroy the organic slime, you can break the life cycle and get your bathroom back to normal.