how to get rid of fruit flies

Introduction

Fruit flies are small, fast, and incredibly persistent. They seem to appear out of nowhere and can quickly take over your kitchen, trash area, or office. The good news: you can get rid of fruit flies quickly and keep them from coming back by removing what attracts them and using a few effective traps and cleaning strategies.

This guide explains why fruit flies appear, the most effective methods to eliminate them, natural remedies that really work, and prevention tips to keep your home fruit-fly-free long term.

Why Fruit Flies Appear

Understanding what attracts fruit flies is the first step to getting rid of them. When you remove their food sources and breeding spots, you dramatically cut their numbers.

1. Fermenting and Overripe Produce

Fruit flies are drawn to the smell of fermentation. They love:

  • Overripe fruits (bananas, peaches, grapes, etc.)
  • Rotting vegetables (onions, potatoes, tomatoes)
  • Cut fruit left uncovered on the counter
  • Fruit scraps or peels in open trash or compost

Even a single forgotten banana at the bottom of a fruit bowl can attract fruit flies.

2. Dirty Drains and Garbage Disposals

Kitchen and bathroom drains often collect slimy residue from food and soap. This buildup can trap tiny food particles and create a damp, decaying environment where fruit flies feed and lay eggs.

Garbage disposals are especially problematic if not flushed properly, as trapped scraps begin to rot inside.

3. Trash Cans and Recycling Bins

Uncovered or rarely cleaned trash cans and recycling bins are prime breeding grounds. Fruit flies are attracted to:

  • Food residue on packaging
  • Sticky cans and bottles in recycling
  • Organic waste in trash or compost bins

4. Spills and Hidden Food Sources

Even small spills and crumbs can feed fruit flies. Common hidden sources include:

  • Juice or soda spills under appliances
  • Alcohol residue (beer, wine, cocktails)
  • Forgotten lunch boxes or food containers
  • Pet food left out for long periods

5. Incoming Eggs on Produce

Fruit flies can actually arrive with your groceries. Eggs may already be on the skin of fruits and vegetables. Once they’re in your home and find a food source, they multiply quickly. One female fruit fly can lay hundreds of eggs, and they can reach adulthood in about a week under warm conditions.

5 Proven Methods to Get Rid of Fruit Flies

Use these methods together for fastest results. Start by removing food sources, then trap and kill the remaining flies.

Method 1: Apple Cider Vinegar Trap

This is one of the most effective and easy ways to catch fruit flies.

You’ll need:

  • Small bowl or cup
  • Apple cider vinegar (ACV)
  • Plastic wrap or a small funnel
  • Toothpick or fork
  • A drop of dish soap (optional but helpful)

Steps:

  1. Fill the container with 1–2 cm (about ½ inch) of apple cider vinegar.
  2. Add a drop of dish soap. This breaks the surface tension so flies sink and drown.
  3. Cover with plastic wrap and secure with a rubber band, or place a paper funnel in the opening.
  4. Poke small holes in the plastic wrap using a toothpick. Make them big enough for flies to enter, but not too large.
  5. Place traps near fruit bowls, trash cans, and any area where you see flies.
  6. Refresh daily or whenever the trap is full.

Why it works: The smell of vinegar mimics fermenting fruit and strongly attracts fruit flies. Once inside, they rarely find their way out, and the dish soap helps ensure they drown.

Method 2: Red Wine or Beer Trap

Fruit flies are also attracted to alcohol, especially wine and beer.

You’ll need:

  • A small glass or jar
  • A small amount of leftover red wine or beer
  • Plastic wrap or a paper funnel

Steps:

  1. Pour a small amount of wine or beer into the container.
  2. Cover with plastic wrap and poke holes, or insert a paper funnel.
  3. Place where fruit flies are most active.
  4. Replace the liquid every 1–2 days or as it evaporates.

This trap works best if you already have wine or beer on hand and notice flies hovering around glasses or bottles.

Method 3: Dish Soap and Vinegar Spray

Use a simple spray to kill fruit flies on contact.

You’ll need:

  • Spray bottle
  • Warm water
  • White vinegar or apple cider vinegar
  • Dish soap

Steps:

  1. Fill the bottle with 2 parts warm water and 1 part vinegar.
  2. Add a few drops of dish soap.
  3. Shake gently to mix.
  4. Spray directly on fruit flies on walls, windows, or around trash areas. The soap coats their wings and suffocates them.
  5. Wipe surfaces with a clean cloth after spraying.

This method is best used alongside traps to quickly reduce visible adult flies.

Method 4: Clean and Treat Drains

If fruit flies seem to gather around your sink, they may be breeding in the drain.

Steps:

  1. Boil water.
  2. Pour boiling water slowly down the drain once or twice a day for several days.
  3. Use a drain brush or bottle brush with hot, soapy water to scrub inside the drain as far as you can reach.
  4. Optional: Pour a mixture of ½ cup baking soda followed by ½–1 cup white vinegar into the drain. Let it fizz for 10–15 minutes, then flush with hot water.

This removes the organic build-up fruit flies feed on and where they lay eggs.

Method 5: Remove All Food Sources and Deep Clean

No trap will solve the problem if food sources remain. A focused cleaning session is essential.

Steps:

  1. Inspect and discard any overripe or moldy fruits and vegetables. Check:
    • Fruit bowl
    • Pantry shelves
    • Back of fridge drawers
    • Countertop baskets
  2. Seal fresh produce in the fridge or in containers until the infestation is gone.
  3. Empty trash and recycling completely. Wash bins with hot, soapy water and dry thoroughly.
  4. Wipe all surfaces: counters, stovetops, cabinet fronts, fridge handles, and table tops. Pay attention to sticky spots.
  5. Clean under and behind appliances where crumbs and spills often hide.
  6. Do not leave dirty dishes in the sink overnight.

