The “bathroom fly” you are likely referring to is commonly known as the Drain Fly, Moth Fly, or Sewer Fly (scientifically, the most common species is Clogmia albipunctata or the related Psychoda species).
They are tiny, fuzzy, dark-gray or black insects with rounded wings. Because they are weak fliers, you will often see them resting on bathroom walls, sinks, or showers rather than buzzing around your head.
If you are seeing these flies in your bathroom, it is rarely a sign of a “dirty” home in the traditional sense of food or trash. Instead, their presence is a biological alarm bell indicating a specific plumbing or moisture issue. Here is exactly what their presence points to, and what they are telling you about your home.
1. There is a Build-up of Organic Matter in Your Pipes
Drain flies do not lay their eggs in clean, running water. They breed in the slime layer that builds up on the inside of your drainpipes. This gelatinous, black or brown sludge is a mixture of:
-
Soap scum and shampoo residue
-
Hair
-
Dead skin cells
-
Toothpaste
The presence of drain flies usually means this sludge has built up to a level thick enough to sustain their larvae. The flies are essentially telling you that your drain needs a deep, physical cleaning.
2. You Have a Hidden Plumbing Leak
If you have cleaned your visible drains thoroughly and the flies keep coming back, their presence could indicate a cracked or broken pipe.
-
If a pipe under the shower pan, bathtub, or in a wall has a slow leak, water seeps into the surrounding wood, drywall, or subfloor.
-
This creates a perpetually wet, dark, and moldy environment. Drain flies can breed in this waterlogged wood or the sludge that accumulates under the tile, completely out of sight.
3. There is a “Dead Leg” in Your Plumbing
In plumbing, a “dead leg” is a section of pipe that is no longer used or capped off, but still connects to the main line. If a bathroom was remodeled or a fixture (like a bidet or an old shower) was removed, a pipe might have been capped off. Water and organic matter can become trapped in this stagnant dead end, creating the perfect, undisturbed nursery for drain flies.
4. A Dry P-Trap or Floor Drain
Under your sink and shower, there is a curved piece of pipe called a P-trap. Its job is to hold water, which acts as a barrier preventing sewer gases (and sewer flies) from flying up into your house.
If you have a guest bathroom that is rarely used, a floor drain in a basement or laundry room, or a bathtub that never gets wet, the water in the trap can evaporate. Once the water is gone, drain flies living deep in the sewer system can simply fly up through the pipe and into your living space.
5. Standing Water Somewhere Nearby
Drain flies need stagnant, shallow water to breed. Aside from pipes, check for other hidden sources of standing water nearby:
-
A slow drip from a toilet tank or the base of the toilet that has collected behind the toilet.
-
A leaky cabinet under the sink that has left a pool of water.
-
A wet mop, bucket, or a wet bathroom mat that hasn’t been hung up to dry for days.
How to Get Rid of Them
Simply spraying flying insect killer will only kill the adults you see today; the larvae will hatch tomorrow and the cycle will continue. You must remove the breeding ground.
-
Clean the Drains Physically: Pouring boiling water down the drain is a good start, but it rarely removes the thick sludge. The most effective method is using a drain brush (a long, thin, bristled stick) or a straightened wire hanger to physically scrape the inside of the pipe. Then, follow it with a gel-based drain cleaner designed to eat organic matter, or a mixture of baking soda, salt, and vinegar, followed by boiling water.
-
Test for Hidden Leaks: Pour water around the base of the toilet and shower. If you see water seeping out from under the tile or baseboards, you have a leak that requires a plumber.
-
Check Your Traps: Pour a cup of water mixed with a little cooking oil (to slow evaporation) down any rarely used drains to reseal the P-trap.
-
Set up Sticky Traps: Place a piece of clear tape or a glue board over the drain overnight. If flies are caught on the underside in the morning, you have confirmed exactly which drain they are coming from.