How to Get Rid of Fruit Flies Fast (5 Proven Methods)
Last updated: February 7, 2026

How to Get Rid of Fruit Flies Fast (5 Proven Methods)
Nothing ruins the joy of a fresh bowl of fruit on the counter quite like a swarm of tiny flies hovering around it. One day your kitchen looks spotless, and the next morning there are dozens of these little pests buzzing around your bananas. If you've been swatting at fruit flies and losing the battle, you're definitely not alone.
Fruit flies are one of the most common household nuisances, especially during warmer months. They breed incredibly fast -- a single female can lay up to 500 eggs at a time -- so a small problem can turn into a full-blown infestation in just a couple of days. The good news is that getting rid of them doesn't require an exterminator or harsh chemicals.
We've tested every method out there, from store-bought traps to old-school home remedies, and narrowed it down to the five that actually work. Let's get your kitchen fly-free.

Why You Have Fruit Flies in the First Place
Before we jump into the solutions, it helps to understand what brought these uninvited guests into your home. Fruit flies are attracted to ripening or fermenting organic matter. That overripe banana on the counter, the splash of juice that dripped behind the fruit bowl, the bits of food stuck in your drain -- these are all open invitations.
Fruit flies can enter your home through incredibly small gaps around windows and doors, but they often hitch a ride on the produce you bring home from the grocery store. Their eggs can already be on the skin of fruits and vegetables before you even set them on the counter. That's why an infestation can seem to appear out of nowhere.
Once they're inside, they multiply at an alarming rate. A fruit fly's entire lifecycle from egg to adult takes just 8 to 10 days, and adults live for about 40 to 50 days. Do the math, and you can see how a handful of flies turns into hundreds in under two weeks.
Common hotspots in your home include fruit bowls, recycling bins, garbage cans, sink drains, empty bottles and cans, damp mops or sponges, and compost bins. If you've been composting at home, you know firsthand how much fruit flies love decomposing organic material. Basically, anything that's moist and fermenting is a five-star resort for these pests.
Method 1: The Apple Cider Vinegar Trap
This is hands down the most effective DIY fruit fly trap, and you probably have everything you need in your kitchen right now. Apple cider vinegar mimics the scent of fermenting fruit, which is irresistible to fruit flies. Pair it with a drop of dish soap, and you've built a trap they can't escape.
What You Need
- A small bowl or jar
- Apple cider vinegar (about half a cup)
- 2-3 drops of liquid dish soap
- Plastic wrap (optional)
How to Set It Up
Pour the apple cider vinegar into your bowl or jar. Add a couple drops of dish soap and give it a very gentle stir. The dish soap breaks the surface tension of the vinegar, so when flies land on the liquid to feed, they sink instead of sitting on the surface.
For extra effectiveness, cover the top with plastic wrap and poke several small holes with a toothpick or fork. The flies can find their way in through the holes but struggle to find their way back out. We've found this covered version catches about twice as many flies as the open-bowl method.
Place the trap near the area where you see the most fruit fly activity. Within a few hours, you should start seeing results. Replace the vinegar every two to three days or whenever it starts to fill up with flies.
Pro Tips
Set up multiple traps if you have flies in different areas of the kitchen. One by the fruit bowl, one near the sink, and one near the trash can covers most bases. You can also use red wine vinegar or even a splash of leftover red wine if you don't have apple cider vinegar on hand -- fruit flies aren't picky about their fermented beverages.
Method 2: The Red Wine Trap
Speaking of wine, if you've ever noticed fruit flies dive-bombing your glass during dinner, you already know how well this works. Red wine is essentially fermented fruit juice, which makes it a powerful fruit fly attractant.
Pour about a quarter cup of red wine into a glass or jar. Add a drop of dish soap, just like the vinegar method. You can leave it open or cover it with plastic wrap -- either way, the flies won't be able to resist.
This method is particularly useful for catching the stragglers that don't respond as strongly to vinegar. We like to run a vinegar trap and a wine trap simultaneously for maximum coverage. Don't worry about wasting good wine here -- that bottle that's been open for a week and turned a bit sour is actually perfect for this.
Method 3: The Banana Bottle Trap
This method takes a bit more setup but works exceptionally well for larger infestations. You're essentially creating a one-way funnel that lures flies in with their favorite food and then prevents them from escaping.
Take an empty plastic bottle (a water bottle or soda bottle works great) and cut the top third off. Place a few pieces of overripe banana or other fruit in the bottom of the bottle. Then invert the top portion of the bottle and place it back inside the bottom, creating a funnel shape. Tape the edges together so there are no gaps along the sides.
The flies smell the fruit, enter through the narrow funnel opening, and then can't figure out how to fly back through the small hole to escape. Check the trap daily and dispose of it once it's collected a good number of flies. This method is especially effective if you set it up in the evening and leave it overnight.
Method 4: The Drain Treatment
Here's something many people overlook: your kitchen drain might be the real source of the problem. Fruit flies love to breed in the thin film of organic matter that builds up inside drains, especially in the kitchen sink. You can set up all the traps in the world, but if they're breeding in your drain, you'll never get ahead of the population.
To test whether your drain is part of the problem, place a piece of plastic wrap over the drain opening overnight. Secure it with a rubber band or tape. If you find flies stuck to the underside of the plastic in the morning, congratulations -- you've found a breeding site.
To treat the drain, start by pouring a pot of boiling water down it to kill any eggs and larvae. Follow up with half a cup of baking soda, then pour a cup of white vinegar on top. Let the fizzing mixture work for about 15 minutes, then flush with another pot of boiling water.
Repeat this treatment every day for a week to break the breeding cycle completely. Going forward, running hot water down the drain for 30 seconds after each use helps prevent the organic film from building up again. If your drain tends to get sluggish, we have a full guide on how to unclog your drain without chemicals that covers deeper cleaning methods.
Keeping your stainless steel sink clean and free of food residue also goes a long way toward making your sink area less attractive to fruit flies. A clean, dry sink is not a place fruit flies want to hang out.

