Drain flies get into your house through your own plumbing. They breed in the slimy organic buildup inside drain pipes, and the adults emerge right out of sink, shower, and floor drains. They can also enter from outside, blown in through open or unscreened windows, or travel up from sewer lines that back up or “burp” into your home. Understanding exactly where they come from makes them much easier to eliminate.
The Slime Inside Your Pipes Is the Real Problem
Drain flies don’t just pass through your drains. They live there. Inside nearly every household drain, a layer of bacterial muck, decaying organic matter, and gelatinous film accumulates on the pipe walls over time. This biofilm is made up of soap residue, hair, skin cells, food particles, and the bacteria that feed on all of it. For drain fly larvae, this slime is both home and food source.
Females lay eggs directly into this film, typically in clusters of 15 to 40 eggs, though a single female can deposit up to 100. The larvae hatch and feed on the decaying organic matter, algae, and bacterial film lining the pipe. They breathe by extending small tube-like tails to the water’s surface. The larval stage lasts 8 to 15 days depending on temperature, developing faster in warmer conditions. Once they mature into adults, they crawl or fly out of the drain opening and into your living space.
This is why drain flies seem to appear out of nowhere. The entire lifecycle happens out of sight, deep in the pipe, and you only notice the problem once adults start congregating on walls and ceilings near the source drain.
Which Drains Are Most Vulnerable
Drain flies strongly favor drains that are used infrequently. A guest bathroom shower, a basement floor drain, a rarely used utility sink: these are prime breeding grounds because water sits in the trap for long periods without being flushed through, and organic buildup goes undisturbed. The biofilm grows thicker, and the still, shallow water creates ideal conditions for eggs and larvae.
That said, any drain with organic buildup can host them. Common breeding sites include:
- Sink drains in kitchens and bathrooms
- Shower and tub drains, especially with slow drainage
- Toilet tanks (not the bowl, but areas where moisture and film accumulate)
- Floor drains in basements, laundry rooms, and garages
- Leaky shower pans where water seeps beneath tile
- Overflow pipes in sinks and tubs
They can also breed outside of drains entirely, anywhere water accumulates near decaying organic matter. Leaking pipes under a sink, a drip beneath a slab foundation, or standing water in a crawlspace all qualify. If you’ve thoroughly cleaned every visible drain and the flies keep returning, that’s a strong signal of a broken pipe or hidden leak somewhere you can’t see.
How They Enter From Outside
Not every drain fly infestation starts inside your plumbing. Adults are weak fliers, but they’re light enough to be carried long distances by wind. They can drift in through open windows, gaps in screens, or doors left ajar, particularly during warm months. Homes near sewage treatment areas, septic systems, or wet composting sites are more likely to see outdoor drain flies find their way inside.
Sewer lines are another entry point. When a sewer pipe backs up or releases gases (sometimes called “burping”), it can push drain fly larvae or adults up into your home’s plumbing system. This is more common in older homes with aging sewer connections or properties on septic systems.
How to Confirm Which Drain Is the Source
If you’re seeing drain flies but aren’t sure which drain they’re coming from, you can run a simple overnight test. Place a strip of clear packing tape loosely over each suspect drain before bed, sticky side down. Don’t seal it completely, because you want air to still flow through (otherwise the flies won’t try to emerge). In the morning, check the tape for small flies stuck to the adhesive. Repeat the test for several consecutive nights, since not every adult emerges on the same schedule. This tells you exactly which drain is producing them.
Are You Sure They’re Drain Flies?
Drain flies are small, fuzzy, moth-like insects, roughly 2 to 5 millimeters long, with broad leaf-shaped wings they hold flat over their bodies at rest. They look almost furry compared to other small flies, and they tend to rest motionless on walls and ceilings rather than buzzing around food or lights.
Fruit flies are a common lookalike, but they have distinctive red eyes, a rounder body shape, and tend to hover near ripening fruit or fermenting liquids. Phorid flies are another possibility. These are sometimes called “scuttle flies” because they run erratically across surfaces rather than flying. Phorid flies have a noticeable hump on their back when viewed from the side and elongated hind legs. If the tiny flies in your home are running across counters rather than resting on walls, you’re likely dealing with phorid flies, which breed in different conditions and require different treatment.
How to Get Rid of Them
Killing the adult flies you see on the wall does almost nothing. The real fix is removing the biofilm inside the pipe where larvae are feeding and developing. Without that food source, the breeding cycle breaks.
Start by physically cleaning the drain. A stiff drain brush or pipe brush pushed into the drain and twisted will scrub away the gelatinous film clinging to pipe walls. This is more effective than any chemical approach on its own, because the biofilm is thick and sticky enough to protect larvae from liquid treatments that simply wash past. After brushing, flush the drain thoroughly with hot water to clear loosened material.
Enzyme-based drain cleaners (sold as “drain maintenance” products, not conventional chemical drain openers) can help break down remaining organic buildup over several days of repeated use. These contain bacteria or enzymes that digest the same organic matter the larvae feed on. They work best as a follow-up to mechanical cleaning, not a replacement for it. Standard chemical drain cleaners like lye-based products will kill some larvae on contact, but they flow through too quickly to dissolve the biofilm layer where eggs are embedded.
For drains you don’t use often, the simplest prevention is to run water through them regularly, at least once a week. This flushes the trap, refreshes the water seal that blocks sewer gases (and the flies that travel with them), and prevents the stagnant conditions drain flies need. If a floor drain in your basement goes months without use, that dried-out trap is essentially an open tunnel between your home and the sewer system.
When the Problem Points to Something Bigger
Most drain fly problems resolve within two to three weeks of consistent drain cleaning, since that’s roughly the time needed for the existing generation of larvae to either be removed or complete their cycle without new eggs being laid. Adults only live a few days to two weeks, so once the breeding site is gone, the population dies off quickly.
If the flies persist despite cleaning every accessible drain, the breeding site is likely somewhere you can’t reach with a brush. A cracked pipe beneath a concrete slab, a leaking shower pan that’s saturating the subfloor, or a broken sewer connection in the crawlspace can all create hidden pockets of wet organic matter that sustain an indefinite infestation. In these cases, a plumber with a camera scope can inspect your lines and identify the structural issue that’s keeping the flies coming back.