Fruit Fly Traps

The Rotten Fruit Trap

Using an overripe piece of fruit as bait, the smart way.

The thing fruit flies want most isn't in a bottle — it's the browning banana on your counter. A rotten fruit trap turns that irresistible bait against them: a chunk of overripe fruit in a covered container, catching flies with the exact smell that drew them into your kitchen in the first place. Here's how to build it, why real fruit can out-pull vinegar, how to supercharge it, and how to dispose of it without setting the whole cycle off again.

An extremely overripe, spotted banana that lures fruit flies as bait
Photo: Park taeho

In short

What you need
A chunk of overripe fruit, a jar or container, and a cover with small holes
Best bait fruit
Overripe banana, but soft grapes, peach, tomato or apple work too
Why it works
Real fermenting fruit is the strongest, most authentic lure there is
Supercharge it
Add a splash of vinegar and a drop of dish soap
Time to make
Three minutes

Why real fruit out-lures a bottle

Every fermented liquid trap is, at heart, an imitation of rotting fruit. Vinegar, wine and beer all mimic the alcohol-and-acid smell that fruit gives off as yeasts break down its sugars. A piece of genuinely overripe fruit skips the imitation — it is the real thing, releasing the full, complex bouquet of a live ferment: alcohol, acetic acid, fruity esters and a puff of carbon dioxide. To a fruit fly, that's not a clever copy; it's home. This is why a rotten-fruit trap can pull flies away from a stubborn source that's been ignoring your vinegar dish. It's also why leaving overripe fruit out unprotected is such a reliable way to start an infestation — the same magnetism that makes it great bait makes it dangerous on the counter, as covered in fruit bowls and ripe fruit.

Building the trap

  1. Pick your bait fruit. A few slices of very ripe, spotty banana are the gold standard — soft, sweet and fast to ferment. Overripe grapes, peach, tomato, apple cores or berries all work. The riper and softer, the better.
  2. Drop it into a container. Place the fruit in the bottom of a jar, glass or bowl. Mash or bruise it slightly to release more smell and juice.
  3. Add a splash of vinegar (optional but recommended). A little apple cider vinegar poured over the fruit boosts the ferment smell and gives you a liquid surface to trap flies on. Add one drop of dish soap to that liquid so landing flies sink.
  4. Cover it. Stretch pinholed cling film over the top, or use an inverted paper or bottle funnel, so flies get in but struggle to get out. A covered fruit trap catches far more than an open one, since the smell is so strong flies would otherwise just visit and leave.
  5. Place and monitor. Set it where the flies gather and check daily. Replace the fruit every couple of days as it dries out or fills with flies.

Tip: A slightly bruised, browning banana works better than one that's fully liquefied and black. You want active fermentation with plenty of aroma, not a dried-out or fully rotted mush that's stopped giving off smell.

Combining fruit with vinegar

The most powerful DIY trap of all pairs the two lures: solid rotting fruit for the deep, authentic smell, plus vinegar for a soapy liquid surface that drowns the flies. The fruit does the attracting; the vinegar-and-soap does the catching. Inside a covered container the combined aroma becomes intense enough to out-compete most rival food sources on the counter. You can layer this into any covered design — it slots straight into the plastic wrap jar trap or the rigid bottle funnel trap. The vinegar side is covered fully in the apple cider vinegar trap, and for a ranking of every bait, see the best bait for fruit flies.

Note: Not sure the insects swarming your fruit are even fruit flies? Fungus gnats prefer damp houseplant soil and drain flies breed in sink gunk — neither is fooled by a fruit trap. Confirm what you're dealing with using the fly identifier tool before you commit to a bait.

Disposal: don't restart the cycle

This is the step people get wrong. A used fruit trap is packed with adult flies, plus very possibly eggs and tiny larvae the flies laid in the bait while it sat out. Tip it carelessly into an open kitchen bin and you've simply relocated the breeding site. Do it properly:

Managing food waste and bins carefully is a big part of preventing a comeback — see trash and food waste and managing trash and recycling for the wider routine.

When a fruit trap is the right choice

Reach for the rotten fruit trap when a swarm seems fixated on a particular fruit source and shrugs off a plain vinegar dish, or when you happen to have fruit turning that you'd rather put to work than throw away. Its one drawback is that it's messier and shorter-lived than a liquid trap — the fruit dries out or over-rots within a few days and needs replacing. If yours isn't catching, the usual causes are covered in why your trap isn't working.

Where to place it

Set the trap right where the flies are thickest — beside the fruit bowl, near the bin, or by the sink — so its strong smell intercepts them on their flight path. Because a fruit trap is such a potent lure, keep it away from where you're preparing food, and out of reach of pets and children who might disturb it. For a heavy infestation, run it alongside a couple of liquid traps in other hotspots. Our guide to where to place fruit fly traps maps out the best positions.

Trapping is only half the battle

A rotten fruit trap is excellent at pulling in and drowning adult flies, but it can't touch the eggs and larvae already developing in a drain, a spill, a damp cloth or elsewhere in your fruit — so new adults keep emerging until you remove those breeding sites. Run the trap alongside a thorough clean-up: find the source with how to find the breeding source, then follow the five-day fruit fly plan. Compare every trap at the traps hub, and see the complete strategy at the main remove fruit flies guide.

Sources

A trap alone isn't enough

Traps catch the adults — but you also need to remove what they breed in.