You grab a banana, and a tiny cloud of flies lifts off. You wipe the counter, but they’re back by dinner.
Quick answer: Here’s how to get rid of fruit flies in house: remove rotting food, scrub slimy drains, and clean trash areas. Then trap the adults with apple cider vinegar.
Traps catch adults. Cleaning removes breeding spots. You need both to get rid of fruit flies in your house.
How to Get Rid of Fruit Flies in House: Find the Source First
1. First, Find the Source

Where do fruit flies come from? Some ride home on produce that already holds eggs. Others fly in from outside.
What attracts fruit flies? Fermenting food and sweet liquids are big draws. Eggs can become adults in as little as 7 to 10 days.
Fruit flies, also called vinegar flies, are about 1/8 inch long. They have tan bodies and often red eyes. So the first step in how to get rid of fruit flies in house is a quick search. Seeing fruit flies in your house? Check:
- Fruit bowls, tomatoes, potatoes, and onions
- Trash cans, recycling bins, and compost pails
- Unrinsed soda, beer, juice, and wine containers
- Spills under the fridge and other appliances
- Wet areas under leaky pipes
- Sinks, tubs, showers, and floor drains
Bag anything rotting and take it outside.
Suspect fruit flies in a drain? Cover it with a plastic bag overnight. Flies in the bag by morning point to that drain.
Where Fruit Flies Hide
- Ripe produce
- Trash, recycling, compost
- Soda, beer, wine containers
- Spills under appliances
- Leaky pipes
- Sinks and floor drains
Drain test: Cover it with a bag overnight. Flies in the bag point to that drain.
How to Get Rid of Fruit Flies in House: Fruit Fly Trap Ideas
Traps are one part of how to get rid of fruit flies in house. Put them where flies gather.
2. The Classic Apple Cider Vinegar Trap

This apple cider vinegar trap is a design recommended by Michigan State University Extension.
You need: a small glass, vinegar, dish soap, plastic wrap, a rubber band, and a toothpick.
- Fill the glass about two-thirds full of vinegar.
- Add just one or two drops of dish soap and swirl.
- Stretch plastic wrap tightly over the top.
- Secure it with the rubber band.
- Poke about a dozen small holes.
The smell draws flies in to drown. Refresh as needed.
3. The Red Wine Trick

Have leftover wine? To make a red wine trap, pour a splash into a glass. Add a drop of dish soap, which helps flies sink.
Cover it like the vinegar trap. Change the wine daily. Keep it away from kids, pets, and your drinking glasses.
4. The Banana Peel Experiment

Which bait works better in your home? Put a small piece of ripe banana peel in a jar. Cover it with plastic wrap and poke small holes.
Set it beside your vinegar trap. After one day, compare the catch. Use the winning bait for your next round.
Bag and toss the peel within a day so it can’t become a breeding spot.
5. The Wine Bottle Trick
Leave a little wine in the bottom of a bottle. The scent can lure flies, and the narrow neck may slow their escape.
Don’t make this your only trap. Empty it daily. Rinse it before recycling.
Fruit Flies vs. Gnats: How to Get Rid of Fruit Flies in House Without Guessing
6. Check Your Houseplants
Are the bugs rising from potting soil? You may have fungus gnats instead. Vinegar traps made for fruit flies don’t work well for monitoring these gnats.
| Clue | Fruit fly | Fungus gnat |
|---|---|---|
| Common look | Tan, often with red eyes | Dark and slender |
| Check first | Produce, trash, drains | Damp potting soil |
| First fix | Remove the breeding source | Let the soil surface dry |
For gnats, let the top inch of soil dry before watering, if your plant allows. Empty saucers. Yellow sticky cards can catch adults.
How to Get Rid of Fruit Flies in House With a Homemade Fruit Fly Trap
7. The Cone of Paper Trap

No plastic wrap? This DIY fruit fly trap uses paper.
- Put a bit of juice or ripe fruit in a small jar.
- Roll paper into a cone with a tiny opening at the tip.
- Set it in the jar, narrow end down.
- Keep the tip above the bait.
- Tape any gaps around the rim.
This design makes escape harder. Replace bait daily.
To kill trapped flies, bag the whole jar and place it in the freezer overnight. Use a freezer-safe jar.
How to Get Rid of Fruit Flies in House and Prevent Fruit Flies in the Kitchen
8. Store Fruit in the Fridge
A key habit in how to get rid of fruit flies in house is protecting ripe produce. Eat, chill, or toss it.
Bananas may darken in the fridge, so you might freeze them instead.
Check new produce at home. Rinse sturdy fruit before eating or chilling it, then dry it. Wash berries just before eating.
9. Take Out the Trash Regularly
During a bad fruit fly infestation, empty the kitchen trash every evening. Clean and dry the bin before adding a new bag.
Anyone learning how to get rid of fruit flies in house should also check these:
- Rinse cans and bottles before storing them.
- Wipe sticky bin lids and rims.
- Clean up juice, beer, and wine spills.
- Wash dirty rags and rinse mops, then let them dry.
How to Get Rid of Fruit Flies in House: Sprays, Oils, and Drains
10. The Dish Soap Spray Bottle

