Buying Guide

How to Get Rid of Fruit Flies

What Attracts Fruit Flies
Fruit flies on a banana.

Fruit flies have a powerful sense of smell. They can follow the scent of ripening and decaying fruit over long distances and creep into your home through window screens and small crevices around windows. They can also hitch a ride in the form of eggs that mature flies have already laid on the outer skins of fresh fruits and vegetables purchased in stores and farmers markets.

These pests feed on overripe and rotting fruit and the fermenting sugars in leftover alcoholic or sugary beverages. While fruit flies don't bite, they can contribute to the spread of disease as they frequent trash bins, pet areas and drains in addition to food prep areas.

You can be plagued with swarms of fruit flies almost any time of year, but their most prolific time of year is late summer to early fall.

Distinctive bright red eyes and a light yellow to tan body are hallmarks of the fruit fly, though at only 1/3 the size of a common house fly, its tiny form makes it unlikely you'll get close enough to get a good look. They have an 8- to 10-day maturity cycle, from egg to adult; without intervention, each fly lives for about a month. Mature female fruit flies can lay up to 500 eggs, which will hatch within 24 to 48 hours.

Tip: Do not consume sodas, fruit juices or alcoholic beverages that have been left out in open containers overnight or more than a few hours in warm weather. Dispose of the container contents by placing it in sealed bags and placing in an outside trash receptacle.

Treatment Options
Fruit flies in a bowl on vinegar.

Because fruit fly infestations are generally located in and around food prep areas, many people prefer not to use sprays and aerosols to treat the areas due to concerns about food contamination. Attractant baits and fruit fly traps offer an easy and non-toxic way to get rid of fruit flies.

Also consider getting rid of fruit flies using white vinegar. Simply find a bowl, pour in the vinegar and wait for it to do its job. Vinegar attracts fruit flies, so they will fall into it and be unable to get out. This is especially helpful when getting rid of fruit flies in the kitchen.

Bug zappers are another alternative. There are also a range of natural bug sprays that can quickly end a fruit fly infestation without putting kids, pets or the fruit bowl in harm's way.

Comparison of Treatment Options for Fruit Flies
Fruit Flies - Insect Traps
Electric - Fruit Flies - Insect & Pest Control
Yes - Fruit Flies - Insect & Pest Control
Feature/Benefits Effective; Non-toxic; Disposable Kills on contact; Non-chemical method Kills on contact; Derived from botanical ingredients
Other Considerations Lures fruit flies in with a strong scent similar to decaying fruit. Traps must be monitored and disposed of every few days in a heavy infestation. Sticky traps can be visually unappealing. Fly particles must be cleaned up quickly, especially in food prep areas. Can only be used on adult flies, not eggs or larvae. Precautions have to be taken when used around kids and pets. Can leave residue on surfaces.
Pest Prevention
Fruit being stored in containers.

Now that you know how to get rid of fruit flies, it's time to plan for prevention. Fruit fly infestations can be tenacious. Since they breed so prolifically, it may take several weeks to completely eliminate all signs of the insects.  

You should take a number of preventative steps to help support the effectiveness of your selected treatment methods.  

  • Check and repair screens and seal around windows. Fruit flies will find even the smallest entrance into your home in pursuit of food.
  • Rethink food storage. Though there are many fruits and veggies that are thought to be at their best at room temperature, storing produce in the refrigerator helps fend off fruit flies by depriving them of scent trails to follow. Wash and thoroughly dry any fruit to be stored outside the fridge, especially bananas. Do not keep longer than a day or two, if possible. Cover open fruit bowls with a clear lid to deter pests. Do not leave open drink containers or wine glasses out; empty and at least rinse them with warm water to remove any sweet residue that might attract fruit flies.
  • Clean vigilantly. Empty and scrub trash cans inside and out to remove any old food particles. Locate potential fruit fly breeding areas - drains, underneath appliances, inside the dishwasher or any spot where there is moisture and food debris - and clean them thoroughly. If you are collecting compost material in your kitchen, be sure the receptacle has a tight-fitting lid and is emptied regularly. You may also want to use compostable bin liners to make this easier.

By following these treatments for getting rid of fruit flies, and continuing using preventative measures – such as storing produce in the fridge or in tupperware – you'll hopefully keep fruit flies at bay. If the problem persists, look into a professional exterminator to see if they have a solution.