How to Get Rid of Fruit Flies: 7 Steps That Actually Work
Remove what they breed in (ripe fruit, drains, trash), trap adults with vinegar and dish soap, and clean daily for a week or two to break the cycle.
How to get rid of fruit flies: find and remove whatever they’re breeding in (overripe fruit, a dirty drain, the trash or recycling bin), then trap the adults with a small dish of apple cider vinegar and a drop of dish soap. Keep surfaces dry and clean for one to two weeks, because eggs already laid will keep hatching until the cycle is broken.
Fruit flies are small, tan flies with red eyes that hover around the kitchen. They don’t bite, but they multiply fast: a female can lay hundreds of eggs, and in a warm kitchen a new generation can reach adulthood in about a week. That’s why trapping alone rarely works. The steps below go in order of impact.
1. Find the breeding source first
The single most important part of how to get rid of fruit flies is finding where the larvae live. Fruit flies lay eggs on moist, fermenting organic matter, so the adults you see are only part of the problem.
Check the fruit bowl, potatoes and onions in the pantry, the bottom of the trash can, recycling bins with unrinsed bottles or cans, damp mops and sponges, and the area under the fridge or stove. A single forgotten potato or a sticky spill can support a whole colony.
2. How to get rid of fruit flies on ripe produce
Once you’ve found the source, get it out of the house. Throw away anything rotting and take the trash outside the same day.
For the next couple of weeks, keep ripe bananas, tomatoes and other fruit in the refrigerator or in a sealed container. Wash produce when you bring it home, since eggs can arrive on fruit from the store.
3. How to get rid of fruit flies with a vinegar trap
The classic trap works well for catching adults. Pour about half an inch of apple cider vinegar into a small bowl or jar and add one or two drops of dish soap. The soap breaks the surface tension, so flies that land sink instead of walking away.
For a stronger trap, cover the jar with plastic wrap and poke a few small holes in it, or roll a paper funnel into the opening. A splash of wine, beer or a piece of very ripe banana also attracts them. Replace the bait every few days.
4. Clean drains and garbage disposals
If flies keep appearing near the sink, the drain may be the breeding site. Organic film builds up inside the pipe, and that’s perfect for larvae.
Scrub the drain opening and the underside of the disposal’s rubber splash guard with a stiff brush. Then pour a pot of hot (not boiling, if you have plastic pipes) water down the drain. An enzyme-based drain cleaner, sold at hardware stores, helps break down the buildup over a few nights.
Quick test: tape a clear plastic cup, sticky side of tape facing in, over the drain overnight. Flies trapped inside mean the drain is a source.
5. Keep the kitchen dry and clean for two weeks
Knowing how to get rid of fruit flies is mostly about consistency. Wipe counters every night, rinse dishes right away instead of leaving them in the sink, and wash or replace sponges, dishcloths and mop heads.
Rinse cans and bottles before they go in the recycling bin, and wipe the lid and inside of the trash can. Keep this routine for at least 10 to 14 days so any hatching larvae have nothing to feed on.
6. How to get rid of fruit flies that ignore traps
Yellow sticky traps and small plug-in light traps catch flies that ignore vinegar. A handheld vacuum is also surprisingly effective for clusters on walls or windows.
Store-bought fruit fly traps work on the same principle as the vinegar jar. They’re convenient but not stronger, so don’t expect them to fix a problem if the source is still there.
7. When to call a pest control company
If you’ve followed every step on how to get rid of fruit flies and still see flies after two to three weeks, the problem may be hidden: a broken drain line, rotting food behind an appliance, or a crack in a floor drain. A licensed pest control company can inspect for these spots.
If the source turns out to be a leaking pipe under a slab or in a wall, you’ll need a plumber, and it’s worth checking whether your homeowners insurance or a home warranty plan covers that type of repair.
Quick reference: where fruit flies breed and what to do
| Where you see flies | Likely source | What to do |
|---|---|---|
| Around the fruit bowl | Overripe produce | Toss it, refrigerate the rest |
| Near the sink | Drain or disposal film | Scrub, hot water, enzyme cleaner |
| Around the trash | Residue in the bin | Take trash out, wash the can |
| Near recycling | Unrinsed cans and bottles | Rinse before recycling |
| Pantry | Rotting potatoes or onions | Check and remove soft ones |
| Everywhere, weeks later | Hidden source | Inspect behind appliances, call pest control |
FAQ
What kills fruit flies immediately?
Nothing clears an infestation instantly, but a vinegar-and-soap trap or a vacuum removes adults within hours. A household insect spray labeled for flies also kills adults on contact; follow the label and keep it away from food and pets.
Why am I getting fruit flies in my house?
They’re drawn to fermenting food and moisture. Common triggers are ripe fruit on the counter, dirty drains, unrinsed recycling and trash that sits too long, especially in summer.
How long does a fruit fly infestation last?
If you keep removing food sources, it usually ends within one to two weeks. If a breeding source remains, it can go on indefinitely because new generations keep hatching.
Do fruit flies lay eggs in bed?
No. Fruit flies need moist, fermenting organic matter for their eggs, so a clean bed isn’t a breeding site. If you see small flies in a bedroom, look for a nearby houseplant, trash can or food.
Bottom line
If you’re wondering how to get rid of fruit flies for good, think source first, traps second. Remove ripe produce and trash, clean the drain, set a vinegar trap and keep the kitchen dry for two weeks. That breaks the life cycle in most homes; if flies persist, look for a hidden source or call a pest control professional.