Drain Flies in the Bathroom: Causes, Fixes, Prevention
Drain Flies in the Bathroom: Causes, Fixes, Prevention

Small, fuzzy, moth-like flies in your bathroom almost always mean one thing: there is a layer of slime inside a drain, and the flies are breeding in it. Sprays and boiling water only deal with the adults you can see. The fix is to physically remove the slime where the larvae live, and if the flies return after careful cleaning, the problem is usually deeper in the plumbing. That is where a plumber who cleans drains comes in, and in Port Coquitlam, Coquitlam and Port Moody, that is our work at Paradigm Services and Installations.
TL;DR
- Drain flies breed in the slimy film inside bathroom drains and traps, especially in drains that are rarely used, such as a guest bathroom shower.
- Killing adult flies does not stop them. The film has to be scrubbed out, and the drain kept clean for about three weeks to break the life cycle.
- Bleach, boiling water and insecticides do not remove the film. Do not pour pesticides down a drain.
- Flies that keep coming back after thorough cleaning can point to a cracked pipe or leak under the slab or in a crawlspace.
- If you cannot find the source or the drain is slow, we can clean the drain and check the line, any hour of the day.
Table of Contents
- How to tell drain flies from other small flies
- Why you have drain flies in the bathroom
- Are drain flies harmful?
- What does not work
- How to get rid of drain flies in the bathroom, step by step
- How long until the flies are gone?
- Stopping drain flies from coming back
- When to call a plumber for drain flies
- Our approach: treat the drain, not the symptom
- Get the drain cleaned properly
- FAQ
- Sources
How to tell drain flies from other small flies
Before you clean anything, make sure you are dealing with drain flies. Three different small insects get mixed up in bathrooms.
| Insect | What it looks like | Where it comes from |
|---|---|---|
| Drain fly (moth fly) | About 2 to 5 mm, gray to black, hairy, with leaf-like or heart-shaped wings when folded | Slime inside drains and traps |
| Fruit fly | About 3 mm, yellow to brown, red eyes, transparent wings, less hairy | Ripe fruit and fermenting food |
| Phorid fly | Humpbacked look, runs fast across surfaces | Decaying organic matter |
The measurements and descriptions come from a Canadian drain fly identification guide. The University of California describes the same pattern: moth flies are about 1/8 inch long, often dark, with fine hairs on the wings that give them a moth-like look, and they are weak flyers.
The quick field test is behavior. Drain flies flutter in short, clumsy hops and sit on bathroom walls, near the sink, tub or shower. They rest with their wings held like a little roof. Fruit flies hover around the kitchen fruit bowl. If your flies are on the bathroom wall near a drain, you almost certainly have drain flies.
There is one more lookalike. Fungus gnats can also breed in drains, so proper identification matters. If the bathroom has potted plants, check the soil too.
Why you have drain flies in the bathroom
The short answer is moisture plus food. Adult drain flies lay eggs on wet organic debris. The larvae live in the gelatinous film that builds up inside drains and traps, and feed on the algae, bacteria and fungi in it. Per University of Maryland Extension, development from egg to adult can take 7 to 28 days.
In a bathroom, that film is made of hair, soap residue, skin cells and the moisture that never fully leaves a trap. University of Arkansas Extension notes that these flies mostly inhabit drains that are used infrequently, such as a guest bathroom shower drain, where water sits in the trap for long periods.
The usual breeding spots
- Seldom-used shower or tub drains. A spare bathroom that is used a few times a year is the classic case.
- Slow-running sink drains. Slow drainage, bubbling and foul odors are signs of a possible breeding site, according to the Alabama Cooperative Extension System.
- Floor drains. Basement floor drains and laundry sink drains are common too, as are other constantly moist spots. Iowa State University Extension lists sink, bathtub, shower and floor drains, plus places under dripping pipes.
- Overflow openings. The overflow slot on a bathroom sink or tub is a hidden channel that collects the same slime. It is easy to forget when you clean.
Texas A&M AgriLife Extension makes the broader point: the key to any indoor fly problem is to find and eliminate the source, which means anywhere moisture and organic debris have built up. Fly larvae cannot breed without a source of water.
Why the problem grows fast
Drain flies multiply quickly. According to Texas A&M, a female lays masses of 20 to 100 eggs that hatch in less than 48 hours, and the larval stage lasts 8 to 24 days. NC State Extension puts egg masses at 10 to 200 and the larval period at 9 to 15 days, with new adults emerging a day or two later. That is why you can see two or three flies on Monday and a dozen by the weekend. The adults you see are the last step of a cycle that has been running inside the pipe for weeks.
Are drain flies harmful?
They do not bite or sting. Iowa State University Extension says that although they could in theory carry pathogens because of where they breed, there is no evidence of actual transmission. Still, UC IPM notes they could transmit pathogens and trigger allergies, and the Maine Department of Agriculture says they can carry bacteria from egg-laying sites to surfaces that touch food, so they should not be tolerated in food service settings.
In a home, the practical takeaway is simple. Keep them away from toothbrushes, towels and anything that touches food, and deal with the source rather than living with it. If you have a strata unit, a rental or a small business with a washroom, treat them as a hygiene issue to resolve promptly.
What does not work
The top search results are full of home remedies: boiling water, bleach, vinegar and baking soda. They feel productive because you see bubbles and a few dead flies. They fail because they do not remove the film.
- Boiling water and harsh cleaners. The Washington State Department of Health says harsh cleaners or boiling water poured down the drain will not prevent or remove the slime layer. The slime has to be physically removed.
- Bleach and regular drain cleaner. Texas A&M notes that chlorine bleach or drain cleaner is largely ineffective at removing these films.
- Insecticide sprays and foggers. They kill adults on the wall, not the larvae in the pipe. The University of Arkansas adds that no insecticide products are registered for use in drains or sewer systems, and pouring them down can damage a sewer or septic system.
Be careful about mixing products, too. Never combine bleach with other cleaners in a drain, and keep the room ventilated when you use any cleaning product.
How to get rid of drain flies in the bathroom, step by step
This is the routine that matches what university extension services recommend. At each step we note where it commonly goes wrong.
1. Find every breeding drain
Check every drain in the room, not just the one where you see flies. UC IPM advises removing the drain plate and scraping slime from the sides of the drain, then looking for larvae in what you collect. Include the tub, shower, sink, floor drain and overflow openings.
Where it goes wrong: people clean the drain with the most flies and miss the one in the spare bathroom or the basement floor drain. The flies simply repopulate.
A simple trick to confirm the source is to place a clear container or a piece of clear tape over each drain overnight. The drain where flies collect is a good suspect. Then clean all of them anyway.

