You are currently viewing How to Get Rid of Drain Flies at Home: Source Removal and Prevention

How to Get Rid of Drain Flies at Home: Source Removal and Prevention

A simple, step-by-step guide to finding where drain flies breed, cleaning it out with a brush and hot water, and keeping them from coming back.

You walk into the bathroom and see a few tiny, fuzzy flies resting on the wall near the shower. They look like little moths. When you try to swat one, it flutters a short way and lands again. A week later, there are more.

These are almost always drain flies. They are also called moth flies, sink flies, filter flies or sewer flies. They are common in American homes, especially in bathrooms and kitchens.

Here is the most important thing to know: drain flies are a cleaning problem, not a spraying problem. University bug experts agree on this. Virginia Tech’s extension service says that seeing drain flies usually means a drain is slow or clogged and needs to be cleaned. Iowa State University says the only effective way to get rid of drain flies growing in a drain is to clean the inside of the pipe.

That is good news if you prefer to avoid harsh chemicals. The real fix uses a brush, hot water and a little patience. Bug sprays only kill the adults you can see, and new ones keep coming out of the drain.

In this guide you will learn:

  • How drain flies live, and why the drain is the key
  • How to tell drain flies apart from look-alike bugs
  • A simple overnight test to find which drain they come from
  • How to clean a drain the right way, step by step
  • What to do if the problem is a leak or a broken pipe
  • A 3-week plan to clean up and check your progress

Know Your Enemy: How Drain Flies Live

Drain flies belong to a fly family called Psychodidae. Adults are about 1/8 of an inch long. Their bodies and wings are covered with tiny hairs, which makes them look fuzzy. When they rest, they hold their wings over their back like a little roof.

The secret to beating them is the slime inside your drains. Over time, a gooey layer builds up on the inside walls of pipes. It is made of soap scum, hair, skin oils, food bits and bacteria. Experts call it a gelatinous film or biofilm. To a drain fly, it is a perfect nursery and food supply.

Female drain flies lay their eggs in clumps on this slime. The babies (larvae) live and feed in it until they are ready to become adults.

StageHow long it lastsWhere it happensHow you stop it
EggAbout 2 daysOn the slime inside drains and overflow pipesScrub the slime away
Larva (a tiny gray worm)About 9 to 15 daysLiving and feeding in the slimeScrub the slime away
Pupa (resting stage)About 20 to 40 hoursIn or on the slimeScrub the slime away
Adult flyLives about 2 weeksResting on walls near drainsRemove the source; adults die off

Notice something? Three of the four stages live in the slime. That is why cleaning the slime is the real fix. Look at how the time adds up:

Source: Oklahoma State University Extension (moth fly life cycle). Times are typical ranges and change with temperature and conditions.

The whole cycle, from egg to adult, usually takes about 1 to 3 weeks. Most of that time, the young flies are hiding in the drain slime as larvae. You never see them. You only see the adults that come out.

One more surprising fact: drain fly larvae are hard to drown. Virginia Tech notes that they can trap air bubbles and stay underwater for a day or more. That is one reason why simply pouring water down the drain does not wipe them out.

Are drain flies harmful?

Adult drain flies do not bite, and they do not damage your pipes. But Clemson University notes that they may carry bacteria from the places they breed to places where people are. So it is still smart to get rid of them, especially in the kitchen.

Is It Really a Drain Fly? Check First

Several tiny flies show up in homes. Each one comes from a different source, so a wrong guess wastes your effort.


Drain flyFruit flyFungus gnatPhorid fly
What it looks likeFuzzy, gray or brown, like a tiny mothTan body, red eyesThin, dark, long legs, like a tiny mosquitoSmall, humpbacked, tan or black
How it movesShort, jumpy hops; often sits on wallsHovers around foodWeak, zig-zag flight near plantsOften runs fast on surfaces instead of flying
Where you see itBathroom and kitchen walls near drainsFruit bowl, trash, recyclingHouseplants, windowsDrains, trash, sometimes in large numbers
Where babies growSlime inside drainsRotting food, drain filmWet potting soilRotting matter, sometimes a broken sewer pipe
Main fixScrub the drainRemove food + trapsLet soil dry outFind the rotting source; check for plumbing leaks

If the flies are fuzzy, rest on the walls near your sink or tub, and flutter only a short way when you disturb them, you are dealing with drain flies. Keep reading.

Step 1: Find Which Drain They Come From

You can’t clean the right drain until you know which one it is. Drain flies often come from a drain you rarely use, like a guest bathroom sink, a basement floor drain, or the overflow hole in a bathtub. Luckily, there is an easy overnight test.

The tape test

Virginia Tech’s extension service recommends this simple check:

  1. In the evening, dry the area around the drain.
  2. Put a strip of clear packing tape over the drain opening, sticky side down.
  3. Leave it overnight.
  4. In the morning, peel the tape off and look at the sticky side.

If you see tiny flies stuck to the tape, that drain is very likely a breeding spot. One or two flies could also be adults that landed from the room, so flies on the tape night after night is the strongest sign. Mark the drain and test the next one.

