Drains

How to Get Rid of Drain Flies for Good

Michelle HertBy Michelle Hert, Home Cleaning Product ResearcherUpdated 11 min read

Heads up: this article contains affiliate links, and we may earn a commission at no extra cost to you (details). Prices were checked on the official site and can change.

Bathroom sink drain under a faucet
Quick answer Drain flies breed in the slimy buildup inside drains, so the fix is cleaning the drain, not spraying the flies. To get rid of them:
  • Find the drain they're coming from (tape test).
  • Scrub out the gunk with a pipe brush or plastic drain snake.
  • Break down the remaining film with a drain cleaner made for organic buildup.
  • Flush unused drains with hot water every few days.
  • Repeat for 1 to 2 weeks to catch new hatches.
A foaming cleaner like SavingStars reaches the film deeper in the pipe: pour, add hot water, wait 20 minutes, flush.

They're tiny, fuzzy, gray or black, and they hold their wings like little moths. You find them resting on the bathroom wall, hopping around the shower or hovering over the kitchen sink. Kill a few, and more appear the next day. These are drain flies, also called moth flies, and they are one of the most common bathroom pests in American homes.

Drain flies don't bite and aren't known to spread disease to people, but they're a sign that something is growing in your pipes. This guide explains where they come from, how to confirm which drain is the source, and the cleaning routine that gets rid of them for good.

What are drain flies?

Drain flies are small flies, about 1/8 inch long, with fuzzy bodies and hairy, leaf-shaped wings. Ohio State University Extension describes them as weak fliers that often appear suddenly in bathrooms and kitchens. They tend to rest on walls near drains and make short, jerky hops when disturbed.

Their larvae live in the gelatinous film that coats the inside of drains, overflow holes, garbage disposals and sewer traps. That film is a mix of hair, soap scum, food residue and bacteria. The larvae feed on it, grow, and emerge as adults, so as long as the film is there, the flies keep coming.

How do you tell drain flies from fruit flies and gnats?

InsectLooks likeWhere you see itBreeds in
Drain flyFuzzy, gray, moth-like wings held flatBathroom walls, near drainsDrain film, overflow holes
Fruit flyTan body, often red eyesAround fruit, trash, recyclingRipe fruit, spills, garbage
Fungus gnatThin, dark, long legsAround houseplants, windowsDamp potting soil
Phorid flyHumpbacked, runs on surfacesKitchens, basementsDecaying organic matter, broken pipes

If the insects cluster near sinks and showers and look fuzzy, they're almost certainly drain flies.

How do you find which drain they come from?

Drain flies can come from any drain in the house, including the one you rarely use. Penn State Extension suggests covering suspect drains and checking for adults. The simplest version is the tape test:

  1. At night, place a strip of clear packing tape loosely over each drain opening, sticky side down, leaving a small gap for air.
  2. Do the same for sink overflow holes.
  3. Check the tape the next morning. Flies emerging from that drain will be stuck to it.
  4. Repeat for 2 to 3 nights to be sure.

Don't forget floor drains, basement sinks, laundry drains, a dishwasher air gap, and guest bathrooms. Unused drains are classic breeding spots because the water in the trap sits still and the film grows undisturbed.

How do you clean a drain to get rid of drain flies?

The goal is to physically remove the film the larvae live in. Here's the routine:

  1. Remove the drain cover or stopper and clean it thoroughly. Hair and slime collect on the underside.
  2. Scrub inside the drain with a long, stiff pipe brush, as deep as it reaches. Twist and pull it out several times.
  3. Pull out hair with a plastic drain snake, especially in showers and bathroom sinks.
  4. Clean the overflow hole in sinks and tubs with a small bottle brush. Flies often breed there.
  5. Treat the drain with a drain cleaner designed to break down organic buildup, following the label.
  6. Flush with plenty of hot tap water.

Washington State University recommends removing the organic slime layer and debris rather than using insecticides, which don't reach the larvae inside the film. Pouring bug spray down a drain doesn't solve the problem and isn't recommended.

SavingStars foaming drain cleaner how it clears buildup
Foam expands into the pipe to break down hair, grease and soap scum.

Why does a foaming drain cleaner help?

A brush only reaches the first few inches of pipe. The film continues past the bend, where liquids simply run past it. A foaming drain cleaner expands to fill the pipe and stays in contact with its walls longer.

SavingStars is a foaming drain cleaner powder designed for hair, grease, soap scum and food buildup. According to the brand, you pour it into the drain, add about 1 liter (roughly 4 cups) of hot water, wait 20 minutes and flush. The brand says it's non-corrosive and safe for PVC, metal pipes and septic systems, so it can be used regularly, which matters with drain flies since you'll want to treat the drain more than once. It costs $12.99, or as little as $6.99 each in bundles. Read our SavingStars review, where we rate it 4.4/5.

SavingStars Drain Cleaner

Clear the film drain flies breed in

SavingStars foaming drain cleaner for hair, grease and soap scum: pour, add hot water, wait 20 minutes, flush. $12.99, or from $6.99 each in bundles, with a 30-day refund guarantee.

Check today's price →

$12.99, or from $6.99 each in bundles

How do you get rid of the adult flies?

Adults only live about two weeks, and they'll disappear once they stop hatching. In the meantime:

  • Swat or vacuum them off walls. A handheld vacuum works well.
  • Set a simple trap: a small bowl with water, a little sugar or vinegar, and a drop of dish soap near the drain.
  • Use sticky traps near the source, out of reach of children and pets.
  • Run the bathroom fan to dry the room, which makes it less inviting.

