A single house fly can lay 500 eggs in its short two-week life, and once a few breeding flies establish in a kitchen they multiply faster than store-bought sprays can keep up. A targeted fly trap diy setup made from items already in the pantry handles infestations more reliably than chemical sprays for a fraction of the cost. After dealing with everything from fruit flies in a brewery to barn flies on a horse property, the same handful of designs work in any home — but you need to match the trap to the species.
- Identify the Fly Before You Build the Trap
- Trap 1: Apple Cider Vinegar and Dish Soap (For Fruit Flies)
- Trap 2: Beer or Wine Bait (For Fruit Flies)
- Trap 3: Soda Bottle Funnel Trap (For House Flies)
- Trap 4: Yellow Sticky Cards (For Fungus Gnats and Whiteflies)
- Trap 5: Banana Peel and Plastic Wrap (For Fruit Flies)
- Trap 6: Drain Fly Treatment (For Sink and Floor Drains)
- Trap 7: Sugar Water and Yeast (Long-Lasting Outdoor Bait)
- Trap 8: Sticky Strip Hung From the Ceiling
- Prevention Beats Trapping Every Time
Identify the Fly Before You Build the Trap
Different flies respond to different baits. Five common indoor pests:
- House fly (Musca domestica): Large, gray-black, attracted to rotting food, manure, garbage. Use protein and sugar baits
- Fruit fly (Drosophila melanogaster): Tiny tan, red eyes, attracted to fermenting fruit, vinegar, beer, wine. Hovers around produce bowls and sink drains
- Fungus gnat (Bradysia): Tiny, black, slow-flying, breeds in moist potting soil of houseplants
- Drain fly (Psychodidae): Tiny, fuzzy, moth-like, breeds in slime inside drain pipes
- Cluster fly (Pollenia): Large, slow, swarms windows in fall and spring. Breeds outdoors in earthworms
If you misdiagnose the species, the most beautifully built trap will catch nothing. A vinegar trap is useless for cluster flies; sticky tape is useless for fungus gnats deep in soil.
Trap 1: Apple Cider Vinegar and Dish Soap (For Fruit Flies)
The single most effective DIY trap for fruit flies. Pour 1/2 cup apple cider vinegar into a small bowl or mason jar. Add 2-3 drops of Dawn dish soap. Stir gently to mix.
The vinegar attracts flies; the soap breaks the surface tension so they sink and drown rather than landing and escaping. Cover with plastic wrap secured with a rubber band, then poke 6-10 holes with a toothpick if you want to prevent escape (not strictly needed if soap concentration is right). Place near produce bowls, compost bins, and sink drains. Refresh every 3-4 days.
Trap 2: Beer or Wine Bait (For Fruit Flies)
Even more attractive to fruit flies than vinegar. Old wine, flat beer, or stale fruit juice with the same Dawn addition works identically. The yeast smell is a stronger attractant. Use the dregs of a wine bottle or the last 1/4 inch of an open beer rather than wasting fresh product.
Trap 3: Soda Bottle Funnel Trap (For House Flies)
This design catches large house flies, wasps, and hornets effectively. Cut the top off a 2-liter soda bottle just below the shoulder. Invert the top into the bottom of the bottle to form a funnel. Tape the seam with duct tape.
Bait the bottom with rotting fruit, raw meat scraps, or sugar water with a few drops of soy sauce or fish sauce. Flies enter through the funnel chasing the smell and cannot find their way back out the small opening. Best placed outdoors near garbage cans or compost — the bait gets foul fast.
Trap 4: Yellow Sticky Cards (For Fungus Gnats and Whiteflies)
Fungus gnats infesting houseplants respond best to yellow sticky cards (Stingmon yellow sticky traps, $10 for 25 cards on Amazon). The yellow color attracts them; the adhesive holds them. Cut cards in half, push into the soil of affected plants with a craft stick, and replace weekly.
For DIY versions, coat yellow card stock with petroleum jelly or Tanglefoot ($12 per 8 oz tub). Less elegant but works. Combine with bottom watering and reduced soil moisture to break the breeding cycle in 3-4 weeks.
Trap 5: Banana Peel and Plastic Wrap (For Fruit Flies)
For dense fruit fly populations, place a few overripe banana peels in a glass jar, cover with plastic wrap, secure with a rubber band, and poke holes large enough for flies to enter (about 1/8 inch). The flies cannot find the holes to escape.
Replace the bait every few days as the peels dry out and stop emitting attractant. This trap can catch dozens of flies overnight in a serious infestation.
Trap 6: Drain Fly Treatment (For Sink and Floor Drains)
Drain flies live in the slime layer inside drain pipes. No external trap kills the source. Treatment:
- Pour a kettle of boiling water down the drain to flush surface debris
- Pour 1 cup baking soda followed by 1 cup white vinegar. Let bubble for 30 minutes
- Flush with hot water
- Use a metal pipe brush (Drain Defender or any bottle brush, $8) to scrub the inside of the drain pipe and break up biofilm
- Apply a microbial drain cleaner (InVade Bio Drain Gel, $16) weekly for 4 weeks to digest remaining biofilm
While treating, lay strips of clear tape sticky-side-down across the drain overnight. Adult drain flies emerging stick to it, giving you a population count and indicator of progress.
Trap 7: Sugar Water and Yeast (Long-Lasting Outdoor Bait)
For an outdoor trap that catches house flies for weeks, mix 1 cup sugar, 1 packet of active dry yeast (2.25 tsp), and 4 cups warm water in a soda bottle funnel trap. The yeast ferments slowly, producing CO2 and alcohol that attract flies for 2-3 weeks. Place in shade away from doors so you do not draw flies toward the house.
Trap 8: Sticky Strip Hung From the Ceiling
The classic Catchmaster fly tape ($5 for 4 strips) is just rolled paper coated with a non-toxic adhesive. To DIY: cut strips of brown craft paper, coat with petroleum jelly mixed 50/50 with corn syrup, hang with thumbtacks. Place near windows, light fixtures, and over food prep areas (with food covered).
Aesthetics aside, sticky strips are the most effective passive trap for house flies in a heavily infested space — barns, garages, and basements. Indoors, hide them in less-visible corners or above doorways.
Prevention Beats Trapping Every Time
The best fly trap is one you never need. Cut the breeding ground:
- Empty kitchen trash daily during summer. Use a tight-lid bin (Simplehuman 45L, $200) and rinse weekly
- Refrigerate overripe fruit instead of leaving it on the counter
- Clean spills immediately, especially fruit juice and wine
- Run garbage disposal with ice and lemon weekly to clean residue
- Top houseplant soil with 1 inch of horticultural sand to block fungus gnat egg-laying
- Repair window and door screens with even small holes
- Empty pet water bowls daily; flies lay eggs in standing water
- Compost outdoors only, with a tight-lid bin (Lifetime 80 gal, $120)
If a fly infestation persists after 2-3 weeks of consistent trapping plus prevention, look for a hidden source — a forgotten potato in a pantry corner, a dead mouse in the wall, fruit that rolled under the fridge. Heavy fly activity always traces back to a food source you have not found.