Gardening & Homesteading Non-Toxic Home

How to Get Rid of Fruit Flies Naturally

How to Get Rid of Fruit Flies Naturally

If you have been seeing small flies or gnats in your kitchen, they’re probably fruit flies. In the high heat of summer, with a bounty of fresh summer produce in your kitchen, fruit flies can quickly become pesky invaders because they are attracted to ripened or fermenting fruits and vegetables.

Here’s how to get rid of fruit flies naturally and effectively.

Fruit Fly Biology

Fungus gnats and fruit flies are DIFFERENT

Fruit flies (Drosophila melanogaster) are also sometimes called vinegar flies. They are common in homes, restaurants, supermarkets and wherever else food is allowed to rot and ferment. Adults are about 1/8 inch long and usually have red eyes. The front portion of the body is tan and the rear portion is black.

Fruit flies are different than fungus gnats, though they look very similar to each other. While both insects eat rotting organic matter, fruit flies are specifically drawn to ripening produce and fermenting food and beverages, whereas fungus gnats prefer the rotting organic matter found in moist soil.

Fruit flies lay their eggs near the surface of fermenting foods or other moist, organic materials. Upon hatching, the tiny larvae continue to feed near the surface of the fermenting food. This means that any damaged or over-ripened portions of fruits and vegetables can be cut away and composted, and you can still eat the rest of it.

Fruit flies reproduce ridiculously fast. Given the opportunity, they will lay about 500 eggs! The entire life-cycle from egg to adult can be completed in about a week. This is why fruit flies are the darling of genetics laboratories.

Fruit Fly Humor

Fruit flies are especially attracted to ripened fruits and vegetables in the kitchen, but they will also breed in drains, garbage disposals, empty bottles and cans, trash containers, mops and cleaning rags. All they need is a little moisture and something fermenting or moldering.

Even your moist toothbrush bristles are fodder for the fruit fly!

Fruit flies get brought into your home from fruits or vegetables at the market that were previously infested. The adults can also fly in from outside through inadequately screened windows and doors.

Fruit flies are primarily a nuisance. However, they also can carry bacteria that can contaminate your produce and cause it to ripen and rot sooner. This bacteria won’t harm you, but it will shorten the life of your expensive, organic fruits and veggies.

Preventing Fruit Flies

Good prevention strategies simply keep fruit flies out of your home and off your produce.

  1. Clean your produce as soon as you get home, and store it loose or in a new bag, rather than in the plastic bag you got from the store. Better yet, skip the plastic bag altogether, and carry reusable produce bags to the store with you.
  2. Cover your fruit bowl or store fruit in the refrigerator. Sweet fruits are their favorite attractants, and fruit flies can hasten its spoilage.
  3. Don’t put food or beverage containers in waste paper baskets. Always take them to a kitchen can, compost or recycling bin.
  4. Use, freeze or compost all overripe fruits and vegetables.
  5. Don’t keep any vegetable or meat scraps in your garbage can inside your home. Place your vegetable scraps in a bag or freezer bag and put them in the freezer. You should either make soup out of them, bury them in a compost pile, or keep them frozen in a sealed bag, and throw them away in an outside garbage can.
  6. Take out your compost. Any scraps or leftovers you plan to compost you should take out right away. If you can’t get them out right away, put them in a bag in the freezer until you can. Make sure your compost pile is situated far from your home and that you bury your food scraps in the pile.
  7. Wash all dishes and clear the drains in your sink. You can also pour baking soda followed by white vinegar into your drains to kill any fruit flies that may be breeding there.
  8. Don’t leave wet dishrags in the sink.
  9. Clean the seals of your refrigerator door, the top and under the fridge. You should especially clean the evaporation pan if it has one.
  10. Clean under and around your dishwasher and stove. Food residue and crumbs are great fodder for more than fruit flies.
  11. Allow the first inch of the soil in your houseplants to dry out before watering. Remove any dead leaves from the pot as they fall.
  12. Make sure you have good window and door screens. Keep these pests from flying in and taking up residence!

Physical Controls

In addition to removing their food sources and preventing them from getting in, the best way to get rid of fruit flies is to use a trap.

