Cleaning / Bathroom · 8 MIN READ

How to get rid of drain flies: find the drain that is producing them

Test drains individually, remove the slime where larvae develop, and distinguish lingering adults from a drain that is still producing flies. Includes a worked tracking example.

If the flies have fuzzy, moth-like wings, test the nearby drains before buying a spray. Catch flies emerging from each suspect opening, then physically remove the slimy buildup inside the positive drain. Swatting adults clears the room; removing their breeding material stops the next generation. A fly resting beside a sink does not tell you which drain to clean.

In this answer
Three schematic steps: recognize a fuzzy moth-like drain fly, catch flies inside an inverted cup over one drain, and brush the organic film from the pipe walls.
Enlarge diagram

Swipe across to see the rest of the diagram.

Three schematic steps: recognize a fuzzy moth-like drain fly, catch flies inside an inverted cup over one drain, and brush the organic film from the pipe walls.
Test separate drain openings, then clean and retest the ones producing flies. Adults elsewhere in the room are a separate observation. View full size

First, check the fly rather than the room

Drain flies, also called moth flies, have hairy wings and a fuzzy outline. Their short, weak flights often look like hops. Examine a resting insect with a magnifier or a sharp close-up photo. A bathroom location alone is not an identification.

Scroll across to read every column.

Which small fly are you seeing?
ClueLikely directionWhere to look next
Fuzzy body; broad, hairy wings, often held like a roofMoth/drain flyTest drains and inspect other wet organic buildup.
Small light-brown fly; often obvious red eyes; no moth-like fringeFruit/vinegar flyCheck fermenting produce and beverage residue first.
Small dark fly repeatedly gathering at potting soilFungus gnatInspect houseplants. Some can also breed in drains.
Small fly with a conspicuous humped back in side viewPhorid flyCheck moist food waste and drainage; get identification help if uncertain.

Test each suspect drain separately

Start with sink, tub, shower and floor drains in the affected room, including seldom-used fixtures. More than one opening may be involved. Use a clean, empty clear cup or jar, vegetable oil or petroleum jelly, a label and a flashlight.

  1. Choose a period when the fixture can remain unused. Do not cover a drain needed for active equipment discharge or emergency overflow. Tell everyone using the room that the fixture is out of service.
  2. Lightly coat the inside of the cup with oil or petroleum jelly. Invert it over the entire drain opening, with its rim seated on the surrounding surface. Label the drain and start time.
  3. Leave it for 24 hours, then look for flies caught inside. Photograph the result before removing the cup. A fly on the outside does not count as evidence of emergence.
  4. Remove every cover before using fixtures. Mark positive drains for cleaning; if none catches flies but the problem continues, repeat a properly seated test and broaden the search below. One empty trap is not an all-clear.

The busy bathroom problem: test one opening at a time

The 24-hour cup test works only if that fixture can remain unused. In a one-bathroom home, test the sink on a day when another handwashing sink is available, then test the shower separately. Label the covered fixture so nobody fills it against the cover. Keep required floor drainage and equipment discharge paths open.

Record the actual start and finish times. A six-hour test squeezed between showers is a shorter observation, so do not compare its count directly with a 24-hour sink test. An empty short test is a reason to retest when practical, not proof that the drain is clear.

Use a fresh cup at each opening and photograph the inside before cleaning. Flies stuck outside the cup came from the room. Flies inside identify that opening as a route, which helps choose where to work first.

Remove the film, not just the visible flies

Use the brushing steps for an accessible sink or shower drain without a garbage disposal. A disposal needs its own baffle-cleaning procedure, with power disconnected; keep hands out of the grinding chamber.

For an accessible sink or shower drain, gather gloves, splash protection, a flashlight, a small waste bag and a stiff-bristle drain brush suited to the opening. Keep tools away from food preparation. If drain-opening chemicals were recently used or may remain, stop before brushing or dismantling anything; follow that product’s handling instructions or tell the plumber what was added.

  1. Remove only a strainer or stopper designed for owner removal. Follow its release method rather than forcing a fixed cover. Lift out reachable hair and debris and put it in the waste bag.
  2. Brush the coated inner walls and the underside of the removed part to dislodge the gelatinous film. Work around the circumference; a clear hole down the middle can still have breeding material on its sides. Remove loosened debris rather than merely pushing a wad farther down.
  3. Inspect the sink’s overflow opening too. Sludge can collect in overflow passages. Clean only reachable areas with a suitable non-damaging tool; inaccessible passages or a trap that needs removal call for fixture-specific help.
  4. Refit the parts, remove test covers, and run the faucet or shower normally. Check that water drains freely and no disturbed part leaks. If it remains slow or backs up, resolve the blockage before repeating pest treatments.

