How to Get Rid of Drain Flies: The Buzz on Banishing These Pests for Good

With these remedies, drain flies won’t bug you anymore

Father and teenage son cooking
Photo: MoMo Productions / DigitalVision / Getty Images
Father and teenage son cooking
Photo: MoMo Productions / DigitalVision / Getty Images
Get quotes from up to 3 pros!
Enter a zip below and get matched to top-rated pros near you.
Geo Icon

Sometimes, homeownership feels like you're a landlord to an array of pests who are living rent-free, whether it’s field mice sneaking in through the cracks in your foundation or earwigs totally wigging you out. Drain flies, as harmless as they might be, are a common squatter, but you can evict them ASAP with a few DIY tricks. This complete guide will show you how to get rid of drain flies—and make sure they never return.

What Are Drain Flies and Why Do You Have Them?

Drain flies, or Psychodidae, go by a few names—moth flies, sewer flies, filter flies, sewer gnats, etc. Whatever you call them, make no mistake. They’re not the same thing as fruit flies. You’ll know a drain fly by its specific look. They’re one-sixth to one-fifth of an inch long with a gray or tan body, six legs, and two rounded wings. They’re also a little bit hairy, so they look like tiny moths. 

Drain flies can’t actually fly. Rather, they hop around standing bodies of water, like your kitchen sink or shower floor. They lay their eggs in moist, organic matter—like the kind found in drains, pipes, or your garbage disposal. Once hatched, the larvae and pupae feed on the organic matter in your drain and hop out a mature adult in a week to 28 days. Each female fly lays 30 to 100 eggs at a time, so you’ll typically notice a bunch of flies at once.

Signs of a Drain Fly Infestation

A psychoda cinerea
Photo: RealityImages / Adobe Stock

Drain flies gather in places with wet, organic matter—and you can find them in every state. This includes sewers, septic tanks, compost, grass, bird baths, storm drains, and decaying leaves. It also includes your household drains and anywhere else with standing water. That said, if you have a drain fly infestation, you’ll know it. The signs include:

  • Adult drain flies along walls in damp areas of your home, like a kitchen or bathroom

  • A large number of drain flies surrounding a household drain

If you aren’t sure whether you have drain flies or not, you can always check. Seal off your drain with duct tape and let it sit overnight. In the morning, peel back the tape to see if any flies got stuck. You can also remove your drain cover, scrape the film off the side of your drain, and look for larvae. Larvae are thin, tube-like, and tannish in color. Remember that the eggs may be deeper in your pipes than you can reach. 

6 Ways to Get Rid of Drain Flies

Drain flies are pesky but don’t pose a health risk. You can usually get rid of them with a DIY solution. Before you start, thoroughly clean your sink and drain, using a pipe brush to scrub as far into the drain as you can. After that, try one of the following methods.

Boiling Water

Boiling water is hot enough to get rid of adult drain flies, larvae, and eggs hanging out inside your drain and nearby pipes. All you have to do is boil a pot of water and pour it down the drain while it’s still scalding hot. Repeat this process every few days until the flies are gone.

Note: Don’t use this method if you have PVC pipes. A clog can cause the water to sit and melt the PVC. 

Baking Soda, Salt, and Vinegar

As most handy homeowners know, baking soda and vinegar are powerful DIY cleaners. To get rid of drain flies, make a solution of:

  • 1/2 cup of baking soda

  • 1/2 cup salt

  • 1 cup of vinegar

Pour the solution down the drain, let it sit overnight, and then wash it away with boiling water. Unless you have PVC pipes, in which case, use warm water. 

Apple Cider Vinegar and Dish Soap

You don’t just attract flies with honey—you can also attract them with sugar and vinegar. Create a fly trap by filling a bowl with a mixture of:

  • Water

  • Sugar

  • Apple cider vinegar

  • A few drops of dish soap

Leave the bowl by the infested drain for a few days. The flies are attracted to the sweet mixture, but they’ll get stuck in the soapy water.

Apple Cider Vinegar in a Jar

Need another DIY fly trap? Fill a jar or mug with one inch of apple cider vinegar, then cover the opening with plastic wrap. Punch tiny holes in the plastic wrap to let the flies enter. They won’t be able to leave.

Seal Your Drain

Sealing your drain is a great add-on method. Use a different method to get rid of larvae and eggs, and eliminate adult flies by sealing off your drain with duct tape. Leave the duct tape overnight to catch flies trying to exit the drain. Repeat this method for about a week.