Other ways to do the same test:

  • Cover the drain with plastic wrap or a clear plastic bag taped down at the edges. Iowa State University says flies breeding in that drain will collect under the plastic within a day or two.
  • Smear a thin layer of vegetable oil or petroleum jelly inside a clear plastic cup. Turn it upside down over the drain overnight. Flies that come up will stick to the inside.

If a drain shows no flies the first night, try it for a few more nights before you rule it out. Flies don’t come out of the drain every single night.

Test every drain, and check these hidden spots

Check hereWhy
Bathroom sink and its overflow holeSlime builds up between the overflow and the main drain
Tub and shower drains, including the tub overflowHair and soap scum make thick slime
Kitchen sink and garbage disposalFood bits feed the slime
Basement, laundry and garage floor drainsOften slow, dirty and forgotten
Sinks and tubs you rarely useSlime sits undisturbed for weeks
Under sinks, around the P-trap (the U-shaped pipe) and dripping pipesConstant moisture and gunk. Run water, then feel the pipe joints with a dry paper towel for drips
Refrigerator drip pan, AC drip pansStanding water with organic matter
Crawlspace or under a concrete slabA broken pipe can leak waste water where you can’t see it

Step 2: Clean the Drain the Right Way

This is the main fix. Remember, the eggs, larvae and pupae all live in the slime. When the slime is gone, they have nowhere to live.

You will need: rubber gloves, a stiff, bendable drain brush or pipe brush (a few dollars at a hardware store), an old toothbrush, a bucket, and hot water. An enzyme or bacterial drain cleaner is optional.

How to do it

  1. Put on gloves. Drain slime is full of bacteria.
  2. Take out the stopper or strainer. Scrub it clean with hot, soapy water and the toothbrush.
  3. Scrub inside the pipe. Push the drain brush down as far as it goes. Twist it and move it up and down to scrape the slime off the pipe walls. Rinse the brush and repeat until it comes out clean.
  4. Clean the overflow hole. Cornell University’s extension says to pay special attention to the area between the overflow drain and the main drain. Push a small brush into the overflow opening and scrub.
  5. Clean the U-shaped trap under the sink if it is very dirty. Put a bucket under it, unscrew the two nuts, take the trap off, and scrub it out. Then screw it back on snugly. If you are not comfortable doing this, a plumber can do it quickly.
  6. Rinse with hot water. Virginia Tech says hot water gives short-term help by killing larvae on the surface of the slime. It does not replace scrubbing. Pour slowly to avoid splashes and burns, and keep kids and pets away. Use hot tap water rather than boiling water if your pipes are plastic, if the sink has a garbage disposal, or if you are not sure what your pipes are made of.
  7. Add a biological drain cleaner (optional). These products use helpful bacteria or enzymes to digest the gunk. Washington State University suggests pouring it in at the end of the day and letting it sit overnight. Follow the label.
  8. Repeat. Scrub the drain again every few days for the next two weeks. Some larvae hide deep in the pipe, and a few rounds of cleaning catches the ones you missed.

What NOT to do

  • Don’t count on bleach or vinegar. Virginia Tech says pouring bleach or vinegar down the drain is not recommended because it is not very effective. The liquid rushes past the slime.
  • Never mix bleach with ammonia, vinegar or other cleaners. The mix can give off toxic gas.
  • Never pour bug spray or other insecticides down a drain. Virginia Tech is clear about this. It doesn’t solve the problem and it pollutes the water.
  • Don’t rely on baking soda and vinegar. The fizzing looks busy, but it does not scrub the pipe. If you like, use it before brushing to loosen gunk, but the brush does the real work.

Utah State University explains why shortcuts fail: the larvae hide behind the scum, so boiling water, pesticides and other chemicals usually don’t reach them. Scrubbing does.

Step 3: Fix Leaks and Moisture Problems

Sometimes you clean every drain and the flies keep coming. Then the problem is probably hidden moisture.

Iowa State University says drain flies can also breed in other places that stay wet and dirty, like under dripping pipes and refrigeration equipment. Utah State adds that they can breed around broken pipes under slabs or in crawlspaces, then come into the house through floor cracks.

Here is what to check:

  • Slow drains: A slow drain keeps water and gunk sitting in the pipe. Clear it with a brush or a drain snake, or call a plumber.
  • Dripping pipes under sinks: Tighten or fix them, then dry and clean the cabinet.
  • Drip pans: Empty and wash the pans under your refrigerator, dehumidifier and air conditioner.
  • Crawlspaces and slabs: If you see flies coming up from floor cracks, notice a sewer smell, or have damp spots, call a plumber. A broken sewer line can feed huge numbers of flies, and no amount of sink cleaning will fix it.

Step 4: Deal With the Adults You Can See

Adult drain flies live about two weeks. Once you remove the slime, no new adults can grow, and the ones you see will die off on their own. While you wait, you can reduce their numbers:

  • Swat or vacuum them. They are weak fliers and easy to catch on walls.
  • Use a yellow sticky card near the drain. It catches adults and also shows you whether numbers are dropping.
  • Skip the bug spray. Iowa State notes that sprays give only very short-term help unless you remove the source.

