Plumbing & Water Heaters

Drain Flies: Source Identification and Complete Elimination Guide

Drain flies — also called moth flies, sewer flies, or filter flies — are small (1/8 inch), fuzzy, moth-like insects that breed exclusively in the organic slime layer (biofilm) that coats the inside of drain pipes, p-traps, and sewer lines. They do not come from your food, garbage, or the air — they come from the drain itself. That distinction is important: spraying insecticide near the drain kills the adults temporarily but does nothing to the breeding biofilm, and the infestation returns within days. The only permanent fix is mechanically removing the slime layer from every drain where they're breeding. This guide walks you through identifying all source drains, cleaning them properly, and confirming the infestation is eliminated.

Try the AI Diagnosis Tool

Common Symptoms

  • Small fuzzy moth-like flies (1/8 inch, dark or gray) hovering near sinks, showers, tubs, or floor drains
  • Flies that move in slow, erratic patterns (not the fast straight-line flight of fruit flies)
  • Clusters of flies resting on walls or ceilings near drains — especially in the morning
  • Flies appear in bathrooms, laundry rooms, or basements more than kitchens
  • Infestation persists despite cleaning counters, removing garbage, and eliminating fruit
  • Tiny oblong eggs or pupae visible on the inner walls of drain openings when inspected with a flashlight

Most Likely Causes

  1. 1

    Slime Biofilm Inside Drain Pipes (Primary Breeding Site)

    Drain flies lay eggs exclusively in the gelatinous organic biofilm that builds up on the inner walls of drain pipes and p-traps. This biofilm is composed of decomposing organic matter: hair, soap scum, grease, toothpaste residue, and food particles. It coats the pipe walls even when water flows freely — water flows through the center while the slime adheres to the walls. Drain flies breed in this film regardless of drain flow speed, so a clear-running drain can support a large infestation.

  2. 2

    Rarely Used or Dry Drains (Floor Drains, Guest Bath, Utility Sink)

    P-traps in drains that are rarely used — basement floor drains, guest bathroom sinks, utility room drains — can dry out over time. A dry p-trap no longer creates a water seal against sewer gas and sewer fly access. Drain flies can then enter directly from the sewer system and breed in the dry biofilm left in the trap. Simply pouring water down infrequently used drains monthly prevents this, but an active infestation in a dry-trap drain also requires cleaning.

  3. 3

    Sewer Line or Leaking Pipe Joint in Crawl Space or Wall

    In rare cases, drain flies infesting an area with no obvious surface drain are actually breeding inside a cracked sewer pipe or leaking drain joint inside a wall or crawl space. The organic matter escaping from the pipe provides a breeding site. This scenario is more common in older homes with cast iron or clay drain lines. If you clean all accessible drains and the infestation continues, suspect a hidden source.

  4. 4

    Garbage Disposal Buildup

    The interior of a garbage disposal — especially the rubber splash guard flaps — accumulates organic buildup that is a prime drain fly breeding site. The splashguard has multiple rubber flaps that are rarely cleaned and build up grease and food residue on their underside. Drain flies can breed prolifically inside the disposal and under the splash guard without the infestation being visible from above.

Not sure if this is the right fix for your exact model?

Upload a photo of your appliance label — Repair Scout will identify your exact unit and tailor the diagnosis.

Quick DIY Checks

Caution

Do not use bleach, Drano, or caustic chemical drain cleaners to fight drain flies — these are ineffective against the biofilm (they flow through the pipe too quickly to contact the slime layer on pipe walls) and can damage PVC pipes, rubber p-trap gaskets, and garbage disposal components. Enzyme-based products and mechanical cleaning are the correct approach.

Caution

