Vinegar works well for trapping fruit flies, but it does little against house flies, drain flies, or other common household species. The reason is specific: fruit flies have evolved to detect acetic acid, the chemical that gives vinegar its sharp smell, because it signals fermenting fruit where they feed and breed. If the tiny flies hovering around your kitchen fruit bowl or trash can are fruit flies, vinegar is one of the most effective baits you can use. If you’re dealing with larger flies, you’ll need a different approach.
Why Fruit Flies Are Drawn to Vinegar
Fruit flies feed on the microbes that grow on overripe fruit. As fruit ferments, it produces acetic acid as the final byproduct of that process. This is the exact same compound that makes vinegar smell like vinegar. Fruit flies rely on their sense of smell to locate this acid, so a dish of vinegar essentially mimics a patch of rotting fruit. It’s not a general “flies like strong smells” situation. It’s a hardwired biological response in fruit flies specifically.
This is why vinegar won’t attract house flies, blow flies, or cluster flies. Those species are drawn to different food sources (decaying meat, garbage, animal waste) and respond to completely different chemical signals.
Which Vinegar Works Best
Apple cider vinegar is the go-to choice because it carries both the acetic acid scent and a fruity, slightly sweet aroma that reinforces the “fermenting fruit” signal. The unfiltered, organic type with the cloudy sediment at the bottom tends to be more fragrant and attracts flies more aggressively than the clear, filtered kind.
White vinegar works too, but because it lacks that fruity complexity, you’ll typically want to add a bit of sugar to boost its appeal. Balsamic vinegar is another option some people swear by, likely because its grape-based sweetness adds to the lure. Red wine, interestingly, may actually outperform vinegar entirely. A Michigan State University study testing various bait combinations found that pure vinegar caught the fewest flies of any formulation tested, while red wine alone was surprisingly hard to beat. A mix of roughly 80 percent wine and 20 percent vinegar performed well, but solutions with 40 percent or more vinegar caught significantly fewer flies. The researchers concluded that too much acetic acid actually repels flies by raising the solution’s acidity past a comfortable threshold, ideally kept under 2 percent.
If you have leftover red wine, mixing a splash of vinegar into it creates a more effective trap than vinegar alone. Adding a pinch of active yeast to wine performed even better in lab and field tests, likely because live yeast produces the same volatile fermentation compounds that fruit flies track in nature.
How to Build an Effective Trap
A vinegar trap is simple, but skipping one key ingredient makes it nearly useless. You need dish soap. Without it, fruit flies can land on the surface of the vinegar, drink, and fly away. A single drop of liquid dish soap breaks the surface tension of the liquid so that flies sink and drown the moment they touch down.
Here’s what works:
- Container: A small bowl, jar, or cup. A wide opening exposes more surface area and releases more scent.
- Bait: About a quarter inch of apple cider vinegar (or a wine-vinegar mix). Deeper isn’t better since you just need enough liquid to drown them.
- Soap: One drop of dish soap, gently swirled in. Too much soap can mask the vinegar scent and reduce the trap’s effectiveness.
Some people cover the container with plastic wrap and poke small holes in it. This funnels flies in and makes it harder for them to escape, but it also limits how much scent reaches the air. For a heavy infestation, leaving the trap open with the soap method tends to catch more flies faster.
Where to Place Traps
Put traps near the source of the problem, not across the room from it. Fruit flies don’t travel far from food, so the most productive spots are next to fruit bowls, near the kitchen sink, beside compost bins, or on the counter near your trash can. If you notice flies clustering in a specific area, that’s where a trap belongs. Using two or three small traps in different spots works better than one large one, since you’re covering more of the area where flies are active.
Replace the bait when it gets cloudy with dead flies or starts to look diluted, usually every two to three days. Fresh vinegar releases more volatile compounds into the air, so a trap that’s been sitting for a week is doing less than you think.
Why Traps Alone May Not Be Enough
A vinegar trap catches adult flies, but it does nothing about eggs or larvae. A single fruit fly can lay around 500 eggs, and those eggs hatch in as little as 24 hours in warm conditions. If there’s a breeding source in your kitchen, such as an overripe banana, a forgotten potato, wet residue in a drain, or a damp mop head, new flies will emerge faster than your trap catches them.
The trap works best as part of a two-step approach: remove the breeding source first, then use vinegar traps to catch the remaining adults. Throw out any overripe produce, clean drains with a stiff brush, wipe down counters where fruit juice or spills may have dried, and empty trash cans frequently. Once the breeding site is gone, a vinegar trap can clear out the lingering adults within a few days. Without that cleanup step, you’ll keep refilling traps indefinitely.
What to Use for Other Fly Species
If your flies are larger than a grain of rice, they’re probably not fruit flies, and vinegar won’t attract them. House flies are drawn to protein-based attractants like rotting meat or fish. Drain flies breed in the organic film inside pipes and respond better to thorough drain cleaning than any bait. Fungus gnats, which look similar to fruit flies but hover around houseplants, breed in damp soil and are better managed with sticky traps or by letting the top inch of soil dry out between waterings.
Identifying which fly you’re dealing with is the single most useful step. Fruit flies are tan or brownish, about 3 millimeters long, with distinctive red eyes. If that matches what you’re seeing, vinegar is genuinely one of the cheapest and most reliable solutions available.

