If tiny moth-like insects have suddenly appeared around your kitchen sink, bathroom drain, or shower, you’re likely dealing with drain flies also known as moth flies, filter flies, or sewage flies (family Psychodidae). The good news? You can create an effective DIY fly trap for drain flies using simple household items.
This guide walks you through proven homemade traps, how to get rid of drain gnats, how to clean the drain to stop larvae, and how to prevent them from coming back.
What Are Drain Flies? (Psychodidae Explained)
Drain flies are small, fuzzy insects about 1–3 mm long. They thrive in gelatinous slime, organic matter, and biofilm that builds up inside drains.
Drain Flies vs Fruit Flies vs Fungus Gnats
- Drain flies: fuzzy wings, hover near drains
- Fruit flies: attracted to fruit, garbage, sugary liquids
- Fungus gnats: found in soil and houseplants
Life Cycle
- Eggs laid inside organic film
- Larvae feed on sludge
- Pupae develop in the same slime
- Adult flies emerge and gather near drains
Common Infestation Areas
- Kitchen sink drains
- Bathroom shower drains
- Floor drains
- Septic tanks
- Sump pumps
Signs You Need a Fly Trap for Drain Flies

1. The Duct Tape Test
Place duct tape over the drain overnight (sticky side down).
If you see flies stuck to it in the morning, you’ve found the breeding site.
2. Musty Drain Odor
Biofilm buildup often creates a sewage-like smell.
3. Flies Swarming Near Sinks
Adults hover around tiles, faucets, pipes, and drain edges.
Why DIY Fly Traps Work (The Science Behind Them)
Drain flies are highly attracted to the natural fermentation smell of:
- Apple cider vinegar
- Sugar mixtures
- Organic acids
Dish soap added to traps reduces surface tension, causing flies to sink and drown.
Best DIY Fly Traps for Drain Flies (Step-by-Step)
Below are the 4 most effective homemade fly traps for drain flies. Each uses inexpensive materials and can be set up in minutes.
1. Apple Cider Vinegar Trap (Most Effective)
Materials:
- Apple cider vinegar
- Dish soap
- Small bowl or jar
- Plastic wrap (optional)
Instructions:
- Fill a bowl with ½ cup apple cider vinegar.
- Add 2–3 drops of dish soap.
- Leave uncovered or cover with plastic wrap and poke small holes.
- Place near the active drain.
Why it works:
The vinegar attracts flies; dish soap kills them.
2. Sugar & Dish Soap Mix Trap
Perfect for homes without vinegar.
Instructions:
- Mix 1 tablespoon sugar, 1 cup water, and 3–4 drops dish soap.
- Leave near the drain overnight.
Why it works:
Sugar fermenting in water attracts flies deeply.
3. Funnel Bottle Trap (Heavy Infestations)
Instructions:
- Cut a plastic bottle in half.
- Fill the bottom with vinegar + sugar mixture.
- Invert the top to form a funnel.
- Tape edges and place beside the drain.
Why it works:
Flies can get in, but not out.
4. Sticky Traps & Fly Light Traps
Stick adhesive traps near drain openings or place fly lights in dark bathrooms to capture nighttime activity.
How to Clean the Drain (Stop Eggs, Larvae, and Biofilm)
Traps kill only adult drain flies. To eliminate larvae, pupae, and eggs, you must clean the breeding site.

