Cleaning Guides

Vinegar Traps: The Cheap Fix for Fruit Flies and Gnats

When a cloud of fruit flies takes over your kitchen, vinegar traps are the fastest, cheapest way to fight back. You almost certainly already have the ingredients: apple cider vinegar, a little dish soap, and a cup. The science is simple. The fermented, fruity smell of vinegar lures the flies in, and a drop of soap breaks the liquid’s surface tension so they sink instead of skating away. Here’s how to build a trap that actually works and, just as important, how to stop the flies from coming back.

Why Vinegar Works as Bait

Fruit flies and fungus gnats are drawn to the smell of fermentation and ripe fruit. Apple cider vinegar mimics that scent perfectly, which is why it outperforms plain white vinegar as bait. The flies follow the aroma straight to the trap.

The dish soap is the part most people skip, and it’s the part that makes the trap deadly. Without it, flies land on the vinegar’s surface and simply fly off. A single drop of soap cuts the surface tension so they break through and drown. No soap, no catch.

The Classic Vinegar Trap Recipe

This is the version I reach for first. It takes two minutes to assemble:

  1. Pour about a half-inch of apple cider vinegar into a small glass or jar.
  2. Add 2 to 3 drops of liquid dish soap and gently swirl. Don’t create suds.
  3. Optional: Add a small piece of ripe banana or fruit to strengthen the lure.
  4. Place the open cup wherever flies gather, usually near fruit bowls, the trash, or the sink.
  5. Wait. Within hours you’ll see flies collecting in the liquid. Refresh every couple of days.

The Plastic Wrap Variation

If you want a trap flies can enter but not escape, add a cover. Stretch plastic wrap over the cup, secure it with a rubber band, and poke several small holes with a toothpick. Flies crawl through the holes drawn by the scent, then can’t find their way back out.

This version works well for heavier infestations and keeps the vinegar smell more contained. A paper funnel rolled into a cone and set point-down in a jar does the same job, guiding flies in through the narrow opening.

Best Trap Recipes Compared

A few variations work better in different situations:

  • ACV + dish soap (open cup): The all-purpose standard. Fast and effective for fruit flies.
  • ACV + soap + plastic wrap: Best for larger infestations where you want a one-way trap.
  • Wine or beer + soap: The fermentation scent works as an alternative bait if you’re out of vinegar.
  • ACV + ripe fruit: Strongest lure when flies are ignoring a plain vinegar cup.

Set out two or three traps in different spots rather than one. Spreading them increases your catch and helps you find where the flies are concentrated.

Where to Place Your Traps

Location matters as much as the recipe. Fruit flies cluster around food and moisture, so put traps where you actually see them swarming. Common hotspots include the fruit bowl, the kitchen trash can, the sink and drain area, the recycling bin, and near houseplants if you’re battling fungus gnats. Leave the traps undisturbed so flies aren’t startled away, and keep them out of reach of pets and small children.

Looking to buy Vinegar Traps? Compare top-rated options.
Shop on Amazon →Browse Our Shop
As an Amazon Associate we earn from qualifying purchases.

Vinegar Traps Are Only Half the Battle

Here’s the part people miss: a trap catches the adults you can see, but it won’t end the infestation if breeding sites remain. Fruit flies lay eggs in overripe produce, sticky spills, and the gunk inside drains. While your traps work, clean up the sources:

  • Toss or refrigerate overripe fruit and vegetables.
  • Take out the trash and rinse the can.
  • Wipe up spills, especially anything sweet or fermented.
  • Clean drains, where larvae thrive on organic buildup.
  • Empty and rinse recycling before it sits.

A Note on Mixing and Safety

Vinegar traps are about as safe as home pest control gets, but one rule still applies: never mix vinegar with bleach or other cleaners. The combination releases toxic gas. Stick to vinegar, soap, and fruit for your traps, and keep cleaning products separate. There’s no need to add anything stronger. The simple recipe works.

Fungus Gnats vs. Fruit Flies

Not every tiny flying insect is a fruit fly, and the difference changes your strategy. Fruit flies are tan or brown with red eyes and hover around food and produce. Fungus gnats are darker, more mosquito-like, and swarm around houseplants because their larvae live in damp potting soil. Both are drawn to vinegar traps, but eliminating them requires addressing different sources.

For fungus gnats, the vinegar trap catches adults while you tackle the real problem: overwatered soil. Let the top inch or two of potting soil dry out between waterings, since the larvae can’t survive in dry soil. Yellow sticky traps placed at soil level catch the adults too. Combine the vinegar trap with drier soil and you’ll break the breeding cycle that keeps gnats coming back.

How Long Until Vinegar Traps Work

Patience pays off, but not much is needed. You’ll usually see fruit flies collecting in a trap within a few hours, and a noticeable drop in the swarm within a day or two. For a heavier infestation, expect it to take several days of running multiple traps, combined with cleaning up breeding sites, to fully clear the problem.

Refresh the vinegar every two to three days, since the bait loses potency and a trap full of dead flies stops attracting new ones. If you’ve cleaned thoroughly and removed all the food sources but flies persist after a week, check less obvious spots like a forgotten potato in the pantry, a recycling bin, or a slow drain harboring larvae. The trap only catches adults, so persistent flies almost always mean an active breeding site you haven’t found yet.

The Bottom Line

Vinegar traps are one of the best cost-to-result fixes in home pest control. A cup of apple cider vinegar with a drop of dish soap catches fruit flies within hours for pennies. Pair the traps with a thorough cleanup of breeding sites, and you won’t just thin the swarm, you’ll end it. Keep the ingredients on hand and you can knock out the next outbreak before it ever takes hold.