The fastest way to kill drain flies at home is to eliminate the slimy buildup inside your drains where they breed. Adult flies are just the visible symptom. The real problem is a layer of organic gunk coating the inside of your pipes, where females lay eggs and larvae feed. Killing the adults without cleaning the drain means new flies emerge within days. Here’s how to handle both.
Why Drain Flies Keep Coming Back
Drain flies lay their eggs in the gelatinous film that accumulates inside drains, sewers, and other consistently moist spots. That slime is a mix of hair, soap residue, food particles, and bacteria, and it’s both nursery and buffet for drain fly larvae. The entire life cycle from egg to adult can complete in as little as two weeks, so a small problem becomes a swarm quickly if the breeding site stays intact.
They favor drains that don’t get much use. A guest bathroom shower, a basement floor drain, or a utility sink that runs once a month are prime targets. Water sitting in the trap goes stagnant, organic matter builds up on the pipe walls, and the flies move in. If you’re seeing them in a particular room, that room’s drain is almost certainly the source.
Physically Clean the Drain First
No home remedy works well if you skip this step. The biofilm inside your pipes protects eggs and larvae from liquid treatments that just wash over the surface. You need to physically break it up.
Remove the drain cover, sink stopper, or shower plate. Use a stiff-bristled brush (a long bottle brush or dedicated drain brush works well) and scrape the visible slime from the inside walls of the pipe as far down as you can reach. Pull out any hair clogs while you’re at it. If the drain is badly clogged, a drain snake can clear deeper blockages. Clean the removed hardware with soap and water before reinstalling it.
This mechanical cleaning does more to eliminate drain flies than any chemical treatment on its own. Once the biofilm is disrupted, the remedies below become far more effective at finishing the job.
Baking Soda, Salt, and Vinegar Treatment
This is the most popular DIY approach, and it works by loosening remaining organic buildup while killing larvae and eggs the brush couldn’t reach. Pour half a cup of salt and half a cup of baking soda into the drain, then follow with one cup of white vinegar. The mixture will fizz. Leave it in the drain overnight (or at least an hour for subsequent treatments), then flush with hot water in the morning.
Repeat this every night for at least a week. The goal isn’t just killing what’s there now. You need to outlast the breeding cycle. Since drain flies can go from egg to adult in about two weeks, the University of Arkansas Extension recommends maintaining your cleaning routine for at least three weeks to fully break the cycle.
A Note on Boiling Water
Many guides suggest flushing drains with boiling water to kill larvae. It works as a kill method, but it carries a real risk if your home has PVC pipes, which are the most common plastic pipes in residential plumbing. PVC is rated for a maximum service temperature of about 140°F. Boiling water hits 212°F. Repeated exposure can soften the pipe, warp joints, and eventually cause leaks.
ABS pipes handle heat somewhat better, and polypropylene pipes tolerate it well, but most homeowners don’t know exactly what their drain lines are made of. A safer approach: use the hottest water from your tap (typically 120 to 140°F) rather than water straight off the stove. It’s warm enough to help dissolve organic matter without risking pipe damage.
Trapping the Adults
While you’re treating the drain, you’ll still have adult flies buzzing around for a week or more. A simple trap reduces their numbers and keeps them from laying new eggs elsewhere.
Fill a small bowl or jar with about a quarter cup of apple cider vinegar and add a few drops of liquid dish soap. The vinegar’s sweet smell attracts the flies, and the dish soap breaks the surface tension of the liquid so they can’t land and fly away. They sink instead. Place the trap near the problem drain or on the bathroom counter. Replace the liquid every couple of days.
This trap won’t solve the problem on its own since it only catches adults. But paired with drain cleaning, it shortens the timeline by preventing surviving adults from starting a new generation.
Why Bleach Isn’t the Best Choice
Pouring bleach down the drain seems like an obvious fix, but it’s surprisingly ineffective. Bleach kills surface bacteria on contact, yet it rinses through the pipe too quickly to penetrate the biofilm where larvae are actually living. The slimy matrix acts as a shield.
Bleach also creates problems downstream. If your home uses a septic system, chlorine bleach destroys the anaerobic bacteria your tank depends on to break down waste. You’d essentially be trading a fly nuisance for a failing septic system. Even on municipal sewer, bleach can corrode metal drain components over time. Stick with the baking soda method or an enzyme-based cleaner instead.
Enzyme Drain Cleaners for Stubborn Cases
If the baking soda routine isn’t cutting it after a week or two, enzyme-based drain cleaners are a step up. These products contain bacteria or enzymes that digest organic matter, essentially eating through the same biofilm that drain flies depend on. Foaming formulas are particularly useful because the foam clings to pipe walls and reaches buildup that liquid treatments flow past.
Enzyme cleaners are slower than chemical drain openers, but they’re safer for pipes, septic systems, and the environment. Follow the product’s directions, and continue treatment for several weeks. The point isn’t a one-time blast. It’s sustained removal of the food source so newly hatching larvae have nothing to eat.
Preventing Them From Returning
Once you’ve cleared an infestation, a little maintenance keeps it from happening again.
- Run water in unused drains weekly. Drain flies target stagnant traps. Flushing water through guest bathrooms, basement drains, and utility sinks keeps the P-trap fresh and discourages egg-laying.
- Clean drains monthly. A quick baking soda and vinegar treatment once a month prevents biofilm from rebuilding to the point where it supports a new colony.
- Fix leaks and moisture problems. Any spot where water pools or seeps, under a sink, around a toilet base, near a washing machine drain, can become a breeding site. Dry it up and repair the source.
- Use drain screens. A mesh screen over the drain opening catches hair and debris before it contributes to buildup inside the pipe.
Consistency matters more than intensity. A three-week commitment to cleaning and treatment breaks the breeding cycle. After that, periodic maintenance is all it takes to keep drain flies out for good.