How To Get Rid Of Fruit Flies With Cider Vinegar

You should be worried about how to get rid of fruit flies if you have the infestation in your home. Fruit flies are small flies or gnats that you might occasionally see flying around in your kitchen.  

These pesky flies are annoying and can be a problem all year round. However, they are especially common during late summer and fall (1). 

They are usually attracted to ripened or fermenting vegetables and fruits. When you bring in grapes, melons, tomatoes, squash, and other perishable items from your garden or the grocery stores into your home, that’s primarily how you develop an infestation indoors. 

This post may contain affiliate links as explained in my Disclosure Policy

Fruit flies are also attracted to rotting onions, potatoes, bananas, and other unrefrigerated produce that you left on your kitchen counter or in your pantry. The flies are also attracted to anything that has vinegar or alcohol (2)in them, including beer and wine.

Generally, you’ll find these flies anywhere food is allowed to rot and ferment. This includes homes, grocery stores, restaurants. 

How they live

Fruit flies are primarily nuisance pests, but they can also contaminate your food with bacteria and other disease-producing organisms. The adult flies are about 1/8 inch long and they usually have red eyes. 

It has a front portion of the body that is tan, and the rear portion is black. They lay their eggs near the surface of fermenting foods or other moist, organic materials. 

When the eggs hatch and the tiny larvae emerge, they continue to feed near the surface of the fermenting food. The female fruit fly may lay about 500 eggs, and the entire lifecycle of the fruit flies from egg to adult can be completed in about a week (1). 

Although fruit flies are especially attracted to ripened fruits and vegetables, they can also breed other places. They include:

  • empty bottles
  • cans
  • trash containers
  • garbage disposals
  • drains
  • cleaning rags
  • mops

They’re drawn to any type of fermenting food (1)

The flies only need a moist film of fermenting material to develop. Sometimes, an infestation starts in your home when you bring home over-ripened fruits or vegetables. 

If any of the fruits or vegetables had previously been infested at the grocery store, the infestation will continue when you take the produce home. The fruit flies can also invade your home by flying into your house from outside through improperly screened windows and doors.

Wash produce to remove fruit fly eggs
Source: Oleg Magni

How to get rid of fruit flies in your home

When you have a fruit fly infestation, you should plan to get rid of them as soon as you can.

  • Locate all the potential breeding areas of the fruit flies. Remove them and clean the identified areas. If you fail to do this, the problem will continue. Merely killing the adult flies is not enough to eradicate the infestation. You have to eliminate the breeding areas as well.
  • After eliminating the source of attraction and breeding, use a pyrethrum-based, aerosol insecticide to kill any remaining adult flies in the area where they may be seen flying around.
  • Make a vinegar fly trap by constructing one. To do this, roll a sheet of notebook paper into a funnel. Place the paper funnel into a jar filled with a few ounces of cider vinegar. The vinegar serves as a bait.  

Place the jar trap wherever you’ve seen the fruit flies. The vinegar trap will catch the adult flies, which you can then kill or dispose of outside. 

  • You can also make a fruit fly trap by placing a few ounces of cider vinegar at the bottom of a bowl or cup. Cover the top of the bowl or cup tightly with plastic wrap. 
Cider vinegar To Eliminate Fruit Flies
Vinegar Fly Trap

Place a rubber band around the plastic wrap to make sure it stays in place. Poke some small holes in the plastic wrap. The flies will crawl in and they won’t be able to crawl out.

  • Use a soap fly trap by mixing together in a small bowl or cup the following:
  1. water 
  2. some drops of dishwashing soap
  3. a tablespoon or two of cider vinegar. 

The vinegar will attract the fruit flies, while the dish soap will make them fall in and drown in the water. 

How to prevent fruit flies

Once you know how the fruit fly infestation originated in your home, you should be able to prevent them from being introduced into your home in the future.