What about the vinegar traps from our fruit fly guide? They are designed for fruit flies. Some people say they catch drain flies too, but there is little research on this. Use them if you have them, but don’t count on them.

Natural tricks: what works and what doesn’t

TrickDoes it work?The honest answer
Scrubbing with a drain brushYesThis is the main fix experts recommend
Hot waterPartlyKills some larvae on the surface; short-term only
Biological / enzyme drain cleanerHelpsDigests leftover gunk; works best after scrubbing
Baking soda + vinegarNot muchFizzing doesn’t scrub; may loosen gunk a little
BleachNot muchRuns past the slime; never mix with other cleaners
Essential oils down the drainUnknownWe found no studies showing this works on drain flies
Pouring salt down the drainUnknownNo research found; skip it

Step 5: Habits That Keep Drain Flies Away

Once your drains are clean, a few simple habits keep slime from building up again.

  1. Brush your drains once a month. Five minutes with a drain brush stops slime before it gets thick.
  2. Use drain strainers in sinks, tubs and showers to catch hair and food.
  3. Run water in rarely used drains every week. This keeps the trap full of water and flushes away buildup.
  4. Clean the overflow holes in sinks and tubs every few months.
  5. Fix slow drains right away. Standing water and gunk are what drain flies want.
  6. Fix drips and leaks under sinks and around appliances.
  7. Empty and wash drip pans under the fridge and dehumidifier.
  8. Keep bathrooms dry. Run the fan during and after showers.
  9. Before a long trip, clean the drains and ask someone to run the water once a week if possible.

Your 3-Week Cleanup and Check Plan

Why 3 weeks? The drain fly life cycle takes about 1 to 3 weeks. Three weeks gives you time to clean, then watch for any flies that were already growing in the pipe. It is not a guarantee. If flies keep coming, it means a source is still hiding.

WhenWhat to doTime needed
Days 1 to 3Do the tape test on every drain, one or more nights each. Write down which drains have flies.10 minutes a night
Day 4Deep clean every drain that had flies (Step 2). Clean overflow holes and drip pans.1 hour
Days 5 to 10Scrub the problem drains again every 2 to 3 days. Add a biological cleaner overnight if you like. Swat or vacuum adults.10 minutes
Day 11Repeat the tape test on the problem drains.5 minutes
Days 12 to 17Keep scrubbing every few days. Check for leaks and slow drains.10 minutes
Days 18 to 21Tape test one more time. Few or no flies is a very good sign. Start the monthly habits in Step 5.10 minutes

What your tape tests are telling you

What you see by Day 18What it meansWhat to do
No flies on the tapeYour cleaning is workingKeep the monthly habits
Fewer flies than beforeGetting thereKeep scrubbing that drain
Same number or moreA source is still hidingCheck overflow holes, traps, other drains, leaks; consider a plumber
Flies coming from floor cracks or wallsPossible broken pipeCall a plumber

Common Myths About Drain Flies

MythThe truth
“Pour bleach down the drain to kill them.”Virginia Tech says it isn’t very effective. Bleach runs past the slime where the larvae live.
“Boiling water will wipe them out.”Hot water kills some larvae on the surface, but many hide deeper in the slime. Scrubbing is needed.
“A bug spray will solve it.”Sprays kill only the adults you see. New flies keep coming out of the drain.
“Drain flies mean my house is dirty.”Not really. Even clean homes get slime inside pipes, especially in drains used rarely.
“Drain flies damage pipes.”They don’t. Virginia Tech says they cause no damage to plumbing. They are a sign of buildup, not the cause of it.
“Drain flies bite.”Adult drain flies do not bite.

Quick Answers to Common Questions

Are drain flies dangerous? They don’t bite or sting, and they don’t harm your pipes. But they come from dirty places, and Clemson University notes they may carry bacteria from where they breed. It’s best to get rid of them.

Why are they only in my bathroom? Bathroom drains collect hair, soap and skin oils, which make thick slime. Showers and tubs that stay damp are perfect for them.

I cleaned the drain. Why do I still see flies? Adults can live about two weeks, and some larvae may still be deep in the pipe. Keep scrubbing every few days and repeat the tape test. If numbers don’t drop after about three weeks, look for another source.

Can I use a drain snake instead of a brush? Yes. A drain snake can reach deeper and pull out hair clogs. Follow it with a brush and hot water.

What about kids and pets? The main steps use a brush, water and soap. Keep kids and pets away from hot water and from any drain cleaners. Store all cleaners up high, and never mix them.

When should I call a plumber? Call one if a drain stays slow after cleaning, if you smell sewer gas, if flies come from cracks in the floor or walls, or if you can’t find the source after three weeks.

The Bottom Line

Drain flies are not a mystery and not a reason to buy strong chemicals. They are a sign that slime has built up somewhere wet. Find the drain with the tape test. Scrub the slime out with a brush. Fix leaks and slow drains. Then brush your drains once a month to keep them clean.

This is the same approach university experts recommend, and it costs only a few dollars. Give it about three weeks and keep testing. If the numbers drop, you are winning. If they don’t, it is time to look deeper or call a plumber.

Sources