You walk into the bathroom at 11 p.m. to find a dozen fuzzy gray specks clustered around the tub drain. Swat them and more appear the next evening. What causes drain flies to show up in a clean, well-kept home usually has nothing to do with your cleaning habits and everything to do with invisible slime layers coating the inside of your pipes. Fixing the problem permanently takes mechanical scrubbing plus an enzyme treatment, not just a quick shot of bleach.
Meet the Actual Pest
Drain flies (Psychoda alternata and related species) are tiny moth-like insects, about 1/8 inch long, with fuzzy gray or tan wings that fold over their bodies like a tent. They are weak fliers, so you will rarely see them zipping across a room. Instead, they perch on walls near drains, on shower ceilings, or around houseplant soil. Each female lays 30 to 200 eggs in biofilm, and the full life cycle from egg to adult takes 21 to 27 days in typical home conditions.
The Biofilm Connection
Drain flies need organic slime to breed. That slime, called biofilm, builds up on the walls of drains, overflow tubes, and P-traps when soap scum, hair, skin cells, and food particles mix with standing water. No matter how often you run hot water down the drain, the biofilm clings to pipe walls where larvae feed for roughly two weeks before pupating into adults. Eliminating the adults without destroying the biofilm just clears the way for the next generation.
Common Household Sources
Drain flies breed in more places than homeowners typically check:
- Bathroom sink and tub drains: the most common source, especially overflow holes
- Kitchen sink disposal: food particles feed rich biofilm colonies
- Shower drains and floor drains: especially rarely-used basement floor drains
- Toilet tank and bowl: if a wax ring leaks, moisture feeds flies in the subfloor
- Condensation pans under HVAC units: standing water plus dust equals breeding ground
- Overwatered houseplants: saturated soil hosts fungus gnats, often confused with drain flies
- Sump pits: especially in homes with high water tables
How to Confirm the Source
Before you treat every drain in the house, pinpoint the active one. Place a strip of clear packing tape sticky-side down over each suspected drain overnight. In the morning, check which tapes caught adult flies trying to emerge. The drain with the heaviest catch is the breeding site. Repeat for two or three nights to rule out false negatives.
Mechanical Cleaning Comes First
Chemical treatments alone cannot penetrate thick biofilm. Start by physically scrubbing the drain:
- Remove the drain cover or strainer
- Insert a nylon drain brush (General Pipe Cleaners Kinetic Water Ram, $15) and scrub 12 inches into the pipe
- Work the brush in circular motions for 2 minutes
- Flush with 4 cups of hot tap water
- Repeat daily for one week
Enzyme Drain Treatments
Enzyme cleaners like Bio-Clean ($35 for a 2-pound jar, 60 treatments) and InVade Bio Drain Gel ($25 per bottle) digest biofilm rather than just dissolving it. Unlike chlorine bleach, which drains through the pipe in seconds, enzyme gels cling to the walls overnight and break down organic matter while the flies sleep. Apply at bedtime when drains go unused for 8 hours. Reapply every 2 to 3 days for two weeks to break the fly life cycle.
What Does Not Work
Despite what social media suggests, a few common DIY approaches fail consistently:
- Pouring boiling water alone: kills surface flies but leaves biofilm intact
- Bleach alone: rinses past biofilm too fast to penetrate
- Duct-taping drains shut: only traps existing flies, not eggs or larvae
- Essential oil mixes: may repel adults briefly but do not stop breeding
- Vinegar and baking soda: satisfying to watch foam but ineffective on biofilm
Treating the Bathroom Overflow
The sink overflow hole on most bathroom sinks harbors surprisingly thick biofilm because water rarely flows through it. Squirt enzyme gel directly into the overflow using the angled applicator that comes with InVade Bio Drain Gel. Cover the hole with tape for 24 hours to keep the gel from evaporating before it can work.
Kitchen Disposal Specifics
Garbage disposals hide biofilm under the splash guard and inside the grinding chamber. Remove the rubber splash guard (most pull out by hand), scrub both sides with a stiff brush and dish soap, and rinse. Then drop six ice cubes mixed with 1/4 cup rock salt into the disposal and run it for 30 seconds with cold water. The ice scrubs the chamber walls mechanically.
Prevention Once They Are Gone
Treat drains proactively once a month with a capful of enzyme cleaner to prevent biofilm from rebuilding. Keep drain covers clean of hair by using a TubShroom ($13) or SinkShroom, which trap debris above the drain where you can see and dispose of it. Fix leaky faucets and toilet wax rings immediately since even small moisture sources sustain drain fly populations.
When to Call a Pro
If adult flies keep appearing after two weeks of consistent enzyme treatment, the breeding site may be inside a wall or under the slab. A licensed plumber can run a camera through your drain line ($150 to $300) to locate the exact source, which often turns out to be a cracked sewer line under a basement floor. Knowing what causes drain flies at that level requires professional diagnosis, but most household infestations clear within two to three weeks of disciplined cleaning and enzyme treatment.