How To Get Rid of Fruit Flies In An Apartment (Fast And For Good)

You want to get rid of fruit flies before they take over your kitchen, and the good news is you can, usually within a few days, without any sprays or bug bombs. Fruit flies are one of the few pest problems that respond really well to a two-part approach: trap the ones already flying around, and find whatever they’re breeding in. Skip the second part and you’ll be trapping flies forever, because a female fruit fly can lay around 500 eggs in her short life, and those eggs turn into new flies in about a week.

Apartments are especially prone to fruit flies because kitchens are small, trash goes out less often, and shared plumbing or drains give them plenty of places to hide. The upside is that a small space is also easier to fully search once you know what you’re looking for.

Step 1: Find Every Possible Breeding Spot

Checking a kitchen sink drain for the buildup that attracts fruit flies

Fruit flies aren’t actually that interested in the fruit bowl on your counter, at least not for breeding. They’re drawn to fermenting, rotting organic matter, which means the fruit bowl is often just one of several suspects. Walk through your kitchen and check:

  • The fruit bowl and produce drawer. Any overripe banana, soft tomato, or forgotten onion is a magnet.
  • The trash can and recycling bin, especially anything with food residue like a rinsed-but-not-quite-clean yogurt cup.
  • The kitchen drain, both sink drains and the garbage disposal if you have one. Gunk builds up inside the drain pipe itself, and fruit flies love laying eggs in that slimy film.
  • Empty bottles and cans waiting to be recycled, particularly ones that had juice, beer, or wine in them.
  • Compost bins, even small countertop ones.
  • Damp sponges or dish rags left sitting in the sink for days.

If you’ve got more than a couple of flies buzzing around, it’s genuinely worth checking all of these rather than assuming you already know the source. Plenty of people blame the fruit bowl for weeks while the real breeding ground is a slimy drain they never think to check.

Step 2: Remove the Source

Once you find the culprit, don’t just clean around it. Toss any overripe produce (or move it straight to the fridge, which slows fermentation and makes fruit far less attractive to flies). Take the trash out, even if the bag isn’t full. Rinse recyclables properly before they sit around for days.

For a suspect drain, this is where it gets a little more involved. Pour boiling water down slowly, then scrub the inside of the drain opening with an old toothbrush or a bottle brush to physically remove the gunk, since flies breed in that film rather than in the water itself. If the drain’s genuinely clogged or slow along with the fly problem, our guide on how to unclog a drain without chemicals covers the deeper cleaning approach.

Step 3: Build a Vinegar Trap for the Ones Already Flying

Apple cider vinegar trap in a jar covered with plastic wrap to catch fruit flies

Even after removing the source, you’ll still have adult flies buzzing around for a few days, so trap them while the breeding site dries up.

The classic apple cider vinegar trap:

  1. Pour about an inch of apple cider vinegar into a small jar or bowl.
  2. Add a drop of dish soap and stir gently. The soap breaks the surface tension so flies can’t land and take off again.
  3. Cover the top with plastic wrap and poke a few small holes in it with a toothpick, or just roll a small paper cone and set it in the opening, wide end up, narrow end pointing down into the liquid.
  4. Set it near the area where you’ve seen the most flies and leave it overnight.

Fruit flies are drawn to the vinegar’s fermented smell, squeeze through the small opening, and then can’t figure out how to get back out. You’ll usually see a noticeable drop in flies within a day or two. Replace the vinegar every couple of days while the problem clears up, since old traps lose their draw once flies start ignoring them.

A quicker backup option: a small dish of red wine or a piece of overripe banana in a jar with a similar plastic wrap cover works nearly as well if you don’t have vinegar on hand.

Step 4: Deep Clean the Kitchen Surfaces

While the traps do their work, wipe down counters, the inside of the trash can, and any sticky spots on the floor or around the sink where residue might be feeding stragglers. Fruit flies are attracted to even a thin film of spilled juice or wine on a countertop, so a genuinely thorough wipe-down (not just a quick pass) helps close off any remaining food sources.

If your pantry has open bags of produce, potatoes, or onions stashed in dark corners, this is also a good moment to reorganize so nothing sits forgotten for weeks. A well-organized pantry makes it much easier to spot a rotting item before it becomes a fly problem in the first place. Our guide on organizing a small pantry has some renter-friendly setups if yours tends to hide things in the back.

Step 5: Prevent Them From Coming Back

Once the current wave is gone, a few habits keep fruit flies from resettling:

  • Store ripe fruit in the fridge instead of on the counter, especially bananas, peaches, and berries once they start softening.
  • Take out the trash and recycling more often than feels strictly necessary, particularly in warmer months when flies breed faster.
  • Rinse food containers before they go in the recycling bin or sit in the sink.
  • Run the disposal and flush the drain with hot water regularly so gunk doesn’t build back up.
  • Keep a small vinegar trap going as a low-key early warning system, especially if you’ve had repeat problems. If nothing shows up in it for a week, you’re in the clear.

An indoor herb garden on the windowsill can also make your kitchen feel less inviting to fruit flies, partly because you’re less likely to let produce linger when fresh herbs keep meals interesting. If you’re thinking about starting one, our guide to an indoor herb garden for beginners is a solid place to start, and it pairs nicely with a kitchen you’ve just decluttered of rotting produce anyway.

When to Worry It’s Something Else

If your traps aren’t catching much and the flies seem to be coming from a wall, window frame, or houseplant soil rather than the kitchen, you might be dealing with a different pest, like fungus gnats (which look similar but breed in damp potting soil) or drain flies (fuzzier and slower moving). Fungus gnats respond to letting the soil dry out more between waterings, while drain flies need the same drain-cleaning approach as fruit flies, just with more patience since their larvae live deeper in pipe buildup.

FAQs

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

Usually 3 to 7 days if you find and remove the breeding source and keep a vinegar trap running. If you only trap the flying adults without removing the source, they’ll keep reappearing indefinitely since new ones hatch every few days.

Do fruit flies bite or spread disease?

No, they don’t bite people. They can carry some bacteria on their bodies from whatever they’ve been crawling around in, which is one more reason to keep them away from food prep areas, but they’re not dangerous, just annoying.

Why do I keep seeing fruit flies even though my fruit bowl is empty?

The drain is the most commonly overlooked source. Even a clean-looking sink can have a slimy film of organic buildup just below the surface where you can’t see it, and that’s plenty for flies to breed in. Check there next if the obvious spots come up empty.

Can I use a fly spray instead of a trap?

Sprays kill flies on contact but do nothing about the eggs or larvae already breeding somewhere in your kitchen, so you’ll just see new flies a few days later. The vinegar trap combined with finding the source works better long term, and it doesn’t leave chemical residue near your food.

Will fruit flies go away on their own if I just wait?

Sometimes, if the food source runs out naturally, but that can take weeks, and in the meantime they keep breeding. It’s much faster to actively hunt down the source and trap the current generation than to wait it out.

Scroll to Top