Fruit flies are those tiny, pesky insects that seem to appear out of nowhere, especially in kitchens, bathrooms, and near drains. They multiply fast, and before you know it, you have a full-blown infestation. But don’t worry—this guide will teach you how to get rid of fruit flies for good using simple, proven methods.
We’ll cover:
- What Are Fruit Flies?
- Why Do Fruit Flies Grow in Homes?
- Why Do Fruit Fly Problems Occur at Home?
- How to get rid of fruit flies in the house (general methods)
- How to get rid of fruit flies in the drain (where they often breed)
- How to get rid of fruit flies in the bathroom (a common problem area)
- How to get rid of fruit flies in the kitchen (their favorite spot)
- Prevention tips (so they don’t come back)
Plus, we’ll answer the most frequently asked questions about fruit flies at the end.
Let’s get started!
What Are Fruit Flies?
Fruit flies (scientific name: Drosophila melanogaster) are tiny flying insects, about 1/8 inch long, with tan or light brown bodies and red eyes. They’re commonly found near ripe, rotting, or decaying fruits and vegetables. These pests are attracted to fermenting organic matter and can reproduce at an alarming rate.
How to Identify Fruit Flies
- Size: 3-4 mm long (about the size of a sesame seed)
- Color: Tan or light brown body with red eyes
- Wings: Clear wings that are longer than their body
- Behavior: Hover near fruits, trash cans, drains, and moist areas
- Movement: Fly in short, quick bursts (unlike gnats which fly more slowly)

Common look-alikes:
- Fungus gnats (darker, found near houseplants)
- Drain flies (moth-like, fuzzy wings)
- Phorid flies (humpbacked, run before flying)
Why Do Fruit Flies Grow in Homes?
Fruit flies invade homes because they’re constantly searching for:
- Food sources (ripe/rotting fruits, vegetables, fermented liquids)
- Moisture (damp sinks, drains, sponges)
- Warmth (they thrive in temperatures between 70-80°F)
How Do Fruit Flies Get Inside?
- They sneak in through open windows, doors, or screens.
- They hitchhike on store-bought fruits and vegetables (their eggs are microscopic).
- They breed in trash cans, recycling bins, and dirty dishes.
- They hide in damp mops, sponges, and dishrags.
Why Do Fruit Fly Problems Occur at Home?
Fruit fly infestations happen because of three main reasons:
1. Available Food Sources
- Overripe fruits left on countertops
- Spilled juice, soda, or alcohol
- Food scraps in unsealed trash cans
- Dirty dishes left in the sink
2. Ideal Breeding Conditions
- Damp environments (sink drains, wet sponges, leaky pipes)
- Fermenting organic matter (rotting fruit, compost bins)
- Warm temperatures (they multiply faster in heat)
3. Rapid Reproduction
- A single female lays 500 eggs in her lifetime.
- Eggs hatch in 24-30 hours.
- Larvae become adults in 7-10 days.
- This means a few flies can turn into hundreds in just a week.
Do you want to know How to Clean Oven Glass Door Without Scratching?
How to Get Rid of Fruit Flies in the House
Fruit flies don’t just appear—they come from somewhere. They sneak in through open windows, doors, or even on fruits and vegetables you bring home. Once inside, they lay eggs, and before you know it, you have dozens buzzing around.
Here’s how to eliminate them from your entire house:
1. Find and Remove Their Breeding Spots
Fruit flies love damp, decaying organic matter. Check these places first:
- Overripe fruits (bananas, apples, tomatoes)
- Spills and crumbs (especially sugary ones)
- Trash cans (especially if food waste sits for days)
- Damp mops, sponges, or rags
- Houseplants with wet soil
What to do:
- Throw away overripe fruits or store them in the fridge.
- Clean up spills immediately.
- Take out the trash regularly and use a bin with a tight lid.
2. Set Up DIY Fruit Fly Traps
Traps are an easy way to catch and kill adult fruit flies. Here are three effective ones:
Apple Cider Vinegar Trap (Most Effective)
- Fill a small bowl or cup with apple cider vinegar (they love the smell).
- Add a few drops of dish soap (breaks the surface tension so they drown).
- Cover with plastic wrap and poke small holes (they’ll fly in but can’t escape).
- Leave it overnight—you’ll find dead flies in the morning.
Wine or Beer Trap
- Leave a little red wine or beer in a glass.
- The flies will be attracted to the smell, fly in, and drown.
Paper Funnel Trap
- Put a piece of ripe fruit in a jar.
- Roll a piece of paper into a funnel and place it in the jar (small hole at the bottom).
- Flies will go in but won’t find their way out.
3. Use a Vacuum to Catch Flying Flies
If you see a swarm of fruit flies, use a handheld vacuum to suck them up quickly. Empty the vacuum outside immediately so they don’t escape.
4. Keep Your Home Dry
Fruit flies thrive in damp places. Fix leaky pipes, wipe down wet counters, and avoid leaving standing water in sinks.

