Easy Appetizers

Simple appetizers, snacks and home cooking answers

How to Get Rid of Fruit Flies and Stop Them Coming Back

· 5 min read · Kitchen Basics

In this article
  1. Before You Start: Find Where They Are Breeding
  2. How Do You Trap Fruit Flies?
  3. How Do You Kill the Eggs and Larvae?
  4. How Do You Prevent Fruit Flies From Coming Back?
  5. How Long Until They Are Gone?

You can clear a fruit fly outbreak in about 3 to 7 days with a simple vinegar trap plus removing their breeding spots, and keep them gone for good with a few kitchen habits. The adults you see are only half the problem; the real source is moist organic matter where they lay eggs. Kill the adults with traps and take away the breeding sites at the same time, or they will return within a week.

Before You Start: Find Where They Are Breeding

Fruit flies breed anywhere moist and slightly fermenting, and one female can lay hundreds of eggs in her short life, so missing a single source restarts the outbreak. Walk through the kitchen and check these spots in order of likelihood:

  • Overripe or damaged fruit on the counter or in a bowl
  • The fruit and vegetable drawer, especially under bagged produce
  • Garbage cans, recycling bins and the underside of the bin lid
  • Drains: kitchen sink, disposal splash guard, and dishwasher filter or trap
  • Dish towels, sponges, mops and drip trays under plants
  • Partially empty bottles of beer, wine, juice or vinegar with loose caps
  • Potting soil of houseplants that stays soggy (these may be fungus gnats, which look similar but hop more than fly)

Flies hovering near the sink usually point to the drain; flies clustered on the fruit bowl point there. Confirm the source before trapping, because traps alone only catch adults.

How Do You Trap Fruit Flies?

A cider vinegar trap catches the adults while you remove breeding sites. Set one trap per room where you see flies, and expect a noticeable drop within 24 to 48 hours.

  1. Pour about 1/2 cup (120 ml) of apple cider vinegar into a small jar or glass.
  2. Add 1 drop of dish soap and swirl gently; the soap breaks the surface tension so flies sink instead of walking on the liquid.
  3. Cover the jar tightly with plastic wrap and poke 4 to 6 holes in it with a toothpick, holes about 1/8 inch (3 mm) wide.
  4. Place the trap near the breeding spot but out of reach of children and pets, and away from fruit you are keeping.
  5. Empty and refresh the trap every 2 to 3 days, or sooner if it holds dozens of flies.

No plastic wrap? A paper funnel rolled into a cone and taped, tip down, in the jar mouth works the same way: flies walk in easily and rarely find the exit. Plain vinegar works less reliably than cider vinegar; ripe banana or a splash of red wine in the jar are workable substitutes, still with the drop of soap.

How Do You Kill the Eggs and Larvae?

Removing breeding sites is the step people skip, and it is the one that ends the outbreak. Adults live roughly 2 to 4 weeks, but a new generation can mature from egg to adult in about 8 to 14 days in warm conditions, so interrupting that cycle matters more than the trap.

  1. Refrigerate all ripe fruit; fruit flies cannot breed at fridge temperatures. Compost or discard anything overripe, bruised or cut and sitting out.
  2. Take the trash and recycling out, then wash both bins with hot water and dish soap, including under the lid. Dry them before relining.
  3. Clean the sink drain: pour a kettle of just-boiled water slowly down the drain, then scrub around the disposal splash guard with a stiff brush and dish soap. Repeat every 2 days for a week. Do not use bleach; it does not reach the film inside the pipes and mixing it with other cleaners can release dangerous gases.
  4. Wash the dishwasher filter and trap under hot water, then run an empty hot cycle.
  5. Launder dish towels and sponges in hot water, or microwave a damp sponge for 1 minute and let it cool before touching. Replace sponges that smell sour.
  6. Wipe the counter, fruit bowl and under-appliance edges with hot soapy water, and dry; flies need moisture.

Test on a hidden spot before using any cleaner on finished surfaces, and ventilate the kitchen while you scrub. Never combine bleach with vinegar, ammonia or other cleaners.

How Do You Prevent Fruit Flies From Coming Back?

Prevention is mostly about produce handling and moisture, and it takes less than five minutes a day. Use these decision rules:

SituationWhat to do
Fruit is ripe but not being eaten yetRefrigerate it; tomatoes and bananas can ripen on the counter 1 to 2 days, then chill
Fruit bought from a market or gardenRinse and dry it as soon as you bring it home; eggs often ride in on the skin
Produce scraps and coffee groundsSeal in a bag or take to the outdoor bin daily in warm months
Drain used rarely (guest bath, laundry sink)Run hot water 1 minute weekly to flush the biofilm
Sink tends to hold dishes overnightRinse or soak dishes and run the disposal before bed
Houseplant soil stays wetLet the top 1 inch (2.5 cm) dry between waterings

Daily habits that matter most

  • Keep counters crumb-free and dry, especially at night when flies are most active
  • Store onions and potatoes in a cool, ventilated spot, not a sealed cabinet; discard any that soften or sprout
  • Rinse cans and bottles before they go into recycling, and keep the recycling bin lid closed
  • Check the fruit bowl every day and pull anything with a soft or broken spot

How Long Until They Are Gone?

Most outbreaks clear in 3 to 7 days when you trap and remove sources together. Follow this timeline:

  • Day 1: set traps, clear breeding sites, clean drains and bins. Trap counts stay high.
  • Days 2 to 3: trap catches drop sharply; refresh the vinegar if it looks cloudy or full.
  • Days 4 to 7: only a few stragglers; keep traps in place until you catch zero for 2 days running.
  • After 7 days with no improvement: recheck hidden sources, especially the disposal splash guard, under the fridge drip pan, and any bag of forgotten produce in the pantry.

If flies persist past two weeks despite clean drains, empty bins and refrigerated produce, compare them closely: insects that bite or hover in rooms without food are probably gnats or drain flies, which need a different approach. Drain flies look fuzzy and moth-like and cling to the sink walls; treat them with the same hot-water flush and brush routine for two weeks, since their larvae live in the pipe film.

Keep one trap stored under the sink, and set it the same evening you spot the first fly; catching an outbreak on day one is far easier than clearing one on day ten.