Fruit flies go for fruit that is ripe, damaged or starting to ferment. So the best prevention is timing: move fruit to the fridge once it’s ripe, eat the softest pieces first, cut away or throw out damaged spots, and don’t let a forgotten potato or onion rot in the pantry. The University of Kentucky’s first step against fruit flies is exactly that: eat, discard or refrigerate ripe produce.

A trap next to the fruit bowl? The two traps I’d pick (why these two): TERRO Fruit Fly Trap 4-Pack Zevo plug-in trap (Amazon; as an Amazon Associate I earn from qualifying purchases)

What Attracts Them to Your Fruit Bowl

The University of Kentucky says fruit flies are ā€œattracted to ripened or fermenting fruits and vegetables,ā€ and names tomatoes, melons, squash, grapes, bananas, potatoes and onions as common sources. The key words are ripened and fermenting. A firm, unbruised apple is not very interesting to them. A banana with brown spots, a split grape or a squashed peach at the bottom of the bowl is a buffet and a nursery at the same time, because females lay their eggs on the surface of fermenting fruit.

The Fruit Bowl Rules

  • Ripe? Fridge.Once fruit is ripe, the fridge buys you time and keeps it away from flies. That’s the University of Kentucky’s advice for ripe produce.
  • Check the bottom of the bowlOne split grape or a bruised plum under the rest is enough to start a generation (my tip).
  • Damaged? Cut it or toss itLarvae stay near the surface, so the University of Kentucky says you can cut away damaged or overripe parts.
  • Small bowl, more oftenBuy or put out only what you’ll eat in the next few days (my tip).
  • Don’t forget the pantryPotatoes and onions are on the University of Kentucky’s list too. Check them for soft or leaking ones.

Where Each Fruit Should Go

Not all fruit belongs in the fridge right away. Some fruit needs to ripen on the counter first, and some keeps better at room temperature. Here’s where to find the right storage for the fruit fruit flies love most:

The whole collection is in fruit storage. The rule for fruit fly season is simple: as soon as a fruit is ripe and you won’t eat it today, check its page and move it to its best spot.

Beyond the Fruit Bowl

Storing fruit well only helps if the flies have nowhere else to breed. The University of Kentucky also lists drains, garbage disposals, trash cans, empty bottles and cans, mops and cleaning rags, and even home-canned goods, wine, cider and beer with a loose seal. So during fruit fly season:

  • rinse bottles and cans before they go into the recycling,
  • take out the trash with fruit peels in it more often (my tip),
  • let mops and dish rags dry, and wash them regularly,
  • keep the sink drain clean (see fruit flies in the drain),
  • check that opened wine is properly closed: how to keep wine fresh.

Already Have Fruit Flies?

Then storage alone is too late for this round. Find and remove the breeding spots, trap the adults, and use the storage rules above to keep the next wave away: how to get rid of fruit flies. A trap next to the fruit bowl catches the flies that are left: make one yourself or see the fruit fly traps I’d pick.

Food Safety Notes

  • Never spray insecticide on or near your fruit bowl. Washington State University lists no insecticide as recommended for fruit flies.
  • Throw out fruit with larvae in it. Clemson Extension warns that eaten larvae may cause stomach distress or illness. More in are fruit flies harmful.
  • Wash fruit before eating, especially when fruit flies have been around (my advice).

Fruit Storage Questions

How do I keep fruit flies away from my fruit bowl?

Put out only what you’ll eat in a few days, move ripe fruit to the fridge, and remove anything bruised, split or soft. Fruit flies are attracted to ripened and fermenting fruit.

Does putting fruit in the fridge stop fruit flies?

It helps. The University of Kentucky advises eating, discarding or refrigerating ripe produce. Some fruit should ripen on the counter first, so check the storage page for each fruit.

Can fruit flies come from potatoes and onions?

Yes. The University of Kentucky lists potatoes and onions among the produce that attracts fruit flies. One soft or rotting potato in a dark pantry can keep them coming.

Should I wash fruit as soon as I get home?

Wash fruit right before you eat it. For fruit like cherries and berries, washing early adds moisture that makes them spoil faster; see the storage page for each fruit.

Sources & Transparency

What attracts fruit flies, the produce list, refrigerating ripe produce, cutting away damaged parts and breeding sites: University of Kentucky Entomology, ENTFACT-621 ā€œFruit Fliesā€ (Michael F. Potter). Larvae and illness: Clemson Cooperative Extension, HGIC 2438. Insecticides: Washington State University PestSense. Storage per fruit: the linked pages on this site. Tips marked as mine are my own advice.

Last updated:

Marleen van der Zijl, author of FreshStorageTips.com

About the author: Marleen van der Zijl

Marleen’s journey into food storage began with a simple goal: to stop wasting food and money. She believes a well-organized kitchen and smart storage habits can transform your life, leading to fresher meals and bigger savings.