When you combine deep cleaning with traps, infestations usually drop dramatically within a few days.

Natural Remedies to Get Rid of Fruit Flies

If you prefer to avoid harsh chemicals, there are several natural approaches that work well when used consistently.

1. DIY Fruit Trap with a Banana Piece

You’ll need:

  • Small piece of very ripe banana or other fruit
  • Jar or container
  • Plastic wrap or paper funnel

Steps:

  1. Place fruit at the bottom of the jar.
  2. Cover with plastic wrap and poke holes, or insert a paper funnel with a small opening at the bottom.
  3. Leave overnight where flies are active.
  4. In the morning, seal and dispose of the entire trap or release flies outdoors far from your home.

This uses no chemicals and relies on the natural draw of fermenting fruit.

2. Essential Oils as Repellents

Some essential oils may repel fruit flies. They won’t kill them, but can help keep them away from certain areas.

Oils that may help:

  • Lemongrass
  • Eucalyptus
  • Lavender
  • Peppermint
  • Basil

How to use:

  • Add 10–15 drops of essential oil to a spray bottle with water and a small amount of alcohol or witch hazel. Spray around windows, doorways, and trash areas (not directly on food).
  • Place cotton balls with a few drops of oil near fruit bowls or sinks.

Always use essential oils with care around children, pets, and sensitive individuals.

3. Herbs and Plants

Some kitchen herbs have strong scents that may discourage fruit flies from lingering.

  • Place fresh basil, mint, or bay leaves near fruit bowls.
  • Grow pots of basil or mint on windowsills close to where fruit is stored.

These methods are mild, so they work best as supportive measures rather than the main solution.

4. DIY Sticky Traps

Homemade sticky traps can help catch flies that land on walls or windows.

Basic idea:

  • Cut strips of stiff paper or cardboard.
  • Coat lightly with a sticky substance (such as a thin layer of petroleum jelly or a non-toxic sticky product designed for insects).
  • Hang near problem areas.

These are less targeted than vinegar traps but can supplement them.

Prevention Tips: How to Keep Fruit Flies Away

Once you’ve eliminated the current infestation, adopt these habits to keep fruit flies from returning.

1. Store Fruits and Vegetables Properly

  • Keep most fruits and vegetables in the refrigerator, especially in warm weather.
  • If you prefer fruit at room temperature, keep only a small amount out and eat it quickly.
  • Do not leave cut fruit uncovered; use containers or wrap tightly.

2. Manage Trash and Compost

  • Use trash cans with tight-fitting lids.
  • Empty kitchen trash regularly, especially if it contains food scraps.
  • Rinse containers before placing them in recycling bins.
  • Cover indoor compost bins and empty them often.

3. Keep Sinks and Drains Clean

  • Run hot water through the kitchen sink daily, especially after using the garbage disposal.
  • Use a drain brush weekly to remove buildup.
  • Avoid leaving food particles in the sink or strainers overnight.

4. Wipe Up Spills Immediately

  • Clean up juice, soda, wine, and beer spills right away.
  • Check under small appliances like toasters and coffee makers for crumbs and sticky spots.

5. Control Incoming Produce

  • Rinse fruits and vegetables when you bring them home to remove potential eggs on the surface.
  • Dry produce thoroughly before storing.

6. Maintain a Regular Cleaning Routine

  • Wash dishcloths and sponges frequently; they can hold food residue and odors.
  • Wipe down countertops daily.
  • Clean the inside of trash cans and recycling bins at least once a month.

FAQ

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

If you remove food sources and set effective traps, you can often control a fruit fly problem within 3–7 days. However, because eggs and larvae may still be present in hidden areas, continue using traps and keeping surfaces clean for at least 2 weeks.

Are fruit flies harmful?

Fruit flies do not bite, but they can spread bacteria and other microorganisms from one surface to another. They are mainly a hygiene issue, especially around food preparation areas. It’s best to remove them quickly.

What’s the difference between fruit flies and gnats?

Fruit flies are usually tan or brown with red or dark eyes and are attracted to fermenting fruit and vegetables. Gnats are darker, more mosquito-like, and may be attracted to houseplants and moist soil. Control methods overlap, but fruit fly traps using vinegar or wine are especially effective for fruit flies.

Can fruit flies come from drains?

Fruit flies can live in drains if there is organic buildup for them to feed on. However, if you see small flies around drains that don’t respond to fruit traps, you may be dealing with drain flies instead. Cleaning the drain thoroughly usually helps in both cases.

Do I need chemical insecticides to get rid of fruit flies?

In most homes, chemical insecticides are unnecessary. Proper cleaning, removing food sources, using vinegar or wine traps, and treating drains will usually eliminate fruit flies without harsh chemicals.

Why do fruit flies keep coming back?

If fruit flies return, it usually means:

  • A food or breeding source is still available (rotting fruit, dirty drain, sticky trash can).
  • Traps are not being refreshed regularly.
  • New eggs are entering your home on unwashed produce.

Review your cleaning routine, inspect hidden areas, and continue using traps until you no longer see flies.

Can I prevent fruit flies completely?

You may not be able to prevent every single fly from entering, but you can prevent infestations by:

  • Storing produce properly
  • Keeping your kitchen and trash areas clean
  • Treating drains regularly
  • Responding quickly at the first sign of flies

With these habits, fruit flies will have little reason to stay or multiply in your home.

Want a plan tailored to your home?

Based on your fly type, home situation, and preferences. Get a Personalized Fly Removal Plan to remove flies fast and safely.

Get My Custom Plan