top of page

How to Identify and Eliminate Drain Flies, Even if You've Never Tried it Before

Get Rid of Drain Flies by Removing the Slime They Breed In


Drain flies are tiny, fuzzy, moth-like flies that breed in the wet organic film inside drains and plumbing fixtures. To get rid of them, find the active drain, scrub away the sludge and hair with a stiff drain brush, clear any clog, and flush the line with hot water. Killing the adult flies alone will not solve the problem because new adults can emerge from the biofilm within days.

A quick way to find the source is to place clear tape loosely over a suspect drain overnight. If flies collect on the tape by morning, that drain likely needs a deeper cleaning. Check bathroom sinks, showers, floor drains, garbage disposals, appliance drain lines, and rarely used fixtures first.

Drain flies do not bite or damage pipes, but a steady swarm can point to buildup, standing water, or a plumbing issue that deserves attention. Bleach and vinegar may affect the surface, yet they usually cannot reach larvae protected inside thick drain slime.

I am Adam Wettach, owner of All Star Service & Repair, and I have hands-on experience diagnosing drain buildup, clogs, leaks, and other plumbing conditions that allow drain flies to persist. The steps below will help you identify the source and remove it safely, even if you have never dealt with these pests before.


Understanding Drain Flies: Biology, Habits, and Habitats

Drain flies belong to the insect family Psychodidae, a diverse group encompassing more than 2,600 described species across the globe. Commonly known as moth flies, filter flies, or sewer gnats, these insects thrive in dark, humid environments filled with decaying organic debris.

In nature, they serve an ecological purpose by helping break down decomposing materials in wetlands, compost, and riverbanks. Inside a home, however, they quickly establish micro-ecosystems in the gel-like biofilm coating the inside of plumbing pipes. While they do not cause structural pipe damage or chew through wires, their presence indicates standing water and decomposing waste inside your drainage network.

How to Accurately Identify Drain Flies

Accurate identification is essential because treating drain flies requires a different approach than dealing with common pantry or plant pests. According to university entomology publications, such as the NC State Extension entomology guide on drain flies, adult moth flies measure approximately 2 to 3 mm (1/6 to 1/5 inch) in length. They are light gray, tan, or dark charcoal, with a stocky body covered in fine hairs.

When at rest, they hold their broad, paddle-shaped wings flat and angled roof-like over their bodies, resembling miniature moths. They are notoriously weak, erratic fliers, rarely traveling more than a few feet in a single flight. If you see a tiny insect resting on the tile above your sink that hops or flutters lazily when disturbed, it is almost certainly a member of the Psychodidae family.

Feature

Drain Flies (Psychodidae)

Fruit Flies (Drosophila)

Fungus Gnats (Sciaridae)

Size

2–3 mm (1/6–1/5 inch)

3–4 mm (1/8 inch)

2–4 mm (1/8 inch)

Appearance

Fuzzy, moth-like, broad wings

Tan body, prominent red/dark eyes

Slender, mosquito-like, long legs

Wing Position

Held roof-like over abdomen

Folded flat over back

Upright or folded flat

Flight Pattern

Weak, jerky, short hops

Smooth hovering, agile

Weak, erratic near plant soil

Primary Habitat

Gelatinous drain slime, sewers

Fermenting fruit, trash, compost

Moist houseplant potting soil

The Four-Stage Life Cycle and Feeding Habits

Understanding how rapidly these insects reproduce explains why a small nuisance can escalate within a week. As documented in Virginia Tech entomological research on the Drain Fly, their development follows four distinct stages:


  1. Egg Stage: A single adult female deposits clutches of 30 to 100 eggs (and sometimes irregular masses up to 200) directly into moist, gelatinous biofilm. In warm indoor conditions, these eggs hatch in less than 48 hours.

  2. Larval Stage: The legless, worm-like larvae measure roughly 4 to 5 mm (up to 3/8 inch) long. Equipped with specialized breathing tubes and attachment disks, larvae survive low-oxygen environments by trapping air bubbles. Over a period of 9 to 15 days, they feed aggressively on bacteria, fungi, algae, and decaying sediment coating the pipe wall.

  3. Pupal Stage: The pupal transformation is rapid, lasting between 20 and 40 hours (or up to 2 days in cooler rooms). During this time, the insect transforms just above the liquid line.

  4. Adult Stage: Adults emerge ready to reproduce. While adults only survive 3 to 4 days without moisture or nutrients, they can live up to 20 days when moisture or sugary carbohydrate residues are available.

