How to Get Rid of Fruit Flies

Discover easy ways to get rid of fruit flies in your home with clever tips and traps.

Keep in mind: Price and stock could change after publish date, and we may make money from these links.
February 28, 2020
fruit fly

Fruit Fly

Rotten fruit is a siren song to the fruit fly.

There are many, many ways to get rid of fruit flies. But one expert we consulted, Todd Schlenke, assistant professor of biology at Emory University, spends all day studying these pesky pests.

Fruit flies may be tiny, but they have a powerful sense of smell and pick up on "odor plumes" that emanate from your home. "Fruit flies spend their whole lives searching for the smell of rotting fruit, then get in through cracks in the door or however the smell is getting out of your house," Schlenke says. "Fruit flies don't actually eat fruit, despite the name. They eat the fungus or rot that grows on the fruit. So the best thing is to not let your fruit rot."

What Is a Fruit Fly, Anyway?

The fruit flies you are seeing around the house are genus Drosophila—as opposed to the larger Mediterranean fruit flies that live in orchards. They are most common in late summer and fall.

Female fruit flies lay their eggs on or in fruit that is decaying. And after the larvae hatch, they eat their rotten, fruity surroundings before they grow into adults.

Ways to Get Rid of Fruit Flies

There a number of methods to get rid of fruit flies in your home and we rounded up a sampling of some of the most tried-and-true methods here.

The Vinegar Method

When fruit flies show up by the dozen, whip up a batch of fruit fly magnet, a quick blend that lures these winged pests to a buffet they can't resist — and can't escape. The ingredients are likely already in your cupboard: sugar, vinegar and dish soap.

The Recipe

Use 1 1/2 tablespoons each of vinegar (apple cider or white) and sugar. Add a small amount of warm water, stirring to dissolve sugar. Complete the mix with a few squirts of dish soap and enough water to make 8 to 16 ounces of the mixture. How much water to add depends on what you use to hold the blend — and this is where your success hinges.

How It Works

Researchers have discovered that fruit flies track potential food sources by both odor and shape. In particular, they're looking for roundish shapes that resemble fruit. Displaying your fruit fly magnet in a round bowl or tea cup enhances the odds you'll catch more fruit flies.

Why This Blend Snares Fruit Flies

First, it reeks of the odor that's irresistible to fruit flies.

Second, the soap cuts the surface tension of the solution, which means once fruit flies land, they sink.

Use Tips

Let the solution sit out for up to 14 days, adding water as needed to replace any that evaporates.

Place it near ripening fruit on the kitchen counter.

For a massive outbreak — the kind that occurs in autumn when fruit trees are heavy with ripe fruit — fill large serving bowls with the mixture to provide a larger surface area to catch more fruit flies.

The Red Wine Method

If fruit flies have made themselves at home in your kitchen, Emory University's Todd Schlenke says the best way to get rid of them is to give them a nice glass of wine and say goodbye. "Fruit flies like the smell of rotting fruit because they eat the microorganisms, like fungi, that make up the rot. Fungi convert fruit sugars into energy using the process of fermentation, of which alcohol is a byproduct," he says. "So if you have a glass of wine — which is really fermented fruit — or vinegar — which is really, really fermented fruit — that's where they want to be."

And that's where you want a funnel to be. "Fruit flies will go through the hole for that smell and get trapped in the liquid," Schlenke says. "Around the lab, we make traps like that with vinegar all the time. If you want to make it even better, you can put baker's yeast in the vinegar as well."

More Tips for Ridding Your Home of Fruit Flies

  1. Place a few drops of dish soap in a shallow bowl of water and mix to form bubbles. Place the dish under a lamp so that the light will attract the flies that will then land and be trapped in the foamy water.
  2. Boiling white vinegar or just plain boiling water and then pouring them into shower, kitchen and bathroom drains are both great ways to rid your home of fruit flies.
  3. Fill a dish with apple cider vinegar. Cover it with plastic wrap and secure with a rubber band, then poke a few small holes in the plastic wrap to allow the flies entry. The smell of the vinegar will attract the flies and the plastic wrap will trap them in the dish.
  4. Place a chunk of rotten fruit and a little vinegar in a jar. Create a paper cone by rolling a piece of paper into a cone shape and insert it into the jar. Fruit flies will be drawn to the rotten fruit smell and once in your clever trap, won't be able to get out!

How to Prevent Fruit Flies in the First Place

  • Keep all of your produce in the refrigerator.
  • Don't keep overripe fruit and vegetables around.
  • Wash your produce when you bring it home from the store or in from the garden to remove any possiblity of transporting fruit fly larvae into your home.
  • Take out the garage frequently since fruit flies can breed in empty bottles, trash cans and cleaning supplies like mops and rags.
  • Clean up spills immediately, especially sticky, sugary spills.
  • Use a commerical product like Aunt Fannie's FlyPunch.
  • Keep food residue out of the drain.

Next Up

How to Get Rid of Gnats

Find out what causes gnats, how to get rid of them and how to make sure the gnats don't return using a variety of human-made and natural methods.

How to Get Rid of Chiggers

Find out how to get rid of chiggers and how to prevent and treat chigger bites.

How to Get Rid of Ants

Find out what to do when ants cause a problem in your home or outdoors, including natural remedies for ridding your space of these small but mighty pests.

How to Get Rid of Flies

Find out simple steps for how to get rid of flies, indoors and out from the garden experts at HGTV.

10 Ways To Deal With Japanese Beetles

Beat back Japanese beetles with a few of these strategies.

How Do Carpenter Bee Traps Work?

Say goodbye to those pesky carpenter bees for good with the help of a handy trap.

Our Best Tips for Controlling Mosquitos This Summer

Enjoy the great outdoors, bite-free.

5 Natural Ways to Mosquito-Proof Your Yard

Keep pests at bay and stay bite-free with these easy tips and DIY projects — no chemicals required.

Making a Stink: How To Keep Skunks Out of Your Garden

Learn how to get ride of skunks while protecting yourself from their best defense.

7 Retailers With the Best Online Return Policies

These brands offer the best policies in the business, from free return shipping to extended time limits.

Go Shopping

Spruce up your outdoor space with products handpicked by HGTV editors.

What's New in Outdoors

On TV

Follow Us Everywhere

Join the party! Don't miss HGTV in your favorite social media feeds.