How to Get Rid of Drain Flies in a Sink (2026)
"You're standing at the bathroom sink, and there it is — a small, fuzzy, gray-black fly sitting on the tile right next to the drain. You smack it. The next day there are three. These aren't fruit flies, which is exactly why your vinegar traps do nothing. They're drain flies — also called sewer flies or moth flies — and they aren't coming in from outside: they're rising out of your pipe. Here's how to cut the problem off at the root, where they actually breed."

Writer specializing in pest control
Marie Sarin writes about pest control for Clear Home Pests. She compares and selects products based on manufacturer specifications, verified user reviews, and official sources (EPA, CDC, NPIC). She does not test products herself — every guide is a documentary synthesis, not a hands-on lab or field trial.
Affiliate Disclosure: Clear Home Pests is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you. Learn more.
Reviewed by Marie Sarin, writer specializing in pest control — clearhomepests.com. Product selections are based on manufacturer specifications, verified user reviews, and official sources (EPA, CDC, NPIC).
Drain Fly, Fruit Fly, or Fungus Gnat? Don’t Fight the Wrong Battle
Before you buy a single product, ten seconds of identification will save you three weeks. Because three small indoor flies look alike from across the room but are fought in completely opposite ways — and that’s exactly where people go wrong.
Is yours sitting still on the wall or tile next to the sink? Is it small, stocky, fuzzy and gray-black, with rounded wings folded into a little roof? And does it barely fly, in short clumsy hops? Then it’s a drain fly, also called a moth fly or sewer fly (Clogmia albipunctata, Psychoda). It has no interest in your fruit or your plants. Its whole world is the damp, greasy inside of your drains.
🪰 Drain fly (moth fly)
- Look: gray-black, stocky, fuzzy, heart-shaped wings folded like a roof.
- Flight: almost none — it sits motionless on walls.
- Where: near sinks, showers, basins, floor drains.
- The larvae: in the greasy biofilm inside drains.
- What works: de-gunk the pipe (brush + gel + enzyme).
🍌 Fruit fly
- Look: tan-brown, slim, bright red eyes.
- Flight: brisk, hovering over fruit.
- Where: fruit bowl, compost, bottom of bottles.
- The larvae: in ripe fruit and fermenting matter.
- What works: vinegar trap + remove the source.
🪴 Fungus gnat
- Look: black, very slim, like a mini-mosquito.
- Flight: weak, zigzagging just above plant pots.
- Where: around houseplants, lifts off when you water.
- The larvae: in damp potting soil, eating roots.
- What works: yellow traps + BTI in the soil.
💡 The 1-second test
Does the fly sit motionless on the wall by the sink and fly poorly when you approach? → drain fly, you’re in the right place. Does it circle the fruit bowl? → fruit fly. Does it lift off a plant pot when you water? → fungus gnat. A reader once wrote to me, exasperated, that he was emptying three vinegar traps a week with nothing to show for it. Of course — his flies were coming up out of the bathroom drain, not his bowl of bananas.
Why They Rise Out of Your Drain
Here’s the part nobody explains clearly enough: the flies you see aren’t coming from outside, they’re climbing up out of the pipe. And they have nothing to do with whether your house is clean.
Inside any drain, a biofilm slowly forms: a gelatinous layer of grease, soap, hair, food residue, and bacteria, stuck to the walls. Invisible from the outside. You can have a spotless kitchen and a pipe lined with organic gel. That’s exactly the medium a female drain fly needs: she lays there, and her larvae — tiny translucent worms — live inside that gel, clinging to the wall, feeding on the organic matter.
That’s why the can of bug spray you empty into the room does nothing: you kill a few adults on the wall, but the nursery stays intact in the pipe, and the next morning fresh flies emerge. The only strategy that works is to attack the biofilm itself. Destroy the nest, and the infestation dies out on its own.
🔄 The drain fly cycle, made simple
Eggs
Laid in clusters in the pipe’s biofilm. 30 to 100 at a time.
Larvae
The real target. Down in the gel, eating organic matter. Untouched by sprays.
Pupae
Transformation clinging to the wall, just above the waterline.
Adults
What you see on the wall. They live ~3 to 5 days, lay eggs, and it starts over.
The whole cycle closes in 1 to 3 weeks depending on temperature. As long as the biofilm stays, it restarts on a loop. That’s why you can’t just kill the adults.
Cutaway of an Infested Drain (Tap to Explore)
The easiest way to get it is to see where it happens. Here’s a sink drain in cutaway, with its 4 hot spots. Tap each one: I’ll show you what hides there and the exact product that targets that zone. In thirty seconds you’ll understand why one single move is never enough.
🔍 Cutaway of an infested sink drain
Tap each of the 4 hot spots — see what hides there and the exact product that targets that zone.
Simplified sink drain, top to bottom.
👆 Tap a numbered hot spot to see what's going on there.
Hotspot #2 (the pipe wall) and #4 (the overflow) are, by far, the ones people skip most. If your flies “keep coming back” despite a clean trap, the culprit is almost always one of those two.
The Tape Test: Find the Right Drain
Before you de-gunk anything, you need to know which drain is occupied. A house has ten of them: kitchen sink, bathroom sink, shower, tub, basement floor drain, washing machine standpipe… No point treating them all blind. There’s a free, foolproof test.
🧪 The tape test (one night)
At night, make sure the drain is dry on the surface (wipe the opening).
Stretch a piece of wide clear tape across the opening, sticky side down, without sealing it completely (air has to pass, or the flies won’t come up).
Leave it overnight. Do it on every suspect drain at the same time.
In the morning, the flies that tried to get out are stuck underneath. The most-loaded tape = your main breeding site.
The same test is your final judge, too: no flies stuck for 3 nights straight = you’ve won.
A real case: a reader in Columbus, Ohio was convinced her flies came from the kitchen sink, which she scrubbed daily with no result. The tape test settled it in one night — zero flies on the kitchen, twenty-one on the basement laundry floor drain she never used and whose water had evaporated. With the trap dried out, the water seal was gone, and the sewer flies were strolling right up. A glass of water poured into that floor drain every week fixed half the problem on its own.
The 5-Step De-Gunking Protocol
Once you’ve found the right drain, here’s the sequence to follow, in order. Check them off as you go — the order matters: you scrape first, dissolve second, rinse last. Flip it around and you waste the product.
✅ The 5-step drain de-gunking protocol
Check as you go — order matters: you scrape first, dissolve second, rinse last. 0/5 done
The Products That Work (and How to Use Them)
Here are the tools I recommend, all readily available on Amazon as I write this. None is a miracle on its own — it’s the sequence (scrape → dissolve → maintain) that does the work.
The flexible drain brush
The centerpiece, and the one everybody skips. A long flexible brush (2 to 5 ft) you push down the pipe to physically scrape the biofilm. It’s the only move that peels the gel off the walls — no liquid does it as well. Get one long enough, with a slim head to clear the bends. One tip from experience: do it over a bucket, because what comes back up is… let’s say eloquent.
🛒 See flexible drain brushes on AmazonA thick, clinging drain gel
After the brush, the gel finishes the job. Its thick texture lets it cling to the vertical walls instead of running straight down the trap — it stays in contact with the leftover biofilm and dissolves it. That’s the whole difference from a watery drain cleaner that runs through too fast. A drain-specific gel like Green Gobbler works well here: pour it, let it sit the full time on the label, then flush with hot water at full flow.
🛒 See thick drain gel on AmazonThe enzyme/bacteria treatment
My favorite for keeping them from coming back. These products contain bacteria and enzymes that digest the organic matter in the trap — exactly what the larvae feed on. Poured at night, it works all night while the water sits still. Gentler than a chemical drain cleaner and septic-safe, it’s ideal as a weekly ritual once the pipe is clean. InVade Bio Drain Gel is the one professionals reach for specifically against drain flies; Bio-Clean is a solid alternative.
🛒 See enzyme drain treatments on AmazonThe drain snake (stubborn cases)
If the breeding site is deeper — a clog of hair and grease wedged in the trap or beyond — a flexible drain snake (auger) reaches where the brush can’t. A must on a shower or tub that’s draining slowly: slow drainage = standing water = a perfect drain fly nursery.
🛒 See drain snakes on AmazonBaking soda + washing soda (the lift-off combo)
The cheap, eco-friendly backup. Baking soda with white vinegar foams and lifts light deposits; washing soda (sodium carbonate), stronger, dissolves grease in hot water. Perfect alongside the brush and especially as regular maintenance on lightly-affected drains. Not enough on its own for a big infestation, but excellent for prevention.
🛒 See baking soda / washing soda on AmazonA drain cover / stopper (the barrier)
A small trick that changes the night: a silicone drain cover or stopper set in place at night keeps the adults from climbing up to lay and emerge. It’s not a deep fix — it doesn’t replace the de-gunking — but it cuts the nighttime back-and-forth while you sanitize the pipe, and it’s perfect on a rarely-used drain (guest shower, basement sink).
🛒 See drain covers on Amazon📖 Not sure of your species? If your flies are bigger, gray or green, or circle food rather than the sink, they aren’t drain flies. The complete fly guide helps you ID the species in 30 seconds and pick the right method.
What Doesn’t Work (and Costs You Weeks)
I’ll finish here because these are the mistakes that drag the problem out for months. They all start from the same misread: thinking you’re chasing a fly, when you actually need to sanitize a pipe.
The bug bomb in the room. It kills a few adults on the wall and leaves the eggs and larvae in the pipe untouched. Next morning, fresh batch. You treat the breeding site, not the air.
Bleach alone. It runs through too fast to lift the biofilm stuck to the walls. It whitens and disinfects the surface, but the organic gel — and everything living in it — stays put. See also our breakdown of overrated “home remedies”.
The apple-cider-vinegar trap. Excellent against fruit flies, nearly useless against drain flies: they’re not after sugary fermentation, they’re after damp biofilm. If the vinegar catches nothing, you’re not dealing with fruit flies.
Treating one random drain. Without the tape test, you often de-gunk the wrong pipe and wear yourself out while the real breeding site keeps laying. Identify first, treat second.