The fastest way to get rid of fruit flies is to remove every food source they’re breeding in — overripe produce, trash, and dirty drains — then trap the adults with a simple apple cider vinegar trap covered in plastic wrap and poked with a few small holes. Most kitchens are fly-free within two to three days when trapping is paired with a thorough clean-up.
Fruit flies are one of the most common kitchen pests, and they can turn a fruit bowl into a swarm almost overnight. This guide covers exactly how to get rid of fruit flies using safe, inexpensive methods you probably already have at home, plus how to stop them from coming back.
You’ll learn what attracts fruit flies in the first place, how to build three different DIY traps, which habits keep an infestation from returning, and when it’s time to call a pest control professional.
What Attracts Fruit Flies to Your Kitchen?

Fruit flies have an extremely sensitive sense of smell for fermenting sugars. Overripe bananas, peaches, tomatoes, and onions release the exact gases that draw them in from outside.
They’re also drawn to less obvious sources. Empty wine or beer bottles, sticky soda spills, recycling bins, and damp kitchen drains all give off the same fermenting-sugar smell fruit flies look for.
Once a few flies find a food source, they lay eggs directly on it. A single female can lay several hundred eggs in her short lifetime, which is why a small problem can turn into a full fruit fly infestation within days.
Where Do Fruit Flies Come From?
Most fruit flies enter a home two ways: riding in on fruit and vegetables bought at the store, or flying in through small gaps in window screens and door seals. They don’t spontaneously appear from nowhere, even though it can feel that way.
Eggs are often already present on the skin of produce when you bring it home. Once that fruit sits out and starts to soften, the eggs hatch and the larvae feed on the decaying flesh.
How Fast Do Fruit Flies Multiply?
The fruit fly life cycle, from egg to flying adult, can take as little as eight to ten days in a warm kitchen. That rapid life cycle is the main reason an infestation seems to explode overnight.
This speed is also why acting at the first sign of a problem matters. Waiting even a few extra days gives a new generation time to hatch and start the cycle again.
Fruit Flies vs. Gnats vs. Drain Flies: How to Tell Them Apart

Not every small flying bug in your kitchen is a fruit fly, and the right fix depends on getting the ID right. Fruit flies have tan or light brown bodies with noticeable red eyes, and they hover around fruit, trash, and sinks.
Fruit flies, also called vinegar flies, are about 1/8 inch long. They have tan bodies and often red eyes.
Check before you act. Other small flies need different fixes than fruit flies in your house.
| Small Fly | What It Looks Like | Where You Often See It |
|---|---|---|
| Fruit fly | Tan body, often red eyes | Fruit, trash, sinks |
| Drain fly | Fuzzy, like a tiny moth | Walls near drains |
| Fungus gnat | Dark and thin | Houseplant soil |
Fungus gnats are darker, thinner, and usually found near houseplants and damp potting soil rather than food. Drain flies are fuzzy and moth-shaped, and they cling to walls near sinks instead of flying erratically the way fruit flies do.
Knowing the difference matters because a fruit fly trap won’t do much for a gnat problem rooted in overwatered houseplants. Match the fix to the pest you actually have.
Which Tiny Fly Is It?
| Fruit Fly | Fungus Gnat | Drain Fly | |
| Looks Like | Tan body, red eyes | Dark, slender | Fuzzy, moth-like |
| Found Near | Fruit, trash, sinks | Houseplant soil | Drains, damp walls |
| Quick Tip | Hovers over fruit | Near wet soil | Clings to walls |
How to Get Rid of Fruit Flies: Step-by-Step
Clearing out an infestation for good comes down to two things working together: starving out the breeding sites and trapping the adults that are already flying around. Skipping either step usually means the problem comes right back.
5 Steps to Get Rid of Fruit Flies Fast
Step 1: Remove Every Food Source

Start by clearing the kitchen of anything fruit flies can use to breed. Throw out overripe produce, wipe down sticky counters, and empty the trash and recycling daily until the problem is under control.
Check spots people often forget, including the drain stopper, the bottom of the fruit bowl, and any reusable grocery bags that recently held produce. Fruit fly eggs can survive in all of these places.
Step 2: Build an Apple Cider Vinegar Trap
Fill a small jar or bowl about halfway with apple cider vinegar and add one drop of dish soap. Cover the top tightly with plastic wrap, secure it with a rubber band, and poke four or five small holes in the top.
The vinegar’s smell pulls the flies in through the holes, and the dish soap breaks the surface tension so they sink and can’t fly back out. Leave the trap near the problem area and replace it every two to three days.
Step 3: Try the Dish Soap Trap
A simpler homemade fruit fly trap uses just a shallow bowl of water with a few drops of dish soap mixed in. Place a small piece of overripe fruit in the center as bait.
This version works fast during an active infestation because the bait draws flies in quickly. Run it alongside the vinegar trap in a different corner of the kitchen for better coverage.
Step 4: Check and Clean Your Drains
Sink and drain buildup is one of the most overlooked causes of a fruit fly problem. Pour boiling water down the drain, then scrub the inside of the opening with an old toothbrush and a bit of dish soap to remove the organic film flies breed in.
Repeat this every few days until flies stop hovering near the sink. A drain that still smells sour after cleaning may need a deeper treatment with an enzyme-based drain cleaner.
Step 5: Use a Store-Bought Trap or Spray When Needed

