Home Improvement

How to Eliminate Drain Flies for Good

How to Eliminate Drain Flies for Good

Those tiny, fuzzy gray moths hovering around your sink aren’t fruit flies, and that’s why fruit-fly tricks never work on them. Learning how to eliminate drain flies starts with understanding that they breed in the slimy organic gunk (biofilm) coating the inside of your drains, not in your fruit bowl. Killing the adults you see does nothing if the larvae are still multiplying in the pipe. The real solution is to find the infested drain, scrub out the gelatinous film they feed and breed in, and then keep drains clean enough that they never come back. Here’s the step-by-step approach that actually works.

Confirm You Have Drain Flies

First, make sure you’re dealing with drain flies (also called moth flies or sewer gnats) rather than fruit flies or gnats, because the treatment differs. Drain flies are small, about 1/8 inch, with fuzzy, moth-like bodies and wings held roof-like over their backs. They’re weak fliers that hop or flutter in short bursts and tend to rest on walls near sinks, tubs, and floor drains.

If you see them congregating around drains rather than around food or produce, you have drain flies. They thrive wherever standing water and organic sludge collect, so the source is almost always a drain, overflow, or damp area.

Step 1: Find the Source Drain

You can’t eliminate drain flies without locating where they’re breeding. Check every drain in the affected area: kitchen sink, bathroom sinks, tub and shower drains, floor drains in basements and laundry rooms, and even rarely used guest-bathroom drains where water has evaporated from the trap.

A simple test: at night, place a cup or a piece of tape (sticky side down) loosely over each drain. The next morning, check which ones have trapped flies emerging from below. The drain catching the most is your primary breeding site.

Step 2: Clean Out the Biofilm

This is the most important step, because drain flies breed in the organic slime lining your pipes, and that film must be physically removed. Pour the standing water out, then use a long brush, such as a pipe brush or a straightened wire with a bristle end, to scrub the inside walls of the drain as far down as you can reach. You’ll dislodge a slimy, dark gunk; that’s the larvae’s food and habitat.

After scrubbing, flush with hot (not necessarily boiling) water to rinse the loosened material away. For sink drains, also remove and clean the stopper and the overflow opening, which are common hiding spots people miss.

Step 3: Treat the Drain to Kill Larvae

With the bulk of the biofilm scrubbed away, follow up with a treatment to kill remaining larvae and eggs. Several effective options:

  • Boiling or very hot water: pour a kettle of hot water down the drain once or twice a day for several days (use caution with PVC and porcelain).
  • Baking soda, salt, and vinegar: pour half a cup of baking soda and half a cup of salt down the drain, follow with a cup of white vinegar, let it fizz overnight, then flush with hot water in the morning.
  • Enzyme drain cleaner: bio-enzymatic gel cleaners are made specifically to digest the organic buildup drain flies feed on and are highly effective for ongoing treatment.

Avoid harsh chemical drain cleaners as a first resort; they can damage pipes and often slide past the clinging biofilm without removing it. Enzyme cleaners target the actual problem.

Looking to buy How to Eliminate Drain Flies for Good? Compare top-rated options.
Shop on Amazon →Browse Our Shop
As an Amazon Associate we earn from qualifying purchases.

Step 4: Kill the Adult Flies

Once you’ve treated the source, deal with the visible adults so they stop laying new eggs. A simple vinegar trap helps: fill a small bowl or jar with apple cider vinegar and a drop of dish soap, cover with plastic wrap, and poke small holes. The flies are drawn in and the soap breaks the surface tension so they can’t escape.

You can also simply wipe or vacuum adults off walls and surfaces. Because adult drain flies only live a week or two, eliminating their breeding ground means the population dies off quickly once you stop new larvae from developing.

Step 5: Repeat and Verify

Drain fly eggs and larvae are persistent, so one cleaning often isn’t enough. Repeat the scrubbing and treatment for several consecutive days to break the breeding cycle, since eggs hatch on a rolling basis. Re-run the tape or cup test after a few days to confirm no new flies are emerging.

If flies keep appearing after thorough cleaning of every accessible drain, the breeding site may be deeper in the plumbing, in a broken pipe, or under a slab. Persistent infestations despite diligent treatment are a sign to call a plumber, who can inspect for hidden moisture, cracked pipes, or sewer issues.

How to Prevent Drain Flies From Returning

Prevention is about denying them the moist, organic buildup they need. Build these habits once the infestation is gone:

  • Clean drains regularly: a monthly enzyme treatment or hot-water flush keeps biofilm from accumulating.
  • Run water in unused drains: pour water down guest-bath and floor drains weekly so traps don’t dry out and let sewer access open up.
  • Fix leaks and standing water: repair dripping pipes and eliminate damp spots where flies breed.
  • Keep drains covered and clean: use strainers and scrub stoppers and overflows periodically.
  • Empty and clean any standing-water sources nearby, including overflow pans and rarely used appliances.

A clean, dry, well-flushed drain simply offers nothing for drain flies to feed or breed on.

The Takeaway

Knowing how to eliminate drain flies comes down to one core insight: kill the breeding ground, not just the bugs. Find the infested drain, physically scrub out the slimy biofilm, treat with hot water or an enzyme cleaner to wipe out larvae, trap the remaining adults, and repeat for several days. Then keep drains clean and free of standing water to prevent a return. If they persist despite thorough cleaning, a hidden plumbing issue is likely, and that’s the time to bring in a professional.