The best way to avoid having to deal with these annoying flies is to eliminate all sources that attract them.  

  • Wipe up spills as they occur and take out your trash often.
  • If you have ripened produce in your house, you should eat, discard or refrigerate them. As a fruit ripens and starts to ferment, fruit flies seem to appear from nowhere. Therefore, put ripe fruits in the refrigerator and ripening ones in paper bags on the counter. 
  • Cut off and discard cracked or damaged portions of fruits and vegetables. This is because the eggs or larvae may be present in the damaged area of the produce.
  • If you have forgotten a rotting onion or potato in your pantry, this will become a breeding ground for thousands of fruit flies. Do not leave fresh produce in your pantry. You should refrigerate them as soon as you bring them home from the stores or from your garden.
  • Any recycling bin stored in your basement will be a convenient source of fruit fly infestation. Empty and rinse recycling cans and dispose of them as soon as possible.
  • If you can your own fruits and vegetables, or you make your own beer or wine, make sure that the containers you’re using are well sealed. If they’re not, fruit flies will lay their eggs under the lid of the containers and the tiny larvae will enter the container when they hatch. 
  • Put tight-fitting screens on your windows and doors to prevent adult fruit flies from entering your house from outdoors.
  • Remove or dry any damp cloths in the kitchen. Don’t keep dish rags or damp kitchen towels lying around after you’ve used them. They can be a breeding ground for fruit flies. Wash them every day and keep them dry.
  • Don’t keep ripe fruit out on your kitchen counter
  • Dirty dishes in the sink are a good breeding ground for fruit flies. Wash your dishes as you use them. This will cut down fruit fly breeding grounds tremendously. Also, don’t leave out cups of water or other liquids for a long period of time on your kitchen counter. either. 
Avoid fruit flies
  • Clean out the drain in your kitchen sink with ice or apple cider vinegar. This is very important because fruit flies like to breed in the drain where bits of rotting fruit and vegetables often linger. 
  • If you have an overhead and oscillating electric fans in your kitchen, leaving them on may help keep fruit flies away.
  • Go through your pantry or any fruits on your kitchen counter and do a rotten produce check. 
  • Wash and dry incoming produce as soon as you bring them home. This will remove any eggs on the surface.
  • You can unknowingly bring fruit flies home with you from your grocery store. Wash all fruits and vegetables as soon as you bring them home. 

You may even set up a clean bucket of water outside your house to wash your produce before you take them inside your house.

  • If you generate compost, you should freeze them before using them. Some bugs are great for your compost pile, but fruit flies can cause problems as they move from your compost pile to your garden, laying eggs in your growing produce. 

Freezing vegetables and fruits before they become compost will kill the flies and their eggs. Churn your compost often. Also, consider hanging fruit fly traps near where you have your compost pile. 

How to keep the fruit flies at bay

Rotting apples attract fruit flies
Rotting apples attract fruit flies

Although these little flies love beer and wine, there are certain scents and substances that they don’t like. They don’t like basil, bay leaves, and mint, so you consider growing such herbs in a sunny spot in your kitchen. 

You can make your own fly repellent spray at home. To do this, you’ll need essential oils. 

Mix peppermint, lavender, and witch hazel with water in a spray bottle. Spray lightly on furniture, linens, any fly-infested plants, and around all your exterior doors.

33 thoughts on “How To Get Rid Of Fruit Flies With Cider Vinegar

  1. Hi you are posting best information, it’s very useful to everyone, keep updating this type of interesting articles.

  2. It’s a good idea to use the trap as a kids project, I never thought about it that way.
    Thanks so much for this feedback.

  3. Although we usually just do a thorough cleaning of the area if we get fruit flies in a food item, I’ve made a note of the vinegar trap idea. The trap would be a great kids project, too.

  4. I’m usually to blogging and i really admire your content. The article has really peaks my interest. I am going to bookmark your web site and maintain checking for brand new information.

  5. You’re lucky if you’ve never had those little suckers in your home.
    The tips will be of use if you ever do. Thanks for your feedback.

  6. I can no say that I know way more about fruit flies than I ever thought I wanted to know, haha.

    I don’t think I’ve ever had them in my house because I always put my fresh produce in the fridge. But I’ll definitely try this if they ever manage to sneak in to my place.

  7. luckily no fruits last long enough in my household to attract fruit flies! my 2 kids finish everything before they even get out of the grocery bags! lol

  8. Yes, please do. I’m certain it’ll work for you too.
    It’s safer than harmful sprays in your kitchen.
    Thanks for your feedback.

  9. I haven’t had problems too since I discovered this little trick.
    Thanks so much for your feedback, and for validating the efficacy of this “trapping” system.

  10. Hahaha, yes they can be annoying indeed. Now I have a way to keep them off for good.
    Thanks so much for your feedback.

  11. Thank you so much for this info. I’m definitely going to try this…

  12. I love reading about an organic way to handle fruit flies. Thanks so much

Leave a Reply

Discover more from

Subscribe now to keep reading and get access to the full archive.

Continue reading