Skip to Content

Do You Have Drain Flies in Your RV? Learn How to Get Rid of Them & How to Keep Them Away!

If you know anything about pests and how annoying they can be, you’re going to want to know how to get rid of drain flies in your RV immediately upon discovering them. The day you learn that you’ve got an issue with drain flies is the day to get rid of them before things get out of hand. In this post, we share information on how to get rid of drain flies AND how to keep them from coming back.

What Are Drain Flies?

Drain flies are small black insects that breed in moist organic matter, such as decaying food or sewage. They prefer damp habitats and live in drains, sewers, septic systems, and shallow water. Technically referred to as Psychodidae, they’re also known as sink flies, or sewer flies, among other names. They can infest your RV’s drains, sinks, showers, and toilets, and can not only become a troubling nuisance in your RV, but could potentially create a health hazard.

Contrary to some confusion, drain flies are not fruit flies. You can tell the difference between drain flies and fruit flies because drain/sewer flies look more like small moths, while fruit flies have reddish heads and transparent wings. Adult drain flies are about 1/6 of an inch long and are generally black, gray, or brown. Their fuzzy wings are wider than their bodies, so they may appear heart-shaped when resting.

Close-up photo of a drain fly also known as a sewer fly

Adult drain flies (also known as sewer flies) are fuzzy and have large wings and long antennae.

What Causes Sewer Flies/Drain Flies In an RV?

The most common cause of sewer flies/drain flies is the accumulation of organic matter, such as rotting fruit, food waste, and other organic materials, in drain pipes, which provides a breeding ground for them. Boondocking/dry camping (where you’re likely to be running only small amounts of water down the drain) can exacerbate the problem due to an increased build-up of organic matter. This can increase the likelihood of drain flies emerging.

Another potential source of sewer flies/drain flies is keeping a waste tank dump valve open when connected to a sewer hookup (we’re talking about the gray valve since no RVer would ever make the critical error of leaving the black valve open… right?).

How to Get Rid of Drain Flies In an RV

Fortunately, there are several ways to eliminate sewer flies in an RV. There are also a number of ways to keep them from returning. The first step is to determine where they’re coming from:

Step 1: Identify the Source with a Tape Test

When learning how to eliminate drain flies in an RV, the first step is to identify the source of the problem. If you see drain flies in your RV, you need to figure out where they’re coming from. They generally lay their eggs in the slime layer that forms on the walls of pipes and drains, and the larvae feed on the organic matter in the drain pipes. In about two weeks’ time, they emerge as adults.

Luckily, adult drain/sewer flies are attracted to moisture and light, typically congregating in the vicinity of their breeding sites or entry points. You can use the “tape test” to determine which drain pipe is infested. To do this, simply cover a drain opening with clear tape, leaving a very small gap for airflow. After 24 hours, check the tape to see if any flies are stuck to it.

Repeat this process on each drain in the RV. Wherever you find drain flies on the tape you’ve placed, you’ve identified an area where you have a problem.

Step 2: Clean and Sanitize Your RV Pipes & Drains

Once you identify where the problem is, you’ll want to clean and sanitize the affected drains and pipes to remove any slime layer and kill the eggs & larvae. There are several ways to do this:

Boiling Water

One thing most people have on hand in an RV is water, so this is a popular first step. Simply boil some water on your stove and pour it down the drain. You may need to repeat the process several times over the course of a week or two. The purpose is to dissolve/melt any slime in the pipes and flush out the flies and larvae that the boiling water will kill.

Water circling a drain

Pouring boiling water down the drain is a start but may need to be followed by other, more effective methods.

The main problem with this method is that it’s often not enough to completely eliminate the flies and larvae, so you may have to repeat the process and/or follow up with additional methods…

Vinegar & Baking Soda

If you’ve got vinegar and baking soda on hand, you have the ingredients for a good follow-up method to boiling water. Vinegar & baking soda combine to create a reaction that helps loosen slime on pipes while also killing more eggs & larvae.

  1. Start by carefully pouring a half cup of baking soda down the drain.
  2. Then follow that up by pouring half a cup of white vinegar down the drain and closing the drain stopper.
  3. Let it sit for about 15-30 minutes, then flush the drain thoroughly with hot water.

