Fruit flies are strongly attracted to vinegar, specifically apple cider vinegar, which lures them by mimicking the scent of rotting fruit more effectively than white vinegar.
A single uncovered bowl of apple cider vinegar can draw fruit flies by the dozens in minutes. The attraction isn’t random — it’s a chemical signal hardwired into their search for food and egg-laying sites. The key compounds are acetic acid and acetoin, which together create a scent fruit flies associate with fermentation and overripe fruit. Understanding which vinegar works and why is the difference between a trap that clears a kitchen and one that sits ignored.
Why Are Fruit Flies Attracted To Vinegar?
Fruit flies detect vinegar because it signals the presence of rotting fruit, their primary food source and the place they lay eggs. The acetic acid in vinegar is the primary attractant, but it’s more powerful when combined with a compound called acetoin — found naturally in fruit fermentation and dairy products. Research shows the combination of these two compounds creates a synergistic pull that vinegar alone doesn’t match. Fruit flies also carry acetic acid bacteria on their feet, which convert alcohol on rotting fruit into vinegar, reinforcing the scent connection as a reliable signal of a meal.
Apple Cider Vinegar vs. White Vinegar: Which One Works?
The type of vinegar matters enormously. Apple cider vinegar is a potent fruit fly attractant because of its natural sweetness and fermentation profile. White vinegar, by contrast, is largely ineffective — its sharp acidity lacks the sweetness and specific fermentation compounds fruit flies are looking for. Sticking a bowl of plain white vinegar in the kitchen is likely to catch nothing.
| Vinegar Type | Attracts Fruit Flies? | Best Use |
|---|---|---|
| Apple cider vinegar | Yes, strongly | DIY traps; mix with 1 drop dish soap |
| White vinegar | No (too pungent, no sweetness) | Cleaning, not trapping |
| Red wine vinegar | Yes, effective | Alternative to ACV in traps |
| Balsamic vinegar | Yes, effective | Mix with 2–3 drops dish soap |
Does Vinegar Trap All Flies?
No. Vinegar traps specifically target fruit flies (the small ones that hover around fruit bowls and trash bins). House flies, drain flies, and gnats are not reliably attracted to vinegar and require different methods — drain cleaners for drain flies, protein-based baits for house flies. If the flies in your kitchen are larger or hanging around drains, a vinegar trap likely won’t solve the problem.
The same principle that makes apple cider vinegar so effective also points to a common mistake: leaving rotting fruit uncovered. A banana sitting on the counter is a more powerful attractant than any trap, because it’s the real thing. For the trap to work, it has to be the most tempting option in the room. Put fruit away or in the fridge while traps are active.
How To Make The Most Effective Vinegar Trap
Based on testing from Orkin’s published DIY trap instructions, this method consistently catches the most flies because it combines scent attraction with a physical barrier and surface tension that drowns them.
- Pour about half an inch of apple cider vinegar into a small bowl or jar.
- Add exactly 1 drop of dish soap and swirl gently. The soap breaks the surface tension so flies sink when they land instead of floating.
- Cover with plastic wrap and secure it with a rubber band.
- Poke several small holes in the wrap using a fork or knife — big enough for flies to enter, small enough to make escape difficult.
- Place near fruit bowls, trash bins, or compost areas. Replace the liquid every few days or when it fills with flies.
The bowl turns cloudy and dark after a few days as the surface fills with dead flies — that’s the success cue. Dump the contents, rinse, and refill with fresh vinegar and soap.
Alternative Traps That Also Work
Ripe fruit trap. Place an overripe banana or peach in a container, cover with plastic wrap, poke holes, and set it near fruit fly activity. It works the same way as the vinegar trap but uses real fruit as bait. Replace the fruit every couple of days to keep the scent fresh. The trade-off: it may attract more flies initially than your vinegar trap would, so use it as a backup or rotation option.
Modified bottle trap. Cut the top off a 1-liter plastic bottle, invert it to create a funnel, and secure it with tape. In the bottom, mix half a cup of 5% acidity vinegar with 2 tablespoons sugar and 1 tablespoon dish soap. Flies enter through the narrow opening but cannot find their way out. The sugar boosts the attraction of even white vinegar slightly, though apple cider vinegar still performs best.
| Trap Type | Key Ingredient | When To Use |
|---|---|---|
| ACV + soap bowl | Apple cider vinegar, 1 drop dish soap | Quick kitchen setup, small infestations |
| Ripe fruit jar | Overripe banana or peach | When you’re out of ACV, or rotating traps |
| Plastic bottle funnel | Vinegar + sugar + soap | Large infestations, harder to escape |
| Red wine vinegar | Red wine vinegar + dish soap | Drinkers who have open bottles on hand |
Common Mistakes That Ruin A Vinegar Trap
The most frequent error is using white vinegar — it smells harsh and lacks the sweet fermentation notes fruit flies need. A second mistake is skipping the soap; without it, flies can land, drink, and fly away. Another is making the holes too large, which lets trapped flies escape, or too small, which blocks them entirely. And the biggest mistake: leaving competing food sources uncovered. A bowl of apple cider vinegar cannot outcompete a bowl of fresh strawberries on the counter. Store produce in the fridge or sealed containers while traps run.
Fruit Fly Removal Checklist
Use this sequence to clear an active fruit fly problem. Do each step before moving to the next — skipping around wastes time.
- Eliminate breeding grounds. Check for rotting fruit, damp sponges, recycling bins, compost pails, and standing water in sink drains. Scrub the drain with a brush and baking soda.
- Set traps. Place 2–3 apple cider vinegar traps (with soap and plastic wrap) at different points in the kitchen. Rotate placement every 48 hours to cover all areas.
- Refill and rotate. Refresh traps every 3–4 days or when the liquid is cloudy. Dump dead flies into the trash, not the sink drain, where they can breed.
- Continue until clear. Fruit fly life cycles run about a week. Keep traps active for at least 10 days after the last fly is seen to catch newly hatched ones.
- Prevent return. Wash fruit immediately, keep counters dry, empty trash daily, and store onions and potatoes in sealed containers.
A single fruit fly can lay 500 eggs. The vinegar trap doesn’t just catch the ones you see — it breaks the cycle by killing gravid females before they find a new rotting spot. Stick with the routine, and the kitchen clears within a week.
References & Sources
- NIH (National Institutes of Health). “Synergistic attraction of fruit flies to acetic acid and acetoin.” Explains the chemical mechanism behind vinegar’s attractiveness to fruit flies.
- Clegg’s Pest Control. “Home Remedy: Fact or Myth — Do Homemade Vinegar Fly Traps Work?” Compares apple cider vinegar and white vinegar for trapping flies.
- Orkin Pest Control. “Apple Cider Vinegar Fruit Fly Trap Instructions.” Official steps for building the most effective vinegar-based trap.
- PBS Reactions. “How Do You Catch Fruit Flies?” Explains the chemistry of rotting fruit and fly attraction.