2. Clear any blockage first
A slow drain means more standing water and more food for larvae. UC IPM notes that drains may need to be snaked first to clear a blockage, and that for sinks with a J-trap underneath, you can remove the trap and clear out the debris. If the tub is the slow one, our guide on what to try before chemicals on a slow bathtub drain walks through the order of operations.
Where it goes wrong: pouring chemical cleaner into a half-blocked drain. It sits in the pipe, does not reach the film above the waterline, and is harder on your pipes than on the slime.
3. Scrub the slime out
This is the step that solves the problem. The Alabama Cooperative Extension System describes removing the drain plate, sink parts and trap, then scraping the biofilm off the inside of the drainpipe with a knife and stiff brush. Texas A&M says pipes and traps must be cleaned with a stiff brush and then flushed with hot to boiling water. Use a stiff, long-handled brush, and wear gloves. Treat the film as you would any bathroom grime.

If you want a general routine for the whole room, a bathroom deep cleaning checklist is useful for the surrounding surfaces, but the drain itself needs the brush work described here.
Where it goes wrong: only cleaning the first few centimetres you can see. The film continues down the pipe and into the trap. Reaching it is the hard part, and it is where hiring a plumber for drain cleaning saves the effort. When we clean a drain, the owner is the one on site, so you talk directly to the person doing the work.
4. Follow with a bacterial or enzyme cleaner
After the physical cleaning, a biological drain cleaner helps in the places a brush cannot reach. The Washington State Department of Health recommends a low-risk biological or microbial drain cleaner containing bacteria that break down the slime layer; once the slime dissolves, the bacteria die and the drain is less attractive to flies. UC IPM says regular use of an enzymatic cleaner may help prevent the buildup that gives larvae a place to develop.
Where it goes wrong: using the enzyme product instead of scrubbing. It works on residue after the bulk is removed, not on a thick film.
5. Run water, then keep at it for three weeks
After cleaning, run water through each drain to confirm it flows freely. Then stay on it. The University of Arkansas says control of an infested drain requires thorough cleaning and maintenance for at least three weeks or longer to break the life cycle. Expect to see a few adults for several days after cleaning, because pupae already in the pipe will still emerge. They should taper off and stop.
How long until the flies are gone?
Adults live up to about two weeks, according to the University of Maryland, and the whole cycle runs 7 to 28 days, so a full clean-out followed by consistent upkeep should clear things in roughly three to four weeks. If you are still seeing fresh flies after that, you have missed a breeding site or the source is deeper than the visible drain.
Stopping drain flies from coming back
Prevention is mostly about not letting water and film sit.
- Use every drain. Run water in the guest bathroom shower, tub and floor drains for a minute or two every week or so, so the trap does not sit stagnant.
- Scrub on a schedule. Brush the visible part of the drain and the overflow slot regularly, and clear hair catchers as soon as they collect hair.
- Use enzyme or bacterial cleaner periodically, as the research above suggests, as a maintenance step rather than a rescue.
- Fix drips. Moist organic debris under dripping pipes is another breeding site.
- Watch for slow drains and odors. Both can signal film building up before the flies show up.
When the flies keep coming back
If you have thoroughly sanitized every drain and the problem persists, the University of Arkansas says a recurring infestation can indicate a broken pipe or leak under a slab or in a crawlspace. That is not a job for a brush. It needs someone to inspect the drain line. It is also worth reading our pages on sewer smell in a bathroom, since a dry trap, a venting issue or a damaged line can produce both odors and flies. If water or sewage ever comes up through a basement drain, treat it as urgent and follow our steps for a sewer backup in the basement.
When to call a plumber for drain flies
Call when any of these apply:
- The flies return within a few weeks of a thorough clean.
- The drain is slow, gurgles or smells even after you clear it.
- You cannot remove the trap or reach the film safely.
- Several fixtures in the home are affected, or there is a basement floor drain involved.
- You manage a strata building, rental or business, and tenants or customers are noticing the flies.
A drain fly problem is a drain problem. Pest sprays do not fix it, and the cure is cleaning the pipe. That is the work we do every day.
Our approach: treat the drain, not the symptom
We get calls about “tiny flies” more often than people expect, and the honest answer is almost never a spray. The flies are telling you a drain has slime in it. The job is to get that slime out.
We would rather you understand that than buy a fourth can of insecticide. Clean the drain properly, look at the line if the problem returns, and the flies stop. If a pipe turns out to be cracked or leaking, you want to know that before it turns into a bigger repair.
When you call us, I am the one who shows up. You get a straight answer about what the drain needs and a clear price before work goes ahead.
Jon
Get the drain cleaned properly
If you would rather not spend a weekend with a brush and a trap wrench, we handle drain cleaning across Port Coquitlam, Coquitlam and Port Moody. The owner does the on-site visit and quotes the work there. Our call-out fee is $60 and is waived if the work goes ahead. If a drain problem becomes urgent, such as water backing up or a burst pipe, our 24/7 emergency plumbing line is open at any hour.

