To get rid of fruit flies, find and remove where they breed first: overripe fruit, a sticky drain, the trash, the recycling bin or a damp mop. Then catch the adults that are left with a vinegar trap or a store-bought trap. Traps alone won’t solve it: the University of Kentucky says all potential breeding areas must be located and eliminated. A female can lay about 500 eggs, and a new generation grows up in about a week.

Want a ready-made trap? The two traps I’d pick (why these two): TERRO Fruit Fly Trap 4-Pack Zevo plug-in trap (Amazon; as an Amazon Associate I earn from qualifying purchases)

Why Fruit Flies Keep Coming Back

You throw out the brown banana, the flies seem gone, and two days later they’re back. That’s not bad luck, it’s biology. The University of Kentucky’s fact sheet on fruit flies explains that females lay their eggs on the surface of fermenting food, that ā€œthey will lay about 500 eggs,ā€ and that ā€œthe entire lifecycle from egg to adult can be completed in about a week.ā€ Clemson Extension adds that the eggs hatch within two days.

So every fly you swat is replaced by the ones still growing somewhere you haven’t looked yet. That’s why this page starts with the hunt, not the trap. More on the life cycle in where fruit flies come from.

The 4-Step Plan

  1. Find where they breedRipe fruit, drains, the garbage disposal, trash, recycling, mops and rags, spilled juice.
  2. Remove or clean itEat, refrigerate or throw out ripe produce; clean the slime out of drains; empty and rinse bins.
  3. Trap the adults that are leftA jar of cider vinegar with a paper funnel, or a ready-made trap.
  4. Keep it from starting againRipe fruit in the fridge, rinsed recycling, tight window screens.

Step 1: Find Where They Breed

Fruit flies are drawn to ā€œripened or fermenting fruits and vegetables,ā€ as the University of Kentucky puts it, and the usual suspects are tomatoes, melons, squash, grapes, bananas, potatoes and onions. But the same fact sheet lists breeding spots most people never check: ā€œdrains, garbage disposals, empty bottles and cans, trash containers, mops and cleaning rags.ā€ It even mentions spilled fruit juice under the refrigerator and a recycling bin that wasn’t emptied.

Walk through your kitchen with that list. Check:

  • the fruit bowl, and the bottom of it (one split grape is enough),
  • potatoes and onions in the pantry,
  • the trash can and the recycling bin, including bottles and cans that weren’t rinsed,
  • the sink drain and the garbage disposal,
  • damp mops, sponges and dish rags,
  • under and behind the fridge.

The bag test for drains: if you suspect a drain but can’t see into it, the University of Kentucky suggests taping a clear plastic food storage bag over the opening overnight. If flies are breeding there, the new adults get caught in the bag. The full drain routine is in fruit flies in the drain or the fridge.

Step 2: Remove or Clean the Source

  • Produce: eat it, refrigerate it or throw it out. Because the larvae feed near the surface, the University of Kentucky says you can cut away damaged or overripe parts.
  • Drains: the flies breed in the film inside the pipe, so the fix is removing that film. Penn State recommends scrubbing drains with a stiff brush or using a bacterial or enzyme drain product to break down the slime.
  • Trash and recycling: empty, rinse and close. Clemson Extension mentions unrinsed drink cans waiting for recycling as a hidden breeding spot.
  • Mops and rags: wash them and let them dry. Clemson describes damp mops with food left in them as a breeding site.

Step 3: Trap the Flies That Are Left

Once the source is gone, the adults still buzzing around need to go. The University of Kentucky describes a simple trap: roll a sheet of paper into a funnel, put it in a jar with a little cider vinegar, and set the jar where you see the flies. Flies go in and don’t find their way out. The step-by-step version, plus a few variations, is in how to make a fruit fly trap.

If you’d rather not keep jars of vinegar on the counter, there are ready-made traps. I picked two for different kitchens in the fruit fly traps I’d pick: a refillable trap with a food-based liquid lure, and a plug-in light trap with sticky cartridges.

Step 4: Stop the Next Wave

Fruit flies ā€œcan also fly in from outside through inadequately screened windows and doors,ā€ the University of Kentucky notes, so tight screens help. Inside, the best prevention is boring: keep ripe fruit in the fridge, don’t let produce sit until it ferments, and rinse what goes into the recycling. How to store each fruit so it doesn’t become fly food is in how to store fruit to keep fruit flies away.