Common Breeding Sites Across the Home

Drain flies require only a thin layer of moisture and decaying matter to establish a colony. While sink drains are the most frequent culprits, infestations can originate in several areas of a home:


  • Shower and Bathtub Traps: Hair traps soap scum, body oils, and dead skin cells, creating an ideal nursery for larvae.

  • Sink Overflow Channels: The narrow passages designed to prevent sink overflows rarely get flushed with running water, allowing thick biofilm to form undisturbed.

  • Floor Drains and Sump Pits: Infrequently used basement floor drains often dry out or accumulate stagnant sludge.

  • HVAC Condensate Lines: Air conditioners and dehumidifiers produce constant drainage. If lines clog with algae, flies can colonize the drain pans.

  • Kitchen Disposals and Dishwasher Lines: Food particles caught in disposal baffles or dishwasher discharge hoses supply ample organic matter.

Keeping up with routine plumbing maintenance ensures these hidden niches remain free of standing water and decaying sludge.

Proven Step-by-Step Methods to Eliminate Household Infestations

Eradicating an infestation requires eliminating the breeding medium. Simply spraying flying adults will not stop the cycle, as dozens of larvae remain nestled in the pipe biofilm.

The Overnight Sticky Tape Detection Test

Before applying cleaning treatments, pinpoint the exact pipes harboring the larvae using a clear tape test.


  1. Dry the Fixture: Thoroughly dry the rim and grate of every suspected drain before going to bed.

  2. Apply the Tape: Place strips of clear packaging tape or duct tape across each drain opening, sticky-side down. Cover the majority of the opening, but leave small gaps around the edges so escaping air does not push the tape off. You can also invert a clear cup coated with a thin layer of petroleum jelly over the drain.

  3. Check the Next Morning: Inspect the underside of the tape in the morning. Because drain flies are nocturnal and attempt to leave the pipe to feed and mate, several trapped adults on a specific piece of tape confirm that pipe as an active breeding zone. Repeat this test across multiple drains to map all active sites.

Mechanical Cleaning and Sludge Eradication

Once you find the source, physically scrub away the organic buildup lining the pipes.

  • Step 1: Clear Mechanical Obstructions: Remove drain stoppers, strainers, and hair catchers. Clean away matted hair and debris using a zip-it tool or a hand snake.

  • Step 2: Scrub the Pipe Walls: Insert a stiff, long-handled pipe brush into the drain. Move the brush up, down, and in circular motions to scrape off the gelatinous slime. Be sure to scrub the underside of the drain rim and the overflow channel.

  • Step 3: Flush with Boiling Water: Slowly pour a kettle of boiling water down the drain to dislodge loosened slime and flush away exposed larvae. Repeat this flush twice daily for several days.

  • Step 4: Clean Appliance Catch Pans: Empty, scrub, and sanitize refrigerator defrost trays, dehumidifier reservoirs, and HVAC condensate pans using warm, soapy water.

For heavily obstructed main lines or persistent whole-house infestations, opting for professional drain cleaning provides the mechanical scouring required to clear deep buildup.

Why Bleach and Vinegar Fail to Kill Drain Flies

Pouring household bleach or vinegar down a sink is a common DIY attempt, but it rarely produces lasting results.

Bleach quickly washes over the top of the sludge without dissolving the thick, gummy core where eggs and larvae reside. Furthermore, drain fly larvae can trap air bubbles, allowing them to remain submerged beneath caustic surface liquids unharmed. Pouring large amounts of bleach can also corrode older plumbing components and disrupt the beneficial bacterial balance of septic systems. Bleach should never be combined with ammonia or acidic drain openers, as mixing them produces hazardous chlorine or chloramine gas.