A commercial fruit fly spray or trap can help with a larger infestation, or if you’d rather skip the DIY setup.
Look for products labeled specifically for fruit flies or small flying insects, and always follow the label directions for use around food and pets.
Keep any spray away from countertops, dishes, and open food, and ventilate the room while using it. These products work best as a supplement to source removal, not a replacement for it.
How Long Does It Take to Get Rid of Fruit Flies?
With consistent trapping and a clean kitchen, most fruit fly problems clear up in two to three days. A heavier infestation, or one with an overlooked breeding site like a drain, can take up to two weeks.
If flies are still appearing after two weeks of consistent effort, there’s likely an active breeding site you haven’t found yet. Recheck drains, trash cans, recycling bins, and any damp mop buckets or cleaning rags.
How to Prevent Fruit Flies From Coming Back
Prevention is simpler than treatment once the current problem is solved. A few consistent habits keep fruit flies away long term.
- Store ripe fruit in the refrigerator instead of on the counter.
- Wash produce as soon as you bring it home to remove any eggs.
- Take out the trash and recycling daily, especially in warmer months.
- Rinse recyclable bottles and cans before putting them in the bin.
- Repair torn window screens and seal gaps around doors.
- Run the garbage disposal with ice and a little dish soap weekly.
Fruit Fly Prevention Checklist
Mistakes That Make a Fruit Fly Problem Worse
Spraying flies directly with an all-purpose cleaner might kill a few, but it won’t stop new ones from hatching. The eggs and larvae are usually hidden somewhere the spray never reaches.
Relying on a single trap in one spot is another common mistake. Fruit flies spread out across a kitchen, so two or three traps placed near different problem areas work far better than one.
Ignoring the drains is probably the most common misstep of all. A kitchen can look spotless and still have an active breeding site just out of sight, below the sink stopper.
When to Call a Pest Control Professional
A handful of fruit flies is a DIY-friendly problem, but a persistent infestation that doesn’t respond to two or three weeks of trapping and cleaning may point to a hidden breeding site. Professional pest control can locate problems like a cracked drain pipe or an old spill inside a wall that’s impossible to find otherwise.
It’s also worth calling a professional if the flies seem to be coming from a shared wall with a neighboring unit, since the source may be outside your control. A licensed technician can inspect, treat, and confirm the infestation is fully resolved.
Frequently Asked Questions
Do fruit flies bite?
No, fruit flies don’t bite people or pets. They’re a nuisance and a food-contamination risk, but they pose no direct physical threat.
Can fruit flies make you sick?
Fruit flies can carry bacteria on their bodies after landing on decaying food and trash. It’s a good idea to discard any exposed food they’ve been crawling on rather than eating it.
Why do I keep getting fruit flies even though my kitchen is clean?
A tidy countertop doesn’t rule out a hidden breeding site. Drains, trash can seams, recycling bins, and even a forgotten piece of fruit in a bag are common overlooked spots.
Does vinegar really get rid of fruit flies?
Yes, an apple cider vinegar trap is one of the most effective DIY options because the scent closely mimics the fermenting fruit that fruit flies are drawn to. Pairing it with a drop of dish soap makes it far more effective at trapping the flies instead of just attracting them.
How do I get rid of fruit flies in my drain specifically?
Pour boiling water down the drain and scrub the inside of the opening with a toothbrush and dish soap to remove the organic buildup. Repeat every few days until no new flies appear near the sink.
Are fruit flies seasonal?
Fruit flies are most common in warmer months, when produce ripens faster and outdoor populations are highest. They can still appear indoors in winter if fruit sits out too long or eggs arrive on store-bought produce.
What kills fruit flies instantly?
A fine mist of rubbing alcohol from a spray bottle kills fruit flies on contact when sprayed directly on them. It won’t address eggs or larvae, so pair it with source removal and trapping for a lasting fix.
Final Thoughts
When you boil it down, how to get rid of fruit flies for good comes down to consistency rather than one single trick. Remove their food sources, set two or three traps in different spots, and give the process a few days to work.
Once the current infestation clears, the prevention habits above are usually enough to keep your kitchen fly-free long term. For more home and pest-related how-to guides, visit the Get Rid Of homepage or browse our latest how-to guides.
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.

1 thought on “How to Get Rid of Fruit Flies: Causes & Best Tips”