Stay Safe While You Clean Up

  • Skip the bug spray near food. Washington State University lists no insecticide as recommended for fruit flies, and the University of Kentucky says spraying adults only helps after the breeding source is gone. Never spray over fruit, open food, plates or the counter you cook on.
  • Keep traps away from kids and pets. A vinegar trap or a liquid lure is still something a toddler or a dog can knock over or drink from (my advice). For store-bought traps, follow the label.
  • Plug-in traps are electrical devices. Zevo’s own FAQ says: ā€œAs with other electrical devices, please keep away from children.ā€
  • Don’t eat fruit with larvae in it. Clemson Extension says if eaten, fruit fly larvae ā€œmay cause stomach distress or illness,ā€ especially if the breeding site was contaminated. More in are fruit flies harmful.

Fruit Flies or Something Else?

Not every tiny fly in the kitchen is a fruit fly. Fruit flies are about 1/8 inch long, tan with a darker rear end, and usually have red eyes (University of Kentucky). Little black flies around houseplants are more likely fungus gnats, and fuzzy, moth-like flies on the bathroom wall are drain flies. They need a different fix, so it’s worth a closer look: fruit flies vs gnats vs drain flies.

Traps I’d Use

For the flies that are left after the cleanup. The details and the reasons are on my fruit fly trap page.

Four red apple-shaped TERRO fruit fly traps and a bottle of lure next to apples and oranges

TERRO Fruit Fly Trap 4-Pack

Apple-shaped traps with a food-based liquid lure, 180 days of lure supply. Each trap gives up to 45 days of protection, according to the listing.

Look at TERRO on Amazon
A white Zevo plug-in insect trap with a blue glow in a kitchen outlet behind a bowl of fruit

Zevo Flying Insect Trap

A plug-in base with blue and UV light and a sticky cartridge you never touch. This set has 1 base and 3 refills.

Look at Zevo on Amazon

Affiliate links: as an Amazon Associate, I earn from qualifying purchases, at no extra cost to you. Product details come from the listings on October 26, 2026.

Fruit Fly Questions

What is the fastest way to get rid of fruit flies?

Remove what they breed in first: overripe fruit, the trash, the recycling and the slime in drains. Then catch the adults with a cider vinegar trap or a ready-made trap. Traps alone don’t stop new flies from hatching.

Why do I still have fruit flies after throwing out the fruit?

They’re probably breeding somewhere else too. The University of Kentucky lists drains, garbage disposals, trash cans, unrinsed bottles and cans, mops and cleaning rags, and spilled juice under the fridge.

How long does it take to get rid of fruit flies?

A new generation can grow from egg to adult in about a week, so my practical tip (not an extension rule) is to keep cleaning and trapping for at least a week or two after you remove the source, until you stop catching flies.

Should I spray insecticide for fruit flies?

No spray is needed in most kitchens. Washington State University lists none as recommended, and the University of Kentucky says a spray only helps after the breeding source is removed. Never spray near food.

Do fruit flies come from the fruit itself?

Partly. Infestations can start with produce that already has eggs on it, and adults can fly in through windows and doors without good screens. They don’t appear out of nowhere.

Sources & Transparency

Life cycle, breeding sites, the bag test, the vinegar funnel trap and the limits of sprays: University of Kentucky Entomology, ENTFACT-621 ā€œFruit Fliesā€ (Michael F. Potter). Egg hatching, mops, cans and the stomach-upset warning: Clemson Cooperative Extension, HGIC 2438 ā€œNuisance Fliesā€. Insecticides not recommended: Washington State University PestSense, ā€œFruit fliesā€. Cleaning drain slime: Penn State Extension, ā€œMoth Flies in the Homeā€. Zevo safety: Zevo product page and FAQ. Trap details come from the Amazon listings, read on October 26, 2026. I haven’t tested these traps. Tips marked as mine are my own advice.

Last updated:

Marleen van der Zijl, author of FreshStorageTips.com

About the author: Marleen van der Zijl

Marleen’s journey into food storage began with a simple goal: to stop wasting food and money. She believes a well-organized kitchen and smart storage habits can transform your life, leading to fresher meals and bigger savings.