Use Drain Cleaner

Nice kitchen sink
Photo: Olga / Adobe Stock

If your drain flies are ultra-resilient, try using a liquid drain cleaner. These chemical solutions dissolve the type of organic matter that clogs your drain, so they’re super-effective. Just follow the instructions on the package.

Keep in mind that some unclogging solutions are harsh on porcelain, enamel, and pipes. In particular, they can damage older pipes and septic systems built before 1970.

How to Prevent Drain Flies 

To prevent an infestation, you’ll need to get rid of things that attract flies—which mostly includes standing water, mold, or any decaying organic matter they might want to eat. In this case, cleanliness is a virtue. Once you get rid of drains flies, you can keep the bugs out with these tips:

  • Keep your drains, sinks, bathtubs, showers, and toilets as clean as possible. 

  • Repair leaky faucets and clogs ASAP (even if it’s just a mild clog that leads to slow drainage).

  • Run fans and dehumidifiers in humid areas of your home to reduce moisture.

  • Clean your sewer drains every 18 to 22 months or whenever you notice signs of a clog.

  • Keep your garbage bins in an area away from your home.

  • Take out your garbage regularly, especially if it contains rotting fruit and vegetables.

  • Don’t leave open food containers around the house.

  • Eliminate areas of standing water in your yard.

  • Avoid rinsing food down your drain.

  • If you have a garbage disposal, clean it weekly.

DIY vs. Hiring a Pro 

Most homeowners can get rid of drain flies with a little persistence. If you try out a couple of DIY methods and the problem persists week after week, you may want to hire a drain cleaner near you. Even if you can tackle the issue on your own, you may still want to hire someone to clean your main sewage line every 18 to 22 months to prevent drain flies from returning.

For the average homeowner, drain cleaning costs $100 to $275, and cleaning your main sewage line costs anywhere from $100 to $800.

Lawrence Bonk contributed to this piece.

Frequently Asked Questions

Drain flies aren’t likely to make you sick and typically aren’t harmful to humans. They don’t bite or sting; however, they can cause allergies. In some individuals, they can also trigger asthma. The main issue with these little bugs is that they’re annoying, unsightly, and unsanitary. Like all flies, they can spread bacteria from garbage or your sewer system.

Most people can get rid of drain flies within a week as long as they remain persistent. This is especially important if you’re using a gentler method like vinegar or boiling water. Any eggs left behind can hatch, and the problem can start all over again. If you can’t get rid of the flies within a week or two, consider hiring a pro.

Drain fly problems can go away on their own—but only if the insects find the environment inhospitable. Those with a minor infestation can simply flush their toilets and run their faucets more frequently to flush out the flies and larvae. Others will have to deep clean their drains and set up traps.

Bleach can technically kill drain flies, but it’s not really a great tool for getting rid of an infestation. Bleach flows down your pipes too quickly to penetrate the film where drain flies lay their eggs. Alternatively, you can use it to clean around drains, which can help prevent drain flies from returning once you get rid of the infestation.

Need professional help with your project?
Get quotes from top-rated pros.
The homeowners guide to drain cleaning companies
From average costs to expert advice, get all the answers you need to get your job done.
bathroom sink next to glass shower
Aug 21, 2024
Aug 21, 2024
When your shower or sink starts draining slowly or not at all, it’s time to act. Get tips for how to unclog a drain, and learn about drain cleaning service pricing.
A young man washing vegetables in a kitchen sink
Sep 19, 2024
Sep 19, 2024
If you have a clogged pipe and natural methods are not working, you may need something stronger. How do drain cleaners work? Find out in this guide.
Man fixing kitchen sink clog
Sep 19, 2024
Sep 19, 2024
Baking soda and vinegar are like two peas in a pod when it comes to clogs. Keep reading to learn how to unclog a sink with baking soda and vinegar.
close up of white bathtub
Aug 9, 2024
Aug 9, 2024
Tub drain sizes are standardized, but they can vary in certain circumstances. This guide will discuss the most common sizes and how to measure your tub.
A man washing his hands in the sink
Sep 10, 2024
Sep 10, 2024
Clogged drains are a pain and can be persistent if you don’t deal with the blockage. Use this guide on how to snake a drain to save money and DIY a solution.
Couple in the kitchen washing and chopping veggies
Sep 22, 2023
Sep 22, 2023
Garbage disposal clogs can stop the flow of your kitchen. Follow these simple tips to unclog your disposal and get it running in no time.
Share project details to get started.