What a cleaner or spray can actually do

A drain treatment formulated with bacteria or enzymes can help break down organic deposits. Choose one labeled for the drain and plumbing involved, then follow its dose, contact time and rinse instructions. No universal overnight schedule applies to every product. Thick deposits still need physical removal.

Do not pour insecticide into a drain. Bleach, vinegar and boiling-water treatments do not reliably remove the protected breeding material. Do not combine cleaners, especially bleach and ammonia. Swat adults as needed; fewer flies on the wall after spraying would show adult knockdown, not successful drain cleaning.

Check for new emergence after cleaning

Repeat the same cup test on the cleaned drain during another unused period, starting with a clean cup. Record the drain, date, catch and cleaning completed. Compare like with like: a room count alone mixes newly emerging flies with adults already present. The finish check is repeated empty emergence traps plus the disappearance of remaining adults without a rebound; continued catches mean more source work is needed.

Scroll across to read every column.

Read the result without declaring victory too soon
ObservationWhat it meansNext action
Flies caught inside the cup againThat opening is still a route for flies.Recheck missed film, the overflow passage and adjacent drains; investigate deeper access if cleaning was thorough.
No new catch; fewer adults in the roomEncouraging, but one negative test can miss activity.Repeat checks while watching the trend.
No new catch; room numbers stay high or reboundThe tested drain may not be the only source.Inspect wet sites elsewhere and confirm the insect ID.

What a useful drain log looks like

This is an invented example showing how to interpret observations; the numbers are not expected catch rates. Each catch covers the same 24-hour period.

The sink’s improvement does not clear the floor drain. Conversely, two adult flies on a wall do not undo two empty sink checks. Keep source catches separate from room sightings. University of Maryland Extension notes that adults can live up to two weeks, so a falling room count can lag behind source removal. Continued emergence or a rebound means the source work is unfinished.

Scroll across to read every column.

Illustrative record: bathroom with sink, shower and floor drain
OpeningFirst catchAfter cleaning and retestingDecision
Sink5 inside the cup0, then 0 on another comparable checkContinue watching; do not add another product solely because two adults remain on the wall.
Shower0No cleaning yetLeave it available for use; retest if room numbers fail to decline.
Floor drain3 inside the cup2 inside on the next checkRecheck accessible film and whether water drains freely. This route remains active.

If the drains test negative, widen the search

In a guest bathroom unused for a long time, an evaporated trap can let flies enter from the sewer system. Restore water by using the fixture normally, then recheck. Flies arriving through an opening do not by themselves prove larvae are breeding in its reachable section.

Look for wet debris in plant saucers, dirty trash containers and accessible appliance condensate pans. Follow appliance instructions before reaching near powered equipment. Persistent dampness at a toilet base, below a sink or around damaged shower surfaces needs a leak investigation rather than another bottle of drain treatment.

If positive catches persist after thorough accessible cleaning, or flies remain numerous with no exposed source, ask a plumber and pest professional to investigate hidden leaks or wet material. Do not open a wall, remove a toilet or enter a contaminated crawlspace just to hunt for flies. Give them the photographs and drain-by-drain results.

If flies are far more numerous outside than inside, check window and door screens. An outdoor source requires a different response from repeatedly cleaning a negative indoor drain.

Keep the source from rebuilding

Remove hair and visible slime during routine strainer care, keep little-used fixtures in use, and correct leaks that keep debris wet. An odor-free drain is not proof that breeding has stopped; use the emergence checks and the overall decline in flies. Existing adults can linger for a week or more after source removal, so there is no dependable same-day finish line.

Protect the surfaces around the drain.

Check shower materials

Sources