Odors and household pests

How to get rid of drain flies: scrub out the slime they breed in

To get rid of drain flies, find which drain they come from with a strip of tape, then pull the stopper and scrub the inside of the pipe with a stiff drain brush to remove the slimy film their larvae live in. Flush with hot water and follow with an enzyme drain cleaner for a week or two. Bleach poured down the drain does not fix it.

Written by BroombookPublished 8 steps Moderate

As an Amazon Associate, Broombook earns from qualifying purchases.

At a glance

Time
30 to 45 minutes per drain, plus 1 to 3 weeks of follow-up
Difficulty
Moderate
How often
Scrub problem drains monthly; brush and flush rarely used drains every few weeks

What you need

  • Clear packing tape
  • Rubber gloves
  • Long, stiff drain brush
  • Plastic barbed drain snake
  • Bucket and old towels (if you remove the trap)
  • Enzyme or bacterial drain cleaner
  • Flashlight
Products that help
On this page

Step by step: how to get rid of drain flies

Safety first. Wear gloves; drain slime carries bacteria. Never follow a lye or other caustic drain cleaner with bleach, because the mix can release chlorine gas, and never combine different drain products in the same pipe. Do not pour insecticide down a drain.

  1. 1

    Find the drain they come from

    Stick a strip of clear packing tape across each suspect drain overnight, leaving a small gap so air can move. Check it in the morning: flies stuck to the underside show which drain is breeding them. Test sinks, tubs, showers, floor drains and the overflow holes too.

  2. 2

    Pull the stopper and clear the opening

    Remove the pop-up stopper, strainer or drain cover and clean off the hair and gray gunk you find on it. Use a flashlight to look down the pipe: a brown or black slimy coating is what you are after.

  3. 3

    Scrub the inside of the pipe

    Push a long, stiff drain brush down as far as it will go and scrub with a twisting motion for a few minutes. Do the same in the sink overflow hole. You should pull up dark slime on the bristles; keep going until the brush comes up mostly clean.

  4. 4

    Snake or open the trap if it is slow

    If the drain is slow or the brush will not reach, run a plastic barbed drain snake through it to pull out hair and sludge. Under a sink you can also put a bucket below the U-shaped trap, unscrew the slip nuts by hand, and scrub the trap clean before refitting it.

  5. 5

    Flush with hot water

    Run hot tap water for two to three minutes, or pour in a kettle of hot water, to carry away the loosened film. Water alone does not remove the slime, which is why the scrubbing comes first.

  6. 6

    Treat with an enzyme cleaner

    Pour an enzyme or bacterial drain gel down the clean drain at night, when the drain will sit unused, following the label for the amount. Most need repeat doses over one to several weeks to digest the film that remains deeper in the pipe.

  7. 7

    Check the other wet spots

    Drain flies also breed in the refrigerator drip pan, air conditioner condensate pans, sliding door tracks and wet grout under cracked tiles. Clean and dry any of these that stay damp.

  8. 8

    Remove adults and keep monitoring

    Swat or vacuum the adults resting on walls; they are weak fliers and easy to catch. Keep a tape strip over the treated drain for two to three weeks. If new flies still get stuck, scrub that drain again.

Are they drain flies, fruit flies or fungus gnats?

Drain flies are fuzzy, gray and moth-shaped and sit still on bathroom walls; fruit flies are tan with red eyes and hover around food; fungus gnats are slim and black and stay near plants. All three can turn up near a sink, so look closely.

Ohio State University’s fact sheet describes adult drain flies as about 1/5 to 1/6 inch long, with the body and wings densely covered in hair and wings held roof-like or out flat, and says they fly in short, jerky hops of a few feet. They are most active in the evening around sinks and drains.

Fruit flies can breed in drains too. The University of Kentucky lists drains and garbage disposals among fruit fly breeding sites and suggests taping a clear plastic bag over the opening overnight to check. The cleanup is the same: scrub out the film. If you see fruit flies mainly around produce and trash, follow how to get rid of fruit flies; if they come from plant pots, see how to get rid of fungus gnats. For a side-by-side table of all three, read our guide to gnats in the house.

Why don’t bleach or boiling water kill drain flies?

Because the larvae live inside a sticky film on the pipe walls, and liquids poured from above run past it in seconds. The film has to be scraped or digested away.

