Vinegar doesn’t kill flies on contact, but it’s one of the most effective ways to trap and kill fruit flies when combined with a drop of dish soap. The vinegar attracts them, and the soap ensures they drown. This simple combination works because it exploits the biology of fruit flies, which are hardwired to seek out fermenting food sources.
Why Fruit Flies Can’t Resist Vinegar
Fruit flies (the tiny ones that hover around your kitchen counter) are specifically attracted to ripening and fermenting fruits and vegetables. That attraction isn’t random. When fruit begins to ferment, yeast on its surface produces ethanol and other compounds. Bacteria then convert that ethanol into acetic acid, the main ingredient in vinegar. Fruit flies have evolved to treat these fermentation byproducts as a dinner bell.
Ethanol acts as a key odorant that draws fruit flies to food sources. Flies are more attracted to ethanol-containing food odors than odors without it, likely because fermentation signals caloric value. They even prefer to lay their eggs on ethanol-rich food. Flies detect acidity through a specialized receptor, so the sharp smell of vinegar registers as a strong, specific signal rather than a general odor. Apple cider vinegar tends to work better than white vinegar because it retains more of those fruity, sweet fermentation compounds that fruit flies find irresistible.
How the Vinegar and Soap Trap Works
Vinegar alone will attract fruit flies, but many of them will simply land on the surface and fly away. That’s where dish soap changes everything. Fruit flies are light enough to stand on water thanks to surface tension, the invisible “skin” on a liquid’s surface. A small amount of dish soap breaks that surface tension, so when a fly lands, it immediately sinks and drowns.
Soap also penetrates the tiny respiratory openings on an insect’s body, cutting off oxygen. So the mechanism is twofold: the fly can’t stay on the surface, and once submerged, it can’t breathe. This is the same principle behind commercial insecticidal soaps used in gardening.
Setting Up an Effective Trap
Fill a jar or small bowl one-third to one-half full with apple cider vinegar. Add roughly a teaspoon of unscented dish soap and stir gently, just enough to mix without creating a layer of bubbles. Bubbles can actually deter flies from landing, so keep the surface calm and clear.
Place the trap wherever you see the most fly activity, typically near fruit bowls, trash cans, or the kitchen sink. You can set out multiple traps in different spots. Some people cover the jar with plastic wrap and poke small holes in it, creating a funnel effect that lets flies in but makes escape harder. This step is optional. The soap alone is usually enough to prevent escape once a fly touches the liquid.
Expect to start seeing trapped flies within a few hours. Replace the vinegar every two to three days or when it gets cloudy with debris, since a fresh batch puts out a stronger scent.
What Vinegar Traps Won’t Do
These traps are effective at catching adult fruit flies, but they won’t solve an infestation on their own. A single female fruit fly can lay hundreds of eggs, and the larvae develop in moist organic material, not in the air where you’d notice them. If you’re catching flies daily but the problem never improves, the breeding source is still active somewhere in your kitchen.
Common breeding sites include overripe fruit left on the counter, wet garbage in trash cans, food residue in sink drains, damp sponges, and even a forgotten spill behind an appliance. Removing the source is what actually ends an infestation. The vinegar trap is cleanup duty for the adults that are already flying around.
To find the source, look for anywhere organic matter stays moist. Pour boiling water down kitchen drains a few times over the course of a week. Take out trash more frequently. Store ripe fruit in the refrigerator. Once you eliminate the breeding site, the traps will catch the remaining adults within a few days, and no new flies will replace them.
Does Vinegar Work on Other Types of Flies?
Vinegar traps are highly specific to fruit flies and other small flies drawn to fermentation. Common houseflies, drain flies, and gnats may occasionally land in the trap, but vinegar isn’t a reliable attractant for them. Houseflies are drawn more to protein-based decaying matter than to fermenting fruit. Drain flies breed in the organic film inside pipes and aren’t strongly attracted to vinegar either.
If you’re dealing with larger flies or a species that isn’t congregating near fruit, you’ll need a different approach. But for the small, tan-colored flies that appear seemingly out of nowhere when bananas get spotty, a jar of apple cider vinegar and a drop of soap is consistently one of the simplest and most effective solutions available.