Bleach

If you keep bleach on hand to sanitize your RV water system, you can pour some pre-diluted bleach into a sink or shower to treat the gray tank, or into the toilet to treat your RV black water tank. Bleach can kill bacteria and insects, including drain flies. You can even treat both tanks simultaneously.

  1. Start by dumping your black and gray tanks as usual, then close both drain valves.
  2. Flush your toilet (or add water through a hose or by using the black tank flush system) until the black tank is approximately three-quarters full of water.
  3. Then fill a 1-gallon pitcher or pail mostly full with fresh water and add bleach, figuring 1/4 cup of bleach per 15 gallons of water based on your tank’s capacity. For example, we have a 45-gallon black tank, which means that 3/4 cup (45-gallon capacity ÷ 15 gallons = 3 × 1/4 cup = ¾ cup) of diluted bleach, when poured into our pitcher of water, is the correct amount of bleach. You can then do the same calculation for the gray tank and pour the bleach/water mix down the shower or sink drain, then rinse it down with plain water. Remember to avoid pouring pure bleach into the toilet or drains, and always dilute it first to prevent damage to plumbing or toilet seals.
  4. Let the bleach & water mixture sit in the tank for 15-20 minutes, and then dump the tank and rinse until you no longer smell bleach.

Drain Cleaners

Foaming drain cleaners can work to remove slimy buildup from pipes. Just be cautious about leaving them in your tanks for too long, as the chemicals could damage valve seals over time. Always use commercial drain cleaners according to directions.

Enzymatic Cleaners

Enzymatic cleaners use natural enzymes to break down organic matter in your RV tanks. They can be used in your black and gray water tanks, and are safe for pipes, seals, and gaskets (they’re also non-toxic to humans, animals, and plants). To address the issue of drain flies, you can pour enzymatic tank treatments like these down the drain, let them sit for a few hours or even overnight, and then drain and rinse with hot water.

Happy Campers RV Toilet Treatment - Powerful Odor Control, Long-Lasting RV Tank Treatment - Prevents Clogs, Buildup, Sensor Failure - Keeps Holding Tank Clean & Healthy, Odor Free (18 Treatments)
  • Eliminates RV Tank Odors Fast: Our mineral-based formula tackles foul smells in RV, camper, and marine holding tanks. Prevents lingering waste odors...
Unique RV Digest-It+, Extra-Strength RV Toilet Treatment - Liquifies Waste and All Brands of Toilet Paper - Odor Eliminator (32 oz)
  • Faster and more effective waste and RV tissue digester. RV Digest-It+ RV black tank treatment breaks down waste and all brands of toilet paper,...
  • Our strongest complete RV tank treatment, significantly stronger than RV Digest-It Classic. Breaks down clog-causing waste and eliminates porta potty...

Drain Gels

Drain gels contain insecticides that kill drain flies on contact while also forming a coating on the walls of the pipes. This prevents new flies from laying eggs — an important part of drain fly treatment. There are a number of drain gel products on the market. The one below is organic and works by dissolving the slime and organic buildup. Its thick consistency also coats pipes and drains for an ounce of prevention. It contains citrus oil, which gives it a pleasant citrus scent.

Sale
InVade Bio Drain 1 Gallon (Original Version)
  • Microbes and Citrus Oil
  • This product is to be used specifically for drains but can also be used to eliminate sugar snakes in soda fountain drip trays. It is also safe and...

Kill the Adult Flies

Although they have a lifespan of between 8-24 days, drain flies can lay and hatch up to 300 eggs in just 48 hours. Getting rid of the larvae maturing in the drain without eliminating the adult flies won’t solve the problem. So, once you’ve cleaned, sanitized, and treated your RV’s drains & pipes to eliminate the breeding ground, you must also eliminate the adult flies. There are a couple of options:

Vinegar Trap

You can create a DIY “fly trap by mixing some apple cider vinegar and liquid dishwashing detergent in a bowl. Cover it with plastic wrap, poke some holes in the plastic (the tines of a fork or a toothpick work great for that), and then set the bowl near the affected drain(s). The apple cider vinegar attracts the flies, and then the combination of the plastic wrap (which blocks their exit) and the dish soap (which causes any flies that land on the surface of the water to sink in) essentially “traps” them.