Ohio State notes that bleach does not seem to rid pipes of the scum and that drain fly larvae are surprisingly resistant to it. It recommends enzyme products designed to break the bond the bacterial film forms on pipes, or mechanical cleaning with a stiff brush and a snake, followed by a flush. Texas A&M AgriLife agrees that bleach and drain cleaners are largely ineffective on these films and that bacterial drain products usually need repeat treatments over several weeks.

MethodDoes it work?Why
Stiff brush and snakeYes, the main fixPhysically removes the film where eggs and larvae live
Enzyme or bacterial drain gelYes, as a follow-upDigests leftover film deeper in the pipe over days to weeks
Hot water flushOnly after scrubbingCarries away loosened slime but does not remove it alone
BleachRarelyRuns past the film; larvae tolerate it
Bug spray or foggerAdults onlyDoes nothing to larvae in the pipe

What if drain flies keep coming back?

Then they are breeding somewhere you have not cleaned, often a drain nobody uses, a floor drain or a plumbing fault. Check these before you scrub the same sink again.

  • Basement floor drains and laundry standpipes, which collect lint and stay damp
  • The overflow channel of a bathroom sink or tub, which most people never clean
  • Guest bathroom drains used once a month, where the film sits undisturbed
  • Refrigerator and air conditioner drip pans
  • A broken drain or sewer line under a slab, which Texas A&M notes can feed heavy indoor fly problems and needs a plumber with a camera

Do not pour insecticide into drains. Ohio State says no insecticides are registered for use in drains or sewer systems, and doing so can harm sanitation systems. If you use a flying insect spray for adults, check that its label covers indoor use near sinks; the EPA explains that following the label is a legal requirement. Our guides to cleaning a shower drain and cleaning a sink drain cover routine drain care.

Mistakes to avoid

  • Pouring bleach down the drain and waiting, while the slime and larvae stay put.
  • Mixing bleach with a lye-based drain cleaner, which can release chlorine gas.
  • Cleaning only the drain opening and never the sink overflow or the pipe below the stopper.
  • Using a single dose of enzyme cleaner and stopping; it usually takes repeat doses.
  • Sealing the drain completely with tape for the test, which stops flies from coming up.
  • Pouring insecticide down the pipe, which is not a labeled use.

Products that make this easier

Optional. Everything above works with basic supplies; these just save time or effort.

  • Enzyme follow-up

    Zep Drain Defense Enzymatic Drain Cleaner

    Enzymes digest the organic film inside the pipe that drain fly larvae feed on. It is slow, so use it after scrubbing and repeat as the label directs.

    See it on Amazon
  • Septic-safe option

    Bio-Clean Drain Septic Bacteria

    A powdered bacterial treatment that is mixed with water and poured in at night. Good for homes on septic; it takes several weeks of regular use.

    See it on Amazon
  • Pulls out hair and sludge

    FlexiSnake Drain Weasel

    A barbed plastic wand that grabs hair and gunk below the stopper without taking the pipe apart. The barbed tips get messy, so have a trash bag ready.

    See it on Amazon
  • Scrubs the pipe walls

    Long flexible drain cleaning brush

    Stiff bristles on a bendable wire reach into the pipe and overflow to scrape the film off. Rinse and dry it between drains.

    See it on Amazon

As an Amazon Associate, Broombook earns from qualifying purchases. Links open the product on Amazon, where sizes, sellers and prices change.

FAQ

Frequently asked questions

Are drain flies harmful?

Drain flies do not bite, but they come from filthy films in pipes, so they can carry bacteria onto surfaces. Ohio State also notes that dust from large numbers of dead flies can bring on asthma.

What is the difference between drain flies and sewer flies?

They are the same insect, also called moth flies or drain gnats. The names describe where they breed: drains, sewers and septic systems.

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

Their life cycle takes one to three weeks, so expect to see some adults for about two to three weeks after a thorough scrub and enzyme treatment.

Can I use baking soda and vinegar for drain flies?

The fizz does not scrape the film off the pipe, so it will not clear the larvae on its own. A stiff brush followed by an enzyme cleaner works far better.

Why do I have drain flies in a drain I never use?

Unused drains let film build up undisturbed, and the flies breed there quietly. Scrub the drain, then run water through it every week or two.

Sources

  1. Ohio State University: Drain flies (moth flies), ENT-41
  2. Texas A&M AgriLife Extension: Indoor flies and their control
  3. University of Kentucky Entomology: Fruit Flies (ENTFACT-621)
  4. US EPA: Introduction to pesticide labels

General cleaning information. Always follow the care label and your manufacturer’s instructions, and test any cleaner on a hidden spot first.