Ants Bed Bugs Cockroaches Fleas Flies Lice Mosquitoes Rodents Silverfish Spiders Termites Wasps

How to Get Rid of Drain Flies: A Step-by-Step Guide

Published: 2024-08-06 ยท Updated: 2026-05-16

Sarah Mitchell, BCE, ACE

Certified Pest Management Professional

How to Get Rid of Drain Flies

Sign or symptom Likely cause Risk level What to do next
Fresh activity related to How to Get Rid of Drain Flies flies are active nearby or recently passed through the area. High if signs repeat or appear in multiple rooms. Inspect the surrounding cracks, seams, food sources, and travel paths.
Old or isolated evidence A past problem, accidental introduction, or inactive nesting site. Moderate until you confirm whether activity is current. Clean and mark the area, then recheck in 24 to 48 hours.
Multiple signs together A developing infestation rather than a one-off sighting. High because populations can spread before they are obvious. Start control steps immediately and consider professional inspection.

Drain flies are persistent pests, but they are also among the easiest to eliminate once you understand their biology. Unlike many household pests that require chemical treatments, drain fly control is primarily about cleaning. Remove their breeding habitat and the population collapses within two to three weeks.

Step 1: Identify the Breeding Drain

Before you start cleaning every drain in your house, narrow down which ones are actually producing flies. Use the tape test described in our drain fly identification guide:

  1. Place clear packing tape over each suspect drain, sticky side down
  2. Leave small gaps at the edges so air can still flow
  3. Check every 24 hours for two to three days
  4. Any drain producing flies will show adults stuck to the tape

This saves you significant effort and ensures you address the actual source.

Step 2: Mechanical Cleaning

Chemical products alone will not eliminate drain flies because the biofilm they breed in is resistant to most liquid cleaners. Physical removal is essential.

For Sink and Shower Drains

  1. Remove the drain cover or stopper
  2. Use a stiff-bristled drain brush (a long bottle brush works well) to scrub the inside walls of the drain pipe
  3. Push the brush as far down as you can reach, scrubbing in a twisting motion
  4. Pull out accumulated hair, soap scum, and organic debris
  5. Repeat until the brush comes out clean

For Floor Drains

  1. Remove the grate and clean it thoroughly
  2. Use a drain brush or a garden hose with a strong nozzle to clean the drain body
  3. Check the P-trap for standing water. If the trap is dry, fill it with water to restore the seal

Step 3: Follow Up with Enzymatic Treatment

After mechanical cleaning, apply an enzymatic drain cleaner to break down any remaining biofilm. These cleaners use beneficial bacteria and enzymes to digest organic matter without damaging pipes.

  1. Apply the enzymatic cleaner according to product directions
  2. Typically this means pouring it into the drain before bed and letting it work overnight
  3. Repeat nightly for five to seven consecutive nights
  4. Continue weekly applications for a month to prevent recolonization

Important: Do not use bleach or chemical drain cleaners as your primary treatment. While bleach will kill some larvae on contact, it runs through the drain too quickly to penetrate the biofilm and can damage pipes with repeated use.

Step 4: Boiling Water Flush

As a supplemental measure, pour a pot of boiling water down affected drains daily for a week. The heat helps loosen biofilm and kills eggs and larvae it contacts. This works best as a follow-up after mechanical cleaning, not as a standalone treatment.

Step 5: Address the Plumbing

If drain flies keep returning despite thorough cleaning, the problem may be deeper in your plumbing system:

  • Cracked or broken pipes: Soil and organic matter can enter through cracks, creating breeding sites you cannot reach with a brush. A plumber can inspect your lines with a camera.
  • Improper slope: Pipes that do not drain properly retain water and organic material.
  • Septic system issues: If you are on a septic system, the tank or distribution lines may need service.
  • Hidden leaks: Water leaking behind walls or under floors creates moist environments where biofilm can form on surfaces other than drains.

Natural Remedies

Several natural approaches can supplement your cleaning efforts:

Baking Soda and Vinegar

  1. Pour half a cup of baking soda down the drain
  2. Follow with half a cup of white vinegar
  3. Wait 15 minutes for the fizzing action to loosen buildup
  4. Flush with boiling water

This is a good maintenance technique but is insufficient on its own for established infestations.

Diatomaceous Earth

Food-grade diatomaceous earth sprinkled around the drain opening can kill adult drain flies that walk through it. The microscopic sharp edges damage their exoskeletons, causing dehydration.

Essential Oils

Some essential oils have insecticidal properties. Adding a few drops of peppermint or tea tree oil to your cleaning solution may help deter drain flies, though this should not be your primary control method.

Preventing Reinfestation

Once you have eliminated drain flies, prevent their return with these habits:

  • Run water through all drains weekly, including those in guest bathrooms and basements that see little use
  • Clean drains monthly with an enzymatic cleaner
  • Keep drain covers in place to prevent adult flies from accessing the pipes for egg-laying
  • Fix any leaks or moisture issues promptly
  • Maintain proper fly screens on windows to reduce adult flies entering from outside

Timeline for Results

With consistent treatment, here is what to expect:

  • Days 1 to 3: Adult flies continue to emerge from pupae already in the drain
  • Days 3 to 7: New adult emergence slows significantly
  • Days 7 to 14: Very few new adults appear
  • Days 14 to 21: Population should be eliminated

If you are still seeing drain flies after three weeks of consistent treatment, you likely have a breeding source you have not found or a plumbing issue that requires professional attention.

Commercial Settings

Restaurants and other food service establishments require more aggressive and systematic drain fly management due to the volume of organic waste entering their drainage systems. Commercial facilities should implement:

  • Daily drain cleaning schedules
  • Automated enzymatic dosing systems
  • Regular professional plumbing inspections
  • Documentation for health department compliance

