Bleach kills adult drain flies on contact, but it won’t solve an infestation. The reason is simple: drain fly larvae don’t live in the standing water at the bottom of your pipes. They live inside a sticky layer of organic slime coating the pipe walls, and bleach can’t penetrate that slime. Within days of pouring bleach down the drain, new adults emerge from surviving larvae as if nothing happened.
Why Bleach Fails Against Drain Flies
The slimy film inside your drainpipes is called biofilm, a structured microbial community held together by a protective outer layer that resists chemical penetration. Drain fly larvae burrow into this biofilm, feeding on the decaying organic matter trapped within it. When you pour bleach down a drain, it flows through the center of the pipe and contacts whatever adults or surface organisms happen to be in its path. But the biofilm clings to the pipe walls like a shield, keeping the eggs and larvae safe inside.
This is why people often feel like bleach “worked” for a day or two. The adults they could see are gone. But the larvae embedded in the biofilm keep developing, and a new wave of tiny moth-shaped flies appears within days. The entire life cycle of a drain fly, from egg to adult, takes only 8 to 24 days depending on temperature and humidity. Eggs hatch in about 2 days, the larval stage lasts 8 to 15 days, and the pupal stage before an adult emerges is just 1 to 2 days. That fast turnover means a single bleach treatment barely interrupts the cycle.
Bleach Can Also Damage Your Plumbing
Beyond being ineffective, repeated bleach treatments carry real risks for your pipes. Older cast iron plumbing can corrode when exposed to bleach, and even PVC pipes have rubber seals and fittings that degrade faster with bleach exposure. Over time, this leads to weakened joints, leaks, and costly repairs.
If your home uses a septic system, bleach is especially problematic. It kills the beneficial bacteria inside the septic tank that break down waste. Without those bacteria, solids don’t decompose properly, which can cause backups, foul odors, slow drainage, and expensive maintenance.
There’s also a safety concern worth knowing: if you’ve recently used an acidic drain cleaner or a product containing ammonia, adding bleach creates toxic gas. Mixing bleach with acid produces chlorine gas, which causes burning of the eyes, nose, and throat, coughing, and in serious cases, lung damage. Mixing bleach with ammonia produces chloramine gas. Never combine bleach with other cleaning products in a drain.
Confirm Which Drain Is the Source
Before you treat anything, figure out exactly which drain the flies are breeding in. Drain flies are drawn to moist, decaying organic matter, so they commonly lay eggs at drain openings, inside drainpipes, under toilet bowl rims, and anywhere decomposing material collects. They can also breed outdoors near septic lines, leaking pipes, or garbage containers.
The simplest identification method is the tape test. Place a strip of clear adhesive tape, sticky side down, over a suspected drain before bed. Leave it overnight. If drain flies are emerging from that pipe, you’ll find small moth-shaped flies stuck to the tape in the morning. You can also coat the inside of a clear plastic cup with petroleum jelly and invert it over the drain opening. Repeat this for several nights on each suspect drain to pinpoint the source, since more than one drain may be involved.
What Actually Eliminates Drain Flies
The only lasting fix is removing the biofilm where larvae live and feed. Once you destroy their breeding ground, the infestation collapses on its own because there’s nowhere left for eggs to develop.
Mechanical Cleaning
The most effective first step is physically scrubbing the inside of the pipe. A stiff drain brush or a long pipe brush pushed into the drain and twisted against the walls will strip away the slimy buildup that no liquid chemical can reach. This is unglamorous work, but it removes more biofilm in five minutes than any product removes in a week. Follow up by flushing with plenty of warm water to rinse the loosened debris down the line.
Enzyme Drain Treatments
Enzymatic or bacterial drain cleaners work by digesting the organic matter that makes up the biofilm. These products contain microorganisms and enzymes that break down food residue, grease, hair, and the decaying sludge drain flies depend on. Unlike bleach, which simply passes over the surface, these biological treatments colonize the pipe walls and eat through the buildup over time. They’re safe for septic systems and won’t corrode pipes.
Enzyme treatments aren’t instant. You’ll typically need to apply them nightly for one to two weeks, giving the microorganisms time to consume the biofilm layer by layer. Since the entire drain fly life cycle runs 8 to 24 days, consistent treatment over two to three weeks ensures that no surviving larvae reach adulthood before their food source is gone. Repeat the tape test periodically to track whether new adults are still emerging.
Hot Water Flushing
Flushing the drain with very hot water can help loosen biofilm, but be careful with temperature. Standard PVC pipe (Schedule 40) is rated for a maximum continuous temperature of about 140°F. At 160°F, PVC begins to soften visibly, and at 180°F it risks structural failure. Boiling water at 212°F can warp PVC and ABS pipes over time. If you have PVC drains, use very hot tap water rather than boiling water from a kettle. If your home has CPVC pipes, which are rated up to about 200°F, you have more margin. Metal pipes handle boiling water without issue.
Preventing Drain Flies From Coming Back
Drain flies return whenever biofilm rebuilds, so prevention is about keeping pipes clean. Run water through infrequently used drains at least once a week. Basement drains, guest bathroom sinks, and rarely used shower stalls are the most common culprits because stagnant water and undisturbed organic matter create ideal breeding conditions.
A monthly enzyme treatment in problem drains keeps biofilm from accumulating to the point where it can support larvae. Cleaning drain stoppers and overflow holes, where gunk tends to collect out of sight, also removes potential breeding sites. If you notice the small fuzzy flies reappearing, run the tape test again immediately. Catching a new infestation early, before larvae have time to mature, makes it far easier to eliminate with a single round of cleaning and enzyme treatment.