How to Get Rid of Drain Flies

To get rid of drain flies, you have to remove the slimy film inside the drain where their larvae live. Killing the adults on the walls will not end the problem, because new flies keep emerging from that film. Confirm which drain they are coming from, scrub the pipe with a stiff brush, clear the trap, and keep the drain clean for a few weeks so the life cycle is broken. This guide walks through each step and links to our more detailed articles on specific rooms, fixtures and products.

Quick answer: how to get rid of drain flies

  1. Find the source. Cover suspect drains overnight to see which one the flies come from.
  2. Scrub the drain. Use a stiff, long-handled drain brush to remove the gelatinous film from the pipe walls.
  3. Clear the trap and any clog. Snake slow drains and clean out the sink trap if you can reach it.
  4. Flush and maintain. Run water through the drain afterward and repeat the cleaning for at least three weeks.
  5. Check other wet spots. If the drains are clean and flies persist, look for leaks, standing water and less obvious breeding sites.

The University of California Statewide IPM Program sums it up: the key to managing drain flies, also called moth flies, is eliminating their breeding sites.

Step 1: Make sure they are drain flies

Drain flies are small, fuzzy flies with wings that look too big for their bodies. UC IPM describes them as about 1/8 inch long and often dark, with hairy wings held over the back like a roof when they rest. They are weak fliers that tend to make short, hopping flights. The University of Maryland Extension puts their size at 1/16 to 1/4 inch and their color at pale brownish gray to black. You usually see them resting on bathroom walls, around tubs and sinks, or near basement floor drains.

They are easy to confuse with fruit flies, which are tan with red eyes and gather around fruit and trash, and with fungus gnats, which come from damp potting soil. Getting the identification right matters, because each pest breeds somewhere different.

Step 2: Find the drain they are breeding in

Drain flies lay their eggs in moist organic matter. UC IPM explains that in homes, development usually happens in the slimy coating inside sink and shower drains, and that bathroom drains are the most common breeding sites. Because the adults are weak fliers, they usually stay close to where they hatched. Seeing them in a drain or resting on the walls next to one is a strong clue.

To confirm the source, the University of Arkansas Cooperative Extension suggests placing a clear plastic cup or glass jar coated inside with vegetable oil or petroleum jelly over a suspect drain, or taping a plastic bag or clear tape over the opening. Ohio State University suggests a clear container with glue boards taped inside, left over the drain overnight or for a few days. If flies are caught, that drain is a breeding site. Test every drain in the area, because Arkansas notes that flies may be coming from more than one drain at the same time.

Seldom-used drains deserve extra attention. Arkansas notes that drain flies often live in drains that are rarely used, such as a guest bathroom shower, where water sits in the trap for long periods.

For a closer look at why certain drains attract them, see what attracts drain flies.

Step 3: Clean the drain properly

This is the step that actually gets rid of drain flies. UC IPM recommends using a hard-bristle brush to remove the organic film inside the drain, snaking the drain first if it drains slowly, and removing and cleaning the J-shaped trap under sinks where possible. Afterward, run water through the drain to make sure it flows freely.

Ohio State says the most effective cleaning is done with an enzyme-action product designed to break down the bacterial scum on pipe walls, and that a stiff, long-handled brush is a good alternative. UC IPM adds that regular use of an enzymatic drain cleaner may help prevent the buildup from returning.

Keep at it. Arkansas notes that controlling an infested drain requires thorough cleaning and maintenance for at least three weeks to break the life cycle. Ohio State gives the life cycle as one to three weeks, and Maryland puts development at 7 to 28 days, so new adults can keep appearing for a while after the first cleaning.

Two safety notes: never mix drain products or follow one cleaner with another, since Ohio State warns that dangerous gas can be released when certain products meet in a drain line. And whatever product you use, read and follow the label, which the EPA notes is a legal requirement.

Fixes by room and fixture

The cleaning method is the same everywhere, but each location has its own trouble spots. These guides go into detail:

Do drain cleaners and home remedies work?

Many people start by pouring something down the drain. Extension experts are skeptical of that approach on its own. UC IPM calls the idea that boiling water or bleach will control drain flies a common misconception, because these treatments do not remove the organic film and give short-term control at best. Ohio State notes that bleach does not seem to remove the scum and that the larvae are surprisingly resistant to it. Maryland suggests cleaning drains mechanically or with an over-the-counter drain cleaner followed by hot water, so a product can help, but only alongside scrubbing.

Our product-by-product articles explain what each one can and cannot do:

What about bug sprays and traps?

Sprays aimed at the adults are not a solution. Arkansas notes that killing adult flies is not effective control and that aerosol sprays for flying insects are not very effective. Both Arkansas and Ohio State point out that no insecticides are registered for use in drains or sewer systems, and Arkansas warns that pouring pesticides down a drain is unlikely to work and can damage sewer and septic systems. UC IPM particularly discourages insecticides for drain flies in homes, because cleaning the one or two drains involved usually solves the problem.

Sticky traps and UV light traps catch some adults but, as Ohio State and Arkansas both note, will not eliminate an infestation. They are most useful for confirming where flies are active and whether your cleaning is working.

Step 4: If the flies keep coming back

If you have cleaned every drain and still see drain flies after a few weeks, the source is probably somewhere else. Maryland lists sewer leaks and backups, dirty garbage cans, saucers under potted plants, clogged storm drains, and condensate pans under refrigerators and air conditioners as breeding sites. UC IPM adds sump pumps and wet material beneath leaking drain and sewer pipes, including in crawlspaces and wall voids. Ohio State mentions wet lint under washing machines and standing water in containers under houseplants.

Arkansas notes that an ongoing infestation despite careful drain cleaning can point to a broken pipe or a leak under a slab or in a crawlspace. UC IPM advises calling a professional when the breeding site is hidden inside a wall or under the foundation. A plumber with a drain camera can also help locate damaged pipes.

Are drain flies harmful?

Drain flies are mainly a nuisance. UC IPM says they do not bite people or animals and cause no damage to structures or plants, and Arkansas notes they are not attracted to human food. UC IPM does point out that because they develop in decaying material in drains and sewers, they could carry germs to places such as food preparation areas, and that large numbers of dead flies may break down into particles that can trigger allergies. That is another reason to clean the source instead of tolerating them. Our article are drain flies harmful? covers bites, pets and health concerns in more detail.

How to prevent drain flies

  • Scrub sink, tub and shower drains with a drain brush every so often, not just when flies appear.
  • Run water through seldom-used drains, such as guest showers and basement floor drains, so the traps do not sit stagnant.
  • Fix slow drains and leaks promptly.
  • Keep garbage cans clean and dry, and empty saucers under houseplants.
  • Clean the drip pans under refrigerators and check air conditioner condensate lines.
  • Keep window screens in good repair. Arkansas notes adults can be blown in on the wind and enter through unscreened windows.

FAQ

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

Plan on about three weeks of regular cleaning. Arkansas recommends maintaining the drain for at least three weeks to break the life cycle, and you may see a few adults during that time while the last ones emerge.

Why do drain flies appear suddenly?

Ohio State notes that drain flies sometimes seem to appear suddenly and mysteriously. Usually a population has been building in a drain that is rarely used or slow to drain, until enough adults emerge to be noticed.

Will pouring boiling water down the drain kill drain flies?

Not reliably. UC IPM says boiling water does not remove the organic film the larvae live in, so it provides short-term control at best. Scrubbing the pipe is what removes their food and habitat.

Can drain flies live in a clean house?

Yes. The film inside a drain builds up in even well-kept homes, especially in drains that are not used often. Their presence points to a specific wet spot, not to the house as a whole.

Sources