For more information on comprehensive fly management, see our complete guide to flies.

Professional Insight

Drain fly elimination is one of the most satisfying problems to solve in my IPM practice because the results are predictable and reliable. Over 15 years, I have refined a protocol that resolves about 90 percent of drain fly cases within two weeks: mechanical cleaning with a stiff drain brush, followed by seven consecutive nights of enzymatic treatment. The ten percent that persist almost always involve damaged plumbing, and I always recommend a camera inspection before investing more time in surface treatments. I have found that clients who commit to weekly enzymatic maintenance after elimination rarely experience reinfestation.

Sources and References

Main Causes

Drain flies (Psychodidae) establish wherever a stable layer of organic biofilm forms in standing or slow-moving water. In residential settings, the primary breeding sites are the P-traps and drain walls of bathroom sinks, shower drains, floor drains, and kitchen sinks where food particles, hair, soap scum, and bacteria accumulate over weeks. The biofilm provides both nutrition and a stable moist substrate for larvae.

Secondary causes include infrequently used drains that lose their water seal, allowing flies access to dry organic residue further down the pipe, and plumbing defects including cracked pipes, failed drain connections, or condensate drip pans under HVAC equipment. Organic-rich moist soil in crawlspaces and sump pits can also support populations.

Any drain that runs slowly or pools water between uses is a potential breeding site. The combination of standing water and decaying organic material is the trigger; eliminating either stops the population.

Prevention

Once an infestation is eliminated, prevention requires denying drain flies both the biofilm and the access they need to breed. Flush all drains with hot water weekly, including those in guest bathrooms and utility rooms that see minimal use. Infrequently used drains lose their P-trap water seal; restore it by running the tap for 30 seconds weekly.

Apply enzymatic drain cleaner to kitchen and bathroom drains monthly. These products digest organic buildup that mechanical scrubbing cannot fully reach. Keep drain covers in place to block adult flies from accessing pipes for egg-laying.

Fix plumbing leaks promptly. Moisture under sinks, behind walls, or in crawlspaces creates the damp organic conditions drain flies need. A drain fly population that reappears after thorough cleaning almost always indicates a plumbing defect or an overlooked secondary breeding site such as a condensate pan or sump pit.

How to Identify

Identify the species before treating, because effective control depends on locating the correct breeding site. House flies are gray with four dark thoracic stripes and feed on garbage and feces. Fruit flies are tiny, tan or yellow with red eyes, and breed in fermenting produce or drain biofilm. Drain flies are fuzzy, moth-like, and emerge in small slow flights from drains. Blow flies are large and metallic blue or green and indicate a dead animal nearby. Phorid flies hover in jerky paths and breed in broken sewer lines under slabs. Cluster flies are slow and dark and overwinter in attics. Sticky cards placed near suspected sources for 24 to 48 hours both confirm the species and pinpoint the breeding zone.

Risk and Severity

Flies are mechanical disease vectors, picking up pathogens from feces, decomposing material, and garbage on their bodies and depositing them on food and surfaces. House flies in particular regurgitate digestive fluids when feeding, contaminating any surface they land on. Documented transmissible pathogens include Salmonella, E. coli, Shigella, and Campylobacter. Blow flies in homes signal a dead animal in or near the structure โ€” a secondary health concern from decomposition gases and additional pest activity around the carcass. Biting flies (horse flies, stable flies, black flies) deliver painful bites and can trigger allergic reactions; in some regions they transmit parasites or bacterial infections. Children, elderly, and immunocompromised individuals face elevated risk.

Solutions and Actions

Effective fly control requires locating and eliminating the breeding source โ€” adult-only treatments produce only temporary relief. For house flies: remove and seal garbage, clean pet waste daily, manage compost properly, and check for dead animals in wall voids or attics if blow flies are present. For fruit flies: discard overripe produce, clean drains with enzymatic cleaner weekly, rinse recycling, and empty kitchen compost containers daily. For drain flies: brush drain walls thoroughly and treat with enzymatic drain cleaner weekly for at least three weeks. For phorid flies: investigate for broken sewer lines or moisture intrusion under slabs. Adult control through sticky cards, UV light traps, and targeted residual sprays supplements but never substitutes for source elimination.

Frequently Asked Questions

How long does it take to completely get rid of drain flies?

With consistent treatment following the mechanical cleaning and enzymatic protocol, most drain fly populations are eliminated within 14 to 21 days. You will continue to see adult flies emerging from pupae for the first week or so, even after thorough cleaning. New adult emergence should slow dramatically by days 7 to 10 and stop entirely by day 21. If flies persist beyond three weeks, investigate for a secondary breeding source or plumbing damage.

Will bleach get rid of drain flies?

Bleach is not an effective primary treatment for drain flies. While it kills larvae on contact, bleach runs through the drain too quickly to penetrate the biofilm where eggs and larvae develop. Repeated bleach use can also damage plumbing seals and pipes. Mechanical scrubbing with a drain brush followed by enzymatic cleaners that specifically break down organic biofilm is far more effective and safer for your plumbing.

Can drain flies come from sources other than drains?

Yes. While drains are the most common breeding site, drain flies can also breed in any location where moist organic film accumulates, including air conditioning condensate drip pans, sump pump pits, leaky pipes behind walls, and septic system access points. If cleaning all accessible drains does not resolve the problem, investigate these alternative moisture sources as potential breeding sites.

Should unused drains be treated during drain fly control?

Use this clue as a prompt to recheck the source, not as a standalone diagnosis. For How to Get Rid of Drain Flies, compare where the flies appear, what food or moisture is nearby, and whether activity repeats after cleaning. If the same pattern returns within a few days, focus on the breeding site or entry route before adding more sprays, traps, or repellents.

Sources & Further Reading