Skip to content

Pests

How to Get Rid of Fruit Flies

Get rid of fruit flies for good: find and remove where they breed, set simple vinegar traps that work, clean drains safely, and stop them coming back.

Fruit flies seem to appear out of nowhere — one day the fruit bowl is fine, the next there's a small cloud over the bananas. They breed fast, so a few flies can become a real annoyance within a week or two. The fix isn't complicated, but it has two parts that both matter: remove what they're breeding in, and trap the adults until the cycle breaks.

Fruit flies vs fungus gnats vs drain flies

These three small flies are easy to mix up, and each one breeds somewhere different.

FlyHow it looksWhere you see itWhere it breedsMain fix
Fruit flyTan body, red eyes, about 1/8 inchAround fruit, trash, recycling, sinksFermenting produce, sticky spills, drain filmRemove produce and spills; vinegar traps
Fungus gnatDark, slender, long legs, mosquito-likeHovering around houseplants and windowsDamp potting soilLet soil dry between waterings; yellow sticky traps
Drain flyFuzzy, gray, moth-like rounded wingsResting on bathroom and kitchen wallsSlimy film inside drains and overflowsScrub drains; enzyme drain gel

If traps aren't catching much, ready-made fruit fly traps are an easy backup, and an enzyme drain gel helps clear the film that keeps drain-breeding flies going.

How long until they're gone?

Expect to see fewer flies within a few days of removing the breeding sources, and most infestations clear up within 1–2 weeks. Eggs and larvae that were already in the house will keep hatching for a while, so stick with the traps and cleanup even after the cloud over the fruit bowl is gone.

Related jobs

If the tiny flies are hovering around houseplants rather than the fruit bowl, they're probably fungus gnats — follow how to get rid of gnats. The same kitchen cleanup habits also keep ants away; see how to get rid of ants.

Step by step

  1. 1

    Hunt down every breeding source

    Fruit flies lay eggs in moist, fermenting material. Check fruit bowls, potatoes and onions in the pantry, the trash can and its lid, recycling bins with sticky bottles or cans, under the fridge and stove, damp sponges and mops, pet bowls, and spilled juice or soda. One forgotten potato can keep an infestation going.

  2. 2

    Throw out or refrigerate ripe produce

    Toss anything overripe, bruised or rotting, ideally in a sealed bag taken straight to the outdoor bin. Keep ripe fruit in the fridge for the next couple of weeks, and don't leave produce out on the counter while you're dealing with the flies.

  3. 3

    Clean up trash, recycling and spills

    Empty the trash and wash the can and lid with hot soapy water. Rinse bottles and cans before they go into recycling. Wipe up sticky spills, and wash or replace sour-smelling sponges, dishcloths and mop heads — let mops dry fully between uses.

  4. 4

    Test your drains

    Put a piece of clear tape loosely over the drain opening overnight, sticky side down, leaving a little gap for air. If you find small flies stuck to it in the morning, that drain is a breeding site.

  5. 5

    Scrub and treat breeding drains

    Pour hot (not boiling) tap water down the drain, then scrub inside the drain and under the stopper with a stiff drain brush to remove the slimy film where larvae live. Follow up with an enzyme or bio-based drain gel per its label, usually overnight. Boiling water can soften PVC pipe joints and crack porcelain, so it's best avoided.

  6. 6

    Set apple cider vinegar traps

    Pour about half an inch of apple cider vinegar into a jar and add a drop of dish soap — the soap breaks the surface tension so flies sink instead of landing. Cover with plastic wrap, poke a few small holes with a toothpick, and set the trap where you see the most flies.

  7. 7

    Make a bottle funnel trap

    Cut the top third off a plastic bottle, pour vinegar (or a bit of overripe banana or a splash of wine) into the bottom, and flip the top upside down into it like a funnel. Flies find their way in but struggle to find the way out. A rolled paper cone in a jar works the same way.

  8. 8

    Refresh traps and keep cleaning

    Replace the bait every few days, when it gets full or stops attracting flies. Keep up with the cleanup for at least 1–2 weeks, because eggs and larvae already in the house will keep hatching for a while even after you remove the main source.

  9. 9

    Prevent a comeback

    Wash produce when you bring it home, refrigerate ripe fruit, rinse recycling, take out the trash often, and clean drains regularly. Check window and door screens for gaps, since fruit flies are small enough to slip through damaged ones.

Common mistakes

  • Setting traps but leaving the breeding source in place — traps catch adults, but larvae keep hatching.
  • Pouring bleach down the drain, which runs past the slime layer where larvae live and doesn't remove it.
  • Using boiling water on PVC drains or in porcelain sinks.
  • Leaving out a vinegar trap without dish soap, so flies land, drink and leave.
  • Giving up after a couple of days — it usually takes 1–2 weeks to break the cycle.
  • Misidentifying fungus gnats or drain flies as fruit flies and treating the wrong source.

Frequently asked questions

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

Usually 1–2 weeks once you've removed the breeding sources. In warm conditions, fruit flies can develop from egg to adult in roughly a week to 10 days — slower when it's cool — so you'll keep seeing a few until the last ones hatch and get trapped.

Where do fruit flies come from?

They often arrive on produce as eggs or larvae, or fly in through gaps in screens. Indoors, they breed in anything moist and fermenting: ripe fruit, vegetables, drains, trash, recycling, and damp mops or sponges.

What's the best homemade fruit fly trap?

Apple cider vinegar with a drop of dish soap, covered with plastic wrap poked with small holes, is simple and effective. A bottle funnel trap with vinegar, wine or ripe fruit also works well.

Do fruit flies bite?

No. Fruit flies don't bite people or pets. They're a nuisance and can carry bacteria from garbage onto food and surfaces, which is another good reason to deal with the source.

Are these fruit flies, fungus gnats or drain flies?

Fruit flies are tan with red eyes and hang around produce and trash. Fungus gnats are dark and thin, like tiny mosquitoes, and hover around houseplants. Drain flies are fuzzy and moth-like with rounded wings, and rest on walls near sinks and showers. See the table above for how to treat each.