How to keep fruit flies away naturally: a super-simple, chemical-free trick for summer fruit

Monday 10 August 2026 21:00 - Leandra Masha
How to keep fruit flies away naturally: a super-simple, chemical-free trick for summer fruit

In the summer, all it takes is an overripe peach left in the fruit bowl to find your kitchen swarming with tiny, fluttering guests. Fruit flies appear mainly in hot weather, drawn to the sweet, fermented smells of peaches, figs, apricots, melons, and other ripe fruits.

To keep them away, there’s no need to use sprays or insecticides near your food. A simple jar filled with apple cider vinegar and a paper cone can be turned into a handy natural trap for fruit flies. To truly solve the problem, however, you also need to remove whatever is attracting them.


Why do summer fruits get swarmed by fruit flies?

High temperatures cause fruit to ripen faster. When the skin becomes soft, spoils, or leaks a few drops of juice, it gives off an aroma that is particularly appealing to fruit flies.

These insects can also be attracted to:

  • wine, beer, and juice left in glasses;
  • unrinsed bottles and cans ;
  • peels and scraps in the compost bin;
  • spoiled tomatoes, potatoes, or onions;
  • sticky surfaces and very damp sponges.

So it doesn’t take a dirty kitchen to cause a problem. Sometimes all it takes is a bruised apricot or the dregs of a drink left on the table.

How can you get rid of fruit flies without using chemicals?

The simplest solution is to make a DIY trap using apple cider vinegar. Its fermented scent attracts the gnats, while the paper cone allows them to enter the jar but makes it harder for them to find their way out.

You’ll need just a few items:

  • a tall glass or jar;
  • two or three tablespoons of apple cider vinegar;
  • a sheet of paper;
  • a rubber band or some tape.

Pour the vinegar into the container. Roll the sheet of paper into a cone, leaving a small opening at the tip. Place it in the jar without letting it touch the liquid, and secure it to the rim.

Place the trap near the fruit bowl, the compost bin, or wherever the insects tend to gather most. However, it should not be placed in direct contact with the fruit.

Does apple cider vinegar really work against gnats?

Apple cider vinegar doesn’t act as a repellent, but as a lure. Its smell is similar to that of fermenting fruit and attracts fruit flies into the container.

The trap helps reduce the number of adult insects, but it won’t solve the problem if rotten fruit, sugary residues, or organic waste remain in the kitchen. For this reason, it must be accompanied by thorough cleaning.

The vinegar can be replaced with a small amount of wine or a piece of very ripe fruit, but apple cider vinegar is generally the most practical solution because it keeps well and has a strong aroma.

What should you put in the fruit bowl to keep fruit flies away?

Adding fragrant leaves or aromatic peels to the fruit bowl can be pleasant, but it doesn't do much good if there's spoiled fruit right next to it.

To protect summer fruit from fruit flies, it’s more effective to:

  • check peaches, figs, and apricots every day;
  • eat bruised fruit right away;
  • remove any fruit that shows signs of mold or is leaking liquid;
  • wash and dry the fruit bowl regularly ;
  • store cut fruit in the refrigerator;
  • use a breathable food cover.

Avoid washing all the fruit long before eating it, because moisture left on the surface can speed up spoilage. It’s best to wash the fruit just before eating it, unless you dry it very thoroughly.

How can I keep gnats from coming back into the kitchen?

Once you’ve gotten rid of any insects, it’s important to make the kitchen less inviting. The compost bin should be emptied frequently, especially on hot days, while bottles and cans should be rinsed before being placed in the recycling bin.

It’s also a good idea to check less visible spots, such as the space under the fruit bowl, behind the coffee maker, or near the toaster. A small amount of juice or a piece of fruit that has fallen behind a cabinet can continue to attract fruit flies.

The sink also deserves attention: food scraps, wet dishcloths, and damp sponges can create an environment conducive to their presence.

Why don't the gnats go away even though there's a trap?

If fruit flies keep appearing, there’s likely still a hidden source. It’s a good idea to check grocery bags, fruit crates, potatoes stored in cabinets, empty bottles, and recycling bins.

The apple cider vinegar trap catches flying insects, but it’s the removal of fermenting food scraps that truly stops the problem.

With just a few simple daily steps, your fruit bowl can once again hold peaches, apricots, and melons without turning into a gathering spot for fruit flies. The jar helps, but a clean, dry kitchen free of overripe fruit remains the most effective solution.

Leandra MashaLeandra Masha
My name is Leandra Masha, I am Italian of Albanian origin and I am currently an intern at Petit Chef. Cooking is my greatest passion: I love watching recipes, discovering new flavors and drawing inspiration from cuisines from all over the world. I enjoy learning new techniques and experimenting with something different every time.

Comments

Rate this article: