Home Remedies for Drain Flies (And Stop Them Coming Back)

The most effective home remedy for drain flies is removing the slimy biofilm inside your pipes where they breed. Traps and boiling water can reduce the adults you see, but the infestation won’t stop until you eliminate the organic buildup that larvae feed on. A combination of mechanical cleaning and a baking soda-vinegar flush is the best DIY approach, and most infestations clear up within two to four weeks.

Why Drain Flies Keep Coming Back

Drain flies lay their eggs on the moist, slimy film that coats the inside of pipes. This biofilm is a mix of decaying organic matter, bacteria, fungi, grease, and microscopic organisms. Larvae feed on this sludge for nine to 15 days before becoming adults, and the full life cycle takes only 21 to 27 days. That means a single dirty drain can produce a new generation of flies roughly every three weeks.

Any remedy that only kills adult flies is a temporary fix. The larvae are protected inside the pipe, clinging to biofilm that water alone won’t dislodge. This is why people often feel like drain flies appear out of nowhere days after they thought the problem was solved.

Confirm the Source With a Tape Test

Before you start treating every drain in the house, figure out which one is the problem. Place a strip of duct tape or packing tape sticky-side down over each suspect drain at night, leaving enough gap around the edges for airflow. Check the tape in the morning. Any drain flies emerging from the pipe will get stuck to the adhesive. Leave the tape in place for one to two nights, since flies don’t emerge every single night. This simple test saves you from scrubbing drains that aren’t actually breeding sites.

Step 1: Physically Clean the Drain

This is the step most people skip, and it’s the most important one. No chemical or home remedy works well if the biofilm stays intact. Start by removing the drain cover and using a stiff pipe brush (a long, narrow bottle brush works too) to scrub the inside walls of the drain as far down as you can reach. You’re aiming to physically break up and remove that slimy coating where eggs and larvae live.

For bathroom sinks and shower drains, pull out any hair clogs first. A plastic drain snake or even a bent wire hanger can grab the worst of it. Once you’ve removed visible debris and scrubbed the walls, flush with hot water from the tap. This mechanical cleaning alone does more than any liquid treatment.

Step 2: Baking Soda and Vinegar Flush

After scrubbing, a baking soda and vinegar flush helps loosen remaining biofilm. For each drain:

  • Pour half a cup of baking soda directly into the drain opening, pushing it down as much as possible.
  • Follow with one cup of white vinegar. The mixture will fizz and bubble, which helps break up organic residue clinging to pipe walls.
  • Wait about 10 minutes, then flush with very hot tap water.

Repeat this for every drain in your home, including ones that tested negative. Showers, bathroom sinks, kitchen sinks, and floor drains in basements or laundry rooms are all potential breeding sites. One treatment helps, but repeating the process every few days for two weeks gives better results, since it catches larvae that were too deep in the pipe the first time.

What About Boiling Water?

Pouring boiling water down the drain is a common suggestion, but it has real limitations. Boiling water kills organisms on direct contact, but by the time it travels through the drain body and into the pipe, the temperature drops significantly. It only reaches a fraction of the biofilm surface, so larvae deeper in the system survive. It provides a temporary reduction in adult flies at best.

There’s also a safety concern. If your home has PVC pipes (most modern homes do), repeatedly pouring boiling water can soften joints and seals over time. Very hot tap water, just below boiling, is safer for your plumbing and nearly as effective for flushing loosened debris after scrubbing.

Trapping Adult Flies

While you work on eliminating the breeding site, you can reduce the number of adults buzzing around your bathroom with a simple vinegar trap. 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 soap breaks the surface tension of the liquid so they can’t land and fly away. Their wings get weighed down and they drown.

Place traps near the affected drains. These won’t end the infestation on their own, since they only catch adults and don’t touch the larvae in your pipes, but they’re a useful supplement that cuts down the visible population while your drain cleaning takes effect.

What Not to Do

Pouring bleach down the drain is a popular suggestion that mostly wastes bleach. Like boiling water, it only contacts a small portion of the biofilm and doesn’t penetrate deep enough to reach protected larvae. More importantly, if you’ve already used vinegar in the drain, adding bleach creates chlorine gas, which causes burning of the eyes, nose, and throat and can damage your lungs. Never mix bleach with vinegar or any acidic cleaner. The same goes for bleach and ammonia-based products, which produce chloramine gas.

Insecticide sprays are also ineffective. They kill the adults you can see but don’t reach inside the pipe where the next generation is developing. You’ll just keep spraying as new flies emerge every few days.

Timeline for Results

Drain fly eggs hatch in less than two days at typical room temperature. Larvae develop over nine to 15 days, then pupate for about five days before emerging as adults. Adults live around seven to 12 days. This means the full cycle from egg to death spans roughly 35 days.

After a thorough drain cleaning, you should see noticeably fewer flies within a few days as the adult population dies off naturally. But larvae that survived deeper in the pipes can still mature and emerge. Plan on repeating your cleaning routine (brush and flush) every three to four days for at least two weeks. If you’re still seeing new flies after three to four weeks of consistent cleaning, the breeding source is likely somewhere you haven’t treated: a floor drain in the basement, a rarely used guest bathroom, a condensation pan under the refrigerator, or even a slow leak under a sink that’s keeping an area perpetually moist.

Preventing Reinfestation

Drain flies need standing moisture and organic buildup to breed. Eliminating those two conditions keeps them from coming back. Run water through every drain in your home at least once a week, especially guest bathrooms and basement floor drains that sit unused. Stagnant water lets biofilm build up fast. A weekly flush of hot water after cleaning dishes or showering goes a long way.

Fix leaky pipes and faucets promptly. Even a small drip under a sink creates the damp, organic-rich environment drain flies need. Keep drain covers and stoppers clean, and clear hair and soap buildup from shower drains regularly. If you have a septic system, maintaining it on schedule reduces the organic load that can back up into household drains. These are small habits, but they eliminate the conditions that attracted drain flies in the first place.