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. 

Read more
A woman's hand holding a magnifying glass magnifying bed bugs on a mattress
3 home remedies that can actually get rid of bed bugs
A mosquito resting on a plant
3 pests to watch out for this spring — and expert tips to prevent them
A metal trash can in a kitchen
This TikTok hack completely transformed the way my trash can smells
Image shows a person in blue disposable gloves pointing to bed bugs on a mattress
You might be creating the perfect conditions for bed bugs to thrive in your mattress — here's why
Dryer sheets in a box on a dryer
This dryer sheet hack keeps my house smelling fresh, and works instantly
Woman changing bedding
How to get rid of bed bugs and dust mites from your bedding and pillows if a hot wash isn’t an option
Latest in Home
The new Husqvarna iQ series robot lawn mower.
Husqvarna’s new robot mowers offer GPS for less
A distraction-free desk setup built around the Oakywood Standing Desk Pro
I built the ultimate work-from-home setup with this vertical monitor — and it’s a game changer for my productivity
the dyson airwrap ID in teal and terracotta colorway (patina and orange) with a lapis case, with a brush, hairfryer, curling wand attachments
I'm so sick of everything being 'smart' — and the Dyson Airwrap i.d. I've been testing is the last straw
Segway g30lp
Segway recalls 220,000 electric scooters - what to do if yours is on the list
the breville dose control pro, called sage dose control pro in the uk, a silver coffee grinder with 60 grind settings and labeled grind size adjustment
The Breville Dose Control Pro is one of the most divisive coffee grinders — here’s why I disagree with the haters
the clever dripper, a brown transparent plastic manual coffee maker with a handle and a sluice feature in the bottom to keep water inside
The Clever Dripper is my new favorite way to brew coffee — and I think it’s easier than a French Press
Latest in How To
An image of an iPhone screen showing the Safari app icon in the center
I got tired of Safari revealing my web searches in iOS 18.4 — this setting fixes that
AirPods Pro 2 in hand
Your earbuds are disgusting — here's the right way to clean them
ChatGPT logo on a smartphone screen being held outside
7 biggest ChatGPT mistakes — and how to fix them
a photo of a woman looking at her fitness tracker
Forget the treadmill — I boosted my metabolism and walked 2,000 steps with this 15-minute workout
a photo of a woman out for a walk
Forget running — I did this one thing to boost the calorie burn on my daily walks
Gemini logo on smartphone
Google's Gemini Deep Research is now free — I've got 7 quick tips to start using it now