How to Get Rid of Fruit Flies Fast (DIY Guide)
They appear out of nowhere, hover annoyingly around your fruit bowl, and seem impossible to kill by swatting. Fruit flies are one of the most common — and most frustrating — household pests. But they're actually one of the easiest to get rid of once you understand what's attracting them.
At a Glance
Difficulty
EasyTime Needed
15–30 minutes setup, 3–7 days to resolve
DIY Cost
$0–$10
What You're Dealing With
Fruit flies (Drosophila melanogaster) are those tiny, tan-colored flies — about ⅛ inch long — that hover around ripe fruit, trash cans, and drains. They're not just annoying; they can also contaminate food with bacteria since they breed in decaying organic matter.
Here's what makes fruit flies so tricky: they reproduce absurdly fast. A single female can lay up to 500 eggs, and those eggs can go from larva to adult in as little as 8 days. This means a few fruit flies can become hundreds in about a week if you don't act quickly.
The good news? Fruit fly infestations are almost always DIY-solvable. You rarely need a professional for these guys.
What You'll Need
- Apple cider vinegar — The #1 fruit fly attractant. Regular white vinegar doesn't work as well.
- Dish soap — A drop breaks the surface tension of the vinegar so flies sink and drown instead of landing and flying away.
- Small jars or bowls — For making traps.
- Plastic wrap — Optional, for covering traps with small holes poked in.
- Drain cleaner or boiling water — If the source is your drain.
Total cost: $0–$10. You probably already have everything you need.
Step-by-Step Guide
Step 1: Find and Eliminate the Breeding Source
This is the whole game. Fruit flies need decaying organic material to breed, and until you remove it, traps will only catch adults while new ones keep hatching. Check these common sources:
- Overripe fruit — Check your fruit bowl, countertops, and anywhere fruit might be sitting out. Even one overripe banana can breed hundreds of flies.
- Trash can — Especially if it doesn't have a lid or hasn't been emptied recently.
- Sink drain and garbage disposal — Organic gunk builds up in drains and is a perfect breeding site. Run the disposal and pour boiling water down the drain.
- Recycling bin — Empty beer bottles, wine bottles, and soda cans are fruit fly magnets.
- Damp mops, sponges, and rags — Forgotten cleaning supplies left in buckets can breed fruit flies.
- Compost bins — Indoor compost containers are a common source.
- Spills — Check behind and under the fridge, under the stove, and anywhere sticky spills might have been missed.
Remove or clean every source you find. This is 80% of the solution.
Step 2: Make Apple Cider Vinegar Traps
Pour about ½ inch of apple cider vinegar into a small jar or bowl. Add 2–3 drops of dish soap and stir gently. The vinegar attracts the flies, and the soap breaks the surface tension so they drown when they land.
Place 2–3 traps around the kitchen — near the fruit bowl, by the sink, and near the trash can. You'll start catching flies within hours.
Alternative method: Cover the jar with plastic wrap and poke 5–6 small holes with a toothpick. Flies can get in but can't figure out how to get back out. Both methods work — the open-bowl-with-soap method is simpler.
Step 3: Clean Your Drains
Even if fruit on the counter was the original attractant, flies may have started breeding in your drains too. Pour boiling water down each kitchen drain. Run the garbage disposal with cold water for 30 seconds. For persistent drain issues, pour a half cup of baking soda followed by a half cup of vinegar, wait 15 minutes, then flush with boiling water.
Step 4: Wait and Maintain
Keep traps out and keep your kitchen clean. With the breeding source removed, the existing adult population should die off within 3–7 days (fruit flies only live about 2 weeks). Replace trap liquid every 2–3 days as it fills with flies or loses potency.
Prevention Tips
- Refrigerate ripe fruit — Once fruit starts getting soft, move it to the fridge. Fruit flies can't breed on cold fruit.
- Use a trash can with a lid — And take out kitchen trash daily, especially in warm months.
- Rinse recycling — Quick rinse of bottles and cans before putting them in the recycling bin removes the residue that attracts flies.
- Run your garbage disposal regularly — Don't let food waste sit in the disposal. Run it with cold water after every use.
- Wash produce when you bring it home — Fruit fly eggs can be on produce from the grocery store. A quick wash removes them before they hatch in your kitchen.
- Don't leave wet rags or sponges sitting out — Wring them out and hang them to dry, or replace sponges weekly.
Common Mistakes to Avoid
- Only setting traps without removing the source — Traps catch adults, but if the breeding source is still present, new flies hatch faster than you can trap them. Find and remove the source first.
- Using white vinegar instead of apple cider vinegar — White vinegar doesn't attract fruit flies nearly as well. Apple cider vinegar mimics the smell of fermenting fruit, which is irresistible to them.
- Forgetting about drains — You might remove all visible fruit and clean the counters, but if your drain is gunky, flies will keep breeding there out of sight.
- Confusing fruit flies with drain flies — Drain flies are fuzzy, moth-like, and hang out on walls near drains. They're a different species that needs a different treatment approach (focused entirely on drain cleaning).
When to Call a Professional
Honestly? You almost never need a professional for fruit flies. They're the most DIY-friendly pest there is. But consider getting help if:
- You've done everything above and they persist for 2+ weeks — There might be a hidden breeding source you can't find, like a piece of fruit that rolled behind an appliance, or a slow drain leak in a wall.
- The problem might actually be drain flies, phorid flies, or fungus gnats — These look similar but breed in different places and need different treatments. If your "fruit flies" don't respond to vinegar traps, you may be dealing with a different species. A pest professional can identify them and target the right source.
Frequently Asked Questions
Where do fruit flies come from?
Fruit flies often arrive on produce from the grocery store — their eggs are so small they're invisible to the naked eye. They can also enter through open windows and doors, attracted by the smell of ripening fruit. Once a few are inside, they breed rapidly in any decaying organic material.
How long do fruit flies live?
Individual fruit flies live about 40–50 days. But since a single female can lay 500 eggs that mature in 8–10 days, the population grows exponentially. What feels like an endless swarm is actually multiple generations replacing each other.
Do fruit flies bite?
No. Fruit flies don't bite humans. They don't even have the mouth parts for it. They're strictly attracted to fermenting fruit and organic matter. They are, however, annoying and can spread bacteria.
Can I just wait for fruit flies to go away on their own?
Only if you remove all food sources. If there's nothing to eat or breed in, existing adults will die off in 1–2 weeks. But if any food source remains — even a forgotten banana peel in the trash — they'll keep reproducing indefinitely.
Need Professional Help with Fruit Flies?
DIY not cutting it? Describe your pest problem and get matched with licensed professionals in your area.
Get a Free QuoteFind Fruit Flies Exterminators Near You
Browse our directory of licensed pest control professionals who can help with fruit flies problems.
Search DirectoryRelated DIY Guides
How to Get Rid of Cockroaches (DIY Guide)
DIY guide to eliminating cockroaches from your home. Learn effective bait and treatment strategies, prevention tips, and when to call a professional.
How to Get Rid of Drain Flies (DIY Guide)
Get rid of drain flies with this easy DIY guide. Learn what causes them, how to clean drains properly, and prevent them from coming back.
How to Get Rid of Gnats in Your House (DIY Guide)
Get rid of gnats fast with this DIY guide. Covers fungus gnats, fruit flies, and drain flies — how to identify which you have and eliminate them.
This guide is for informational purposes only. Always follow product label instructions and safety precautions when applying any pest control treatment. Last updated: February 2026.