1. Boiling Water Flush
Pour boiling water down the drain 2–3 times a day to soften slime.
2. Baking Soda + Vinegar Reaction (Foaming Cleanser)
This loosens biofilm naturally.
Steps:
- Pour ½ cup baking soda into the drain.
- Add 1 cup vinegar.
- Let foam for 15 minutes.
- Rinse with hot water.
3. Salt + Baking Soda Overnight Treatment
Great for stubborn slime.
Mix and pour into drain:
- ½ cup salt
- ½ cup baking soda
Flush with hot water in the morning.
4. Enzyme Drain Cleaners (Most Effective)
These cleaners break down organic matter without damaging plumbing.
They are also typically EPA-approved and safe for septic systems.
5. Pipe Brush Cleaning
Use a long brush to manually scrub slime inside the pipe walls.
How to Get Rid of Fruit Flies in Drains (If It’s Not Drain Flies)
Sometimes fruit flies hover near sinks but aren’t breeding there.
For fruit flies:
- Add fermented fruit peels to traps for a stronger attractant.
- Clean garbage disposals thoroughly.
- Remove overripe fruit from counters.
How to Get Rid of Drain Gnats Completely (Full DIY Plan)
Step-by-step elimination timeline:
Day 1:
- Set 2–3 DIY traps
- Perform boiling water flushes
Day 2–3:
- Use baking soda + vinegar OR enzyme treatment
- Continue running traps
Day 4–7:
- Scrub drain with pipe brush
- Refresh traps as needed
Expect a full reduction in 5–14 days, depending on infestation severity.
Advanced Troubleshooting (If Traps Aren’t Working)
1. Wrong Placement
Place traps directly beside the active drain.
2. Competing Food Sources
Wipe counters, dispose food waste, clean under appliances.
3. Dry Traps
Evaporation reduces effectiveness, refill as needed.
4. Misidentified Pest
If traps stay empty, you may be seeing:
- Filter flies
- Moth flies
- Sewage flies
(These are all closely related but may need deeper plumbing cleaning.)
Prevention Tips to Keep Drain Flies Away Permanently
- Clean drains weekly with boiling water
- Avoid standing water under sinks
- Clean P-traps and garbage disposals
- Maintain septic tanks and sump pumps
- Use enzyme cleaners monthly
The CDC notes that while drain flies don’t spread disease, infestations indicate unsanitary moisture conditions, which should be corrected.
Final Thoughts: The Best DIY Methods That Actually Work
A DIY fly trap for drain flies is the fastest way to eliminate adults, but true success requires cleaning the drain where eggs and larvae develop. Combine traps, boiling water, baking soda and vinegar, and enzyme cleaners for the strongest result.
With the steps above, you can fully get rid of drain gnats and keep them from ever coming back.
FAQs
Do fly traps work on drain flies?
Yes , but only on the adults.
DIY fly traps (apple cider vinegar, sugar + soap mixes, funnel traps, sticky traps) are very effective at capturing and killing adult drain flies.
However, traps do NOT kill the eggs, larvae, or pupae living inside the drain’s biofilm.
To fully eliminate an infestation, you must:
Use traps for adults
Clean the drain to remove biofilm, where larvae feed and grow
Use enzyme cleaners or baking soda + vinegar to break down residue
Traps = symptom control. Drain cleaning = actual solution.
How to permanently kill drain flies?
To eliminate drain flies permanently, you must destroy the breeding environment inside the drain.
Step-by-step permanent removal:
Flush with boiling water 2–3 times daily.
Pour baking soda + vinegar into the drain to break down sludge.
Use enzyme drain cleaner overnight to dissolve organic matter (most effective).
Scrub inside the drain with a long pipe brush.
Set vinegar traps nearby to catch remaining adults.
Critical Rule:
If biofilm remains, drain flies will return — even if all adults are killed.
Removing the slimy buildup breaks the entire lifecycle (eggs → larvae → pupae → adults).
How to make a homemade drain fly trap?
Here’s the fastest and most effective DIY drain fly trap:
Apple Cider Vinegar Trap (works in minutes)
You’ll need:
½ cup apple cider vinegar
2–3 drops dish soap
Small bowl or jar
Plastic wrap (optional)
Instructions:
Pour vinegar into a bowl.
Add dish soap (this kills the flies).
Leave uncovered or cover with plastic wrap and poke tiny holes.
Place it close to the drain where flies hover.
Why It Works
Drain flies are strongly attracted to the fermented smell of vinegar. They land, break the surface tension, and sink.
What smell do drain flies hate?
Drain flies dislike strong, sharp odors including:
1.Peppermint oil
2.Eucalyptus oil
3.Tea tree oil
4.Lavender oil
5.Citrus peels
6.Bleach fumes (but bleach does not fix the drain problem)
These smells can repel adult flies, but they do not kill larvae or remove biofilm.
Use them as supplemental repellents, not your main removal method.

