How to Get Rid of Fruit Flies in Drain: What Works

Fruit flies breed in the slimy organic buildup coating the inside of your drain pipes, and getting rid of them requires removing that buildup, not just killing the flies you can see. A single female can lay 30 to 100 eggs in that film of decaying matter, so any approach that leaves the slime intact will only buy you a few days before a new wave hatches.

Why Drains Attract Fruit Flies

Inside every kitchen drain, a thin layer of decomposing food, grease, and bacteria gradually accumulates on the pipe walls. This gelatinous biofilm is exactly what fruit flies seek out for egg-laying. The larvae hatch and feed on the decaying organic matter, thriving in the wet environment. Even a drain that looks clean on the surface can harbor a thick coating of this sludge just below the opening, and that’s where the real problem lives.

Garbage disposals, sink strainers, and the curved P-trap section of pipe are the most common hotspots. Any location where fermenting liquids or food residues collect will draw fruit flies in.

Start With Physical Removal

The single most effective step is mechanically scrubbing the biofilm out of the drain. No liquid you pour down the pipe can fully replace this. Remove the drain plate or stopper, then use a stiff pipe brush (sometimes called a drain brush) to scrub the inside walls of the pipe as far down as you can reach. You’re aiming to dislodge the slimy coating where eggs and larvae are embedded. A long, flexible bottle brush or a purpose-built drain brush both work.

If the drain is partially clogged or the buildup is severe, a drain snake or auger can break through deeper blockages. Once you’ve loosened the gunk, flush the drain thoroughly with hot tap water to wash the debris away. This physical step is what separates a permanent fix from a temporary one.

Why Bleach and Boiling Water Fall Short

Bleach kills adult fruit flies on contact, but it cannot penetrate the biofilm layer protecting the eggs and larvae underneath. The biofilm acts as a physical barrier, and the larvae embedded within it survive chemical treatments. Within days of pouring bleach down a drain, new adults emerge from the surviving larvae as if nothing happened.

Boiling water is another common suggestion, but it carries real risks for your plumbing. PVC pipes, which are found in most modern homes, soften at high temperatures. Repeated exposure to boiling water can warp, distort, or weaken PVC, shortening the pipe’s lifespan and potentially causing leaks. Prolonged contact with boiling water may also release harmful chemicals from PVC, including chlorine compounds. A brief pour from a single pot is generally safe, but making it a regular habit is not. Hot tap water is a safer alternative for routine flushing since it runs at a much lower temperature.

The Baking Soda and Vinegar Method

Pouring half a cup of baking soda followed by half a cup of vinegar into the drain creates a foaming reaction that can loosen some organic buildup. The common approach is to let it fizz for 15 to 30 minutes, then flush with hot water, repeating for three consecutive days. Some people add salt to the mix for its dehydrating effect on eggs.

In practice, results are mixed. The fizzing action is relatively gentle and often fails to break through a well-established layer of biofilm. Many people find the flies return within a week. This method works best as a supplement after you’ve already scrubbed the drain physically, not as a standalone solution. Also worth noting: overusing vinegar can degrade rubber gaskets in your P-trap over time, potentially leading to leaks.

Enzymatic Drain Cleaners

Enzymatic cleaners use beneficial microorganisms and concentrated enzymes to digest organic matter clinging to pipe walls. Unlike bleach, which sits on the surface of the biofilm, these products are designed to break down the food source that larvae depend on. Gel-based formulas cling to the sides of the pipe for extended contact time rather than flowing straight through.

Enzymatic cleaners are the best option when physical scrubbing alone isn’t solving the problem, or when the buildup is deeper in the pipe than a brush can reach. They’re safe for all pipe materials and won’t damage rubber seals. Apply them at the end of the day when the drain will sit unused for several hours, giving the enzymes time to work overnight. You’ll typically need to repeat the treatment for several days to fully eliminate the organic layer. Biologically based foam formulations are particularly effective because they expand to coat more of the pipe’s interior.

A Step-by-Step Plan That Works

Combining methods in the right order gives you the best chance of clearing an infestation for good:

  • Day 1: Remove the drain cover and scrub the visible pipe walls with a stiff brush. Flush with hot tap water. Apply an enzymatic drain cleaner and leave it overnight.
  • Days 2 through 5: Reapply the enzymatic cleaner each evening. During the day, flush the drain with hot tap water after each use.
  • Ongoing: Clean drains and strainers at least twice per week to prevent new residue from accumulating.

If you’re still seeing flies after a full week of this routine, the breeding source may not be in the drain at all. Check under the sink for slow leaks, inspect your garbage disposal for trapped food, and look at any nearby fruit bowls or compost bins.

Keeping Fruit Flies From Coming Back

Prevention comes down to eliminating the food sources that draw them in. Wipe down countertops and the sink basin regularly. Don’t let food scraps sit in the drain, especially if your garbage disposal isn’t working properly. Scrape plates into the trash before washing dishes, and take the kitchen trash out every night.

A weekly flush of hot tap water through all kitchen and bathroom drains helps keep organic residue from building back up. Ripe or overripe fruit left on the counter is one of the biggest attractors outside the drain itself, so refrigerate produce once it starts to soften. Keeping things dry matters too: fruit flies need moisture to breed, so wiping down the sink and drain area after use removes one more thing they’re looking for.

Cleaning your drain strainer or stopper twice a week takes about 30 seconds and removes the thin layer of food residue that restarts the whole cycle. It’s a small habit that makes a surprisingly large difference.