How to Get Rid of Fruit Flies Overnight
If this fix touches water, gas, or power, the guide starts with the shutoff step and says when a licensed pro should take over.
Product links in this guide are affiliate links. If you buy through one, we may earn a small commission at no extra cost to you. It never changes which products we recommend.
Fruit flies show up fast and multiply faster, because by the time you notice them, eggs are usually already laid somewhere fermenting. The fruit bowl gets blamed first, but it’s rarely the only source in the room.
Quick Answer
Find whatever’s fermenting: overripe fruit, a sticky recycling bin, an open bottle, or a drain with old gunk in it, and remove or clean it. Then set a trap with apple cider vinegar and a drop of dish soap in a small cup, which draws flies in and drowns them since they can’t walk on the surface anymore. Most kitchens are noticeably clearer the next morning, and a full clear takes 15 minutes of cleanup plus 1 to 3 nights of trapping.
What You’ll Need
- Apple cider vinegar and a small cup or jar
- Dish soap
- Plastic wrap and a toothpick, optional, for a covered trap
- Fruit fly traps, $6–$10, if you’d rather buy one ready-made
Step-by-Step
Find the fermenting source
Check the fruit bowl and produce drawer for anything overripe or bruised. Then check past the obvious spot: the recycling bin, an open bottle of wine or juice, the trash can liner, and the kitchen sink drain. Fruit flies will breed in any of these.
One piece of fruit past its prime can host the eggs behind a week of new flies.
Remove or clean the source
Toss overripe produce, rinse sticky recycling, and take out the trash. If the drain smells sweet or sour when you lean in close, clean that too.
Build the trap
Pour about an inch of apple cider vinegar into a small cup and add one drop of dish soap. The soap breaks the surface tension so flies sink instead of landing and flying off. For a stronger trap, cover the cup with plastic wrap secured by a rubber band and poke a few small holes in the top.
Set multiple traps near hot spots
Place a trap by the fruit bowl, another near the sink, and one by the trash if flies are gathering there. More small traps beat one large one, since fruit flies don’t travel far from wherever they hatched.
Empty and refresh nightly until clear
Dump and refill each trap every night for the first 2 to 3 nights. If new flies keep appearing after a week, there’s likely a source you haven’t found yet, often a drain.
Time and Cost
| Fix | Time | Cost |
|---|---|---|
| Find the source and clean up | 15 min | $0 |
| Vinegar trap, homemade | 5 min to set | $0–$2 |
| Store-bought traps | 5 min to set | $6–$10 |
Why This Works
Fruit flies lay eggs directly in fermenting sugar, and those eggs hatch in about a day, which is why a problem can go from a few flies to a swarm in under a week. Apple cider vinegar mimics that fermenting smell strongly enough to pull adult flies away from the real source, and the drop of dish soap breaks the surface tension of the liquid so a fly that lands can’t take back off. Removing the actual breeding source matters just as much as the trap, since a trap alone won’t out-compete a fresh batch of eggs hatching nearby.
Mistakes to Avoid
- Trapping without removing the source. New flies keep hatching from wherever the eggs already are.
- Skipping the dish soap. Vinegar alone barely slows fruit flies down; they can land and walk right off the surface.
- Forgetting the drain. A sink or floor drain with old buildup is a common source people never check.
- Giving up after one night. Eggs already laid take a day or two to hatch, so a second wave the next night doesn’t mean the trap failed.
If the flies are coming from a drain instead of the fruit bowl, that’s a different bug with a different fix: see getting rid of drain flies.
FAQ
What actually attracts fruit flies into the kitchen?
Anything with fermenting sugar in it. Overripe produce, a sticky recycling bin, an open wine bottle, or gunk built up in a drain all ferment enough to draw fruit flies in and give them somewhere to lay eggs.
Does the vinegar trap really work overnight?
For a small, fresh problem, often yes. Apple cider vinegar with a drop of dish soap draws flies in and the soap breaks the surface tension so they can't fly back out. A heavier infestation with eggs already laid can take 2 to 3 nights to fully clear.
Why do fruit flies keep coming back after I throw out the fruit?
Because the fruit was never the whole source. Fruit fly eggs hatch in 24 to 30 hours, so a female that already laid eggs in a drain, a trash can liner, or a piece of fruit you missed keeps the cycle going even after the obvious fruit is gone.
Are fruit flies harmful, or just annoying?
Mostly annoying. They don't bite and aren't known to spread disease the way houseflies can, but they do land on food and surfaces after breeding in whatever is fermenting, which is reason enough to find the source instead of just tolerating them.
Related fixes
Pests
Drain Flies Keep Coming Back? Kill the Biofilm
Drain flies breed in the biofilm coating a slow drain, not the water. Scrub the pipe, treat it, and repeat for about a week to actually break the cycle.
Time30 min + a week Cost$5–$20 easy
Pests
How to Stop Ants in the Kitchen
Kitchen ants follow food, water, and scent trails. Clean the trail, seal the entry point, and use bait so the colony carries it home for good.
Time20–30 min Cost$3–$12 easy