Commercial Fly Traps

You can also use traditional commercial fly traps to trap and kill the drain flies.

Sale
RESCUE! Outdoor Disposable Hanging Fly Trap - 2 Traps
  • Easy Fly Control – This disposable outdoor hanging fly trap gets rid of common flies, including hundreds of the most prevalent species. Once the...
  • Fast Acting — This trap uses an attractant bait that flies can’t resist. Lured by the scent, flies enter the trap through the cap and drown in the...

How to Prevent Drain Fly Infestations

To prevent drain fly infestations in your RV, take the following steps:

  • Keep your RV’s drains and pipes clean and dry by regularly flushing them with hot water. Adding baking soda and vinegar is also helpful.
  • Periodically clean and sanitize your RV’s black tank and gray tanks with an enzyme drain cleaner or a bleach solution (¼ cup per 15 gallons of tank capacity).
  • When connected to a sewer hookup, keep your gray tank valve closed to block a path that drain flies can use to enter your RV (or try our sewer hose P-trap technique).
  • Before storing your RV, empty and flush your holding tanks.
  • Keep the surfaces of your RV’s kitchen and bathroom clean.

Drain flies are annoying, unsanitary pests that can infest your RV’s drains, toilets, sinks, and showers. Addressing a drain fly issue promptly and taking steps to prevent future infestations is the most effective way to eliminate drain flies and keep them away.

While you’re cleaning up your drain & sewer system, we have a tip about the ultimate black and gray tank cleaning:

Free RVing Tips, Tricks, Reviews & Giveaways

As 20-year full-timers, we share everything we’ve learned about RVing over the years. Join our online community to receive a wealth of great RVing knowledge delivered daily to your inbox.

Whether you’re a new RVer or a seasoned full-timer, you’ll love the wide range of RVing topics we cover. Don’t miss a single article or any of our famous Giveaways. Subscribe to our newsletter today!

We'd Love It If You Shared This!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Jay

Friday 18th of July 2025

1) After RVing for 39 years, I've never had a problem with leaving the gray tank valve open during camping. When I've needed to rinse the black tank it was only to clean off the tank level sensors and doing that was futile. 2) Drain flies come into the coach from the campground's sewer drain. When you take the cap off and see them, your best bet to prevent them from entering your coach is to spray an insecticide down the sewer drain and rinse it down, then keep your gray and black tank valves closed until you need to dump them and then close them again. 3) While I have rarely had drain flies in our RV, drain flies in our house have been an intermittent problem. Websites like DoMyOwn.com have more information and remedies which can get expensive. I've not needed those because spraying ordinary, household, bug spray into the drains followed by a small mount of water has usually mitigated them. Mosquitoes and fruit flies have been more of a problem.

John and Carol

Friday 18th of July 2025

Thanks for the help. We have been fighting these boogers for a couple of months now. Using the vinegar and dish soap has helped Now onto stronger things.

Tiffany Quinn

Sunday 6th of August 2023

Thanks for the advice. I've been having a terrible time trying to fight off these nasty things. I hope these tips do the trick!

TheRVgeeks

Monday 7th of August 2023

Oh no, Tiffany! We hope one of these tricks works for you, too! Let us know how you make out (and which technique worked for you)!

John S.

Friday 21st of July 2023

"If you're unfamiliar with drain flies, you're fortunate." Call me fortunate.

This was another 'Learn something new every day" day.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

PLEASE NOTE: We're handy RVers, not professional technicians. We're happy with the techniques and products we use, but be sure to confirm that all methods and materials you use are compatible with your equipment and abilities. Regardless of what we recommend, consult a professional if you're unsure about working on your RV. Any task you perform or product you purchase based on any information we provide is strictly at your own risk.

We participate in affiliate programs from many companies (including the Amazon affiliate program), which provides a means for us to earn a small commission by linking to products there. But our opinions are our own and we only link to products we can recommend to friends with complete confidence. And using our links won't cost you an extra penny!