You can see the rest of what we do on our main site, including plumbing, gas fitting and water heater work.
FAQ
Are drain flies the same as fruit flies?
No. Drain flies are gray to black, fuzzy and moth-like, and they breed in drain slime. Fruit flies are smaller, yellow to brown with red eyes, and breed in ripe or fermenting food. If the flies are near a bathroom drain and flutter rather than hover, they are drain flies.
Does pouring bleach or boiling water down the drain kill drain flies?
It may kill some adults and larvae it touches, but it does not remove the slime where they breed. Washington State’s health department says harsh cleaners and boiling water will not remove the slime layer, so the flies come back. The film has to be scrubbed out.
How long does it take to get rid of drain flies?
Plan on about three weeks of thorough cleaning and upkeep to break the life cycle, which runs roughly one to four weeks from egg to adult. You may still see a few flies in the first days after cleaning as pupae emerge.
Can drain flies come from a sewer problem?
Often they come from ordinary slime in a drain, but a persistent infestation despite careful cleaning can point to a broken pipe or leak under the slab or crawlspace. In that case, a plumber should inspect the line.
Do drain flies mean my home is dirty?
Not necessarily. They are drawn to any drain with moisture and film, and an unused guest bathroom is a common spot. Regular water use and scrubbing keeps them away.
Sources
- University of Arkansas Extension: Drain Flies
- Iowa State University Extension: Moth Fly
- Texas A&M AgriLife Extension: Indoor Flies and Their Control
- NC State Extension: Drain Flies
- UC IPM: Moth or Drain Flies
- University of Maryland Extension: Drain Flies
- Alabama Cooperative Extension System: Drain Flies in the Home
- Washington State Department of Health: PNW Pest Press, Small Flies
- Maine Department of Agriculture, Conservation and Forestry: Drain, Fruit and Fungus Flies
- GPQC: Drain Fly Identification
