How to Get Rid of Fruit Flies: 7 Mistakes and Myths
Traps catch the flies you can see, but the problem lives where they lay eggs, so that is where the fix has to start.
To get rid of fruit flies, find and remove the place they are breeding, then trap the adults that are left. Breeding spots are usually overripe produce, a drain or garbage disposal, a trash or recycling bin, or anything sticky and fermenting. Clean the source, keep it dry, and set a simple trap. Most kitchen infestations clear up within a week or two once the source is gone.
Most people do it the other way around: they set a trap, catch dozens of flies, and wonder why more show up every morning. Here are the mistakes and myths that keep fruit flies around, starting with the costliest one.
Mistake 1: Trapping the adults and ignoring the eggs
This is the mistake that costs the most time. A trap only catches adult flies. Meanwhile, eggs and larvae keep developing in whatever wet, fermenting material the flies found. In warm conditions, fruit flies can go from egg to adult in about a week, so a new wave keeps replacing the flies you catch.
The fix: Treat the trap as cleanup, not the cure. Spend your first effort hunting for the breeding site. Look for:
- Ripe or damaged fruit and vegetables, including potatoes and onions in a pantry or under the sink
- The kitchen sink drain and garbage disposal
- Trash cans, recycling bins and unrinsed bottles or cans
- Damp mops, sponges and dish rags
- Spilled juice, soda, wine or syrup under appliances or in the fridge drip pan
- Compost containers and pet food bowls
Once you find it, throw it out or scrub it clean, and keep the area dry.
Where do fruit flies come from?
Fruit flies come in on produce or fly in from outside, then breed in moist, fermenting food or residue inside your home. They do not appear out of nowhere.
Eggs or larvae can already be on fruit when you bring it home from the store. Adults can also slip in through gaps in window screens and doors, drawn by the smell of ripening food. Once inside, they lay eggs on the surface of anything moist and fermenting. That is why one forgotten banana or a slimy drain can turn a few flies into a swarm.
In a warm, humid climate like Houston's, flies can stay active for much of the year, not just in late summer. Do not assume cooler months mean the problem will fix itself.
Mistake 2: Pouring bleach down the drain
Bleach poured down a drain usually rinses past the problem too quickly. It does little to the film of grime on pipe walls, which is where flies lay eggs.
The fix: Scrub the drain physically. Use a stiff drain brush to clean inside the drain opening and as far down as it will reach. Clean the underside of the garbage disposal's rubber splash guard, which often holds rotting food. Then flush with hot water. Enzyme-based drain cleaners made to break down organic buildup are another option. Never mix bleach with ammonia or other cleaners.
To check whether a drain is the source, tape a clear plastic bag or a piece of plastic wrap loosely over it overnight. If flies are trapped under it in the morning, you have found your breeding site.
Do vinegar traps work?
Yes, vinegar traps catch adult fruit flies well, but they do nothing about eggs or larvae. Use them alongside cleaning, not instead of it.
A simple trap that works for many people:
- Pour a small amount of apple cider vinegar into a jar or cup.
- Add one drop of dish soap. The soap breaks the surface tension so flies sink instead of landing and leaving.
- Cover with plastic wrap, poke a few small holes, or set a paper cone in the opening.
- Place it near where you see the most flies.
- Empty and refresh it every few days.
A little overripe fruit or a splash of wine works as bait too. Store-bought fruit fly traps work on the same principle.
Mistake 3: Leaving produce on the counter
A fruit bowl is the most common starting point. Flies are drawn to fruit as it ripens and starts to ferment, and bruised or cut fruit is even more attractive.
The fix: During an infestation, move ripe produce into the refrigerator or a sealed container. Rinse fruit when you bring it home. Eat or toss anything that is overripe. Check the bottom of bags of potatoes and onions, where one rotten piece can go unnoticed for weeks.
Mistake 4: Forgetting the trash and recycling
A few drops of juice in a bottle or a smear of food on a can is enough for flies to breed in a recycling bin. Outdoor bins near doors can send flies inside every time you open the door.
The fix: Rinse bottles and cans before they go in the bin. Take kitchen trash out daily while you are fighting flies. Wash the inside of the trash can and recycling bin, let them dry, and keep lids closed.
How to get rid of gnats?
Get rid of gnats by identifying which kind you have first. Fungus gnats breed in damp houseplant soil, and drain flies breed in pipes. Each needs a different fix.
People call many small flies "gnats," and treating the wrong one wastes weeks. Here is a quick way to tell them apart:
| Insect | What it looks like | Where it breeds | Main fix |
|---|---|---|---|
| Fruit fly | Tan body, often with red eyes | Ripe produce, spills, drains, trash | Remove the food source, clean, trap |
| Fungus gnat | Dark, thin, long legs, weak flyer | Wet houseplant soil | Let soil dry out between waterings |
| Drain fly | Fuzzy, moth-like wings | Slime inside drains and pipes | Scrub drains, clear buildup |
If the flies hover around your houseplants rather than your kitchen, a vinegar trap will not help much. Let the top layer of soil dry out, water less often, and empty saucers under pots. Yellow sticky cards near the plants catch adult fungus gnats.
Mistake 5: Believing bug spray will solve it
Spraying insecticide in the air kills the flies it hits, but it does not touch the eggs and larvae in the breeding site. It also puts chemicals near food and food-prep surfaces.
The fix: For a normal kitchen problem, cleaning and trapping is the safer and more effective route. If you do use any pesticide, read and follow the label exactly, and keep it away from food, dishes and counters.
Mistake 6: Giving up after a few days
Even after you remove the source, flies that already hatched will keep showing up for a while, and eggs already laid may still mature. That leads people to think nothing is working.
The fix: Keep the trap out and keep the kitchen clean and dry for at least two weeks. Fewer flies each day means it is working. A steady or growing number means there is still a source you have not found.
Mistake 7: Missing the hidden spots
When the obvious places are clean and flies keep coming, the source is usually somewhere out of sight.
The fix: Check under and behind the refrigerator and stove, the fridge drip pan, the dishwasher filter, floor drains, the area under the sink, and cracked grout or caulk around sinks where moisture and food collect. Look in less obvious rooms too, such as a bathroom drain, a laundry room, or a bar area with open bottles.
When should you call pest control?
Call a pest control company if flies keep coming back after two or three weeks of cleaning, or if you cannot find the source at all.
A professional can look for sources that are hard to reach, like a broken pipe under the floor, a drain line problem, or buildup in places you cannot get to. Businesses that handle food, such as restaurants, cafes and grocery stores, often need regular professional pest service for health and safety reasons. If the cause turns out to be a plumbing leak, you may need a plumber as well.
When you contact a company, ask what they will inspect, whether they focus on finding the breeding source, and what they recommend you do afterward to keep flies from returning. Get more than one quote. Prices vary by the size of the home and the problem, so ask each company to explain what is included.
How to keep fruit flies from coming back
- Refrigerate ripe produce, especially in warm months.
- Rinse recyclables and take trash out often.
- Clean the sink drain and disposal splash guard weekly.
- Wipe up spills right away, including inside the fridge.
- Replace or wash sponges and rags often and let them dry.
- Repair torn window and door screens.
Fruit flies are a sanitation problem more than a bug problem. Find where they breed, take it away, and the traps will finish the job.
Next step
If the flies keep coming back after you have cleaned every source, find a local pest control company in the Houston Business Directory.
Visit Houston Business DirectoryBrowse by cityQuestions people ask
How long does it take to get rid of fruit flies?
Once the breeding source is removed and cleaned, most kitchen infestations fade within one to two weeks. Keep a trap out during that time to catch the adults that are left.
Why do I still have fruit flies after cleaning?
There is usually a source you have not found yet, such as a drain, a recycling bin, a fridge drip pan, or a rotting potato or onion. Flies that already hatched can also linger for several days.
Are fruit flies harmful?
They are mostly a nuisance, but they land on garbage and spoiled food and then on fresh food, so they can carry germs. That is a good reason to clean up the source quickly.
Does apple cider vinegar or wine work better as bait?
Both work because flies are drawn to the smell of fermentation. Add a drop of dish soap so the flies sink, and refresh the bait every few days.
Should I call pest control for fruit flies?
Consider it if flies keep returning after two or three weeks of thorough cleaning, or if you run a food business. A pro can find hidden sources like plumbing problems.
Sources: Texas A&M AgriLife Extension; U.S. Environmental Protection Agency.