Traps alone won't solve the problem. If you keep catching flies after a week of drain cleaning, there's another source you haven't found yet.

How do you treat a shower or tub drain with drain flies?

Shower and tub drains are the most common source in bathrooms because they collect hair and soap scum every day. Remove the drain cover with a screwdriver if it's screwed in, or lift it out if it's a pop-up. Pull out all visible hair with a plastic drain snake, which usually brings up a gray, slimy clump that's exactly where the larvae live. Scrub the opening with a pipe brush, then treat the drain with a foaming cleaner and flush with hot water. Don't forget the tub's overflow plate: unscrew it and scrub behind it, since flies breed there too. If the drain is also slow, our guide on how to unclog a bathtub drain walks through the next steps. Install a hair catcher afterwards so the film doesn't build back up as quickly.

Which drain fly remedies don't work?

  • Bug spray on the walls: it kills a few adults but not the larvae inside the pipe.
  • Pouring bleach down the drain: it tends to run straight past the slime layer, and it's dangerous if another product is already in the pipe.
  • Boiling water alone: it may kill some larvae near the top, but it doesn't remove the film, and boiling water can damage PVC joints and porcelain.
  • Baking soda and vinegar: the fizz looks impressive, but the two mostly neutralize each other. See does baking soda and vinegar unclog drains?
  • Only setting traps: traps catch adults while new ones keep hatching.

What works is boring but reliable: remove the film physically, treat what's left, and repeat until no new flies appear.

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

Most homes see a big drop within a few days of a thorough drain clean, and the flies are usually gone within one to two weeks. Eggs and larvae deeper in the pipe can keep hatching for a little while, so repeat the cleaning every few days for two weeks, then switch to monthly maintenance. If you're still seeing many flies after two weeks, check every drain again with the tape test.

What about drain flies in the kitchen sink?

In the kitchen, the film is usually grease and food residue. Clean the sink strainer, the underside of the disposal splash guard (the rubber flaps), and the drain itself. Run the disposal with cold water and ice to knock off buildup, then flush with hot water. Avoid pouring grease down the sink at all. If your kitchen drain smells too, our guide on why kitchen sinks smell and how to fix a smelly garbage disposal will help.

What if the drains are clean and the flies are still there?

Sometimes the source isn't a regular drain. Check:

  • Floor drains in basements, laundry rooms and garages.
  • Sump pits and condensate lines from air conditioners or furnaces.
  • Leaks under sinks or around the base of the toilet, where water soaks into wood or drywall.
  • Dry traps in unused drains, which can let flies come up from the sewer line.
  • A damaged sewer pipe under the slab or in a crawl space.

Pour water into unused drains to refill the trap. If you suspect a leak or broken pipe, call a plumber.

How do you keep drain flies from coming back?

  • Clean drain covers and stoppers every week or two.
  • Treat bathroom and kitchen drains monthly with a foaming cleaner.
  • Run water in guest bathroom sinks and showers a couple of times a week.
  • Use hair catchers in showers.
  • Keep grease out of the kitchen sink.
  • Fix leaks and dry out damp areas quickly.
  • Ventilate bathrooms so walls and grout dry between showers.

Most of these habits also prevent clogs. See our full guide on how to prevent clogged drains.

Are drain flies harmful?

Drain flies don't bite or sting, and they're mainly a nuisance. Because they come from dirty drains and can walk on surfaces, it's still sensible to get rid of them promptly, especially in kitchens. Some people with allergies may react to large numbers of them. The bigger concern is what they tell you: buildup in your drains that can also cause slow drains and odors.

What safety rules should you follow?

  • Never mix drain products or follow one with another without flushing well. Health Canada warns that mixing cleaning products can release toxic gases.
  • Don't pour insecticides into drains.
  • Wear gloves when scrubbing drains; the film is dirty.
  • Keep all products away from children and pets.

The bottom line

Drain flies are a drain problem, not a fly problem. Find the source with the tape test, scrub out the slimy film, treat the drain to break down what's left, flush unused drains regularly and repeat for two weeks. The adults die off on their own once nothing new hatches.

Our pick for regular drain treatment is SavingStars. Check today's SavingStars price.

Sources

Frequently asked questions

What causes drain flies?

Drain flies breed in the slimy film of hair, soap scum, grease and bacteria inside drains, overflow holes and disposals. As long as the film is there, they keep hatching.

How do I know which drain the flies come from?

Tape clear packing tape loosely over each drain and overflow hole at night. Flies emerging from that drain will be stuck to the tape in the morning.

What kills drain flies in the drain?

Removing the film kills the larvae: scrub the drain with a pipe brush, pull out hair, then treat it with a drain cleaner made for organic buildup and flush with hot water.

Does bleach get rid of drain flies?

Bleach tends to run past the film without removing it. Physical scrubbing and a cleaner that breaks down buildup work better. Never mix bleach with other products.

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

Most homes see a big drop within days and are clear in one to two weeks. Repeat the drain cleaning every few days for two weeks.

Are drain flies harmful?

They don't bite and are mainly a nuisance, but they signal buildup in your drains, which can also cause odors and slow drains.

Michelle Hert, Home Cleaning Product Researcher

Michelle Hert

Home Cleaning Product Researcher

Michelle looks into the cleaning products that go viral in ads, from toilet foams to mini vacuums and drain cleaners. She reads the product pages, checkout and return policies, trusted safety sources and buyer feedback so you know what a product really does before you buy it. Her reviews are built on manufacturer information, official checkout and return policies, trusted safety sources and buyer feedback, and are updated when offers change. More about Michelle.