how to get rid of fruit flies in house
Introduction
Fruit flies are one of the most annoying household pests. They hover over your fruit bowl, swarm your kitchen sink, and seem to appear out of nowhere. The good news: you can get rid of fruit flies quickly and keep them from coming back—with the right steps.
This guide explains why fruit flies appear in your home, then walks through proven methods to eliminate them, natural remedies you can try, and practical prevention tips. Follow these steps in order for the fastest results.
Why Fruit Flies Appear in Your House
Fruit flies (often Drosophila melanogaster) are tiny insects attracted to fermenting or decaying organic material. Understanding what draws them in helps you remove the source and stop the infestation.
1. Overripe or Rotting Fruit and Vegetables
Fruit flies are strongly attracted to the smell of fermenting sugars. Common culprits include:
- Bananas with brown spots
- Overripe tomatoes, peaches, or plums
- Potatoes stored in a dark cabinet that have started to rot
- Cut fruit left uncovered on the counter
2. Food Residue in Trash and Recycling
Even small amounts of food left in:
- Open trash bins or bags
- Unrinsed bottles and cans in the recycling
- Compost containers without tight lids
can attract fruit flies, allowing them to feed and lay eggs.
3. Dirty Drains and Garbage Disposals
Organic buildup inside kitchen sink drains, garbage disposals, or dishwasher filters can become breeding grounds. The moist, warm environment combined with food residue is ideal for fruit flies to reproduce.
4. Damp Mops, Rags, and Spills
Forgotten spills and moist cleaning tools can harbor microorganisms that ferment or decay, attracting flies. Examples:
- Sticky juice spills under appliances
- Damp mops or dishcloths left in a bucket or sink
- Pet food left out, especially if wet or canned
5. Brought in from Stores or Outside
Fruit flies often hitchhike into your home on produce bought at the grocery store or farmers market. If those fruits sit out and start to ripen or ferment, eggs can hatch and quickly turn into a visible infestation.
5 Proven Methods to Get Rid of Fruit Flies
To eliminate fruit flies efficiently, use a combination of cleaning and trapping. Don’t rely on just one tactic. Here are five methods that consistently work.
Method 1: Deep Clean and Remove All Attractants
This is the most important step. Traps alone won’t help if breeding sources remain.
- Throw away overripe produce: Check fruit bowls, kitchen counters, pantry shelves, and cabinets. Discard any fruit or vegetables that are soft, moldy, or leaking.
- Refrigerate or cover all fresh produce: Keep fruit in the fridge whenever possible, or in sealed containers with lids.
- Empty and clean trash cans: Remove all kitchen trash and recycling. Wash bins with hot, soapy water and, if possible, a disinfectant. Make sure lids close tightly.
- Clean under and behind appliances: Pull out the stove, fridge, and microwave if possible and wipe up any spills, crumbs, or sticky residue.
- Wash dishcloths and sponges: Replace old sponges regularly. Launder dishcloths and towels in hot water.
- Wipe all surfaces: Use an all-purpose cleaner or diluted vinegar solution on counters, cabinet fronts, and tables to remove sugary residues.
Goal: Remove every possible food source so current fruit flies die off and cannot reproduce.
Method 2: Apple Cider Vinegar Trap
The apple cider vinegar (ACV) trap is one of the simplest and most effective ways to catch fruit flies.
You’ll need:
- Small glass, jar, or bowl
- Apple cider vinegar
- Dish soap
- Plastic wrap or paper funnel (optional)
Steps:
- Pour 1–2 cm (about ½ inch) of apple cider vinegar into the glass or jar.
- Add a drop of dish soap and swirl gently. The soap breaks the surface tension so flies sink and drown.
- Optional: Cover the top with plastic wrap and poke a few small holes with a toothpick, or place a paper funnel into the jar. Flies can get in but have trouble escaping.
- Place traps near problem areas: fruit bowls, sinks, trash cans, and compost bins.
- Empty and refresh the trap every 1–2 days, or when full of flies.
Use several traps at once for faster results.
Method 3: Wine or Beer Trap
Fruit flies are attracted to fermenting liquids like wine and beer.
You’ll need:
- A nearly empty bottle of wine or beer, or a small bowl
- Plastic wrap (if using a bowl)
Steps:
- Leave a small amount of beer or wine in the bottom of the bottle, or pour some into a bowl.
- If using a bowl, cover it with plastic wrap and poke several small holes.
- Set near areas where fruit flies are active.
- Once filled with flies, dispose of the liquid and clean the container.
This method is especially effective if you already have leftover beverage containers in the kitchen.
Method 4: Drain and Garbage Disposal Treatment
If fruit flies seem concentrated around your sink, they may be breeding in the drain.
Steps to clean drains:
- Boiling water flush: Slowly pour a kettle of boiling water down the drain to kill larvae and loosen organic buildup.
- Baking soda and vinegar:
- Pour ½ cup baking soda down the drain.
- Follow with 1 cup white vinegar.
- Let foam for 10–15 minutes, then flush with hot water.
- Clean the garbage disposal:
- Turn off the power to the disposal.
- Use a brush or old toothbrush to scrub under the splash guard and inside the disposal.
- Grind ice cubes and lemon or orange peels with a bit of baking soda to clean and deodorize.
- Check the dishwasher filter: Remove and clean the filter and rubber seals where food can accumulate.
Repeat every few days while flies are present, then weekly as maintenance.
Method 5: Commercial Fruit Fly Traps
If home-made traps aren’t enough, commercial traps offer a ready-made solution.
Types of commercial traps:
- Pre-baited traps: Small containers with an attractant inside. You open and place them; flies enter and cannot escape.
- Sticky traps: Adhesive sheets or strips near breeding sites. Flies get stuck when they land.
- Liquid attractant traps: You add a provided liquid to a container, and flies are drawn in and trapped.
Usage tips:
- Place multiple traps in different hot spots at the same time.
- Combine with thorough cleaning to prevent re-infestation.
- Follow manufacturer instructions for replacement and disposal.
Natural Remedies to Eliminate Fruit Flies
If you prefer to avoid chemical sprays, several natural approaches can help reduce or repel fruit flies. These work best alongside core methods like cleaning and trapping.
1. Vinegar and Dish Soap Variations
Any strong-smelling vinegar can work, not just apple cider vinegar.
- White vinegar: Add a bit of sugar or a piece of fruit peel to make it more attractive.
- Fruit vinegar: Wine vinegar or balsamic can also attract flies effectively.
2. Fruit Trap with Plastic Wrap
Use the fruit itself as bait.
- Place a piece of overripe fruit (banana works well) in a small bowl.
- Add a few drops of vinegar or lemon juice.
- Cover tightly with plastic wrap.
- Poke several small holes with a toothpick.
Flies enter through the holes and often cannot find their way out.
3. Essential Oils as Repellents
Some essential oils may help repel fruit flies when used correctly.
- Common options: Lemongrass, peppermint, eucalyptus, lavender, and tea tree oil.
- How to use:
- Mix 10–15 drops of essential oil with 1 cup of water in a spray bottle.
- Spray lightly around windowsills, door frames, and the exterior of trash cans (avoid direct contact with food).
- Reapply daily as scents dissipate.
Note: Essential oils repel; they do not kill flies or address breeding sites.
4. Homemade Fly Paper
You can make a simple sticky trap using natural ingredients.
- Cut strips of thick paper or cardboard.
- Mix equal parts honey and sugar with a bit of water to form a sticky paste.
- Coat the strips and hang them near problem areas (away from dust and direct contact with surfaces).
- Replace when covered with insects.
5. Regular Use of Hot Water and Vinegar
As a maintenance routine:
- Once or twice a week, pour hot water down kitchen and bathroom drains.
- Follow with a half cup of white vinegar to discourage organic buildup and odors that attract flies.
Prevention Tips: How to Keep Fruit Flies from Coming Back
Once you’ve eliminated fruit flies, prevention becomes simple ongoing habits. These steps drastically reduce the chances of another infestation.
1. Store Produce Properly
- Refrigerate ripe fruit instead of leaving it on the counter.
- Buy smaller quantities of fresh produce more often to avoid spoilage.
- Inspect fruits and vegetables at the store and avoid items with soft spots or broken skin.
- Use sealed containers or produce domes if you must store fruit at room temperature.
2. Manage Trash, Compost, and Recycling
- Use trash cans with tight-fitting lids.
- Empty kitchen trash at least every 2–3 days, or immediately if it contains food waste in hot weather.
- Rinse food and drink containers before placing them in recycling.
- Keep indoor compost bins sealed and empty them frequently into outdoor compost piles or municipal bins.
3. Maintain a Clean Kitchen
- Wipe counters and tables daily, especially after preparing fruit or sugary foods.
- Clean up spills immediately, including under appliances if liquid runs underneath.
- Do not leave dirty dishes or glasses with juice, soda, wine, or beer overnight.
- Regularly clean under the fridge, stove, and microwave where crumbs and spills accumulate.
4. Keep Drains and Disposal Clear
- Use drain strainers to catch food scraps and empty them into the trash.
- Run the garbage disposal with plenty of water after each use.
- Perform a deeper drain cleaning (baking soda and vinegar, plus hot water) every 1–2 weeks.
5. Check Entry Points and Hidden Spots
- Inspect window and door screens for holes; repair or replace as needed.
- Look into seldom-used areas like storage rooms, basements, and pantry corners for forgotten food or spills.
- Check bags, backpacks, and lunch boxes for leftover food items.
6. Use Ongoing Traps as Monitors
Even after the infestation is gone:
- Keep one or two vinegar traps in low-visibility spots (behind a plant, near a trash can) for a week or two.
- If you notice new flies in the traps, re-check your kitchen and trash areas for fresh breeding sources.
FAQ: Common Questions About Fruit Flies
1. How long does it take to get rid of fruit flies?
With thorough cleaning and effective traps, most household infestations improve significantly within 2–5 days. It may take up to 1–2 weeks to completely eliminate them, depending on how many breeding sites existed and how consistently you maintain cleanliness.
2. Are fruit flies harmful?
Fruit flies are mostly a nuisance, not a major health threat. However, they can transfer bacteria and microorganisms from dirty surfaces to food. It’s best to discard food that has been heavily swarmed and to keep food preparation areas as fly-free as possible.
3. What’s the difference between fruit flies and gnats?
Many small flying insects get labeled as “gnats.” Fruit flies are typically:
- Brownish or tan, with red or dark eyes
- Attracted to fruit, sugary liquids, and fermenting materials
Fungus gnats, by contrast, usually cluster around houseplants and damp soil. If insects are mostly around your plants rather than food and drains, you may be dealing with fungus gnats, which require different treatment (drying soil, changing potting mix).
4. Can fruit flies lay eggs in humans or pets?
No. Fruit flies lay their eggs on decaying or fermenting organic matter, not on humans or animals. They are annoying but not parasitic.
5. Do I need to use chemical sprays?
In most household cases, chemical sprays are unnecessary. Proper sanitation, traps (vinegar or commercial), and drain cleaning are usually enough. Sprays kill only the flies you hit directly and do not address breeding sites.
6. Why do fruit flies keep coming back even after I clean?
If fruit flies return, it usually means at least one breeding source remains. Check:
- Forgotten fruits or vegetables in drawers or bags
- Hidden spills under appliances
- Trash cans or compost bins with residue
- Sink drains and garbage disposals
Eliminate all sources and continue using traps for a few more days.
7. Can fruit flies survive in the fridge?
Adult fruit flies generally cannot survive cold refrigerator temperatures for long, and eggs laid on cold produce develop very slowly or not at all. Refrigeration is an effective way to store fruit and prevent fruit fly reproduction.
8. Is it okay to eat fruit that had fruit flies on it?
If one or two flies briefly landed on intact fruit, washing it thoroughly under running water is usually sufficient. If the fruit is very overripe, has open wounds, or has been swarmed by many flies, it’s safer to discard it.
9. Can fruit flies come from the drain itself?
Fruit flies don’t originate from pipes, but they can breed in organic buildup inside drains. That’s why regular drain cleaning is important when dealing with an infestation.
10. What is the fastest method to kill fruit flies?
The fastest results come from combining:
- Immediate removal of all ripe/rotting produce and food waste
- Thorough kitchen and drain cleaning
- Multiple apple cider vinegar + dish soap traps placed around the kitchen
Do all three on the same day for best results.
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