What Is a Drain Fly and How Do You Get Rid of Them?

A drain fly is a small, fuzzy, moth-like insect that breeds inside the slimy buildup found in household drains. About 2 to 5 millimeters long, these flies have broad, leaf-shaped wings covered in tiny hairs, giving them a furry appearance that sets them apart from fruit flies or gnats. They’re weak fliers, often found resting on walls and ceilings near bathrooms or kitchens, and they tend to make short hopping flights rather than buzzing around a room.

What Drain Flies Look Like

Drain flies are gray or tan with a distinctive fuzzy body and oversized wings relative to their size. When they land, they hold their wings flat over their body like a roof, which is why many people mistake them for tiny moths. Their bodies and wings are densely covered in fine hairs, which also make them resistant to water and many liquid-based sprays. You’ll most often spot them sitting motionless on a bathroom wall, near a sink, or hovering near a floor drain.

Where They Come From

Drain flies breed in the thin, gelatinous film of organic matter that coats the inside of pipes. This biofilm is made up of soap scum, hair, food residue, algae, fungi, and bacteria. Larvae hatch and feed on this sludge, which is why the flies seem to appear from nowhere once a drain hasn’t been cleaned in a while.

The drains most likely to harbor them are ones that see infrequent use, like a guest bathroom shower, a basement floor drain, or a rarely used utility sink. When water sits in a drain trap for long periods, it creates a stagnant, dark, moist environment that’s ideal for breeding. Sink drains, toilets, floor drains, tub drains, and leaky shower pans are all potential sites. Outside the home, drain flies naturally live in swamps, wet wooded areas, and anywhere with moist, decaying organic matter. Sewage treatment plants, clogged gutters, wet compost piles, and even overwatered potted plants can also support them.

Life Cycle and How Fast They Multiply

A drain fly’s entire life cycle, from egg to adult, takes roughly 8 to 24 days depending on temperature and conditions. Females lay eggs in irregular masses of 30 to 100 directly on the wet biofilm inside a drain. The eggs hatch within about 48 hours. Larvae feed on the organic film for 9 to 15 days before pupating, and adults emerge a day or two later.

Adult drain flies live about two to three weeks. Because the breeding cycle is so short and each female lays dozens of eggs at a time, a small problem can turn into a noticeable infestation within a couple of weeks if the food source (the pipe buildup) isn’t removed.

Are Drain Flies Harmful?

Drain flies don’t bite or sting. They’re primarily a nuisance pest, but they aren’t completely harmless either. Because they breed in bacteria-rich environments like sewer drains and decomposing organic matter, they can carry those bacteria to other surfaces in your home, including kitchen counters and food preparation areas.

For most people, a few drain flies pose no real health threat. However, in larger infestations, the dust and tiny fragments from dead drain fly bodies can trigger allergic reactions. People with asthma may notice worsened breathing symptoms. The flies can also land in food, which is both unpleasant and a potential contamination concern.

How to Find the Source

If you’re seeing drain flies but aren’t sure which drain they’re coming from, there’s a simple overnight test. Place a strip of clear tape, sticky side down, over each suspect drain opening before you go to bed. Leave it in place overnight. In the morning, check for adult flies stuck to the tape. An alternative version uses a clear plastic cup coated on the inside with a thin film of petroleum jelly or vegetable oil, inverted over the drain. Any adults emerging from that drain will get caught, confirming the breeding site.

Test multiple drains at once if you can. It’s common for the source to be a drain you wouldn’t suspect, like a floor drain in a laundry room or a shower that rarely gets used.

How to Get Rid of Them

The single most important thing to understand about drain flies is that killing the adults won’t solve the problem. The breeding population lives inside the pipe, protected by the biofilm. You have to remove the biofilm itself.

Mechanical Cleaning

The most immediately effective step is physically scrubbing the inside of the drain with a stiff pipe brush. This removes the accessible layer of organic buildup where eggs and larvae live. Pull out any visible gunk from the drain opening, then scrub as far down as the brush can reach. Follow up by flushing with hot water.

Enzyme Drain Cleaners

Enzyme-based or biological drain cleaners are designed to break down organic matter in the biofilm. They’re safe for plumbing and work by digesting the food source that sustains larvae. The trade-off is that they work slowly and typically require repeated applications over several days or weeks. A single treatment poured from the drain opening won’t reach biofilm that extends further down the pipe. Foaming enzyme products tend to coat more surface area inside the pipe, making them more effective than liquid versions.

Why Bleach Doesn’t Work

Pouring bleach down the drain is one of the most common approaches people try, and it’s largely ineffective. Bleach passes through the drain too quickly to penetrate the thick biofilm where eggs are embedded and larvae feed. It may kill a few larvae on contact, but it won’t eliminate the colony. Bleach at full strength is also corrosive and can damage older pipes over time.

Preventing Them From Coming Back

Once you’ve cleaned the drain and broken the breeding cycle, prevention comes down to two things: keeping drains clean and keeping them flowing. Run water through infrequently used drains at least once a week to flush the trap and prevent stagnant water from accumulating. Periodic use of enzyme cleaners can keep biofilm from rebuilding.

For floor drains that rarely receive water, such as those in basements or commercial spaces, a physical barrier like a waterless trap seal can block flies from traveling up through the drain. These are silicone valves that sit inside the drain body, allowing water to flow down while preventing anything from coming back up, including flies, sewer gas, and odors.

A drain fly infestation almost always points to a moisture and organic buildup problem somewhere in your plumbing. Fix the buildup, and the flies disappear. If you’ve cleaned every accessible drain and the flies persist, there may be a hidden source like a leaking pipe behind a wall, a broken shower pan, or a cracked sewer line that’s creating a breeding site you can’t see or reach.