How to Get Rid of Fruit Flies Naturally

If you’ve ever walked into your kitchen, reached for a banana, and suddenly been greeted by what feels like an entire swarm of tiny flying insects…
Welcome to the club.
Fruit flies have an uncanny ability to appear overnight.
One day your kitchen is spotless, and the next you’re waving your arms around like you’re conducting an orchestra every time you walk by the fruit bowl.
Ask me how I know.
Last sumer our kitchen became so infested with fruit flies that I was convinced they were multiplying just to spite me. I’d wipe the counters, empty the trash, wash the fruit, scrub the sinks. Yet somehow, there were still dozens of them hovering around my kitchen.
I was losing my mind!
After searching every corner of the kitchen, I finally found the culprit.
A forgotten bag of potatoes tucked in the back of the pantry had completely rotted.
What started as a bag of potatoes had become an all-inclusive fruit fly resort. The smell hadn’t reached us yet, but the fruit flies certainly had.
The second those potatoes went into the trash and I thoroughly cleaned the area, the population started shrinking almost immediately.
Lesson learned.
Now I make it a habit to regularly check the pantry for forgotten produce before it has a chance to become a breeding ground.
And when fruit flies inevitably sneak into our home during the warmer months, I use one simple homemade trap that works every single time.
What Are Fruit Flies?
Fruit flies are tiny insects attracted to fermenting fruits, vegetables, sugary liquids, and organic matter.
Despite their name, they aren’t picky eaters.
They love:
- Overripe bananas
- Tomatoes
- Potatoes
- Onions
- Peaches
- Melons
- Empty juice containers
- Sticky soda cans
- Wine bottles
- Compost bins
- Garbage disposals
- Kitchen drains
- sourdough starter (just discovered this one)
The tricky part?
A single female fruit fly can lay hundreds of eggs.
That’s why it often feels like they appear overnight.
By the time you notice a few flying around your kitchen, there’s a good chance more are already developing nearby.
The good news?
Once you eliminate their food source and trap the adults, it’s surprisingly easy to get rid of them naturally.
Affiliate Disclosure: Some of the links in this post are affiliate links, which means I may earn a small commission if you choose to purchase through them. I only share products I personally use, trust, and genuinely recommend.
My Favorite Homemade Fruit Fly Trap
I’ve tested plenty of DIY fruit fly traps over the years, and this simple recipe continues to be my favorite because it uses ingredients I always have on hand.
Homemade Fruit Fly Trap Recipe
You’ll need:
- 1 cup warm water
- 1-2 tsp liquid dish soap
- 1 teaspoon apple cider vinegar
- 1 teaspoon sugar
Simply stir everything together in a small glass or mug and place it wherever you’ve noticed fruit flies gathering.
That’s it.
No chemicals or sprays. Just simple ingredients that work.

This is what your trap should look like in a few hours…depending on the amount of fruit flies in your home.
Why This Homemade Fruit Fly Trap Works
Fruit flies are incredibly sensitive to scent.
The apple cider vinegar smells similar to fermenting fruit, which immediately attracts them.
The sugar sweetens the mixture even more, making it irresistible.
As the ingredients combine, tiny bubbles begin forming across the surface of the liquid.
Those bubbles are actually what make this trap so effective.
The flies land on the bubbly surface expecting food, but instead become trapped.
Once they touch the liquid, they can’t escape.
The bubbles break the surface tension just enough to keep them from lifting back off, and they eventually suffocate in the mixture.
It’s simple science—and it works remarkably well.
I usually set out two or three cups if the infestation is particularly bad.
Within a day or two, the difference is noticeable.
The Secret Most People Miss
Here’s the thing…
You can set out ten fruit fly traps, but if you don’t remove what’s attracting them in the first place, they’ll keep coming back. Finding the source is just as important as trapping the flies.
When I discovered those forgotten potatoes in my pantry, everything finally made sense.
They weren’t hanging around my fruit bowl. They had established an entire colony inside a paper bag tucked behind some canned goods. Now I make pantry clean-outs part of my regular routine.
Every few weeks I check:
- Potatoes
- Onions
- Garlic
- Apples
- Bananas
- Any produce that’s been forgotten
It’s amazing what can disappear behind a Costco-sized box of snacks.
How to Prevent Fruit Flies Naturally
The best fruit fly trap is the one you never have to use.
Here are a few habits that make a huge difference.
Toss Old Produce Promptly
Check your fruit bowl regularly.
One overly ripe banana is enough to invite an entire family of fruit flies into your kitchen.
If produce is starting to look questionable, compost it or use it immediately.
Clean Your Kitchen Drains
This is one of the biggest hiding places people overlook.
Bits of food and organic matter collect inside drains, creating the perfect environment for fruit flies. Thankfully, cleaning them naturally is simple.
- Pour about ½ cup of baking soda down the drain.
- Follow it with 1 cup of white vinegar.
- Let it fizz for 15–20 minutes.
- Then flush everything with boiling water.
The fizzing reaction helps loosen grime while deodorizing the drain at the same time.
Doing this every couple of weeks keeps drains cleaner and less inviting to pests.
Empty the Trash Often
Fruit flies love garbage cans. Especially if there are fruit scraps, coffee grounds, or sugary containers sitting inside.
Take the trash out regularly and wash the inside of your garbage can every so often.
Rinse Recyclables
Empty juice bottles, kombucha bottles, soda cans, and wine bottles can all attract fruit flies.
A quick rinse before tossing them into the recycling bin makes a big difference.
Store Produce Properly
Not every fruit belongs on the counter. Many fruits and vegetables stay fresh much longer when refrigerated.
Less ripening means fewer fruit flies.
Keep Counters Clean
Wipe up juice spills. Clean under the toaster. Check behind the coffee maker.
Sometimes the tiniest sticky spot becomes an invitation.
Check Your Pantry Often
This one deserves repeating.
My potato incident completely changed how I organize our pantry. Now I rotate older foods to the front and regularly check anything that can spoil.
It’s one of those five-minute tasks that saves hours of frustration later.
Frequently Asked Questions
Does this fruit fly trap really work?
Yes.
The combination of apple cider vinegar and sugar attracts fruit flies extremely well.
The bubbly surface of the mixture traps them once they land.
It’s one of the easiest and most effective natural remedies I’ve found.
How long does the trap last?
I usually replace mine every few days or whenever it becomes full of fruit flies.
Fresh ingredients are always more effective.
Will this get rid of all fruit flies?
It will dramatically reduce the adult population, but removing the breeding source is equally important.
If fruit flies continue appearing, check your pantry, drains, trash cans, compost bin, and produce storage areas.
I’ve learned that fruit flies usually aren’t a sign of a dirty home.
They’re simply opportunists.
Sometimes all it takes is one forgotten onion…
One overripe peach…
Or, in my case, one neglected bag of potatoes hiding in the pantry.
The good news is that getting rid of them doesn’t require harsh chemicals or expensive products.
A few pantry staples, a little detective work, and some regular kitchen maintenance can solve the problem naturally.
If you’re trying to create a healthier home without making life more complicated, you’re in the right place. I love sharing simple, affordable recipes and practical natural living tips that actually fit into real life—not perfection.
Cleaning your home doesn’t have to come at the cost of your health or the environment.
These dishwasher pods are proof that simple, low-tox choices can still be effective, affordable, and easy to maintain long-term.
Grab my Crunchy Cleaning Companion or check out my other DIY low-tox recipes where I break down simple changes that protect your health, save money, and make natural living feel doable instead of dramatic
Like this DIY dishwasher pod recipe? You might like some of these simple recipes too
Easy, homemade natural dryer sheets
