Drain Fly Trap: DIY, Commercial, and the Real Fix

Trapping adult drain flies reduces their numbers quickly, but traps alone won’t end an infestation. Drain flies breed inside the slimy organic film lining your pipes, and a single female can restart the cycle by laying eggs directly on that buildup. The most effective approach combines traps to catch flying adults with drain cleaning to destroy the larvae and biofilm where they reproduce. Expect the process to take at least three weeks.

Make Sure You’re Dealing With Drain Flies

Drain flies are light gray or tan, about the size of a grain of rice, with broad wings that have a dark border. Their bodies and wings are covered in fine hairs, giving them a fuzzy, moth-like appearance. You’ll often spot them resting on walls near sinks, showers, or floor drains, and they tend to make short, hopping flights rather than sustained buzzing.

Two common lookalikes can throw you off. Fruit flies are slightly smaller, have a compact housefly-shaped body, and cluster around fruit bowls, trash cans, and recycling bins. Their eyes are distinctly red or black. Fungus gnats look more like tiny mosquitoes, have long legs, and stick close to the moist soil of potted plants. If the bugs you’re seeing hang around drains and bathroom walls, they’re almost certainly drain flies.

DIY Apple Cider Vinegar Trap

The simplest homemade trap uses about a quarter cup of apple cider vinegar and a few drops of liquid dish soap in a jar. The vinegar’s sweet, fermented smell draws drain flies in, and the dish soap breaks the surface tension of the liquid so the flies can’t land and take off again. Their wings get weighed down and they drown.

For best results, punch a few small holes in the jar’s lid with a nail. The holes let the scent escape while making it harder for flies to find their way back out. Place one trap near each affected drain and swap out the liquid every two to three days as it loses potency. This method works well for knocking down the adult population while you tackle the real problem in the pipes.

Commercial Trap Options

If you’d rather not mess with vinegar jars, plug-in light traps are the most popular commercial option. These use blue and UV light to attract small flying insects onto a hidden sticky pad. They run continuously, don’t use sprays or zappers, and the adhesive cartridges are disposable, so cleanup is just swapping in a new one. Wall-mounted versions stay out of the way in bathrooms or kitchens.

Standard yellow sticky traps (the kind sold for fungus gnats) also catch drain flies, though they’re less targeted. Placing them near drain openings or on the wall where you’ve seen flies resting will give you a rough count of how many adults are still emerging, which is useful for tracking whether your drain treatment is working.

Why Traps Alone Won’t Solve the Problem

Drain flies complete their entire life cycle in as little as two weeks. Larvae feed on the gelatinous film of bacteria, algae, and decaying organic matter that coats the inside of pipes, and adults lay their eggs right back on that same film. A trap catches the adults you can see, but new ones keep hatching from larvae hidden inside the drain. Without removing the biofilm, you’re just catching the symptoms.

Cleaning the Drain: The Real Fix

The goal is to physically remove or dissolve the organic buildup where larvae live. You have a few options, and combining them works best.

Enzyme Drain Cleaners

Enzyme-action drain products are specifically designed to break the sticky bond that bacteria and algae form on pipe walls. They digest the biofilm gradually rather than blasting it with chemicals, which makes them more effective at reaching the thin, stubborn layer that drain fly larvae cling to. Follow the product’s directions, and plan to repeat treatments over multiple weeks.

Avoid caustic lye-based drain openers. They’re less effective against biofilm and create a serious safety hazard: if lye residue in the pipe mixes with bleach (a common next instinct), it can release chlorine gas.

Baking Soda and Vinegar

For a chemical-free option, sprinkle half a cup of baking soda into the drain, then pour in one cup of white vinegar. The fizzing reaction helps loosen organic buildup along the pipe walls. Let it work for about ten minutes, then flush with very hot (not boiling) water. Boiling water can damage certain pipe materials, so the hottest tap water is a safer choice. Repeat this for every drain in the house, including showers and floor drains, since drain flies will breed in any available moist pipe.

Manual Cleaning

A stiff bottle brush or drain brush pushed down into the pipe opening physically scrapes away the film that chemical treatments might miss. This is especially useful for shower drains and sink overflows where buildup tends to be thickest. Combining a manual scrub with an enzyme cleaner gives you the most thorough result.

The Three-Week Timeline

Drain fly larvae feed and molt through four stages over roughly 18 days before pupating, which takes another five days or so. Their total lifespan is about 35 days. Because eggs and larvae are already developing inside your pipes when you start treatment, you need to maintain consistent cleaning for at least three weeks to outlast the entire life cycle. If you clean once and stop, surviving larvae will mature, lay new eggs, and the infestation restarts.

A practical schedule looks like this: set out traps on day one, clean all drains with an enzyme product or baking soda treatment, and repeat the drain treatment every few days. Monitor your traps to see if fewer adults are appearing over time. If you’re still catching new flies after three weeks, there’s likely a breeding source you’ve missed, such as a floor drain in a laundry room, a sink overflow hole, or a rarely used guest bathroom where water has evaporated from the trap and left the pipe exposed.

Preventing Drain Flies From Coming Back

Once the infestation is gone, the simplest prevention is running water regularly through every drain in your home. Drain flies need standing moisture and organic film to breed, so flushing drains weekly, especially those in guest bathrooms or basement utility sinks, keeps the environment inhospitable. Cleaning drain stoppers and sink overflow holes periodically removes the early stages of biofilm before it can support larvae. If you notice even one or two fuzzy flies on the wall near a drain, treat that drain immediately rather than waiting for the population to build.