How to Get Rid of Fruit Flies

Fruit Flies in the Bathroom and Bathroom Drains

Damp drains and overflows are a favourite haunt — how to clear them.

A cloud of little flies in a bathroom is a genuine puzzle — there is no fruit here, no bin of peelings, nothing obvious to eat. The twist is that most bathroom "fruit flies" are not fruit flies at all. They are drain flies breeding in the slime inside your pipes. Identifying which insect you have is the whole game, because it decides exactly what you clean.

⚡ Quick answer

Small flies rising from a bathroom drain are usually drain flies breeding in the biofilm inside the pipe, and the fix is mechanical cleaning. Scrub the drain walls with a brush, flush with boiling water, and finish with an enzyme cleaner. Bleach alone does not reliably strip the biofilm where the larvae live.

Close-up of a sink plughole and drain, where organic gunk builds up and lets drain-dwelling flies breed
Photo: Evans1551 at English Wikipedia

In short

Most likely culprit
Drain flies (moth flies), not fruit flies
Where they breed
Biofilm inside sink, shower and floor drains, and the sink overflow
How to confirm
Tape a bag over the plughole overnight and see what's trapped
What works
Mechanical scrubbing of the drain, not bleach
What doesn't
Vinegar fruit traps, air fresheners, pouring bleach and hoping

First, are they even fruit flies?

Before you clean anything, take a close look at one of the flies resting on the wall or mirror. Fruit flies are tan or yellow-brown with red eyes, and they hover in short hops. Drain flies look quite different: they are dark, fuzzy and moth-like, with broad hairy wings held tent-shaped over the body, and they sit dead still on the wall before making a short, fluttery flight when disturbed.

The distinction matters because the fixes diverge. If you have drain flies, a fruit-vinegar trap will do almost nothing. Run through the differences in fruit flies versus drain flies, and if you are still unsure, the fly identifier tool will settle it in a few questions. It is also worth ruling out the fast, zig-zagging phorid fly, which likes damp bathrooms too, and glancing at the roundup of other tiny flies in the house.

Note: True fruit flies can appear in a bathroom if there is a hidden food source — a cup left by the sink, a sugary spill, or a bin of tissues over discarded food. But an unexplained bathroom swarm is far more often a drain issue.

Confirm the drain is the source

You can test each drain in a couple of minutes. Dry the area around the plughole, then tape a clear plastic sandwich bag loosely over it, sticky-side down but leaving the hole open beneath. Leave it overnight. Adult flies emerging from the pipe get caught inside the bag as they try to fly up. Do this on every drain in the room — the basin, the shower, the bath and any floor drain — because the guilty one is not always the obvious one.

Whichever drain traps flies is the one that needs cleaning. Don't forget the sink overflow, the little hole near the top of the basin: it holds a surprising amount of slime and is a classic hidden breeding spot that people never think to clean.

Clean the drain the way that actually works

Larvae live in a gel-like biofilm coating the inside of the pipe, and the only reliable way to remove that gel is to physically scrub it out. Pouring bleach down the drain looks decisive but usually fails — it slides straight over the biofilm without stripping it, so the larvae survive and the flies return within days.

  1. Scrub with a drain brush. Push a long, stiff pipe brush as far down as it reaches and work it around the walls of the pipe to break up the slime. This is the single most important step.
  2. Flush with boiling water. A kettleful of boiling water after scrubbing washes loosened debris and any dislodged larvae away.
  3. Use an enzyme or biofilm cleaner. A bacterial or enzyme drain product digests the organic gel over several hours. Follow the label, and give it time to sit.
  4. Clean the overflow. Squirt cleaner into the overflow hole and work a small brush or pipe cleaner through it.
  5. Repeat after a few days. One clean rarely gets everything. A second pass a few days later catches the stragglers.

The same mechanical approach applies to kitchen drains, and the reasoning is spelled out in drains and garbage disposals. Whatever you read elsewhere, remember that bleach is not a dependable biofilm killer — scrubbing, heat and enzymes are.

Mop up the adults

Cleaning the pipe stops new flies from developing, but the adults already flying will hang around for their remaining days. Because bathroom flies rest on walls and mirrors, a sticky trap or fly paper placed near the drain quietly reduces the visible population — see sticky traps and fly paper. A quick pass with a vacuum nozzle or a damp cloth against the wall clears the resting adults just as well. Vinegar traps are less useful here, since drain flies are not drawn to fermentation the way fruit flies are.

Caution: Resist the urge to keep pouring chemicals down the drain day after day. It rarely fixes the biofilm and can damage older pipes. Scrub first; reach for products second.

Keep the bathroom clear

Once the drains are clean, a little maintenance keeps them that way. Run water through seldom-used drains — a guest bathroom or a floor drain that dries out — every week or two, so the trap stays sealed and slime does not build. Flush each drain with boiling water occasionally, keep the overflow clean, and fix any slow leak or standing water that keeps a corner permanently damp. Wipe up puddles behind the toilet and around the base of the shower.

If you have scrubbed thoroughly, cleaned the overflow, cleared every drain in the room and the flies still return week after week, the problem may run deeper — a cracked pipe, a leak under the floor or a phorid infestation feeding on sewage in the wall cavity. That is the point to consider bringing in a professional; we cover the signs in when to call an exterminator. For everything else, the reliable route back to a fly-free bathroom is the same as the rest of the home: find the breeding site, clean it properly, and tidy up the adults. The full framework lives on the remove fruit flies hub.

Sources

Keep them gone for good

Once the flies are gone, the next step is stopping new ones from coming in.