
How to Get Rid of Fruit Flies
How to get rid of fruit flies in your kitchen: remove the source, set a cider vinegar and dish soap trap, and clean drains. Most homes clear in 3–7 days.

- Fastest fix
- remove fermenting food + vinegar traps
- Trap recipe
- apple cider vinegar, 1 drop dish soap, jar
- Time to clear
- 3–7 days; keep 1 trap 2 more weeks
- Cost
- about $0–$15
- Sprays?
- only knock down adults; not a fix
Updated October 15, 2026. We added safety guidance: for each product, how dangerous it is for cats, dogs, kids, pregnancy, fish and birds, how to protect your household, and what to do if someone is exposed.
To get rid of fruit flies, remove everything they breed in (ripe fruit, spills, trash residue, drain slime) and catch the adults with a jar of apple cider vinegar and one drop of dish soap. Do both on the same day and most kitchens are fly-free in 3 to 7 days.
Skip either half and it fails. The University of Kentucky is explicit that all breeding sites must be found and eliminated, and that insecticides alone will not solve the problem while they remain. Traps alone catch adults while new ones hatch from a forgotten onion; cleaning alone leaves existing adults to lay eggs somewhere new. Here is the full plan.
Step 1: Remove the breeding source (the part people skip)
Fruit fly larvae live inside fermenting food and slime for 5 to 6 days before crawling off to pupate. Spend 20 minutes on this:
- Fruit bowl: move ripe produce to the fridge; compost or bag anything soft or split. For firm fruit with one bad spot, cutting the spot away is enough, because larvae feed near the surface.
- Pantry: dig to the bottom of potato and onion bins and check bags of rice and flour. One rotten potato can produce hundreds of flies, often with little smell.
- Trash and recycling: take them out, wash the can and especially the underside of the lid, rinse bottles and cans before they go in the bin.
- Spills and drip pans: pull the fridge kick plate, wipe under it, and empty and clean the fridge drip pan; check under the dishwasher and around the coffee maker.
- Rags and sponges: wash or replace; wring out mops and let them dry.
- Bottles: cap wine, vinegar, kombucha, cider, and juice tightly. Kentucky warns that eggs laid under the lids of home brewing and canning containers can hatch inside.
Step 2: Set traps
The vinegar trap that works:
- Small jar or glass.
- About 1/2 inch of apple cider vinegar (it smells like fermenting fruit; white vinegar is weaker).
- One teaspoon of sugar, optional.
- One drop of dish soap. It breaks the surface tension so flies sink. Too much soap masks the smell and the trap stops working.
- Cover with plastic wrap and poke a few small holes, or roll a paper funnel from notebook paper into the mouth, as the University of Kentucky recommends.
Put two or three traps where you see the most flies: next to the fruit bowl, by the sink, near the trash. Refresh every 3 to 4 days; eggs laid in an old trap can hatch.
Covered or open? Both camps exist. Many people get the best catch with plastic wrap and holes; others find flies crowd the wrap and will not go in, and do better with an open shallow dish. If one style is not catching after a day, switch.
Other traps that work:
- Red wine or beer dregs in a bottle; the narrow neck keeps flies in.
- Ripe banana in a jar with a paper funnel; flies go in and cannot find the way out.
- Soda bottle funnel trap: cut the top off a 2-liter bottle, invert it into the base, and bait with fruit and a splash of wine.
- Store-bought traps with a liquid lure (the small plastic apple-shaped ones are popular) and plug-in light traps with glue cards; handy and cheap ($5–$20, approximate). Compared in fruit fly traps.
- Clear sticky tape or sticky sheets on windows, where flies gather in the morning light.
Step 3: Clean the drains
Fruit flies often breed in the slime of kitchen sink drains, disposals, and overflow holes. If flies hover over the sink, tape a clear plastic bag or a strip of clear tape over the drain overnight; flies inside confirm it.
- Remove the sink stopper and scrub as far down as you can with a stiff pipe brush.
- Clean the underside of the rubber disposal splash guard by hand, then run the disposal with ice and a cut lemon.
- Flush the overflow hole in bathroom and kitchen sinks.
- Pour in an enzyme or bacterial drain gel at night for several nights.
Hot water helps loosen what the brush missed, and many people report that a kettle of boiling water down the kitchen drain several nights in a row cleared their flies. If you have plastic (PVC) drain pipes, run the cold tap while you pour so very hot water does not sit in the trap.

