Drain flies appear because somewhere in your home, there’s a buildup of moist organic slime inside a pipe, drain, or other wet surface. That slimy film of decomposing matter is both food and nursery for drain flies. If you’re suddenly seeing these tiny, fuzzy insects on your bathroom wall or hovering near a sink, it means a breeding colony has established itself in the gunk lining a nearby drain.
What Drain Flies Actually Need
Drain flies belong to the family Psychodidae, and they thrive in humid environments like bathroom drains, shower pipes, and sewage systems. They’re sometimes called moth flies because of their fuzzy, moth-like appearance. Adults are small, only about 2 to 5 mm long, dark gray to black, and densely covered in tiny hairs. They hold their broad wings flat or tent-like over their bodies at rest and tend to fly only a few feet at a time in short, hopping bursts.
What draws them isn’t standing water alone. It’s the layer of organic buildup that coats the inside of pipes: a mix of hair, soap residue, skin cells, grease, and bacteria that forms a slimy biofilm. Female drain flies lay their eggs directly into this film in irregular masses of 30 to 100 eggs at a time. The larvae feed on the organic matter and bacteria in the slime, growing for 8 to 24 days before pupating. The entire life cycle, from egg to adult, takes roughly 21 to 27 days at room temperature and speeds up in warmer conditions.
Common Breeding Sites in Your Home
The obvious culprits are bathroom sinks, shower drains, and bathtub drains, especially ones that aren’t used frequently or cleaned regularly. But drain flies can breed in less obvious places too. Floor drains in basements or laundry rooms, sump pump pits, toilet tanks that rarely get flushed, and the overflow holes in sinks can all harbor enough organic buildup to support a colony. Air conditioning drip pans, leaky pipes behind walls, and even the condensation trays under refrigerators sometimes provide the right conditions.
A drain that goes unused for a few weeks is particularly vulnerable. The water in the trap may still be there, but the organic film on the pipe walls stays moist and undisturbed, giving larvae a safe, food-rich environment. This is why drain flies often appear in guest bathrooms, vacation homes, or basement utility sinks that don’t see regular water flow.
Why They Seem to Appear Suddenly
Because the life cycle takes about three to four weeks, a breeding colony can establish itself silently inside your pipes before you notice a single adult. Eggs hatch in less than 48 hours. The larval stage, where the insects are hidden inside the drain feeding on biofilm, is the longest phase and lasts one to three weeks. The pupal stage takes only 24 to 48 hours before a new adult emerges. Males emerge first and live only a few days, while females can survive up to a week or two.
What feels like a sudden invasion is usually the first wave of adults emerging from a colony that’s been developing out of sight. And because each female lays up to 100 eggs, the population can multiply quickly once conditions are right. Warm, humid weather accelerates the cycle. At 85°F, the larval stage can shrink to just eight days, which is why drain fly problems tend to peak in summer or in homes with consistently warm, humid bathrooms.
How to Tell Them Apart From Other Small Flies
Drain flies are easy to confuse with fruit flies, phorid flies, and fungus gnats, but each one looks and behaves differently.
- Drain flies are fuzzy and moth-like, dark gray to black, and rest on walls near sinks and tubs. They make short, weak flights.
- Fruit flies are similar in size (about 2 to 4 mm) but have a rounder, stouter body and typically reddish eyes. They’re attracted to ripening fruit and fermented liquids, not drains.
- Phorid flies are tan to dark brown with a distinctive hump-backed shape. They’re strong runners and tend to scurry across surfaces before flying, earning them the nickname “scuttle fly.”
- Fungus gnats are very small (1.5 to 3 mm), slender, and mosquito-like with long legs and clear or dark wings. They breed in overwatered houseplant soil.
If the tiny flies you’re seeing rest flat on your bathroom walls with their wings spread, they’re almost certainly drain flies.
Finding the Source
Before you can get rid of drain flies, you need to confirm which drain is the breeding site. The simplest method is the tape test: place a strip of clear packing tape or adhesive tape over a suspect drain at night, sticky side down, leaving enough gap for air to flow. Adults emerging from the drain overnight will get stuck to the tape. Check it in the morning. Repeat for several nights on each suspect drain, since not every adult emerges on the same night. This narrows down exactly which pipe is the problem.
Getting Rid of the Buildup
Killing the adults you see on the wall won’t solve the problem. The breeding population lives inside the drain, protected by the organic film. The goal is to remove that film.
Mechanical cleaning is the most reliable first step. Use a stiff pipe brush or drain snake to physically scrub the inside walls of the pipe, loosening the organic buildup where eggs and larvae are embedded. Follow this with a thorough flush of hot water.
Boiling water poured directly down the drain can kill eggs and larvae near the surface, but it cools quickly as it travels through the pipe and may not reach deeper buildup. For this reason, repeating the boiling water treatment daily for about a week tends to work better than a single pour, catching new larvae as they develop.
Bio-enzymatic foam cleaners are specifically designed for this problem. These products combine natural bacteria with citrus-based grease cutters that expand into foam, coating the pipe walls and breaking down the organic matter where flies breed. Because the foam clings to vertical pipe surfaces rather than running straight through, it reaches buildup that liquid treatments miss. Pest control professionals often use these products, and they’re available to consumers as well.
Bleach is a common home remedy, and a diluted solution (about one cup of bleach per gallon of water) left in the drain for 30 minutes before flushing can kill larvae and eggs near the drain opening. However, bleach doesn’t dissolve the organic film itself, so it works best as a supplement to physical cleaning rather than a standalone fix. Some sources also suggest that bleach is less effective against eggs than against larvae, which is why the problem can return if the biofilm isn’t removed.
Preventing Them From Coming Back
Drain flies return when the conditions that attracted them in the first place rebuild. Running water through every drain in your home at least once a week, including guest bathrooms and basement floor drains, keeps traps full and prevents organic film from accumulating undisturbed. Periodically cleaning drain stoppers and removing visible hair and soap buildup cuts off the food supply before it becomes hospitable.
In chronically humid spaces like basement utility rooms, improving ventilation or using a dehumidifier makes the environment less attractive. Fixing leaky pipes and eliminating any sources of stagnant water removes potential secondary breeding sites. Since a single female can lay 30 to 100 eggs at a time and the full cycle takes under a month, even a brief lapse in drain maintenance during warm months can restart the problem.