Fruit Fly Trap Recipe


  • 1 pint mason jar or 1 recycled baby food jar, with lid if possible
  • hammer and standard nail OR ice pick OR plastic wrap, rubber band and a fork/skewer/toothpick


  • 1/4–1/2 cup apple cider vinegar, wine, stale beer or bourbon (white vinegar does not work well)
  • small piece of old, overripe fruit
  • 2-3 drops of dishwashing soap (this breaks the surface tension of the liquid, making it hard for the flies to escape)


  1. If you have the lid for your jar and want to make a long-lasting, spill-resistant trap, use an icepick or nail to poke 8-12 holes into the lid. You want the holes big enough for a fruit fly to enter, about 1/8 of an inch. (Don’t worry, they are too dumb to get out of such small holes, plus the dishwashing soap will help drown them.)
  2. If you don’t have the lid or want to make a temporary trap, use a piece of paper or plastic wrap and a rubber band to tightly cover the top of the jar. Poke several holes into it with a fork, skewer or toothpick.
  3. Fill the jar with about a half inch to an inch of apple cider vinegar, wine, beer or liquor. Stir in a couple drops of dishwashing soap, then place a small piece of overripe fruit into the middle of the liquid. Make sure the fruit is big enough to stick out of the liquid a little.
  4. Place the trap (or traps) where you normally see fruit flies. Every 2-3 days, dump the contents of the jar down the drain or into the compost pile, and start again with a fresh vinegar mix.
Commercial traps like these are non-toxic and very effective.

You can also buy fruit fly traps at better garden stores as well as online. (Where to find online)

These commercial traps are non-toxic and work exceptionally well, but because fruit flies are so, well… fertile, their cost can add up if you don’t also put strong prevention measures into place too.

Using a combination of prevention and a good trap, there is no reason to suffer annoying fruit flies in your home anymore.

About the author

Dawn Gifford

Dawn is the creator of Small Footprint Family, and the author of the critically acclaimed Sustainability Starts at Home - How to Save Money While Saving the Planet. After a 20-year career in green building and environmental sustainability, chronic illness forced her to shift her expertise and passion from the public sphere to home and hearth. Get the whole story behind SFF here.


Click here to comment. (Please note our comment policy. Comments close after 30 days.)
  • Hi, I read your article on giving up water in plastic bottles. Now I’m wondering about the plastic particles that are washed into our rivers, lakes and the ocean, when people wash their precious faux-furs. Do you happen to know whether such particles enter out bodies when drinking water from plastic bottles, especially when we reuse them?
    Thank you for your interesting works.
    greetings from Basle/ Switzerland
    Alexandra W.

  • Thisbis the craziest thing I’ve ever heard of! I couldn’t figure out where all these annoying gnats were coming from. I got rid of all my fruit & they were still flying around. So i googled it & saw they are also attracted to wine! Well……i looked on the table & my husband had left his wine glass on the table. Wella! All i had waa some malt vinegar, dawn & a glass jar. Put the cone in & there’s @ least 10 in there now! Hopefully they’ll be dead in the morning!

  • I will get back with a comment as soon as I try a remedy. These little pests are making me crazy. I have already sucked up a whole gang of them hanging out in the kitchen in the vacuum.! Then plugged the hose just in case they tried to escape. MSN had an interesting article a couple weeks ago about the infestation of Orential Fruit Flies destroying crops in Dade County Fl. 9/24/2015.

  • as others have said, a homemade trap will cost you much less. Put some apple cider vinegar or balsamic vinegar in a jar (I have even used baby food ones), add a few drops of dish soap to break up the surface tension of the water, shake gently and set out. So I decided to buy this flytrap just to compare results, and noticed that it works just the same! catches even other types of flies and I like that it lasts for weeks so I did continue using the product

  • The red wine vinegar works wonders. I set the trap at night and woke up to 40 flies in it. I hadn’t realized that there was so many in my home. But definitely try it.

  • I tryed the vinger trap but used white vingar and no soap or coger. They Would lay on the dish but not get in. Today I’m going to do it right with coger, let you all know if it worked in a couple days.

  • Kombucha also works great! I just put some in a small dish with a couple of drops of Dawn and pretty soon it’s filled with drowned fruit flies. It’s a very satisfying sight!

    • I brew my own bucha and they love to sit on top of the cloth. In the morning, I suck them up in the vacuum. 😉

  • One time we had a huge infestation, we had about 500 gnats we tried everything. I ended up vacuuming then. I felt like Miroku 😛

  • The apple cider vinegar with some dish soap DEFINATELY works.. I just use small bottle lids (Like from my Kombucha etc).. Will have to try a bigger vessel like a canning jar. Another thing that has helped snag a bunch is an old fashioned fly strip.. Know it seems yucky having one in the kitchen, but with a messed up screen door at the moment.. I end up with flies in the house when I don’ t have the AC on… So.. have one hanging in the kitchen. Thanks for the post.

50 Ways to Love Your Mother - Simple Steps for a Greener, Healthier Planet


You'll also get the Monthly Harvest newsletter, full of seasonal tips, recipes AND exclusive "first dibs" on giveaways, discounts and classes that will help you be greener, healthier and more self-reliant.

Thank you! Please check your email now and be sure to CONFIRM your subscription to receive your ebook.