Mix water and a few drops of dish soap in a labeled bottle. Spraying can help get rid of fruit flies you see.
This alone won’t get rid of fruit flies in your house. Avoid outlets, appliances, and open food. Wipe up wet spots.
A dish soap trap with vinegar keeps working while you’re away.
11. Use Essential Oils as a Deterrent
Some lab research shows that peppermint oil can repel fruit flies. Lab results don’t prove it will clear flies from a home.
Don’t count on oils to get rid of fruit flies. They won’t remove eggs or larvae, which are the young, worm-like stage.
Pet warning: Concentrated oils can harm animals, and species differ in how sensitive they are. Ask your vet before using oils around pets. Keep oils away from children and food.
12. The Bleach Drain Flush: Why to Skip It
Iowa State Extension says there’s no benefit to using bleach or ammonia on fruit flies in drains.
To get rid of fruit flies in house drains, remove the slime:
- Put on gloves and eye protection.
- Scrub inside the kitchen drain with a stiff pipe brush.
- Clean the stopper and any removable parts.
- If safe for your pipes, slowly pour boiling water along the inner sides.
Boiling water can burn you and may damage some pipes or fixtures. Check first if you’re unsure. Skip it if the drain holds chemical cleaner, and call a plumber.
Safety rule: Never mix bleach with ammonia, acids, or other cleaners. Vinegar is an acid, and the mix can release dangerous gas.
Drain Safety
✓ Do
- Scrub slime with a pipe brush
- Wear gloves and eye protection
- Check pipes before using boiling water
✕ Don’t
- Use bleach or ammonia on drains
- Mix bleach with vinegar or other cleaners
- Pour boiling water over chemical cleaner
Unsure? Call a plumber.
How to Get Rid of Fruit Flies in House: How Long Does It Take?
There’s no set deadline. It depends on whether you’ve found every breeding spot. Hidden eggs and larvae can turn into new adults after you set traps.
Fruit Fly Cleanup Timeline
- Day 1 Remove rotting food, clean drains, set traps.
- Every day Empty trash, wipe spills, refresh traps.
- Weeks 1 to 2 Keep cleaning and watching traps.
- Still seeing flies? Search again. Call a pro if needed.
Hidden eggs can hatch after traps are set.
Keep cleaning and watch your traps for at least one to two weeks. Still seeing fruit flies in your house? Search again.
Can’t get rid of fruit flies? Call a pest control pro. A plumber can help with leaks or blocked pipes.
FAQs on How to Get Rid of Fruit Flies in House
Why do I suddenly have fruit flies in my house?
New produce may have carried in eggs, or adults may have entered from outside. A forgotten onion or dirty bin can help them multiply.
What is the fastest way to get rid of fruit flies?
For how to get rid of fruit flies in house fast, clean the source and set traps the same day. Don’t expect overnight results.
Why are there fruit flies when I have no fruit?
You may have fruit flies in your house because wet, fermenting waste lets them breed. Check drains, bins, bottles, mops, and spots under appliances.
Can fruit flies get through window screens?
Some may be small enough. Fix torn screens, but don’t rely on screens alone.
Can insect spray get rid of fruit flies?
A household spray labeled for flies may kill adults it reaches. The relief is temporary if the source remains. Always follow the label.
Can you get fruit flies in your house in winter?
Yes. Indoor produce, trash, and drains can support them in cold weather.
Conclusion: How to Get Rid of Fruit Flies in House
Now you know how to get rid of fruit flies in house: find the source, clean it, and trap the adults.
To get rid of fruit flies, start with produce and drains today.
Small daily habits help stop flies from returning. For more practical guides, visit Home & Pests or the Get Rid Of homepage.
Follow Get Rid Of for More Home and Pest-Care Tips
For more quick, practical guides like this one, follow Get Rid Of on social media. We regularly share new how-to tips and seasonal pest-prevention advice.