How to get rid of fruit flies fast

Fruit flies on pear slices
(Image credit: Shutterstock)

If you spot fruit flies in your kitchen, chances are, there will be more the next day. That’s because fruit flies can actually lay up to 500 eggs, which hatch in as little as 24 hours, making them hard to get rid of.

Luckily, there are natural products that you can use to banish the fruit flies once and for all. What's more, these don't contain any harmful chemicals, and are affordable.

So, if you want to deter fruit flies before they find their way into your home, follow these top tips. Plus, here are 7 plants that repel fruit flies and keep them out of your home.

Where do fruit flies come from?  

You may be asking yourself, where have these fruit flies come from? Fruit flies are tiny, brown flies with red eyes that are attracted to rotting and fermenting fruit and food debris. So the first and most obvious culprit is the fruit bowl. Fruit flies can also breed in your drains, the trash or mop buckets. These pesky flies can even arrive on fresh fruit and produce, so you can get them no matter how clean your home is!

On top of being very annoying, fruit flies are not hygienic to have buzzing around either. They can contaminate any open food with bacteria and pathogens and will often lay their eggs inside rotten fruit. For this reason alone, you need to control the problem before it becomes an infestation.

How to get rid of fruit flies

Before you trap the flies, you need to clean the area thoroughly to stop them from continually breeding. To do this, wipe down all of the surfaces and remove any rotting food debris. This includes any in the sink, food disposal and taking out the trash as well. It’s also a good idea to vacuum to get rid of any crumbs on the floor. It goes without saying that you need to throw away anything from the fruit bowl which is starting to ferment.

Method 1. Apple cider vinegar trap

This is the most traditional method for getting rid of fruit flies. Simply fill a small bowl with about a cup of apple cider vinegar. Then, cover it with plastic wrap and seal it using an elastic band. Following this, poke small holes in the top — you can do this using a toothpick. Now, you just leave it out to attract the flies! The smell of apple cider vinegar is irresistible to fruit flies and the idea is once they’re in, they can’t get out.

Fruit flies in vinegar

Glass of apple cider vinegar with apples (Image credit: Shutterstock)

Method 2. Dishwasher detergent trap

Peppermint oil added to water, vinegar and dish soap

(Image credit: Future)

If you don’t have plastic wrap to hand, you can instead add a splash of dishwasher detergent to an open bowl of cider vinegar. The flies are once again attracted to the smell, but the dishwasher detergent decreases the surface tension, so once they land, they sink and drown.

Method 3. Rotting fruit trap

How to get rid of fruit flies

(Image credit: Shutterstock)

If rotting fruit is what brought them in, it can get them out as well! Set a trap in a jar by combining some fermenting fruit with a small amount of apple cider vinegar. Then, create a cone from paper and place the tapered end into the jar. The fruit will attract the flies and the cone will stop them from escaping.

Method 4. Bottles of old beer or wine

iGulu F1 with beer

iGulu F1 with beer (Image credit: Future)

Fruit flies love the smell of fermenting beer and wine, so if you have a couple of near-empty bottles to hand, you can use these to your advantage. The smell lures them in, and thanks to the bottle neck, they can’t escape!

Method 5. Fruit fly trap

Fruit fly sticky trap

(Image credit: Shutterstock)

If you don’t want to use a DIY method, you can always invest in a chemical alternative such as Terro’s Fruit Fly Trap ($5.88 at Amazon). This will have the same effect as the above methods.

If you're dealing with lots of fruit flies, you may want to set more than one of the above traps for best results!

If none of these methods work, you may not have fruit flies. Similar looking pests include fungus gnats and drain flies. Fungus gnats look more like mosquitos and can be found around plants, while drain flies usually hang around your drains or anywhere with stagnant water.

BEAPCO  Premium Fruit Fly Traps
BEAPCO Premium Fruit Fly Traps: $15 at Amazon

These traps come pre-filled with a liquid that attracts fruit flies, so you simply need to puncture the top instead of fiddling with a bottle of cider vinegar and a homemade trap. They last a month each and can be disposed in a recycle trash bin.

Tips to prevent fruit flies from coming back 

  • Immediately throw away any old or fermenting food.
  • Rinse any new fruit as it arrives. This stops any eggs arriving on the back of fresh fruit.
  • Store your fruit in the fridge. This stops fruit flies from getting to it as easily.
  • Keep your home clean. Fruit flies thrive in a dirty environment and can even breed on crumbs, so keeping your home clean will help prevent them from returning in the future.

Dealt with the flies? Then here's how to get rid of wasps, how to get rid of moths and how to get rid of ants safely with household products. And check out our guide on how to get rid of fleas.

Want to clean out spiders? Here's the answer to if horse chestnuts can keep spiders away. And here's how to get rid of squirrels without hurting them

Katie Mortram
Homes Editor

Katie Mortram used to be a Homes Editor for Tom's Guide, where she oversaw everything from kitchen appliances to gardening tools, as well as smart home tech. Specializing in providing expert advice for cleaning and home manintenance, she now works as Household Advice Editor for Good Housekeeping.