Unplug the garbage disposal before inserting your hand or any cleaning tool into the disposal chamber. The disposal's rubber splash guard can be removed and cleaned outside the sink — you do not need to clean it with your hand inside the unit.

  1. 1Step 1 — identify ALL source drains with the tape test: cut several strips of clear tape and cover each drain in your home loosely — leave gaps so air can still pass (you're not blocking the drain, just creating a sticky trap). Check the tape after 24–48 hours. Any drain with adult drain flies or eggs stuck to the underside of the tape is an active breeding site. Drain flies are weak fliers — they will fly up from the drain and get caught on the tape surface. Test every drain: kitchen sink, bathroom sink(s), shower, bathtub, floor drains, utility sink, laundry drain, and any other floor-level drain in the basement or garage.
  2. 2Step 2 — mechanically clean all confirmed source drains: once you've identified which drains test positive, clean each one thoroughly. The key is mechanical cleaning — physical removal of the biofilm — not chemical cleaning alone. Use a long flexible drain brush (a bottle brush on an extension works well) or a zip-it drain cleaning tool. Insert the brush into the drain and scrub the inner pipe walls with a twisting motion. Pull out as much slime and debris as possible. Then pour 1/2 cup of baking soda followed by 1/2 cup of white vinegar down the drain, wait 15 minutes, and flush with a full kettle of boiling water. Repeat the mechanical cleaning step a second time after the baking soda flush for best results.
  3. 3Step 3 — clean the p-trap: for sinks, place a bucket under the p-trap (the curved pipe section under the sink). Unscrew the slip-joint nuts on both sides of the trap and remove it. Clean the inside of the trap thoroughly with a brush, rinse it, and reinstall. The p-trap harbors some of the densest biofilm in the drain system — cleaning it is often the most impactful single step.

Want the complete repair checklist?

See all 6 steps + safety warnings + tool list + cost estimate. Save $150+ vs. a service call.

Review Pro — $1.00/mo

30-day money-back guarantee · Cancel anytime

Stop Paying $150+ Per Service Call

Get instant AI diagnosis for any home repair — plumbing, electrical, HVAC, appliances, and more.

  • Unlimited AI repair diagnoses
  • Step-by-step fix guides with tool lists
  • Cost & time estimates before you call a pro
  • 1,000+ appliance & system repair articles
  • Emergency repair guidance, 24/7

$1.00/mo — less than one service call trip charge

Review Monthly Pro — $1.00/mo

$1.00/month · Checkout continues to Stripe · Cancel anytime

Most homeowners save $150+ on their first repair

Repair vs Replace

✓ Worth Repairing

Drain fly infestations are a maintenance and cleaning problem, not a plumbing failure. No component replacement is needed in the vast majority of cases. The exception is if infestation persists after thoroughly cleaning all accessible drains — this can indicate a cracked sewer pipe or leaking drain joint inside a wall or crawl space that is providing a hidden breeding site. A plumber with a drain camera can inspect the line and identify any structural issue.

Est. Repair Cost

$0–$40 for drain cleaning tools and enzyme gel products

Est. Replacement Cost

N/A — drain fly infestations do not require plumbing replacement

Recommended Tools & Parts

  • Flexible Drain Brush / Pipe Cleaning Brush Set

    Long flexible brushes for scrubbing drain pipe interiors. Essential for mechanically removing the biofilm that drain flies breed in. Look for sets with multiple brush head diameters — sink drains are typically 1.5 inches, tub drains 2 inches.

    $8–$18

    Buy on Amazon →
  • Zip-It Drain Cleaning Tool

    Thin flexible plastic barbed tool for pulling hair, slime, and debris out of drains. Effective for surface-level drain cleaning and removing the physical breeding medium. Disposable after use — dirt cheap.

    $3–$8

    Buy on Amazon →
  • InVade Bio Drain Gel (Enzyme Drain Fly Treatment)

    Enzyme-based gel formulated specifically to digest drain biofilm — the breeding material for drain flies. Unlike bleach or chemical cleaners, the gel clings to pipe walls and continues digesting organic matter over days. Apply every 3–5 days for 2 weeks to break the breeding cycle. Widely considered the most effective OTC drain fly treatment.

    $18–$30 per quart (treats many drains)

    Buy on Amazon →
  • TERRO Fruit Fly Trap (Adult Fly Capture — Optional)

    Apple cider vinegar-based trap that captures adult drain flies and fruit flies. Useful for confirming which drains are infested and for reducing adult fly counts while drain cleaning is underway. Does not address the breeding source — use alongside drain cleaning, not as a standalone treatment.

    $6–$12 for 2-pack

    Buy on Amazon →

Links are Amazon affiliate links (tag: fixitfastai-20). Prices are estimates.

Still stuck? Let AI take a look.

Describe your problem or upload a photo — get a diagnosis in seconds.

Related Repair Guides

This section combines editorial `relatedSlugs` from the article source with metadata-based matches so each guide links deeper into the repair library.

Shower Drain Draining Slowly

Shower taking forever to drain? Hair and soap scum buildup just below the grate is the most common cause — cleared in 20 minutes with a Zip-It tool and no chemicals.

Read guide →

Bathroom Sink Slow Drain — How to Clear a Sluggish Bathroom Sink in 20 Minutes

Bathroom sink draining slowly? Hair, soap scum, and toothpaste buildup in the P-trap and pop-up stopper are almost always the cause — clear it yourself in 20–30 minutes with no special tools.

Read guide →

Kitchen Sink Clogged: How to Clear Grease, Food, and Standing Water

Kitchen sink not draining? Grease, food scraps, and soap buildup are the most common causes — learn how to clear the clog with a plunger, drain snake, or p-trap cleaning before calling a plumber.

Read guide →

Washing Machine Drain Clogged: Diagnosis and Step-by-Step Fix

Washing machine not draining, leaving clothes soaking wet, or backing up water onto the floor? A clogged drain hose, pump filter, or standpipe blockage is the likely culprit — most are DIY-fixable in under an hour.

Read guide →

Bathtub Drain Not Draining — Slow or Completely Clogged Drain

Bathtub draining slowly or completely backed up? Covers pop-up stopper hair clogs, trip-lever linkage adjustment, drain snake procedure, P-trap buildup, and chemical vs. mechanical clearing — plus venting issues causing slow drain.

Read guide →

Shower Drain Clogged or Draining Slowly

A shower drain that backs up or drains slowly is usually a hair-and-soap clog at the cover, drain body, or P-trap.

Read guide →

Keep Exploring

Stop Paying $150+ Per Service Call

Get instant AI diagnosis for any home repair — plumbing, electrical, HVAC, appliances, and more.

  • Unlimited AI repair diagnoses
  • Step-by-step fix guides with tool lists
  • Cost & time estimates before you call a pro
  • 1,000+ appliance & system repair articles
  • Emergency repair guidance, 24/7

$1.00/mo — less than one service call trip charge

Review Monthly Pro — $1.00/mo

$1.00/month · Checkout continues to Stripe · Cancel anytime

Most homeowners save $150+ on their first repair

Still not sure what's wrong?

Get an AI diagnosis in seconds — describe the problem or upload a photo.

Get an AI Diagnosis

⚡ Get step-by-step help for YOUR specific appliance

Our AI diagnoses your exact model — not just generic advice. Upload a photo or describe the issue and get a repair plan in seconds.

No account needed for diagnosis. Cancel Pro anytime.

Related Tools

Frequently Asked Questions

How long does it take to get rid of drain flies?
With thorough mechanical cleaning of all infested drains followed by enzyme gel treatment, most infestations are eliminated within 1–2 weeks. The drain fly life cycle from egg to adult is 8–24 days depending on temperature — you may see adult flies for up to 2 weeks after cleaning the drains as pre-existing eggs and pupae hatch. The population should noticeably decline within 3–5 days of cleaning if all source drains were treated. If the infestation shows no decline after 2 weeks of cleaning, there is likely an untreated source drain (a floor drain, crawl space drain, or hidden pipe leak) that needs attention.
Do drain flies bite or carry disease?
Drain flies (Psychoda alternata) do not bite humans and are not known vectors of human disease. They are a nuisance infestation only. However, in extremely large infestations, they have been rarely associated with bronchial asthma and myiasis (tissue infestation) in immunocompromised individuals — these are uncommon scenarios. The primary concern is eliminating them for comfort and hygiene.
Are drain flies the same as fruit flies?
No. Drain flies (Psychoda alternata) and fruit flies (Drosophila melanogaster) are different insects. Drain flies are small, fuzzy, and moth-like with rounded wings held flat over their body — they fly slowly and erratically. Fruit flies are smooth, tan/orange-brown with red eyes, and fly in fast straight lines. Fruit flies breed in rotting fruit, fermented beverages, and garbage; drain flies breed only in drain biofilm. The trap test and habitat confirm which you have. Both can be present simultaneously.
I've cleaned the drain three times and they keep coming back — what am I missing?
Persistent re-infestation almost always means one of three things: (1) there is a drain you haven't treated — the most common missed sites are basement floor drains, crawl space drains, the garbage disposal splash guard, and the overflow hole in bathroom sinks (that small oval hole near the top of the basin that connects to the drain — it accumulates biofilm and is virtually never cleaned); (2) you're cleaning with chemicals only instead of mechanical brush cleaning — bleach and boiling water don't remove the biofilm layer; (3) there is a cracked sewer pipe or leaking joint in the wall or crawl space providing a hidden breeding site — this requires a drain camera inspection by a plumber.