Instead, use enzymatic or bacterial drain cleaners formulated to break down grease, hair, and organic films. These treatments introduce active enzymes that consume the biofilm over several hours. For ongoing commercial or severe residential outbreaks, professional plumbers may apply insect growth regulators (such as hydroprene) to prevent remaining larvae from maturing into breeding adults.

Long-Term Plumbing Maintenance and Moisture Control

Preventing future infestations comes down to eliminating the moisture and organic matter that attract adult flies.

Routine Upkeep for Traps and Appliances

  • Maintain P-Trap Water Seals: Fixtures in guest bathrooms, basements, or utility rooms dry out over time when left unused. When the water barrier inside the P-trap evaporates, it creates an open pathway for sewer pests to enter your living spaces. Run water down all household fixtures for one minute at least once every two weeks.

  • Clean Garbage Disposals Weekly: Run ice cubes and coarse salt through the disposal to scour the grinding chamber, followed by citrus peels or an enzymatic cleaner to break down grease beneath the splash guard.

  • Inspect Condensate and Sump Lines: Ensure air conditioner condensate lines flow freely without pooling around your foundation or inside basement basins.

Investing in consistent, preventative drain maintenance helps keep your plumbing system free of stagnant waste year-round.

Resolving Sewer Infiltration and Hidden Pipe Leaks

If you have thoroughly cleaned your fixtures but swarms continue to reappear, the flies may be breeding inside cracked underground pipes or beneath your foundation. Breaks in a main sewer line allow sewage to saturate the surrounding soil, creating an ideal breeding habitat beneath concrete slabs or crawlspaces.

In these situations, a standard drain snake cannot resolve the issue. Plumbers use a high-definition specialized sewer inspection camera to identify hidden cracks, root intrusions, and misaligned joints. Repairing these compromised lines through targeted structural sewer repair permanently cuts off the moisture source and stops underground colonies from entering your home.

Frequently Asked Questions

Do these pests bite or transmit harmful diseases to humans?

No, drain flies do not bite humans or pets, as they lack chewing or stinging mouthparts. Unlike houseflies, they do not regularly land on human food to transmit pathogens. However, because they breed in sewage and decaying biological matter, their bodies can mechanically carry bacteria onto nearby surfaces. In large numbers, shedding body parts and hairs from decaying adult flies can become airborne, occasionally triggering respiratory irritation or asthma attacks in sensitive individuals.

How long does it take to completely eliminate an infestation?

Once you remove the organic biofilm through mechanical scrubbing and hot water flushing, adult fly activity typically drops within 48 to 72 hours. However, because pupae already resting outside the water line may still hatch, you might see a few lingering adults for up to a week. Full elimination is usually achieved within 7 to 10 days of thorough cleaning.

Why do gnats keep returning after thorough cleaning?

If flies return shortly after a deep clean, one of three issues is typically responsible:

  1. Untreated Secondary Drains: The flies may be breeding in an adjacent overflow channel, appliance pan, or unused floor drain that was missed.

  2. Dry Plumbing Traps: Unused fixtures may have lost their water seals, allowing flies to move freely from the municipal sewer line into the home.

  3. Hidden Subfloor Breaks: A cracked drain pipe beneath your floorboards or foundation slab may be saturating soil with wastewater. In this case, professional targeted sewer odor detection and underground drain repair are required to fix the hidden leak.

Conclusion

Drain fly infestations are frustrating, but they can be resolved by locating and removing the organic biofilm where larvae develop. Routine brushing, flushing traps with hot water, and keeping unused fixtures moist will resolve most minor issues.

When DIY scrubbing is not enough, or if persistent pests suggest hidden leaks or sewer complications, our team at AllStar Service & Repair is ready to help. We provide Northern Utah homeowners with transparent, straightforward pricing and high-quality craftsmanship. Contact us today to schedule your trusted comprehensive plumbing services and restore your home's plumbing system.

 
 
 

Comments


bottom of page