Red wine is the most effective liquid for a homemade fruit fly trap, outperforming both vinegar and sugary drinks by a wide margin. Apple cider vinegar is the most popular choice and works well, but if you have leftover red wine, it pulls in significantly more flies. Whichever liquid you choose, the real secret is adding a few drops of dish soap to break the surface tension so flies sink and drown on contact.
Why These Liquids Work
Fruit flies (Drosophila melanogaster) locate food by following airborne chemicals released during fermentation. Fermenting sugar produces acetic acid and ethanol, and fruit flies read those compounds as “ripe food, lay eggs here.” Apple cider vinegar mimics that scent almost perfectly, which is why it’s the go-to recommendation. Red wine, beer, and overripe fruit juice all produce similar fermentation signals.
The dish soap is non-negotiable. Without it, flies land on the liquid’s surface, take a sip, and fly away. Three to four drops of dish soap destroy the surface tension of the liquid, so when a fly touches down, it breaks through and drowns instead of standing on top.
Red Wine vs. Vinegar vs. Other Liquids
In a controlled comparison testing red wine, vinegar, and soda against Drosophila melanogaster, red wine trapped 33 fruit flies while white vinegar trapped only 2. Soda performed worst of all. The type of vinegar matters: white distilled vinegar and apple cider vinegar have the same 5% acidity, but apple cider vinegar is sweeter and more aromatic, making it considerably more attractive to fruit flies. Separate research found that apple cider vinegar performed comparably to wine, with the difference not reaching statistical significance.
If you don’t have red wine on hand, apple cider vinegar is your best bet. Stale beer works too, though it hasn’t been tested as rigorously. Plain white vinegar is a distant last choice.
How to Set Up the Trap
Pour about half an inch of your chosen liquid into a small bowl, jar, or cup. Add three to four drops of dish soap and give it a gentle swirl. You can leave the container open, or cover it with plastic wrap poked with small holes. The plastic wrap version is slightly more effective because flies crawl through the holes and can’t easily find their way back out, but an open bowl still works.
Place the trap right next to the source of the problem: the fruit bowl, the compost bin, or wherever you see flies congregating. Traps placed across the room from the food source catch far fewer flies. If you have multiple problem areas, set up a trap at each one.
When to Replace the Liquid
A fresh trap typically clears a mild infestation within two days. As the liquid evaporates and fills with dead flies, it becomes less attractive. Top off the liquid with a splash of water and another drop of dish soap about once a week. Replace the entire trap with a fresh batch every two weeks during peak fruit season, which is late summer and early fall for most regions. If you stop seeing flies in the trap for a few days, the infestation is likely resolved and you can remove it.
Boosting Your Trap With Yeast
For stubborn infestations, a yeast and sugar mixture creates an actively fermenting lure that pumps out CO2 and alcohol vapor continuously. Mix a quarter teaspoon of active dry yeast with a tablespoon of sugar in warm water and let it sit for a few minutes until it starts to foam. This produces the same fermentation byproducts that fruit flies are wired to follow, but in higher concentrations than static vinegar. Commercial fruit fly baits use a similar principle: many contain yeast protein extracts (often labeled as “yeast autolysate”) combined with food-grade attractants. The homemade version works on the same chemistry for a fraction of the cost.
Make Sure You’re Trapping the Right Bug
Vinegar and wine traps are highly specific to fruit flies. If your trap sits untouched for days, the tiny flying insects in your home may not be fruit flies at all. Two common lookalikes respond to completely different strategies.
- Fungus gnats live in the moist soil of houseplants and aren’t strongly drawn to vinegar. They respond much better to yellow sticky cards, which exploit their attraction to a specific wavelength of light (around 580 nanometers) that mimics stressed plant tissue. Letting your soil dry out between waterings is the real fix.
- Drain flies breed in the biofilm coating the inside of pipes. They ignore fermentation odors entirely. A layer of vegetable oil with a drop of dish soap placed over the drain opening traps them more effectively. Cleaning the pipe biofilm eliminates the breeding site.
Fruit flies are tan or brownish with red eyes and hover around produce. Fungus gnats are darker, more mosquito-shaped, and cluster near plants. Drain flies have fuzzy, moth-like wings and sit on bathroom walls. Identifying which pest you have saves you from wondering why a perfectly good vinegar trap isn’t catching anything.
What Commercial Traps Use
Store-bought fruit fly traps contain the same core chemistry as homemade versions, just in a more convenient package. Most use a liquid attractant based on fruit acids or fermentation compounds, sometimes with a small amount of a stomach-acting insecticide like spinosad mixed in. Some commercial products use protein-based wet lures derived from yeast extracts. The trap housing is usually designed to let flies in through a funnel or small opening and prevent escape.
For a typical kitchen infestation, a bowl of apple cider vinegar with dish soap performs just as well as these products. Commercial traps are more useful when you need something long-lasting in a pantry or storage area where you won’t check on it regularly, since they’re designed to resist evaporation and maintain attractiveness for weeks.