Step 4: Knock down the adults (optional)
- Vacuum: a handheld or hose vacuum picks up flies resting on walls, ceilings, and windows. Empty it outside right away.
- Spray: once the source is gone, a pyrethrin aerosol kills remaining adults on contact (University of Kentucky). Read the label, cover food and dishes, and do not spray toward pets or aquariums. Spray only buys time; it does nothing for larvae.
- Soapy water spray: a spray bottle of water with dish soap knocks down flies you hit; slow but chemical-free.
How dangerous are these products
Traps, soap sprays and drain cleaning carry essentially no pesticide risk. The only insecticide on this page is a pyrethrin aerosol, plus the foggers that people try and shouldn't.












Pyrethrin spray: spray briefly into the air away from food, pet bowls and aquariums, leave the room for 15–30 minutes, then air out. Wipe counters before you cook. Cats are more sensitive to pyrethrins than dogs; signs of a problem are drooling, twitching, wobbling. Foggers aren't worth the risk for fruit flies.
If someone gets spray in the eyes, rinse for 15 minutes; if swallowed, call Poison Control at 1-800-222-1222. For a pet with drooling or tremors, call your vet or ASPCA Animal Poison Control at (888) 426-4435. See also pet-safe pest control.
How long does it take?
Expect a big drop in 24 to 48 hours once traps are out and sources are gone. Late-hatching larvae keep emerging for about a week, since the cycle runs 8 to 10 days. Keep one trap out for two more weeks after you see the last fly; if it starts catching again, there is still a source. In bad infestations with a hidden source, people commonly report two to three weeks of nightly drain treatment and traps.
What does not work
- Foggers and bug bombs: larvae survive inside food and drains, and you have to clear the kitchen of food.
- Traps without cleaning: they catch dozens a day while the source keeps producing.
- Plain vinegar with no soap: flies land, drink, and leave.
- Bleach poured down the drain: flows past the slime on the pipe walls; it has to be scrubbed or digested.
- Basil, mint, or essential oil sprays: no good evidence they repel fruit flies indoors.
What people who dealt with it say
- The source is almost always one forgotten thing. In thread after thread, the turning point was a liquefied bag of potatoes, an onion bin, a bag of rice at the back of the pantry, a fridge drip pan, or a bathroom sink overflow, often after weeks of trapping.
- A pest pro's take: a technician in r/pestcontrol who gets fruit flies every summer himself says a pest company cannot do much beyond finding the source. His routine: clean the drains with a drain cleaner and a dedicated brush, take out the trash daily even if it is not full, and run traps.
- Persistence pays. One renter in a 700 sq ft apartment cleared a big infestation in about two to three weeks with three or four vinegar traps and nightly drain treatment.
- Traps that suddenly stop working usually mean a new, stronger source (a drain or a forgotten bag), or that the flies are actually fungus gnats or drain flies. Several people said yellow sticky cards in a houseplant solved what they had been fighting as "fruit flies" for months.
- Wine works when vinegar does not. Many people keep a glass of red wine with a drop of soap out as a permanent catch-all.
Getting rid of fruit flies in the bathroom
If you see small flies in the bathroom with no food around, they are most often drain flies (fuzzy gray, moth-like). Fruit flies there point to a slimy sink or shower drain, the sink overflow, a wastebasket with food in it, or a leak behind the toilet. Clean the drain as in Step 3.
Keep them from coming back
- Refrigerate ripe produce from late July through October.
- Wash fruit when you bring it home to remove eggs.
- Rinse recycling and take trash out every couple of days.
- Scrub the sink drain and disposal flap monthly.
- Use tight-fitting 16-mesh screens on windows and doors.
If fruit flies return over and over, see why you have fruit flies for less obvious sources.
FAQ
What is the fastest way to get rid of fruit flies?
Can you get rid of fruit flies in 2 minutes?
What kills fruit flies?
How do I get rid of fruit flies in my kitchen if I have no fruit out?
Why is my vinegar trap not working?
How do I keep fruit flies away for good?
How do I get rid of fruit flies in plants?
Sources and real-world experience
Built from the expert sources and real discussions below — we read each one. How we research.
- University of Kentucky Entomology: Fruit Flies (ENTFACT-621)
- University of Maryland Extension: Fruit Flies
- UC IPM: Fungus Gnats (Pest Notes)
- Reddit r/CleaningTips: Can't Cook, Can't Eat, Can't Live - Fruit Flies Everywhere
- Reddit r/CleaningTips: FRUIT FLY HELP PLEASE
- Reddit r/homeowners: How to get rid of many fruit flies
- Reddit r/pestcontrol: Best way to quickly get rid of a lot of fruit flies?