How to Get Rid of Drain Flies (and Why They Come Back)

NSP Quick TipsBy Nathan Paggeot18 min read

Master Plumbing Contractor (MI License #8004990) & CEO of NSP Plumbing · November 24, 2026

Share:
How to Get Rid of Drain Flies (and Why They Come Back)

Drain flies are annoying, but they are rarely a sign that your plumbing is failing. They breed in the slimy film that coats a drain, trap or wet spot. To get rid of drain flies for good, scrub out the slime they breed in, then fix any hidden moisture, because spraying the adults alone never ends it.

How do you kill drain flies?

You kill drain flies by taking away the place they breed. That sounds like a dodge, but it is the whole answer, and it is why so many people spend weeks swatting the same little flies.

Drain flies (also called moth flies or sewer flies) lay their eggs in the gelatinous slime that builds up inside drains, traps and other wet spots.

The larvae, which are tiny worms, live in that slime and eat the bacteria, algae and fungi growing in it. The University of Maryland Extension describes exactly this: the larvae live in the film in drains and traps.

So the adults you see on the bathroom wall are only the visible part. If you kill every one of them today, a new batch hatches out of the drain tomorrow. The same fact sheet notes that once an infestation is underway, new flies emerge daily, and the full cycle from egg to adult takes about one to four weeks.

That gives you the plan this guide follows:

  1. Confirm what kind of fly you have.
  2. Find the exact drain or wet spot they are coming from.
  3. Physically scrub the slime out of it.
  4. Fix any leak or failed seal that keeps an area wet.
  5. Watch for a week or two to make sure the cycle is broken.

You do not need a pesticide, an exterminator or a harsh chemical for most cases. You need a flashlight, rubber gloves, a stiff drain brush or long bottle brush, an old toothbrush, a bucket, and about an hour.

In the sections below we explain each step, show what the hiding spots look like on real jobs, and tell you when the problem is really a plumbing repair rather than a bug problem.

Are these drain flies, fruit flies or fungus gnats?

Before you clean anything, take 30 seconds to look closely at one of the flies. Three small household flies get mixed up all the time, and each one breeds somewhere different.

Drain flies are about 1/16 to 1/4 inch long, fuzzy, and pale gray to black. Their wings are broad and held over the body like a little roof, so they look like tiny moths. They are weak fliers that hop short distances and rest on walls near sinks, tubs and floor drains.

Fruit flies are about 1/8 inch long, tan in front and black in the back, and often have red eyes. The University of Kentucky Entomology fact sheet on fruit flies explains that they breed in ripe or fermenting produce, but also in drains, garbage disposals, trash cans, mops and rags. Anywhere with a moist, fermenting film can work for them.

Fungus gnats are slender, dark, and look like tiny mosquitoes. They usually breed in damp potting soil, though the Maryland fact sheet notes they can also breed in drains.

Here is the practical takeaway. If the flies hang around a kitchen fruit bowl or trash can, start there. If they sit on the bathroom wall or near a basement floor drain and look fuzzy, it is almost certainly a drain. If they gather near house plants, check the soil.

One more point we want to be clear about. Flies in the house are not proof of a broken sewer line. In nearly every case the source is slime in a drain you can reach, or a wet spot you can find.

We will cover the rare cases where a hidden leak is involved, but do not let anyone sell you a major repair just because you have flies.

Where do drain flies breed in a house?

Drain flies need two things: water that sits still, and a layer of organic gunk. In a typical Grand Rapids area home, the usual suspects are:

  • Bathroom sink overflows. The small hole near the rim of the sink. Soap and toothpaste splash into it, but it almost never gets a real rinse.
  • Sink and tub traps. The curved pipe under the drain that holds water on purpose to keep sewer gas out of the house.
  • Basement floor drains. These often sit dry for months, then get a trickle from a water heater or washer, which is perfect breeding ground.
  • Rarely used drains. A guest bathroom, a basement shower, or a laundry tub nobody has run since summer.
  • Hidden wet spots. A leaking toilet seal, a dripping pipe inside a cabinet, or a condensate pan under a refrigerator.

The Maryland fact sheet adds a few more: dirty garbage cans, saucers under potted plants, and areas around sewer leaks or backups. Those last two are less common, but they matter when cleaning every drain does not end the problem.

Commercial kitchens and bars are the worst case, because they have floor drains everywhere and sticky spills that wash into them every night.

One of the clearest examples we have seen was a bar that had been told to call us for jetting because of a major fruit fly problem, and the owners believed the flies were living in the drains.

Round floor drain in the concrete floor behind a bar near the coolers

This is one of the floor drains behind that bar. It looks clean from above, which is exactly why it fools people. The breeding happens below the grate, in the slime coating the drain body and trap, so a floor drain like this has to be opened and scrubbed, not just mopped around.

At home the same rule holds. The drain that looks fine is often the one doing the breeding, because nobody ever thinks to clean it.

How do you find which drain the flies are coming from?

Most homes have more drains than people realize, so it pays to narrow it down before you scrub everything. Here are three simple ways to find the source.

Watch where they gather. Drain flies do not travel far from where they hatched. If the bathroom wall above one sink is covered, start with that sink.

Do the tape test. At night, put a strip of clear packing tape loosely over each suspect drain opening, sticky side down, leaving a small gap so air can move. Check the tape the next morning.

Flies stuck to the underside are coming up from that drain. Repeat for a few nights, because a quiet night does not prove a drain is clean. This test tells you which drain to scrub; it does not tell you exactly what species you have.

Check the wet spots. With a flashlight, look under every sink cabinet, around the base of each toilet, behind the washer, and under the refrigerator. You are looking for standing water, a damp stain, a musty smell or soft flooring.

Commercial floor sink with an open grate under a drain pipe in a tiled kitchen

On the bar job, this is the kind of spot the flies were coming from: a square floor sink (a recessed basin in the floor that catches water from equipment drain pipes) with a pipe dripping into it.

Constant drips plus food and drink residue make a floor sink like this an ideal fly nursery, and it needs regular scrubbing, not only a flush.

Floor sinks are mostly a commercial fixture, but the lesson carries into any home. Wherever a pipe drips into an opening, a film grows, and wherever a film grows, flies can breed.

Step by step: how to clean out the breeding film

Once you know which drain is the source, plan on 20 to 40 minutes for each one. Put on gloves and set a bucket and some old rags nearby. Work from the top of the drain down.

Step 1: Run the drain and look. Run water for a few seconds, then shine a flashlight straight down the opening. A gray, brown or black coating on the walls of the pipe is the breeding film.

Note whether water drains quickly. A slow drain means there is a clog to deal with as well, and our drain cleaning service page covers what that involves.

Step 2: Pull the grate or stopper. On a floor drain, lift or unscrew the grate. On a sink, take out the stopper.

Many bathroom stoppers come out by loosening a small nut on the back of the drain pipe under the sink and sliding a rod back an inch. Scrub the grate or stopper with a toothbrush and dish soap.

Floor drain with the grate lifted, showing dark standing water and slime below

This floor drain was on a call for drains that had backed up. Lift the grate on a neglected floor drain and this is what you usually find. That dark, still water and the film around it are exactly where drain fly larvae live, so the scrubbing has to reach below the grate, not just the surface.

Step 3: Scrub the drain walls. Push a stiff drain brush or long bottle brush down the opening and twist it up and down, rinsing it often. Expect it to come out dirty the first few times. Keep going until it comes out clean. This physical scrubbing is the most important step in the whole guide.

Step 4: Clean the overflow. If it is a bathroom sink, push a narrow brush or pipe cleaner into the overflow hole near the rim and scrub. Then slowly pour a cup of warm soapy water into the overflow so it rinses the channel inside.

Tan bathroom sink with the overflow hole visible just below the faucet

The overflow on this sink is the small opening on the front wall of the bowl, just below the faucet. It stays damp and it almost never gets cleaned. If the flies keep coming back after you scrubbed the drain, the overflow is the first place to look, and a few minutes with a narrow brush usually ends it.

Step 5: Clean the trap. The trap is the curved pipe under the sink. If cleaning the drain from above did not stop the flies, it is worth removing it.

Put a bucket underneath, loosen the two slip nuts by hand, and take the curve off. Scrub the inside, check the washers, and put it back hand tight plus a small turn. Our sink drain cleaning guide walks through this in more detail.

White plastic sink trap under a kitchen cabinet, the curved pipe that holds water

This is the trap under a kitchen sink. The bottom of that curve always holds water, and gunk settles there. If you take a trap apart and find thick sludge inside, you have likely found the nursery, and cleaning it often stops the flies within a week or two.

Step 6: Flush and repeat. Run warm water for a minute to rinse out what you loosened. Then repeat steps 3 and 6 every few days for two weeks. Since new flies can keep hatching for a while from eggs already in the drain, one cleaning is often not enough on its own.

Do bleach, vinegar or boiling water kill drain flies?

This is the part of the internet where most bad advice lives, so here is a straight answer on each common remedy.

Bleach. Pouring bleach down a drain may kill some larvae it touches, but it tends to run straight past the slime rather than removing it. The film stays put and the flies come back.

Bleach can also produce dangerous fumes if it meets another cleaner, including the residue of a drain cleaner already in the pipe. The Poison Control article on drain cleaners explains why mixing products is risky.

Vinegar and baking soda. The fizz looks like it is doing something, but it does not scrub the pipe wall. It can make a decent rinse after a brushing. It will not replace the brush.

Boiling water. We do not recommend it. A kettle of boiling water can soften plastic pipes and joints, and it can crack a porcelain sink or toilet. Hot tap water does the job of rinsing without the risk.

Chemical drain cleaners. Harsh drain openers are hard on older pipes and dangerous to handle, as the MedlinePlus page on drain cleaner poisoning makes clear. Our guide on whether Drano is bad for pipes goes into detail. For flies, they are the wrong tool anyway, because they target clogs, not the thin film on the pipe wall.

Enzyme or bacterial drain gels. These are the one product that can help, because they are designed to break down organic film. Use them after a mechanical cleaning, follow the label, and check that the product is safe for your pipes. Never mix them with bleach.

Fly sprays and traps. A sticky trap or a cup of cider vinegar with a drop of dish soap catches adults and is useful for tracking progress. It does not touch the larvae, so it is never the whole fix.

The common thread: anything you pour slides past the slime, while a brush removes it. That is why physical cleaning beats every quick remedy.

When are drain flies a plumbing problem instead of a pest problem?

Most of the time, flies are a cleaning problem. Sometimes they are a sign that water is going somewhere it should not. If you have cleaned every drain and overflow for two weeks and the flies keep returning, look for these signs.

A rocking or leaking toilet. The seal under a toilet is a ring of wax that joins the toilet to the drain pipe in the floor.

When the toilet rocks, that seal fails and a little water and waste seep into the floor each flush. That damp, dirty spot is perfect breeding ground, and you cannot reach it with a brush.

We saw this on a call where a homeowner had toilets that rocked, one leaking at the base, and gnats in the bathroom. The species was never confirmed, so we will not claim it was drain flies. But the pattern is the one we look for: moisture plus organic matter in a place no one can clean.

Floor around a toilet drain opening with dark stains after the toilet was pulled

This is the floor after a toilet was pulled to replace its wax ring. The dark stains around the opening show where water had been seeping under the toilet.

A stain like this means the seal had failed, and the fix is to pull and reset the toilet on a new wax ring, which no amount of drain cleaning can replace. Our toilet repair page explains how we handle it.

A hidden drip. Water under a sink cabinet, a damp spot on a ceiling, or soft flooring near a tub can all mean a slow leak. Wet wood, drywall or subfloor can grow film and harbor flies.

Damp, stained floor under the edge of a bar counter and equipment

On the bar job, the floor under the equipment stayed wet and sticky. A spot that never dries out is a breeding site even if no drain is in it, so the real fix is stopping the water, not treating the bugs. At home, the same idea applies under a dishwasher, refrigerator or washing machine.

A sewer smell. If the flies come with a rotten egg or sewage smell, a dry trap or a cracked pipe could be letting sewer gas and moisture in. Our guide on why a bathroom smells like sewage covers how to tell the difference.

Flies coming from a floor crack or a slab. This is rare, but if flies appear from a crack in a basement floor with no drain nearby, a broken drain line below the concrete could be leaking.

In that case a camera inspection lets us look inside the line without digging, and our leak detection service can locate a hidden supply leak.

How do you keep drain flies from coming back?

Once the flies are gone, a few habits keep them from returning.

Run every drain at least once a week. A floor drain, guest bathroom or basement shower that sits unused lets its trap dry out and lets film build.

Pour a gallon of water down rarely used drains to keep the trap full. Michigan's plumbing code requires a trap on every fixture to hold that water seal (Michigan plumbing code, chapter 10 on traps), and a dry trap does nothing.

Scrub overflows and stoppers once a month. A toothbrush and a narrow brush take five minutes and remove the film before it gets thick.

Clean the disposal and kitchen drain. Food scraps make a fine breeding film. Our garbage disposal cleaning guide shows a quick routine.

Fix drips quickly. Any spot that stays wet is an invitation. A dripping trap or a leaking toilet base is worth fixing for the floor alone, and it removes a breeding site at the same time.

Mind the shower drain. Hair and soap build up just under the grate. If your shower drain is hard to get into, see our guide on how to remove a shower drain.

Keep trash and produce in check. If you also see fruit flies, empty kitchen trash often and do not leave ripe fruit out.

These steps cost little more than a few minutes a month, and they head off the slow drains, smells and seal failures that cost real money later.

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

Usually one to three weeks. Scrubbing removes the breeding film right away, but eggs and larvae already in the drain can keep hatching for a while. Keep cleaning every few days for two weeks. If flies are still appearing after that, look for a hidden leak or a drain you missed.

Will bleach kill drain flies?

Bleach may kill some larvae it touches, but it usually runs past the slime they live in without removing it, so the flies come back. It can also release dangerous fumes if it mixes with another cleaner. A stiff brush and warm soapy water work better and are safer.

Does boiling water kill drain flies?

It can kill some larvae, but we do not recommend it. Boiling water can soften plastic pipes and joints and can crack porcelain sinks and toilets. Hot tap water and a brush rinse the drain without that risk.

Are drain flies harmful?

Drain flies do not bite, and they are mainly a nuisance. They do come from dirty, wet places, so it makes sense to remove them from kitchens and bathrooms. Their presence usually means a drain needs cleaning, not that your plumbing is failing.

Why do drain flies keep coming back after I clean?

The most common reasons are a missed overflow, a trap that was not cleaned, a rarely used drain elsewhere in the house, or a hidden wet spot such as a leaking toilet seal. Use the tape test on every drain to find the real source.

Do I need an exterminator for drain flies?

Usually not. Drain flies are controlled by removing their breeding film and fixing moisture, not by spraying. If cleaning does not work, a plumber is often the better call, because the cause is typically a hidden leak, a failed seal or a damaged drain.

Can drain flies mean a broken sewer line?

Rarely. Nearly all cases trace back to slime in a drain you can reach. A broken line becomes a possibility only if flies come from a crack in the floor, appear with a sewage smell, or keep returning after every drain and seal has been checked.

Need help with drain flies in West Michigan?

If you have cleaned every drain and the flies keep coming back, the cause is usually a leak or failed seal you cannot see.

NSP Plumbing is a licensed Michigan plumbing contractor (#8004990) based in Wyoming, MI, and we handle drain cleaning, toilet resets, leak detection and camera inspections across Grand Rapids, Wyoming, Kentwood, Grandville, Jenison, Byron Center and nearby towns.

We find where the moisture is coming from and fix the plumbing behind it, so you are not treating the same flies every month. If you want a second set of eyes, our plumbing repair team can take a look, or you can contact us with questions.

Flies that will not go away?

A licensed NSP plumber will find the drain, leak or seal that is keeping the flies alive and tell you plainly what it takes to fix it. Pick a time and we will confirm by phone.

Related Services

Related Posts

View all