One ripe banana on the counter for two days and suddenly your kitchen has 40 tiny flying tenants doing loops around the fruit bowl. The classic fruit flies apple cider vinegar trap remains the most effective DIY solution because it exploits exactly what attracts these pests in the first place: the sweet, slightly fermented smell of ripe fruit. A working trap costs about 10 cents and handles a moderate infestation in 24 to 48 hours, but only if you build it correctly and pair it with the prevention steps that stop the next generation.
This guide covers four trap variations, why each works, and the sanitation steps that finally end the problem.
Why Apple Cider Vinegar Works So Well
Fruit flies (Drosophila melanogaster) detect overripe fruit through volatile compounds, especially acetic acid and ethyl acetate. Apple cider vinegar contains both compounds in concentrations that closely match a fermenting peach or banana. Plain white vinegar is much weaker as an attractant because it lacks the residual sugars and fruit esters that signal a feeding opportunity.
You can boost any apple cider vinegar trap by adding a small piece of overripe fruit or a teaspoon of red wine to the mix. The result is essentially irresistible to a hungry fruit fly population.
The Classic Dish Soap Trap
This is the most popular method and the easiest to build with what you already have. Pour about 1/2 cup of apple cider vinegar into a small jar, drinking glass, or bowl. Add 3 to 5 drops of any liquid dish soap (Dawn works best). Stir gently to mix. The soap breaks the surface tension of the liquid, so when a fruit fly lands to drink, it sinks instead of skating across the top.
Leave the container open on the counter near the source. You should see flies trapped within 30 minutes. Refresh the mixture every 2 to 3 days. The kill rate climbs steadily as more flies are drawn in by the increasing fruit-acid concentration.
The Plastic Wrap Funnel Trap
If you want a trap that holds the flies inside without requiring soap, use the plastic wrap funnel design. Pour a 1/4 cup of apple cider vinegar into a tall glass or mason jar. Stretch a piece of plastic wrap tightly across the top and secure it with a rubber band. Use a toothpick or skewer to poke 6 to 10 small holes in the plastic.
Fruit flies fly down through the holes, drink, then cannot find their way back out. The vinegar drowns them over time. This version is great for offices or any spot where an open dish of vinegar is unsightly. It also keeps cats and curious toddlers from knocking it over.
The Paper Funnel Trap
An even simpler design uses a piece of paper. Roll a sheet of printer paper into a cone with a small opening at the bottom (about 1/4 inch). Tape the cone so it holds shape. Pour an inch of apple cider vinegar into a wide-mouth jar, then place the cone tip-down inside the jar with the wide rim of the cone resting on the top.
The visual effect is a one-way ticket: flies enter through the small bottom hole, but the bright opening at the top of the cone confuses them and they cannot escape. Empty and rebuild every few days.
The Wine and Banana Trap for Heavy Infestations
For a really stubborn infestation with hundreds of flies, upgrade to a wine and banana trap. In a wide bowl, combine 1/4 cup of apple cider vinegar, 1/4 cup of red wine (any cheap variety), 1 tablespoon of sugar, 5 drops of dish soap, and one slice of overripe banana. The sugar accelerates fermentation and the banana releases more attractant compounds as it sits.
This trap works fast but smells, so place it in a basement, garage, or area away from where you cook. Empty within 48 hours. The contents can rapidly grow mold once they have done their job.
Where to Place Your Traps
Placement matters as much as recipe. Set traps:
- Right next to the fruit bowl or wherever you first noticed the flies
- Near the kitchen sink and garbage disposal
- By the recycling bin, especially if you rinse cans and bottles in there
- Next to compost crocks and trash cans
- In any room with houseplants, since fungus gnats also breed in damp soil and a similar trap helps
Use multiple small traps rather than one big one. Three glasses spread around the kitchen catch 4-5 times more flies than one large bowl in the center because flies do not travel far between feedings.
Why the Trap Alone Will Not Solve the Problem
A single female fruit fly lays up to 500 eggs in her two-week life, and those eggs hatch in 24 to 30 hours at room temperature. Killing adult flies without removing breeding sites just slows the cycle. To actually end the infestation:
- Throw out any overripe fruit and store the rest in the fridge for one week
- Take out the trash, including the kitchen recycling and any compost
- Run hot water and a cup of baking soda followed by a cup of vinegar down every kitchen drain
- Pour a kettle of boiling water down the garbage disposal
- Wipe up any sticky spills under the toaster, microwave, and behind the trash can
- Check for forgotten potatoes, onions, or wine bottles in pantry corners
- Scrub the trash can with hot soapy water and dry it before relining
Without these steps, the traps catch flies endlessly because new ones keep hatching in the drain or under the fridge.
Prevention That Keeps Them Away
Once the population is gone, keep it gone with a few habits. Refrigerate ripe fruit. Empty the kitchen trash daily during summer. Rinse recycling immediately. Clean drains monthly with baking soda and vinegar. Cover compost bins with a tight lid or a layer of dry leaves. Inspect produce at the grocery store; fruit fly eggs hitch rides home on the skins of stone fruits, grapes, and bananas.
If flies still appear during late summer when fruit ripens fastest, set out a small preventive trap before the population explodes. A 10-cent jar of apple cider vinegar on the counter is cheap insurance against another two-week war with a swarm of tiny invaders.