Photo by ClickerHappy on Pexels
Those tiny black flies in the bathroom — fuzzy, slow, sitting on the tile like specks of soot — are drain flies, and they are not coming in through the window. They are hatching out of your plumbing. The larvae live in the gelatinous film that coats the inside of drains, which is why they shrug off fly spray, air freshener, and every kettle of boiling water poured after them: you are attacking the adults while the nursery stays in business. The fix is mechanical, it costs about as much as a bottle brush, and it takes three weeks of mild persistence.
Meet the drain fly
Drain flies (also called moth flies) are unmistakable once you know the look: Arkansas Extension describes them as 2 to 4 mm long with a dense fuzz of hairs that gives them a moth-like appearance, and they are weak fliers — more hop than flight, usually resting on walls near a sink or shower. Swat one and it collapses into a smudge of fine dust, because the wings are covered in scales — Kentucky’s entomology department calls that the giveaway test.
Two reassurances up front. They do not bite or sting, and they are not drawn to your food. They are a hygiene message from your pipes, not a health threat to you.
Where they are actually breeding
The larvae feed inside the slime layer — soap scum, hair, skin oils, and the bacteria digesting all of it — that builds on pipe walls just below the drain cover. Bathroom sinks and shower drains are prime real estate — and a drain that is also slow is a drain whose film has plenty to cling to, which is why clearing a clogged shower drain is often step one — and so are three places nearly everyone forgets: the overflow hole of the sink (a permanently damp tube with its own film), floor drains, and any drain that goes unused for weeks — a guest bathroom, a basement shower — where stagnant water lets the film flourish undisturbed.
The full life cycle runs a little over a month — Arkansas Extension puts larval development around 18 days, pupation about 5 more, and adult life around 12 days. That timeline matters later, because it is why the flies do not vanish the day you clean.
Find the guilty drain
If several drains are suspects, tape settles it: stick clear tape across each drain overnight, sticky side down, leaving a gap for airflow — a fully sealed drain stops the airflow and the flies will not emerge, giving you a false negative. Emerging adults stick to the tape above their home drain. Arkansas Extension’s variant is a clear cup, lightly oiled inside, inverted over the drain for a few days.
The fix is a brush, not bleach
Pouring bleach down the drain is the most-repeated tip on the internet and it does not work — Purdue Extension states flatly that bleach and hot water will not eliminate breeding sites in drains. Liquid runs down the middle of the pipe; the larvae live in the film stuck to its walls.
What works is removal:
- Pull the drain cover and clear the visible hair and gunk.
- Scrub the pipe walls with a stiff, long bottle brush or a flexible drain brush, as far down as you can reach — the goal is to physically strip the slime layer, not rinse past it.
- Do the overflow hole too: a small brush or a squeeze of enzyme gel cleaner into the opening. Bacterial or enzyme drain gels are a legitimate follow-up here, because unlike bleach they cling to the walls and digest the film that the brush missed.
- Flush with hot water, and repeat the scrub weekly for the next few weeks.
Expect stragglers. Adults already out live up to a couple of weeks and pupae in remnants of the film keep emerging, which is why Arkansas Extension recommends keeping up cleaning for at least three weeks to break the life cycle. Flies for a few days after a good scrub means the plan is working, not failing.
Common mistakes
- Spraying the adults and stopping there. Every adult you see is replaceable within days as long as the film remains.
- Bleach, boiling water, or caustic cleaner as the whole plan. It runs past the problem. Mechanical scrubbing first; gels as follow-up. And never combine bleach with other drain chemicals — the fumes are hazardous.
- Sealing the drain completely during the tape test. No airflow, no emergence, false all-clear.
- Ignoring the drain nobody uses. The guest bathroom is the classic source; pour a pot of water through unused drains monthly and the trap stays filled and flushed.
- Misidentifying the fly. Flies hovering over the fruit bowl rather than hugging the bathroom wall are a different insect with a different fix — see our guide to fruit flies in a clean kitchen, which covers how to tell the four lookalikes apart.
Quick answers
Are drain flies harmful?
They do not bite, sting, or show interest in human food. The practical concern is what their presence means — a well-developed organic film in your plumbing — rather than the insects themselves. Treat them as a maintenance alarm with wings.
Why did they appear out of nowhere?
Usually one of three things changed: a drain fell out of regular use (stagnant water lets the film build), a slow clog gave the film a foothold, or the weather warmed enough to speed up the life cycle. A vacation is the classic trigger — two unused weeks is ample time for a first generation.
How long until they are gone?
With a proper scrub and weekly follow-up, expect a clear bathroom in about three weeks — one full life cycle. Faster than that is a bonus; slower usually means an unfound breeding site, with the overflow hole and floor drain as the usual suspects.
Can they come from the toilet or the sewer?
They breed in the film of drains far more often than in the toilet itself, which gets flushed too regularly. But a persistent infestation that survives diligent cleaning can point to a breach — a cracked pipe or a dry, disused trap letting flies in from the sewer side — and that is a plumber conversation rather than a cleaning one.

