Your guide to household and yard pests Urgent? When to call a pro
What bug is this?

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.

harmlessdoes not biteleaves once you fix the cause updated October 15, 2026
Glass jar trap with vinegar, sugar and dish soap on a kitchen counter, with caught fruit flies floating inside
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:

  1. Small jar or glass.
  2. About 1/2 inch of apple cider vinegar (it smells like fermenting fruit; white vinegar is weaker).
  3. One teaspoon of sugar, optional.
  4. One drop of dish soap. It breaks the surface tension so flies sink. Too much soap masks the smell and the trap stops working.
  5. 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.

  1. Remove the sink stopper and scrub as far down as you can with a stiff pipe brush.
  2. Clean the underside of the rubber disposal splash guard by hand, then run the disposal with ice and a cut lemon.
  3. Flush the overflow hole in bathroom and kitchen sinks.
  4. 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.

Disassembled sink P-trap with dark slime inside and a pipe brush
If flies keep coming with no fruit around, check the drain slime.

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.

Vinegar, wine and sticky trapsActive ingredient: no insecticide
CatsSafe
sticky sheets can catch paws, keep them up high
DogsSafe
Kids, pregnancy, allergiesSafe
Fish, birds, rodents, reptilesCaution
sticky sheets away from birds and small lizards
Pyrethrin aerosol (flying insect spray)Active ingredient: pyrethrins, often with piperonyl butoxide
CatsKeep out
keep out until the mist settles and the room is aired
DogsCaution
out of the room while spraying
Kids, pregnancy, allergiesKeep out
out of the room; the mist triggers asthma
Fish, birds, rodents, reptilesDanger
extremely toxic to fish: cover the tank, pump off; birds out of the room
Fogger (bug bomb)Active ingredient: pyrethrins or pyrethroids, check the label
CatsDanger
coats everything; with permethrin or cypermethrin, don't use with cats
DogsKeep out
out until aired out
Kids, pregnancy, allergiesDanger
everyone out; flammable
Fish, birds, rodents, reptilesDanger
fish and birds out of the house
Safesafe to stayCautionkeep away during applicationKeep outkeep out until dry and aired outDangerserious danger, don't use around them

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?
In the same hour: throw out or refrigerate everything fermenting, take out the trash, set two or three vinegar-and-soap traps, and vacuum resting adults off walls and windows. Most of the population is gone in 2 to 4 days; keep traps out for two more weeks.
Can you get rid of fruit flies in 2 minutes?
You can kill the adults you see in minutes with a vacuum or a quick spray, but new flies keep hatching for about a week from eggs already in the food or drain. Plan on a few days, not minutes.
What kills fruit flies?
Drowning in a vinegar or wine trap with a drop of dish soap, sticky traps, a vacuum, or a pyrethrin flying-insect spray for adults. Nothing kills the larvae except removing or cleaning what they live in.
How do I get rid of fruit flies in my kitchen if I have no fruit out?
Check the sink drain, disposal splash guard, and sink overflow, the trash and recycling lids, under the fridge and its drip pan, pet bowls, onion, potato, and rice bins, and any open bottle of wine, vinegar, or juice.
Why is my vinegar trap not working?
Usually too much soap, which masks the smell, white vinegar instead of apple cider vinegar, a trap that is far from where flies gather, or a source that out-competes it. If no flies at all go in, they may be fungus gnats or drain flies, which ignore vinegar.
How do I keep fruit flies away for good?
Refrigerate ripe produce from late summer through fall, rinse recycling, take out trash every couple of days, scrub the sink drain monthly, cap bottles, dry mops and rags, and fix torn screens. Leave one trap out as an early warning.
How do I get rid of fruit flies in plants?
Flies coming out of potting soil are fungus gnats, not fruit flies. Let the top inch or two of soil dry, put yellow sticky cards in the pot, and use a Bti product as a soil drench. See the gnat guide.

Sources and real-world experience

Built from the expert sources and real discussions below — we read each one. How we research.

  1. University of Kentucky Entomology: Fruit Flies (ENTFACT-621)
  2. University of Maryland Extension: Fruit Flies
  3. UC IPM: Fungus Gnats (Pest Notes)
  4. Reddit r/CleaningTips: Can't Cook, Can't Eat, Can't Live - Fruit Flies Everywhere
  5. Reddit r/CleaningTips: FRUIT FLY HELP PLEASE
  6. Reddit r/homeowners: How to get rid of many fruit flies
  7. Reddit r/pestcontrol: Best way to quickly get rid of a lot of fruit flies?
Nothing working? When it is time to call an exterminator