How to Get Rid of Fruit Flies in the Kitchen: 7 Methods That Actually Work (2026)
A single fruit fly can lay 500 eggs that hatch in 24 hours. That's why your kitchen goes from "I saw one" to "there are dozens" in two days. The cycle from egg to reproducing adult is 8 days — if you don't kill the adults AND find the breeding source, you'll be repeating this every week. Here's how to do both, fast.
Below are seven methods, in the order you should use them. Set the trap first (Method 1, takes 60 seconds), then go hunt for the source while it works. Most kitchens are fly-free in 3–5 days.
First: Confirm It's Fruit Flies (Not Drain Flies or Gnats)
Three small flies are commonly mistaken for each other, and the fix is different for each.
- Fruit flies: tan-brown, red eyes, hover near fruit bowls and trash cans. About 1/8 inch long.
- Drain flies: dark gray/black, fuzzy, moth-like wings held tent-like over the body. Hover near sink and shower drains, not fruit. The drain is the breeding ground — see our shower drain guide if it's these.
- Fungus gnats: dark, mosquito-like, thin legs. Come from overwatered houseplant soil, not the kitchen.
If yours have red eyes and you see them on fruit, you're in the right place. Read on.
Method 1: The Apple Cider Vinegar Trap
The single most effective fruit fly trap. Costs almost nothing, set up in 60 seconds, works overnight.
What you need
- A small jar, glass, or bowl
- 1/4 cup apple cider vinegar (don't substitute white vinegar — less effective)
- 2–3 drops of dish soap
- Plastic wrap and a rubber band, OR a piece of paper rolled into a cone
Setup
- Pour the apple cider vinegar into the container.
- Add the dish soap. Don't stir (the soap breaks surface tension; you want a thin film on top).
- Cover with plastic wrap, secure with a rubber band, and poke 5–6 small holes with a toothpick — just big enough for a fly to enter. Or skip the cover and use a paper cone with the tip pointed down into the liquid.
- Place where you've seen the most flies. The kitchen counter near the fruit bowl is best.
- Leave overnight.
The vinegar smell lures them in; they can't get back out, or land on the surface and the soap breaks the surface tension so they sink. By morning, the jar will have 20–100 dead flies in it.
Refresh every 2–3 days until you go 24 hours with no new catches.
Method 2: The Wine-and-Soap Bottle Trap
Works on the same principle but uses what's likely already in your kitchen: the last inch of an open wine bottle. Add 2 drops of dish soap, leave the bottle on the counter with the neck open. The narrow neck makes it hard for flies to escape — same effect as the plastic wrap.
Especially effective with red wine; the yeast and sugar are an even stronger attractant than vinegar.
Method 3: The Banana Peel Trap
If you're swarming and want to catch as many as possible quickly:
- Put a piece of overripe banana or a banana peel in a small bowl.
- Cover with plastic wrap. Poke holes.
- Leave 24 hours.
Fewer flies escape this than from a vinegar trap, but it's not reusable — throw the whole thing out when full. Best for the first day when you have the largest population.
Method 4: Find and Eliminate the Breeding Source
Traps kill adults but don't stop new ones from hatching. The breeding source has to go. Check, in order of likelihood:
- The fruit bowl. Any soft, bruised, or overripe fruit. Look at the bottoms of apples, the stems of bananas, the underside of tomatoes. Anything questionable goes in a sealed bag in the outdoor trash, not the kitchen bin.
- The trash can. Especially around the lip and lid where juice drips. Wash with hot soapy water; spray the inside with vinegar. Switch to a lidded can if you don't have one.
- Recycling bin. Wine bottles, beer cans, juice containers — fruit flies breed in the dregs. Rinse every container before it goes in the bin.
- The drain. Yes, fruit flies sometimes breed in the gunk inside sink drains too. Pour boiling water down both sinks, then run hot water and the garbage disposal for 30 seconds. If you keep seeing flies near the sink, see Method 5.
- Under appliances. A grape that rolled under the fridge in 2023 is a breeding factory. Pull the fridge out, look behind. Same for the dishwasher kickplate and toaster oven.
- The compost bin. If you keep an indoor compost, this is almost certainly the source. Empty it, rinse with hot vinegar water, and switch to a sealed compost container with a charcoal filter.
- Mop and cleaning cloths. Damp mops left in the closet grow biofilm that flies breed in. Wash and dry fully between uses.
- Houseplant soil that's been overwatered. Less common but possible. Let the top inch of soil dry out between waterings.
If you find no source after a thorough hunt, the issue is usually the drain or under an appliance. Look harder there.
Method 5: Treat the Drain
Even when the drain isn't the primary source, the biofilm inside attracts and breeds them. Treat all kitchen drains as part of any fly campaign.
- Pour 1 cup boiling water down the drain.
- Follow with 1 cup baking soda.
- Wait 5 minutes.
- Pour 1 cup white vinegar down. Let fizz for 10 minutes.
- Flush with another kettle of boiling water.
For persistent drain breeding, use an enzyme-based drain cleaner (Bio-Clean, Green Gobbler) at bedtime once a week for a month. The enzymes digest the biofilm so flies have nothing to lay eggs in.
Method 6: The Sticky Trap Backup
Yellow sticky traps ($5 for a 12-pack at any garden store, sold for whiteflies) catch the stragglers that miss the vinegar trap. Hang one near the fruit bowl and one near the trash. They're ugly but they work — and they catch flies during the day when most traps are competing with food smells.
Method 7: Bug Sprays — The Right Way
Most general bug sprays work on fruit flies, but spraying them in a kitchen is a bad idea (food contamination). Two safe approaches:
- Targeted sprays only. Spray directly on a visible swarm (over a trash can lid, for example), not on surfaces. Pyrethrin-based sprays kill on contact and break down quickly. Ventilate well.
- A vacuum cleaner. Sounds silly. Works perfectly. A handheld vacuum sucks up a cloud of flies in seconds, and they can't escape the bag. Dump the bag outside immediately.
Don't use foggers or bug bombs in a kitchen — the residue ends up on food prep surfaces.
Why They Came Back After You Thought You Won
You killed all the adults but missed eggs. The lifecycle:
- Day 0: Female lays eggs (often in fruit, drain biofilm, or moist organic matter)
- Day 1–2: Eggs hatch into larvae
- Day 4–6: Larvae pupate
- Day 8–10: Adults emerge, ready to mate within 8 hours
If you only killed adults but missed eggs in the trash or drain, you'll see a fresh population in 8–10 days. This is why source elimination matters more than killing adults.
How to Keep Them From Coming Back
- Refrigerate ripe fruit. Fruit on the counter is open invitation. Once it's ripe, it goes in the fridge.
- Empty the trash daily during fly season (warmer months and warm climates). Or switch to a sealed compost bin with a carbon filter.
- Rinse all recyclables. Wine bottles, beer cans, juice cartons — rinse before they go in the bin.
- Run the disposal with water and a citrus peel weekly. Cleans the disposal and freshens the drain.
- Don't leave wet dishcloths or mop heads in the closet. Dry between uses.
- Inspect produce at the store. Bruised, broken-skin produce can already have fruit fly eggs on it from the warehouse.
- Use a fruit fly trap proactively in late summer. Even with no visible flies, a passive vinegar trap on the counter catches the first arrivals before they breed.
When to Call an Exterminator
Rare for fruit flies. But call if:
- You've done full source elimination + traps for 2 weeks and still see fresh adults daily.
- The infestation is in a multi-unit building and the source might be a neighbor's apartment.
- You're a restaurant or commercial kitchen with health code implications.
A standard pest control visit is $100–250 in 2026 — worth it if your DIY hasn't worked, since pros use enzyme treatments and targeted insecticides that aren't sold retail.
Common Mistakes
- Setting a vinegar trap without dish soap. Flies land, drink, and fly off. Soap is what kills them.
- Using white vinegar instead of apple cider. Less attractive smell; catches about 40% as many.
- Only killing the visible flies. Ten times that number is breeding somewhere you haven't found.
- Throwing fruit away in the kitchen trash. The eggs are still on the peel. Sealed bag, outdoor bin.
- Skipping the drain treatment. Often the silent source.
- Stopping at day 3 when traps are catching fewer. Some pupae are still hatching. Continue traps for at least 10 days to break the cycle.
Frequently Asked Questions
How long does it take to get rid of fruit flies?
3–5 days if you set traps AND eliminate the source. Up to 2 weeks if you only kill adults; the eggs keep producing new ones.
Will the apple cider vinegar trap work for gnats too?
For fungus gnats, partially. They prefer moist soil to vinegar; the better fix is to let your houseplant soil dry out. For drain flies, no — you need to clean the drain biofilm directly.
Why do I have fruit flies in winter?
They breed indoors year-round once they're established. Eggs can survive on fruit shipped from warmer climates. A persistent winter infestation usually means the source is your drain, disposal, or a piece of forgotten produce — not a new outdoor invasion.
Are fruit flies dangerous?
Not directly, but they can mechanically transfer bacteria from rotting produce to clean food. Not a serious health risk in a home kitchen, but unpleasant and a sign of hygiene issues that need addressing.
Do essential oils work to repel fruit flies?
Mildly. Eucalyptus, peppermint, and lemongrass deter them but don't kill them. Useful as a backup; not a primary strategy.
Can I use white vinegar instead of apple cider vinegar?
You can, but it works about half as well. The sugars and yeast in apple cider are the actual attractant; plain white vinegar relies on the acid smell alone.
Why do they all gather on my window?
Phototaxis — they're attracted to light. Useful to know: a sticky trap stuck to the window glass catches a lot of them in the late afternoon.
Trap, Source-Hunt, Repeat for 10 Days
The fruit fly war is winnable in under a week if you do both halves: kill the visible adults with traps, and find the breeding ground that's spawning new ones. Stop at one and you'll be doing this again next month. Do both, and you'll forget you ever had a problem.
Need supplies? Browse our kitchen essentials and cleaning supplies for sealed compost bins, lidded trash cans, and enzyme drain treatments — most items ship within 48 hours.
Leave a comment