First Home Fixes logo

Home / Kitchen

How to Get Rid of Fruit Flies in the Kitchen

4 min read · Updated 28 November 2026 ·

Part of: Kitchen

Simple diagram for the guide: How to Get Rid of Fruit Flies in the Kitchen
Difficulty
Easy
Time
30 minutes, plus a few days of trapping
Tools
A small bowl or jar, apple cider vinegar, dish soap, plastic wrap, a brush, baking soda, white vinegar
Call a pro if
Flies keep appearing after two weeks of trapping and cleaning, or you find them breeding in a wall void or under flooring, since a hidden source needs professional treatment.
In this guide
  1. Find the breeding source
  2. Remove every source
  3. Clean the drains
  4. Build a simple trap
  5. Trap for at least a week
  6. Check the sneaky spots
  7. Keep them from coming back
  8. Know when it is not fruit flies
  9. Common mistakes
  10. FAQ
  11. When to call a pro
Safety. Keep traps and cleaning products away from children and pets. Never mix bleach with vinegar or ammonia; the fumes are dangerous. Wash your hands after handling traps and throw trap liquid down the drain with running water.

Fruit flies breed fast, and a few today means a swarm next week. Traps catch the adults, but only removing the breeding source ends the problem. Here is how to get rid of fruit flies for good.

1. Find the breeding source

1. Check fruit bowls for soft, spotted or fermenting fruit. One bad piece breeds hundreds.

2. Look behind and under appliances for spilled juice, wine or soda.

3. Check the trash can, the recycling bin and under the liner.

4. Inspect potatoes and onions stored in the pantry for rot.

5. Check the sink drain and the garbage disposal. The slime inside breeds flies too.

2. Remove every source

1. Throw out overripe produce and take the bag straight outside.

2. Rinse cans and bottles before recycling.

3. Wash the trash can with hot soapy water and dry it before relining.

4. Move fresh fruit into the refrigerator until the infestation is gone.

5. Wipe counters and mop under appliances.

3. Clean the drains

1. Pour a kettle of hot, not boiling, water down the drain to loosen slime.

2. Scrub the drain opening and the stopper with a brush.

3. Pour about half a cup of baking soda down the drain, follow it with a cup of white vinegar, and leave it to fizz for around ten minutes.

4. Flush with hot water.

5. If you have a disposal, grind ice cubes and citrus peels, then flush. Our guide on garbage disposal smells covers this in detail.

4. Build a simple trap

1. Pour an inch of apple cider vinegar into a small bowl or jar.

2. Add two drops of dish soap and stir gently. The soap breaks the surface so flies sink.

3. Cover with plastic wrap and poke a few small holes with a toothpick.

4. Set the trap where the flies gather.

5. Empty and refresh it every day or two.

5. Trap for at least a week

6. Check the sneaky spots

1. Lift the drain cover and check the floor drain in a basement or laundry room.

2. Look inside seldom used appliance drip trays.

3. Check houseplant soil. Overwatered soil breeds similar gnats.

4. Inspect window screens. Torn screens let new flies in from outside.

7. Keep them from coming back

8. Know when it is not fruit flies

Common mistakes

FAQ

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

With the source removed and traps out, most infestations fade within a week, though eggs can hatch for up to two weeks.

Does apple cider vinegar really work?

Yes. The vinegar draws them and the dish soap sinks them. Wine or overripe fruit in a jar works too.

Where do fruit flies come from if my kitchen is clean?

They arrive on produce from the store or through screens, then breed in any moist organic film, including drains and sponge holders.

Are fruit flies harmful?

They do not bite, but they spread bacteria from rotting food to clean surfaces, so remove them quickly.

Follow us on
how to get rid of fruit fliesfruit fly trapfruit flies in kitchendrain flieskitchen pests

Related guides

Illustration of a fruit bowl with fruit flies, a jar trap with a paper funnel, a dish towel and a hand scrubbing the sink drainKitchenFruit Flies in the KitchenFruit flies in the kitchen breed in ripe produce and damp spots. Remove the source, set a simple trap and keep them from coming back.How to Fix a Slow Kitchen Sink Drain Without ChemicalsKitchenHow to Fix a Slow Kitchen Sink Drain Without ChemicalsHow to fix a slow kitchen sink drain: clean the strainer and tailpiece, clear the P-trap, snake the branch line and stop grease buildup.Illustration of ants trailing across a kitchen counter near spilled crumbs, a sealed jar of food, a sponge and a bait stationKitchenAnts in the Kitchen: How to Get Rid of ThemAnts in the kitchen follow food and water trails. Clean the trail, use baits safely, seal entry points and keep them from coming back.Flat illustration for the guide about get rid of cockroaches, showing the relevant item with simple toolsKitchenHow to Get Rid of CockroachesGet rid of cockroaches with a four-week plan: map activity, place gel bait in small dots, remove food sources, seal cracks and check traps weekly.Simple diagram for the guide: How to Get Rid of Pantry Moths for GoodKitchenHow to Get Rid of Pantry Moths for GoodLearn how to get rid of pantry moths: find the infested food, empty and clean the cupboards, store food in sealed containers and break the cycle.