The most effective way to kill bugs living in your drain is to physically remove the slimy buildup (biofilm) where they breed. Pouring liquids down the drain, whether boiling water, bleach, or vinegar, only kills a fraction of the insects because larvae live protected inside a sticky layer of organic gunk coating the inside of your pipes. Until you remove that layer, the bugs keep coming back.
What’s Actually Living in Your Drain
The most common drain insects are drain flies, also called moth flies, sewer flies, or bathroom flies. They’re small, fuzzy, moth-like flies that hover near sinks, showers, and floor drains. You might also find fruit flies or phorid flies, but drain flies are the usual culprit when bugs seem to appear out of nowhere near wet areas.
These insects go through a full lifecycle (egg, larva, pupa, adult) in as little as 8 to 24 days depending on temperature and humidity. Females lay eggs directly on the moist, slimy biofilm coating the inside of your drainpipes. The eggs hatch within about 2 days, and the larvae spend the next 8 to 15 days feeding on decaying organic matter, bacteria, fungi, and grease trapped in that slime. The larvae actually breathe by extending tiny tubes through the biofilm, which means they’re physically embedded in it. This is why simply flushing liquid down the drain doesn’t reach them.
Why Boiling Water and Bleach Don’t Work Well
Boiling water kills organisms it contacts directly, but by the time it travels through the drain body and into the pipe, the temperature drops significantly. It only touches a small fraction of the biofilm surface. You might see fewer adult flies for a day or two, but the larvae deeper in the pipe system survive and keep developing.
Bleach has the same limitation. It’s caustic, so it carries some risk to your skin and eyes. More importantly, if you’ve already poured vinegar down the drain (a common suggestion), adding bleach creates chlorine gas, which is genuinely dangerous. Even when used safely, bleach provides only a temporary reduction in adult fly numbers without addressing the root cause. It also doesn’t dissolve the sticky biofilm where larvae are protected.
Baking soda and vinegar combinations create a satisfying fizz but generate minimal cleaning power against the kind of thick organic buildup that supports insect colonies. These methods work better as maintenance steps after you’ve already done the real cleaning.
Physically Remove the Biofilm
The single most effective step is mechanical cleaning: scrubbing, pulling, or scraping the organic buildup out of your pipes. Here’s how to do it thoroughly.
Use a drain brush or cleaning tool. A long, flexible drain brush lets you scrub the inside walls of the pipe below the drain opening. Hardware stores sell inexpensive toothed plastic tools (sometimes called “Zip-It” tools) designed to pull out hair and slime. You’ll likely be surprised by how much black gunk comes out. Work the tool up and down several times, rinse, and repeat.
Clean the P-trap. The P-trap is the U-shaped section of pipe under your sink. Place a bucket underneath, unscrew the fittings by hand or with pliers, and remove the trap. Clean the inside with paper towels, a bottle brush, or an old toothbrush. This is where the thickest biofilm accumulates, and it’s often where larvae are most concentrated. Reassemble the trap and run water to refill the seal.
Flush with hot water and agitation. After scrubbing, fill the sink partway with hot water, then release it while using a plunger vigorously. The combination of water volume and pressure helps dislodge loosened gunk deeper in the pipe. Wipe up anything the plunger brings to the surface. Repeat a few times.
For floor drains or shower drains where you can’t easily access the P-trap, focus on the drain brush method and follow up with an enzyme-based drain cleaner. Enzyme cleaners contain bacteria that digest organic matter over time, gradually breaking down the biofilm you can’t physically reach. They’re not instant, but they’re far more effective than bleach for ongoing maintenance.
How Long Until the Bugs Are Gone
Because the full lifecycle takes 8 to 24 days, you may continue seeing adult flies for up to three weeks after cleaning, even if you’ve successfully removed the breeding site. These are adults that were already developing before you cleaned. If you’re still seeing new flies after three to four weeks, the biofilm wasn’t fully removed or there’s a secondary breeding site you haven’t found.
Check other drains in the house. Drain flies can breed in any continuously wet pipe with organic buildup: bathroom sinks, shower drains, floor drains, laundry drains, and even the overflow hole in bathroom sinks. A simple way to identify which drain is the source is to cover each one with a piece of tape overnight (sticky side down), leaving a small gap for airflow. Check the tape in the morning. Flies stuck to the underside tell you which drain they’re emerging from.
Keeping Bugs From Coming Back
Once you’ve eliminated the current population, prevention comes down to two things: controlling biofilm buildup and maintaining your drain seals.
Run water through every drain in your home at least once a week. Floor drains in basements, garages, and laundry rooms are especially vulnerable because they’re easy to forget. The P-trap holds a small pool of water that blocks sewer gases and insects from traveling up through the pipe, but that water evaporates in about 2 to 3 weeks if the drain isn’t used. Once it dries out, the drain becomes an open pathway for flies. A quick flush of water every week or two keeps the seal intact.
For drains that rarely get used, like a basement floor drain or a guest bathroom, consider installing a waterless trap seal. These are silicone one-way valves that drop into the drain body and let water flow down but physically block anything from coming back up. Unlike water seals, they never evaporate, so they work during vacations or long periods without use.
Clean your drains with an enzyme-based cleaner once a month as a maintenance step. Remove hair and debris from drain covers regularly. If you have a garbage disposal, run it fully after every use and flush it with cold water for 15 to 20 seconds to clear food particles that would otherwise decompose in the pipes. In bathroom sinks, periodically clean the overflow hole with a small brush, since biofilm builds up there too and it’s a breeding site most people overlook.