Mercatus Apertus counts visits anonymously to improve the shop: which pages are read and where visitors come from. No IP address, no advertising cookies, nothing you type.

Free shipping on every order

Free 30-day returns

← Guides / Home fixes

How to Get Rid of Fruit Flies (Fast, and for Good)

November 10, 2026 · 5 min read · Mercatus Apertus

Getting rid of fruit flies for good means finding what they are breeding in, not just swatting the ones you see. Here is the vinegar trap, the cleanup steps, and when a light trap actually helps.

You get rid of fruit flies by removing whatever they are breeding in (ripe produce, a dirty drain, trash) and trapping the adults with a vinegar trap while you clean. Do both at once and most infestations clear up in a few days to about a week.

Fruit flies vs gnats vs drain flies

These three get lumped together but they are not the same bug, and that matters for how you fix it.

Fruit flies are tan or brown with red eyes, about an eighth of an inch long, and they hover around ripe fruit, veggies, and anything fermenting. Fungus gnats are darker, skinnier, and fly in wobbly patterns near houseplants, drawn to damp soil. Drain flies (sometimes called moth flies) are fuzzy, moth-shaped, and cling to walls near sinks and showers instead of flying much. If your "fruit flies" are actually hanging out on houseplants or clinging to the bathroom wall, you are dealing with gnats or drain flies, and the fix is different. For a plant-soil or general indoor gnat problem, see How to Get Rid of Gnats in the House.

Step 1: find and remove the source

No trap fixes this on its own if the breeding site is still there. Fruit flies lay eggs in anything soft, sweet, and slightly rotten, and a female can lay a lot of eggs in a very short time, so a single overripe banana can keep a problem going for weeks.

  1. Check the fruit bowl, and any fruit or veggies in open bags or bowls. Toss anything bruised, overripe, or starting to ferment.
  2. Check under the sink and behind the trash can for drips or old spills.
  3. Empty and rinse the kitchen trash and recycling bins, especially if they held cans, bottles, or food packaging.
  4. Wipe down counters, the inside of the fridge seal, and any sticky spots near the stove.
  5. Check for one forgotten item: a potato gone soft, an onion going mushy, a wine bottle with dried residue, a damp mop left in a bucket.

Do this cleanup fully once rather than halfway several times. Fruit flies can complete their life cycle in about a week, so leftover breeding spots just restart the problem.

Step 2: build a vinegar trap

This is the fastest free fix and it works because the flies are drawn to the smell but can't easily get back out.

  1. Pour about half an inch of apple cider vinegar into a small bowl or jar.
  2. Add a drop of dish soap and stir gently (this breaks the surface tension so the flies sink instead of landing and flying off).
  3. Cover the top with plastic wrap and poke several small holes with a toothpick, or skip the cover and just set the open bowl near the problem area.
  4. Place it wherever you have seen the most activity: counter, trash area, fruit bowl.
  5. Empty and refresh daily until you stop catching anything for two days straight.

Set two or three traps around the kitchen at once rather than one. You will usually see a big drop within the first day or two, which is about as close to getting rid of fruit flies in minutes as it gets, though full clearance takes longer.

No apple cider vinegar? Other options that work

If you are out of apple cider vinegar, a few swaps work almost as well:

  • Red wine or a splash of flat beer, same bowl-and-soap setup
  • A piece of overripe fruit in a jar with a paper funnel on top (flies go in, don't find their way out)
  • A shallow dish of soapy water alone, placed right next to the trash or fruit bowl

None of these need to be fancy. The goal is just something that smells like what they want, combined with a surface they can't easily escape.

Fruit flies in the drain

If you are seeing flies near a sink and not around produce, check the drain itself. A buildup of food gunk and grease inside the pipe can breed either fruit flies or drain flies.

  1. Run hot water down the drain for a minute.
  2. Scrub the inside of the drain opening with an old brush or bottle brush.
  3. Pour a mix of baking soda and vinegar down the drain, let it fizz for 10 to 15 minutes, then flush with hot water.
  4. Repeat every few days until you stop seeing activity.

If flies keep returning from the same drain after repeated cleaning, the buildup may be further down than you can reach, and a plumber's snake or professional cleaning may be needed.

When a light trap actually helps

A UV light trap is genuinely better suited to gnats and mosquitoes than to fruit flies, because fruit flies are drawn mainly by smell, not light. If you are dealing with a mixed problem (gnats around houseplants, mosquitoes sneaking in at night, and a fruit fly issue in the kitchen), a light trap can clean up the flying insects that are attracted to light while your vinegar traps and cleanup handle the fruit flies specifically.

The GnatGone Rechargeable UV Insect Trap is a quiet, rechargeable option that uses a violet light to draw in gnats, mosquitoes, and other small flying insects at night, with no spray, no sticky paper on the counter, and no smell. It charges over USB, so you can run it in the kitchen one night and move it to the bedroom or patio the next. For fruit flies specifically, use it alongside removing the source, since no trap fixes a fruit bowl full of overripe produce on its own.

Keeping them from coming back

  1. Store fruit in the fridge once it is ripe, instead of leaving it out.
  2. Take out the kitchen trash before it sits for days.
  3. Rinse recycling before it goes in the bin.
  4. Wipe counters and the sink area each night.
  5. Run a vinegar trap for a few days any time you bring home a big batch of produce.

Most fruit fly problems are solved with consistent cleaning and a vinegar trap. If flies persist for more than two to three weeks despite a clean kitchen and no visible breeding source, it is worth checking less obvious spots like a floor drain, a wall void, or a neighboring unit's plumbing, or calling a pest control service to inspect further.

Questions people ask

How do I get rid of fruit flies fast?
Remove any overripe fruit, take out the trash, and set two or three apple cider vinegar traps with a drop of dish soap around the kitchen right away. Most people see a big drop in flies within a day or two, though full clearance can take closer to a week since eggs are still hatching.
How can I get rid of fruit flies without apple cider vinegar?
Red wine, flat beer, or a piece of overripe fruit in a jar with a paper funnel on top all work the same way: the smell draws them in and they can't easily fly back out. A shallow dish of soapy water near the trash or fruit bowl also helps catch them.
How do I tell fruit flies apart from gnats or drain flies?
Fruit flies are tan with red eyes and hover around ripe produce, fungus gnats are darker and fly erratically near houseplant soil, and drain flies are fuzzy and moth-shaped and cling near sinks and showers. Where you see them and what they're near is usually the fastest way to tell.
Will a light trap get rid of fruit flies?
Light traps work better on gnats and mosquitoes, since those insects are drawn to light, while fruit flies are mainly drawn to the smell of ripe or fermenting food. A UV trap can help with a mixed gnat or mosquito problem, but for fruit flies you still need to remove the source and use something like a vinegar trap.

This guide is general information, not medical or veterinary advice. If pain or symptoms persist, see a doctor or your vet.