how to get rid of drain flies
Introduction
Drain flies (also called moth flies, sewer gnats, or sink flies) are small fuzzy insects that hover around sinks, showers, and floor drains. They are not dangerous, but they are annoying, unsanitary, and often a sign of buildup inside your plumbing.
This guide explains exactly how to get rid of drain flies, step-by-step. You’ll learn why they appear, how to locate where they’re breeding, the most effective treatment methods (both chemical and natural), and how to prevent them from coming back.
Why Drain Flies Appear
Drain flies don’t actually live inside clean running water. They live and breed in organic sludge and gunk that accumulates in and around drains. Understanding this helps you target the real problem: the breeding site.
Main reasons drain flies appear
- Organic buildup in pipes: Hair, soap scum, grease, food particles, and biofilm cling to the inside of drain pipes and traps. This slimy layer becomes the drain fly’s food source and breeding ground.
- Rarely used drains: Guest bathrooms, basement floor drains, and unused utility sinks often hold stagnant water and sludge, which attract drain flies.
- Leaky or damaged pipes: Moist soil or standing water under slabs, behind walls, or in crawl spaces can harbor decaying material that supports large infestations.
- Dirty or clogged traps: P-traps and U-bends that aren’t fully flushing or are partially clogged allow organic matter to accumulate.
- Nearby sewage issues: Cracked sewer lines or septic problems can create hidden breeding sites that drain flies can access.
How to confirm you have drain flies
Drain flies are often confused with fruit flies or fungus gnats. Correct ID matters because each type breeds in different places.
- Appearance: Drain flies are tiny (about 1/8 inch), fuzzy, and moth-like with heart-shaped wings. They move in short, hopping flights rather than long, smooth ones.
- Location: They hover near sinks, showers, bathtubs, floor drains, or sump pits—usually near a single drain or small cluster of drains.
- Behavior: They rest on walls near the drain, often in groups. If you disturb them, they fly only a short distance.
Once you’re sure they’re drain flies, the next step is to find and destroy the breeding site inside or around your plumbing.
5 Proven Methods to Get Rid of Drain Flies
Drain flies won’t disappear just by killing the adults you see. You must remove the sludge where the larvae are growing. Use one or more of the methods below, in order.
1. Identify the exact breeding drain (tape test)
If you see flies in several places, first pinpoint which drain(s) are causing the problem.
What you need: Clear packing tape or transparent plastic wrap.
Steps:
- At night, when activity is low, dry the sink or surrounding area.
- Place a piece of clear tape sticky-side down over the drain, leaving small gaps around the edges so air can still flow.
- Alternatively, stretch plastic wrap tightly across the top of the drain and poke a few small holes.
- Leave overnight.
- In the morning, check the tape or wrap. If drain flies are stuck to the surface or resting on it, that drain is a breeding site.
Repeat for any suspect drains. Treat every drain that shows activity.
2. Physically scrub the drain and trap
This is the most important step. You must remove the material the larvae live in.
What you need:
- Drain brush or stiff pipe cleaning brush (long enough to reach into the trap)
- Bucket or container
- Old toothbrush
- Dish soap and hot water
- Rubber gloves
Steps:
- Remove the drain cover. Unscrew or pry off the grate. Clean it thoroughly with dish soap and an old toothbrush.
- Brush inside the drain. Insert the drain brush and scrub up and down, focusing on the sides of the pipe and the U-shaped trap where sludge accumulates.
- Flush with hot soapy water. Pour a pot or several kettles of hot (not boiling on PVC) soapy water down the drain to rinse loosened debris.
- Repeat if needed. If the brush pulls out a lot of gunk, scrub and flush again until it comes out mostly clean.
This physical cleaning breaks up the environment drain fly larvae depend on. For mild infestations, this alone often solves the problem.
3. Use an enzyme or bio-drain cleaner
After manual cleaning, enzyme-based cleaners help break down remaining organic material and biofilm that you can’t reach with a brush.
Why enzyme cleaners work:
- They contain beneficial bacteria and enzymes that digest organic waste.
- They are safer for pipes than harsh chemical drain cleaners.
- They work over several hours, penetrating slime layers.
Steps:
- Choose a product labeled for drain maintenance and/or specifically for drain flies.
- Use the product at night when water use is minimal. This gives the enzymes time to work.
- Follow the label exactly (usually pour a measured amount into the drain, then avoid running water for 6–8 hours).
- Repeat nightly for 5–7 days for active infestations, then weekly as maintenance.
Note: Chemical “drain openers” (caustic or acid-based) usually do not solve drain fly problems because they don’t remove all organic film, and they can damage pipes and fixtures if misused.
4. Treat hidden or floor drains thoroughly
Basement floor drains, shower drains, and sump pits often harbor infestations because they’re harder to clean.
For floor and shower drains:
- Remove the grate or cover.
- Use a flashlight to inspect visible buildup around the edges and in the trap.
- Scrub reachable surfaces with a brush.
- Pour hot, soapy water down the drain, followed by an enzyme cleaner as directed.
- If the trap is accessible from below (e.g., in a basement), consider having a plumber remove it for deep cleaning if infestation is severe.
For sump pits or utility basins:
- Clean the walls and exposed surfaces of the pit or basin.
- Remove any sludge, debris, or organic matter at the bottom if you can do so safely.
- Use an enzyme treatment approved for sump systems.
5. Control adult flies with traps (while larvae are being eradicated)
Adult drain flies will continue to appear for a few days even after you’ve treated the drain. Use simple traps to reduce their numbers and monitor progress.
Sticky traps
- Place yellow or clear sticky fly traps near the affected drains.
- Hang them or place them flat where flies like to rest (near walls or cabinets adjacent to sinks).
- Check and replace as needed until catches decline significantly.
Homemade light + bowl trap
- Fill a shallow bowl with water and a few drops of dish soap.
- Place it near the affected drain.
- Position a small lamp or bright light to shine onto the surface of the water at night.
- Flies attracted to the light will land on the soapy water and drown.
Remember: Traps only kill adults. If you don’t eliminate the breeding sludge, the infestation will return.
Natural Remedies for Drain Flies
If you prefer non-chemical solutions, these methods can support or replace commercial enzyme products. However, they should always be combined with physical cleaning for best results.
1. Boiling water flush (supporting method)
Steps:
- Boil a large pot or kettle of water.
- Slowly pour it down the affected drain in stages (for metal pipes). For PVC pipes, use very hot tap water, not fully boiling, to avoid damage.
- Repeat 1–2 times per day for several days.
Boiling water helps dislodge slime and kill some larvae, but it rarely reaches all organic buildup on its own.
2. Baking soda and vinegar
This popular home remedy can help loosen debris and deodorize drains.
Steps:
- Pour about 1/2 cup of baking soda directly into the drain.
- Follow with 1 cup of white vinegar.
- Allow the mixture to foam and sit for 30–60 minutes.
- Flush with several minutes of hot water.
Use this method after brushing the drain to help remove remaining sludge.
3. Salt, baking soda, and hot water (overnight treatment)
- Mix 1/2 cup salt with 1/2 cup baking soda.
- Pour the dry mixture into the drain at night.
- Follow with 1 cup of hot (not boiling) white vinegar or hot water.
- Let sit overnight without running the water.
- Flush thoroughly in the morning with hot water.
This combination can help dry and disrupt the slimy environment larvae live in.
4. DIY vinegar trap for adult flies
To capture adult drain flies naturally:
- Fill a small container halfway with apple cider vinegar.
- Add a few drops of dish soap to break surface tension.
- Cover with plastic wrap and poke small holes if you want a more contained trap, or leave open if placed carefully.
- Set the trap near the problem drain; replace every few days.
Again, this doesn’t treat larvae, but it reduces visible adults while you work on the pipes.
Prevention Tips (So They Don’t Come Back)
Once you’ve eliminated the current infestation, keep drains clean and dry to prevent drain flies from re-establishing.
1. Maintain drains regularly
- Weekly: Run hot water and a squirt of dish soap down frequently used drains to reduce buildup.
- Monthly: Use an enzyme-based drain cleaner as a preventive treatment, especially in kitchen sinks, showers, and floor drains.
- For garbage disposals: Clean with ice cubes and a small amount of rock salt, then flush with hot water. Finish with some lemon or vinegar to break up grease.
2. Keep rarely used drains wet and clean
To prevent stagnant water and odors in infrequently used drains:
- Once every 1–2 weeks, run water for a minute to refill traps and flush out debris.
- Pour a small amount of enzyme cleaner monthly into guest bathroom or basement floor drains.
- Consider adding a trap seal primer or a mechanical trap seal device to floor drains that frequently dry out (consult a plumber).
3. Reduce organic matter going down drains
- Use sink strainers to catch food scraps, hair, and debris; empty strainers into the trash.
- Avoid pouring grease, fats, or large amounts of food waste down the sink or disposal.
- In showers and tubs, use hair catchers and clean them regularly.
4. Fix plumbing issues promptly
- Repair leaks under sinks, behind toilets, or around tubs.
- Address slow drains—have them professionally cleaned if plunging doesn’t help.
- If you smell sewage or notice persistent moisture in walls or floors, contact a plumber; a cracked drain or sewer line can be a major hidden breeding site.
5. Keep surrounding areas dry and clean
- Wipe around sink rims, counters, and the tops of floor drains to remove moisture and residue.
- Store mops, buckets, and cleaning rags so they can dry completely between uses.
- Clean under and behind appliances where moisture and grime can accumulate.
FAQ
How long does it take to get rid of drain flies?
With proper cleaning and treatment, you can usually eliminate most drain fly activity in about 1–3 weeks. Adult flies live around 1–3 weeks, and larvae need 1–2 weeks to develop. Once you destroy the breeding site, no new adults will emerge, and existing adults will die off naturally.
Are drain flies harmful?
Drain flies are not known to bite or transmit major diseases to humans. However, they breed in dirty, bacteria-rich environments and can spread microorganisms mechanically as they move. A large infestation also indicates unsanitary drain conditions that should be corrected.
Will bleach kill drain flies?
Bleach may kill some larvae on contact, but it usually passes through the drain too quickly to dissolve the entire sludge layer where they live. It’s also harsh on plumbing and not effective as a long-term solution. Physical cleaning plus enzyme products works much better.
Why do drain flies keep coming back?
If drain flies return, it usually means:
- The main breeding site was not fully cleaned (sludge remains in the trap or pipe walls).
- Another drain or hidden leak is also infested and was not treated.
- The drain re-accumulated organic buildup due to lack of maintenance.
Repeat the tape test on all nearby drains and inspect for leaks or moisture problems.
Do I need a plumber or pest control professional?
You can handle most mild to moderate infestations yourself. Consider calling a professional when:
- Flies persist after thorough cleaning and enzyme treatment of all drains.
- You suspect a broken or leaking drain line under a slab or behind walls.
- There is a strong sewer odor, or you see moisture or staining in structural areas.
A plumber can inspect the sewer system and pipes; a pest control pro can help confirm the source and treat large infestations.
Can drain flies come from the toilet?
Drain flies usually breed in sinks, showers, and floor drains, but they can also use toilets if there is organic buildup under the rim or in hidden parts of the trap. Clean under the rim with a toilet brush and cleaner, and flush enzyme treatments if you suspect the toilet is a source.
How do I know when they’re gone?
Signs that your treatment worked:
- No new flies appear on tape tests over affected drains.
- Sticky traps and vinegar traps stop catching new flies.
- You no longer see flies resting on walls near drains.
Continue preventive maintenance even after the flies disappear to keep your drains clean and fly-free.
Want a plan tailored to your home?
Based on your fly type, home situation, and preferences. Get a Personalized Fly Removal Plan to remove flies fast and safely.
Get My Custom Plan