Method 5: The Store-Bought Sticky Trap
Sometimes you want a set-it-and-forget-it solution, and that's where commercial fruit fly traps shine. Small sticky traps designed specifically for fruit flies are inexpensive and surprisingly effective. You can find them at most grocery stores, hardware stores, or online.
These typically come in two forms: sticky paper traps that you place near problem areas, or small containers with a liquid attractant inside. Both work well, but the liquid-based traps tend to catch more flies because they use a lure similar to the vinegar method combined with a sticky or drowning mechanism.
Place sticky traps near fruit bowls, potted plants, and trash cans. Replace them according to the package directions or when they're visibly full. The advantage of commercial traps over DIY options is that they're mess-free and you don't have to deal with bowls of vinegar on your countertop.
That said, we still recommend combining store-bought traps with at least one of the DIY methods above for the fastest results.
How to Prevent Fruit Flies from Coming Back
Killing the existing flies is only half the battle. If you don't address the conditions that attracted them in the first place, you'll be right back where you started within a week. Prevention is where the real long-term victory happens.
Store Produce Properly
The number one preventive measure is managing your produce. Ripe fruits and vegetables should go in the refrigerator, not on the counter. If you prefer to keep certain items at room temperature (bananas, tomatoes, avocados), inspect them daily and refrigerate or use them as soon as they start to soften.
Keeping your fridge organized and food fresh isn't just about efficiency -- it's a legitimate pest prevention strategy. When fruits and vegetables are stored properly, they ripen more slowly and produce less of the fermenting scent that attracts fruit flies.
The same goes for your pantry. Open packages of dried fruit, improperly sealed snacks, and forgotten produce can all become fruit fly magnets. A well-organized pantry with sealed containers eliminates these hidden attractants.
Take Out Trash and Recycling Regularly
Your garbage can is a fruit fly paradise, especially during summer. Empty kitchen trash daily if possible, and make sure your trash can has a tight-fitting lid. Rinse recyclable bottles and cans before tossing them in the bin -- that half-inch of flat beer in the bottom of a can is a fruit fly breeding ground.
Clean Up Immediately
Wipe down counters after food prep. Clean up spills right away, especially juice, wine, or anything sugary. Don't leave dirty dishes in the sink overnight. These sound like basic kitchen hygiene tips, and they are -- but they're also the most effective fruit fly prevention strategy there is.
Manage Moisture
Fruit flies need moisture to survive and breed. Fix any leaky faucets, don't let water pool in plant saucers, and wring out sponges and dish cloths after use. Keep drain trays and dish drying racks dry when not in use.
Address Outdoor Sources
If you have a compost bin, garden, or outdoor trash cans near your kitchen entrance, fruit flies may be migrating inside. Keep compost bins sealed, move outdoor trash cans away from doors, and make sure window screens are intact. If you're composting, consider a tumbler-style bin with a secure lid rather than an open pile, especially during peak fruit fly season.
Fruit Flies vs. Drain Flies vs. Gnats: Know the Difference
Not all tiny flying pests are fruit flies, and misidentifying them means your treatment might not work. Here's how to tell them apart.
Fruit flies are about 1/8 inch long with tan or brownish bodies and distinctive red eyes. They hover around produce, trash, and drains. They fly in a somewhat erratic, hovering pattern.
Drain flies (also called moth flies) are slightly larger with fuzzy, moth-like wings. They tend to hang out on walls and ceilings near bathrooms and drains rather than near food. If your problem is concentrated around shower drains or bathroom sinks, you likely have drain flies, not fruit flies.
Fungus gnats are dark-colored and tend to swarm around potted plants. They breed in the moist soil of overwatered houseplants. If the flies are concentrated around your plants rather than your kitchen, fungus gnats are the likely culprit. Letting the top inch of soil dry out between waterings usually solves the problem.
Knowing which pest you're dealing with helps you target your approach. The five methods in this guide are specifically optimized for fruit flies, though the vinegar trap does catch some gnats and drain flies as well.
The Nuclear Option: When Nothing Else Works
If you've tried everything above and you're still overrun, it might be time to go all-out. Here's the aggressive approach for serious infestations.
First, do a complete kitchen audit. Remove every piece of produce from the counter and refrigerate it. Empty every trash can and recycling bin. Clean under and behind appliances where rogue fruit pieces might have rolled. Check for potatoes or onions that may have gone bad in a dark corner of the pantry.
Next, clean every surface with a vinegar-water solution (equal parts). Treat every drain in the house -- kitchen, bathroom, utility room. Set up vinegar traps in every room, not just the kitchen.
Finally, seal your kitchen as best you can. Keep windows closed or make sure screens are airtight. Run a fan near problem areas since fruit flies are weak fliers and even a gentle breeze disrupts their ability to land and feed.
With all food sources eliminated and traps running, even a severe infestation should clear up within 7 to 10 days. The key is being thorough -- miss one forgotten banana behind the toaster, and you're back to square one.
Frequently Asked Questions
How long does it take to get rid of fruit flies completely?
With consistent trapping and source elimination, you can see a dramatic reduction within 48 hours and typically clear an infestation entirely within one to two weeks. The timeline depends on how severe the problem is and how thoroughly you've removed their food and breeding sources. Traps alone won't do it -- you need to eliminate the source simultaneously. If new flies keep appearing after two weeks, there's a breeding site you haven't found yet, so recheck your drains, trash areas, and any hidden produce.
Are fruit flies harmful or just annoying?
Fruit flies are mostly a nuisance, but they're not entirely harmless. They can carry bacteria like E. coli and Salmonella on their bodies, transferring these pathogens to your food and kitchen surfaces as they land. While the risk of getting seriously ill from fruit flies is low, it's not zero -- especially if they've been spending time in your garbage or drain before landing on your fresh produce. This is one more reason to deal with them promptly rather than just tolerating them.
Do fruit fly traps work better in certain locations?
Absolutely. Placement makes a huge difference. Set traps within a few inches of where you see the most activity -- near fruit bowls, next to the sink, beside the trash can, or on the counter where you do food prep. Fruit flies don't travel far from their food source, so a trap on the other side of the kitchen won't help much. Also, traps tend to work better in still air. If you have a ceiling fan running or a window creating a draft, the scent from the trap disperses before it can effectively lure the flies in.
Can fruit flies survive in the refrigerator?
Fruit flies can't breed in refrigerator temperatures, but they can survive briefly if they fly in when you open the door. Cold temperatures slow them down significantly, which is actually why refrigerating produce is such an effective prevention strategy. At temperatures below 60 degrees Fahrenheit, fruit flies become sluggish and stop reproducing. Below 50 degrees, they essentially become inactive. So while the occasional fly might wander into your fridge, it won't set up camp there.
What time of year are fruit flies worst?
Fruit flies are most active during late summer and early fall when temperatures are warm and there's an abundance of ripening produce. They thrive in temperatures between 75 and 85 degrees Fahrenheit. However, in heated homes, fruit flies can be a year-round problem since indoor temperatures stay within their preferred range. Winter infestations are usually smaller and easier to control since the outdoor population isn't reinforcing the indoor one. If you tend to get fruit flies every summer, start your prevention routine in early June before they become established.
Take Your Kitchen Back
Fruit flies are persistent, but they're not invincible. The combination of effective traps and thorough source elimination will clear out even a stubborn infestation within a couple of weeks. Start with the apple cider vinegar trap today -- it takes 60 seconds to set up and starts working almost immediately.
The real long-term solution is prevention. Store produce properly, keep surfaces clean, manage your drains, and take out the trash regularly. These aren't dramatic changes, just small habits that make your kitchen a far less welcoming place for fruit flies.
Once you've won the battle, maintaining a clean, organized kitchen makes it much easier to stay fly-free for good. A few minutes of daily upkeep beats days of dealing with another infestation every time.
Related Articles

How to Clean Blinds Without Taking Them Down
Learn how to clean blinds without removing them. Quick dusting methods, wet cleaning tips for vinyl, wood, and fabric blinds, plus deep cleaning tricks.

How to Clean a Glass Stovetop Without Scratching It
Remove burnt-on food, grease, and stubborn stains from your glass stovetop safely. These gentle methods restore the shine without damaging the surface.

How to Clean Baseboards Without Breaking Your Back
Learn the fastest, easiest ways to clean baseboards throughout your home. Includes no-bend methods, tools that save time, and tips to keep them clean longer.

How to Clean a Microfiber Couch Like a Professional
Learn how to clean a microfiber couch and remove stains, odors, and built-up grime using simple household products. Works on all microfiber types.