Small dark insects hovering over the shower drain are almost never gnats. They are drain flies (also called moth flies or sewer gnats), Psychoda alternata, and they breed in the gelatinous biofilm coating the inside of drain pipes. Gnats in shower stalls are a symptom of a deeper plumbing condition, not a cleanliness problem in the visible parts of the bathroom. You can spray the adults all you want, but until the larvae in the P-trap and drain walls are destroyed, new flies emerge every 48 hours. The good news: a weekend of targeted treatment ends the cycle for months.
Part of our Bathroom Remodeling & Flooring guide — explore the full guide →
Drain Flies vs Fruit Flies vs Fungus Gnats
Three small flying insects show up in bathrooms, and the wrong identification means wasted effort. Sort yours quickly:
- Drain flies (Psychoda): Tan or gray, fuzzy bodies and wings that look like tiny moths. Weak flyers, often resting on walls near drains. Found in showers, kitchen sinks, basement floor drains.
- Fruit flies (Drosophila): Tan with bright red eyes, hover around fruit bowls and trash cans. Stronger fliers. Rarely seen in bathrooms unless there is a food source nearby.
- Fungus gnats (Bradysia): Small black flies with long legs and clear wings. Breed in damp houseplant soil, not drains. Common around overwatered planters.
If the insects rest near the shower drain, look fuzzy under a phone camera zoom, and reappear within 48 hours of swatting, they are drain flies. The eradication process below targets the biofilm where their larvae feed.
Why Drain Flies Live in Showers
Drain fly larvae feed on biofilm: the slimy mix of soap residue, hair, dead skin, hydrogen sulfide bacteria, and decomposing organic matter that coats every drain pipe over time. The P-trap holds standing water, the drain stays dark, and the buildup gives larvae a 7 to 12 day food supply per generation.
Adult drain flies emerge from the drain, mate, and the females lay 30 to 100 eggs back into the biofilm. Eggs hatch within 48 hours at room temperature, so a colony explodes from a few flies to dozens in under a week. The infestation will not stop until the biofilm is removed.
Confirming Drain Flies Are Breeding in Your Shower
The duct tape test isolates the source drain. Place a strip of clear packing tape across the shower drain overnight, sticky side down, leaving small gaps for air. Drain flies emerging from the drain stick to the tape. Repeat for any other drain in the bathroom, including the sink and floor drain if present.
The drain with the highest tape catch is the active breeding site. Often it is the shower, but sometimes a rarely-used guest bathroom sink turns out to be the source. Treat every drain with positive tape catches.
Eliminating the Larvae
Killing adults solves nothing. The treatment must reach the biofilm where larvae live. This sequence works in nearly every case:
- Remove the drain cover with a screwdriver or by hand. Set aside.
- Pull any hair clog out with a Zip-It drain stick at $4 from Home Depot. Hair tangles trap exactly the food source drain fly larvae need.
- Scrub the visible inside of the drain pipe with a stiff bottle brush. Reach as far down as you can without forcing.
- Pour 1 cup of baking soda into the drain, then 1 cup of white vinegar. Foam scrubs the upper drain walls. Wait 10 to 15 minutes.
- Flush with 1 to 2 quarts of boiling water from an electric kettle.
- For aggressive infestations, follow with an enzyme drain cleaner like Bio-Clean or InVade Bio Drain Gel ($28 for a 32-ounce bottle) overnight. The enzymes digest biofilm down to bare pipe.
- Repeat the enzyme treatment nightly for 7 days. Larvae hatch in 2-day cycles, so a one-time treatment misses eggs deposited just before.
Avoid bleach as the only treatment. Bleach kills surface organisms but does not remove the biofilm matrix, so larvae continue developing in deeper layers. Bleach also irritates the eyes and lungs when used in the closed environment of a shower stall.
Killing Adult Flies
Adult drain flies live 14 to 28 days. While the enzyme treatment works through the larvae, knock down the adults:
- Apple cider vinegar trap: Fill a small bowl with 1 cup apple cider vinegar plus 2 drops of dish soap. The vinegar attracts flies, the soap breaks surface tension and drowns them.
- Sticky fly strips: Black Flag or Catchmaster strips at $3 hung over the shower catch adults at rest.
- Aerosol spray: Hot Shot Flying Insect Killer for a fast knockdown. Ventilate after spraying and avoid spraying into the drain itself (the solvents are not designed to kill larvae and may damage drain seals).
Adult populations should crash within 5 to 7 days once the larval source is treated. If you still see new flies after 10 days, another drain in the home is breeding them. Run the tape test on every drain.
Preventing Reinfestation
Drain flies return whenever biofilm rebuilds. Three habits keep them out:
- Monthly enzyme treatment: One overnight dose of Bio-Clean or InVade Bio Drain Gel digests the next round of biofilm before it can support larvae.
- Weekly hot water flush: Two quarts of boiling water poured slowly down every shower and sink drain melts soap scum.
- Reduce standing water: Squeegee the shower floor after use. The P-trap will still hold water (it must, to block sewer gas), but the surface biofilm above the trap will not develop as fast.
For seldom-used guest bathrooms, run water through every drain weekly. Dried-out traps lose their water seal, sewer gas backs up, and adult drain flies that fell into the drain from outside can survive and breed.
When to Call a Plumber
Most gnats in shower infestations clear within two weeks of consistent treatment. Call a plumber if:
- Flies persist after 3 weeks of nightly enzyme treatment on every drain.
- You smell sewer gas, indicating a venting problem or a broken drain line.
- Multiple drains in the house produce flies simultaneously, suggesting a main line buildup or a broken sewer pipe under the slab.
- Water backs up in any drain during normal use.
A plumber can camera-scope the main line ($300 to $450 typical) to find broken pipes or root intrusion, then hydro-jet the line ($400 to $750) to remove biofilm and roots that no drain cleaner can reach. For severe cases this is the only permanent fix.