Garbage Disposal Flies (Drain Flies), How to Get Rid of Them
Flies coming from the drain opening are drain flies (Psychodidae), not fruit flies. They breed in the biofilm coating your disposal and P-trap, not on counter food. To eliminate them: (1) trap adults for 1-2 days, (2) destroy biofilm with enzyme cleaner for 3-7 days, (3) run weekly ice treatments to prevent return. The full process takes 7-14 days because the egg-to-adult lifecycle is 14 days.

Drain flies vs. fruit flies, which one is in your disposal?
Getting this wrong wastes a week of effort. The two insects look similar at a glance but breed in different places and require different treatments.
Drain flies (Psychodidae): 1-3mm, gray or brown with fuzzy, moth-like wings. They emerge from the drain opening itself, hover near the sink, and are most active at night or early morning. You may also notice a faint musty smell from the drain.
Fruit flies (Drosophilidae): Slightly larger, with distinctive red eyes and a tan or yellowish body. They hover around fruit bowls, trash cans, and compost bins. They’re visible on counters in daylight.
The definitive test: Remove all fruit and open food from your counters for 24 hours. If the flies disappear, they were fruit flies. If they persist or if you see them emerging directly from the drain, they’re drain flies.
Drain fly treatment (targeting biofilm inside pipes) won’t help with fruit flies, and removing counter food won’t help with drain flies. According to Penn State Extension drain fly biology{:target=“_blank”}, drain flies breed exclusively in the organic film inside pipes and drains, not in the food on your counter.
The tape test, confirm before you treat
Before spending a week on treatment, spend one night confirming the garbage disposal is actually the source. We have seen homeowners treat the disposal thoroughly only to find the breeding site was a floor drain or a secondary bathroom sink.
How to do it:
Dry the drain area and disposal rim with paper towels first. Next, cover the opening with clear tape or plastic wrap, sealing the edges tightly. Let it sit for 8 to 10 hours overnight. In the morning, inspect the seal.
Reading the result: If flies are stuck to the underside of the tape or dead just inside the drain opening, the disposal is your breeding site. If the tape is clean after two nights, check every other drain in the house, bathtub drains, floor drains, and secondary bathroom sinks are common overflow sites.
A negative tape test means treating the disposal won’t resolve the infestation. Check all other drains before investing in enzyme treatments.
Why your disposal becomes a fly nursery
Most people try boiling water or a vinegar pour, see no results, and give up. The reason these partial fixes fail comes down to biofilm.
Biofilm is the thin film of decomposed food particles, bacteria, and fungi that coats the inside of your disposal chamber, the underside of the rubber splash guard. The interior of the P-trap where larvae breed. It builds up gradually and is invisible to the eye.
As Orkin notes{:target=“_blank”}, “drain flies lay eggs in the film that forms in drain pipes and garbage disposals.” Drain fly females lay 30-100 eggs per batch directly into this biofilm layer. The larvae hatch in 3-5 days and feed on the biofilm itself. The full egg-to-adult lifecycle is 14 days. One female can produce thousands of offspring within 2-3 weeks if the biofilm habitat stays intact.
Nothing fancy.
Why boiling water alone doesn’t work: It kills adults and surface-level eggs near the drain opening. But the water temperature drops before reaching the P-trap biofilm where most larvae live. Boiling water is a useful complement but not a standalone fix.
Why bleach doesn’t work (and harms your disposal): Bleach poured down a disposal doesn’t reliably penetrate deep biofilm layers. It degrades the rubber splash guard and internal seals over repeated use. Skip it entirely.
The foul odors from your disposal and the fly infestation often share the same root cause: biofilm accumulation from 2-3 weeks of skipped cleaning.
How to get rid of drain flies. 3-phase treatment
This protocol addresses all three stages: adult flies on the surface, larvae inside biofilm. The conditions that allow reinfestation.
Phase 1: kill adult flies (days 1-2)
Option A. Drain trap (preferred for most infestations):
Tightly wrap a plastic sheet at least four inches larger than your drain on all sides and secure it with tape to create a sealed dome over the opening. Insert a pinpoint hole directly in its center using something sharp. Place beneath this puncture a small dish holding exactly two tablespoons of apple cider vinegar and one drop of mild dish soap. Insects like flies trying to enter will be trapped by the soapy solution, which disrupts their ability to break surface tension; they’ll drown without escape. To ensure it remains effective, change the vinegar-soap mixture daily until you see no new fly activity for a full 24 hours straight.
Option B. Hot water flush (complement to Option A):
Pour 1-2 quarts of very hot tap water slowly down the drain. Use hot tap water rather than boiling water if you have PVC pipes, as boiling water can soften PVC fittings over time. This helps with adults and near-surface eggs but doesn’t penetrate deep biofilm.
Phase 2: kill larvae and destroy biofilm (days 3-7)
This is the critical phase. Adult trapping does nothing if larvae are still hatching from biofilm.
Enzyme drain cleaner (primary method):
Use an enzyme-based drain cleaner rated safe for garbage disposals. Earthworm Drain Cleaner is the product we recommend for this purpose. Avoid bleach-based products. Enzyme cleaners digest the organic matter that larvae feed on. Without food, larvae die from starvation.
Pour per product directions, then let it sit for 12-24 hours before flushing. Repeat every 2-3 days through day 7.
Ice and baking soda scrub (secondary method):
Add 2 cups of ice and 1 tablespoon of baking soda to the disposal. Run it for 30 seconds. The mechanical abrasion knocks biofilm off the disposal chamber walls and the underside of the splash guard where larvae concentrate.
Run this every other day during the treatment week, alternating with enzyme treatments.
Splash guard cleaning (don’t skip):
Turn off the disposal at the breaker before touching any interior components. Lift the rubber splash guard out and scrub the underside thoroughly with an old toothbrush and dish soap. The grooves and folds of the splash guard are a dense larvae habitat that enzyme cleaners and ice treatments often miss.
Phase 3: prevent reinfestation (ongoing)
Once you have cleared the infestation, the weekly maintenance routine is what keeps it from returning:
- Run the ice and baking soda method every 7 days to prevent biofilm from reforming
- After dishwashing, run the disposal for 30 seconds with cold water to flush particles through
- Avoid leaving fibrous waste (celery, corn husks, potato skins) sitting in the disposal, these are the foods that cause biofilm buildup that flies target
- Dry the sink and drain area after each use to remove the moisture drain flies require for egg development
- Inspect the under-sink area monthly for condensation or moisture on the P-trap
Why one treatment won’t work, the 14-day rule
We get questions from readers who tried a single baking soda flush, saw flies again three days later, and concluded that nothing works. This is the lifecycle problem.
Eggs hatch into larvae within 3 to 5 days, which then pupate for about 2–3 days before emerging as adults with a lifespan of 8 to 24 days. Treating on day one eradicates visible adults and some surface eggs but fails to address deeper-set eggs in biofilm or mid-cycle larvae in the P-trap.
Small detail, real impact.
New adults will emerge 3-5 days after your first treatment, making it feel like the treatment failed. It hasn’t. You need to run the full protocol consistently for 7-14 days to intercept every stage of the lifecycle currently active in your drain.
Success signal: No new adults emerging for 48 hours, typically around days 10-12 of consistent treatment.
Prevent drain flies from coming back
Once the infestation clears, the maintenance habits that prevent return take under 5 minutes per week.
Weekly: Run 2 cups of ice and 1 tablespoon of baking soda through the disposal for 30 seconds. This is also covered in our baking soda and vinegar cleaning routine for anyone who wants a combined deodorizing and anti-biofilm routine.
Daily: Run the disposal after dishwashing to flush food particles. Idle disposals accumulate biofilm faster than ones used regularly.
Monthly: Check under the sink for condensation or moisture on the cold pipes. Wipe it dry if you find it. This removes the microclimate conditions that support egg development in the P-trap.
Avoid: Disposal cleaning tablets that use bleach or strong oxidizers. These can degrade rubber seals over time. Enzyme-based tablets are fine.
When to call a professional
DIY treatment handles the majority of garbage disposal drain fly infestations. Call a professional pest control service if:
- The infestation persists after two full weeks of consistent 3-phase treatment
- Flies are coming from multiple drains simultaneously (floor drain, bathroom sinks. The kitchen disposal all at once), this indicates systemic pipe biofilm that requires professional-grade treatment
- Larvae are visible in toilet bowl or floor drains (a different species with a different treatment protocol)
Professional methods include hydro jetting (high-pressure water that physically removes biofilm from pipe interiors) and commercial-grade enzymatic treatments that reach sections of pipe inaccessible to household products.
Worth checking.
Cost: Expect $150-$300 for the initial inspection and treatment, per the Terminix drain fly guide{:target=“_blank”}. Even after professional treatment, weekly disposal cleaning is required to prevent biofilm from rebuilding.
FAQ
Do drain flies eventually go away on their own?
No. Drain flies won’t resolve on their own while the biofilm habitat remains intact. Each adult female lays 30-100 eggs per batch, and with a 14-day lifecycle, the population grows exponentially within 2-3 weeks if conditions are unchanged. The infestation will continue and expand until the biofilm is destroyed.
Will dawn dish soap kill drain flies?
Dish soap mixed with apple cider vinegar traps and drowns adult flies but doesn’t eliminate larvae inside the biofilm. It works well as a trapping method in Phase 1 but must be combined with enzyme treatment and biofilm removal to break the cycle permanently. Using dish soap alone addresses the symptom, not the source.
Do flies lay eggs in the garbage disposal?
Yes. Drain flies (Psychodidae) specifically lay eggs inside the biofilm layer that coats the disposal chamber walls, the underside of the rubber splash guard. The interior of the P-trap. Each female lays 30-100 eggs per batch, which hatch in 3-5 days. The splash guard underside is one of the most overlooked breeding sites.
How long does it take to get rid of drain flies?
Most infestations clear within 10 to 14 days with consistent three-phase treatment; this timeframe is crucial for breaking the complete lifecycle from egg to adult. If new adults are still appearing around day 3 to 5, don’t panic, it’s normal as it signifies eggs laid prior to treatment have just hatched. Stick to the protocol, and by days 10 to 12, emergence should cease.
Can drain flies come from the dishwasher?
Possibly. If the dishwasher drain hose connects to the same P-trap as the garbage disposal (standard in most kitchens), biofilm can build up inside the dishwasher drain hose and feed the same infestation. If treating the disposal doesn’t resolve the problem after 7 days, inspect the dishwasher drain hose connection under the sink and clean it separately.