The best fruit fly trap for most kitchens is a jar of apple cider vinegar with a few drops of dish soap. It works because apple cider vinegar produces the fermentation odors that fruit flies are hardwired to seek out, while the soap breaks the surface tension of the liquid so flies sink and drown on contact. But the trap alone won’t solve an infestation if you skip the step most people miss: eliminating where the flies are breeding.
Why Apple Cider Vinegar Works So Well
Fruit flies navigate the world through smell, and they’re specifically tuned to the chemicals produced during fermentation. Ethanol is a key attractant in food odor blends, and bacteria naturally convert ethanol into acetic acid, the compound that gives vinegar its sharp smell. Apple cider vinegar contains both, which is why it pulls fruit flies in more reliably than plain water, juice, or sugar alone. The flies detect these odors at remarkably low concentrations and follow them to the source.
There’s an important detail in the chemistry, though: at high concentrations, the same compounds become repulsive. This is why you don’t need to fill a huge bowl. A small amount of vinegar in an open jar produces a moderate scent plume that draws flies in without overwhelming them.
The Simple Trap That Catches the Most Flies
Pour about a quarter cup of apple cider vinegar into a jar or small bowl and add two or three drops of liquid dish soap. That’s the entire recipe. The soap is the critical ingredient people sometimes leave out. Without it, fruit flies can land on the vinegar’s surface and take off again. With it, the surface tension collapses and every fly that touches the liquid is trapped immediately.
You don’t need a funnel, plastic wrap, or any kind of lid. In a side-by-side test run by The Kitchn, an open jar with apple cider vinegar and dish soap outperformed more elaborate designs, including plastic wrap with holes poked in it. The open jar lets the scent disperse freely and gives flies an unobstructed path to the liquid. Set one trap near the kitchen sink and another near your fruit bowl if you have one. Replace the vinegar every two to three days as it loses potency.
Other Baits Worth Trying
Apple cider vinegar is the go-to, but it’s not the only option. Red wine works nearly as well because it contains the same fermentation byproducts. If you have a bottle with an inch of wine left in it, just add a drop of dish soap and set it on the counter. Beer works on the same principle.
Overripe fruit is another strong attractant. A chunk of bruised banana or soft pear placed inside a jar covered with plastic wrap (poke a few small holes with a toothpick) creates a funnel-style trap. Flies crawl in through the holes and can’t find their way back out. The University of Wisconsin-Madison extension service specifically recommends ripe bananas or pears for this type of trap.
A mixture of warm water, sugar, and active dry yeast is the most powerful bait in terms of raw attraction. Texas A&M AgriLife Extension lists it as a top-tier attractant because the yeast actively ferments and produces a steady stream of ethanol and carbon dioxide. The tradeoff is the smell. Fermenting yeast is noticeably unpleasant indoors, so this option works best in a garage, near a compost bin, or when you’re desperate enough not to care.
Why Traps Alone Don’t Fix the Problem
A single female fruit fly lays up to 100 eggs per day. At room temperature (around 72°F), those eggs hatch within 24 hours, and the larvae develop into adults in just 10 to 12 days. At slightly warmer temperatures, the cycle speeds up to 9 or 10 days. This means a small population can explode into hundreds of flies within two weeks, and no trap can keep up with that rate of reproduction if the breeding source is still active.
Fruit flies lay eggs on any moist organic material: overripe fruit on the counter, a forgotten potato at the back of the pantry, a wet sponge, the sludge inside a kitchen drain. The trap catches adults, but the next generation is already developing somewhere nearby. You have to find and remove the source.
How to Eliminate Breeding Sites
Start with the obvious targets. Throw out or refrigerate any fruit that’s soft or bruised. Empty kitchen trash cans and recycling bins, especially if they contain bottles or cans with residue. Wipe down counters where fruit juice or alcohol may have spilled. Clean under appliances where food scraps collect.
Drains are the breeding site people overlook most often. The thin layer of organic buildup inside your kitchen sink drain is an ideal egg-laying surface. The most effective approach is to pour boiling water down the drain once a day for seven consecutive days. A single treatment kills adult flies and surface eggs, but larvae deeper in the pipe survive and mature into new adults within days. Seven days of consistent treatment covers the full development cycle and eliminates each generation as it emerges.
For a more thorough drain cleaning, pour baking soda into the drain first, follow it with vinegar, let the mixture fizz for 15 minutes, then flush with boiling water. If the problem persists after a week of daily treatments, the buildup inside the P-trap (the curved pipe section under the sink) may need to be physically removed. Unscrew the P-trap, scrub the inside, and reassemble it. No liquid treatment fully replaces mechanical cleaning when the organic layer is thick enough.
Keeping Fruit Flies From Coming Back
Once you’ve cleared an infestation, a few habits prevent the next one. Store ripe fruit in the refrigerator rather than on the counter. Rinse bottles and cans before putting them in the recycling bin. Run the garbage disposal regularly if you have one, and flush it with hot water afterward. Keep drain plugs in place when the sink isn’t in use, which blocks flies from accessing the moisture and organic material inside the pipes.
If you want a passive, ongoing trap, keep a small jar of apple cider vinegar with dish soap near the sink at all times during warm months. It catches scouts before they establish a breeding population. Replace it weekly. The cost is essentially zero, and it works as well as any commercial fruit fly trap on the market.