How to Get Rid of Fruit Flies in the Drain
Drains are a major breeding ground for fruit flies. The slimy buildup inside pipes is the perfect place for them to lay eggs. Here’s how to clean and kill them:
1. Pour Boiling Water Down the Drain
- Boil a kettle of water.
- Slowly pour it down the drain to kill eggs and larvae.
- Do this daily for a week to break their breeding cycle.
2. Baking Soda & Vinegar Drain Cleaner
- Pour ½ cup of baking soda down the drain.
- Follow with ½ cup of white vinegar—it will foam up.
- Let it sit for 10 minutes, then flush with hot water.
- This removes the slimy film where flies breed.
3. Use Bleach for Stubborn Infestations
- Mix 1 cup of bleach with 1 gallon of water.
- Pour it down the drain and let it sit for 30 minutes.
- Rinse with hot water.
- Warning: Don’t mix bleach with vinegar or ammonia—it creates toxic fumes.
4. Scrub the Drain with a Brush
- Use a small drain brush or an old toothbrush to scrub inside the drain.
- This removes the sticky residue that attracts flies.
5. Install Drain Covers
- Use fine mesh drain covers to prevent flies from entering.
How to Get Rid of Fruit Flies in the Bathroom
Bathrooms provide moisture and organic matter, making them a hotspot for fruit flies. Here’s how to eliminate them:
1. Clean Shower and Sink Drains
- Follow the same methods as kitchen drains (boiling water, baking soda, vinegar).
2. Remove Wet Towels and Mats
- Hang towels to dry after use.
- Wash bathroom rugs regularly.
3. Check the Toilet Tank
- Fruit flies sometimes breed in toilet tanks.
- Scrub and disinfect the tank every few weeks.
4. Use Essential Oils as a Repellent
- Mix 10 drops of peppermint, eucalyptus, or lemongrass oil with water in a spray bottle.
- Spray around the bathroom to repel flies.
5. Fix Any Leaks
- Repair dripping faucets to reduce moisture.
How to Get Rid of Fruit Flies in the Kitchen
The kitchen is the #1 place for fruit flies because of food scraps and moisture. Here’s how to keep them away:
1. Store Fruits and Vegetables Properly
- Keep ripe fruits in the fridge or in sealed containers.
- Wash fruits as soon as you bring them home (eggs may be on the skin).
2. Clean Countertops Daily
- Wipe down surfaces to remove crumbs and spills.
- Don’t leave dirty dishes in the sink overnight.
3. Take Out the Trash Frequently
- Use a trash can with a tight lid.
- Rinse recyclables (soda cans, juice bottles) before tossing them.
4. Use a Red Wine Trap
- Leave a small amount of red wine in a glass—flies will drown in it.
5. Keep the Sink Dry
- Wipe the sink after use to prevent standing water.
How to Prevent Fruit Flies from Coming Back
Getting rid of fruit flies is one thing—keeping them away is another. Follow these long-term prevention tips:
✅ Seal cracks and gaps around windows and doors.
✅ Use window screens to block entry.
✅ Inspect groceries before bringing them inside.
✅ Clean pet bowls daily—flies love pet food too.
✅ Store compost in a sealed bin (if you compost indoors).
FAQs: How to Get Rid of Fruit Flies
1. Why do I suddenly have fruit flies?
They usually come in on fruits, vegetables, or through open windows. Once inside, they breed quickly near food and moisture.
2. How long do fruit flies live?
Adult fruit flies live 8-15 days, but they reproduce fast—females lay 500 eggs in their lifetime!
3. Does vinegar really kill fruit flies?
Yes! Apple cider vinegar attracts them, and dish soap makes them sink and drown.
4. Can fruit flies make you sick?
They can carry bacteria from rotting food, so it’s best to eliminate them.
5. Where do fruit flies lay eggs?
In moist, decaying matter—drains, trash cans, overripe fruit, and even mops.
6. Will bleach kill fruit flies in drains?
Yes, but use it carefully—don’t mix it with other cleaners.
7. What smell repels fruit flies?
Peppermint, eucalyptus, and lemongrass oils work well.
8. How do I stop fruit flies permanently?
Keep your home clean, store food properly, and fix moisture issues.
9. Are fruit flies and gnats the same?
No—fruit flies are tan and love fruit; gnats are darker and often hover around plants.
10. Do fruit flies bite?
No, they don’t bite humans.
Final Thoughts
Now you know how to get rid of fruit flies in every part of your home. The key is eliminating their breeding spots, setting traps, and preventing their return.
Try these methods, and soon your home will be fruit fly-free!
Got more questions? Drop them in the comments—we’ll help you out!