A single female fruit fly lays 50 to 75 eggs per day, which means a couple of stray flies near your fruit bowl can become a full-blown infestation within a week. Getting rid of them takes two things at once: traps to kill the adults and source elimination to stop the next generation from hatching. Here’s how to do both with supplies you already have at home.
Make Sure They’re Actually Fruit Flies
Before you start building traps, take a quick look at what you’re dealing with. Fruit flies are tiny (about an eighth of an inch), brownish-black with striped abdomens, and usually have red or dark eyes. They hover near fruit, garbage cans, and sink drains.
If the bugs are hanging around your houseplants and bouncing erratically in the air, those are fungus gnats, not fruit flies. They breed in moist potting soil, and vinegar traps won’t solve the problem. If you’re seeing hairy, moth-like insects crawling out of your shower or floor drain, those are drain flies. They need a different approach too. The DIY methods below are specifically effective against fruit flies.
Find and Remove the Breeding Source
Traps alone won’t fix a fruit fly problem. Each female can produce 400 to 500 eggs in just 10 days, and at room temperature the entire life cycle from egg to adult takes only about two weeks. If you’re only trapping adults while larvae keep developing somewhere in your kitchen, you’ll never get ahead of the population. The single most important step is finding where they’re breeding and cleaning it out.
The obvious spots are overripe bananas, tomatoes, or other produce sitting on the counter. But fruit flies breed anywhere decaying organic matter collects, and some of those places aren’t obvious at all. Check these common hiding spots:
- Sink drains and garbage disposals. A thin film of food residue builds up along the inside walls of pipes over time. Fruit fly eggs and larvae live in that film, not in the water flowing through the center.
- Garbage cans and recycling bins. Sticky residue from juice, wine, or soda at the bottom of a bin is a prime breeding site, even if you take the trash out regularly.
- Forgotten food buildup. Check behind and under appliances, inside the drip tray of your fridge, and around the seals of your dishwasher. Anywhere food debris collects in a warm, damp spot can sustain a colony.
- Standing water. Pooled water under equipment legs, in mop buckets, or in the base of a drying rack can grow mold that attracts fruit flies.
- Compost bins. Indoor compost containers without tight lids are an open invitation.
Once you find the source, clean it thoroughly. Wipe down surfaces, scrub containers, and remove all decaying material. In cases of heavy infestation, daily deep cleaning for several days in a row may be necessary. Each pass tends to reveal additional small sources you missed the first time.
Clean Your Drains
If fruit flies are hovering around your sink, the drain itself is likely a breeding ground. Pouring bleach down the drain is a common suggestion, but it’s mostly ineffective. Bleach runs straight through the center of the pipe without breaking apart the organic film clinging to the sides, which is exactly where eggs and larvae are embedded. On septic systems, regular bleach use can also disrupt the beneficial bacteria that keep the system functioning.
A better approach is a baking soda and vinegar flush. Pour half a cup of baking soda into the drain, follow it with half a cup of white vinegar, and let the foaming reaction work for about 15 minutes. Then flush with boiling water. The fizzing action helps break down the organic buildup that bleach just slides past. For extra effectiveness, dissolve a handful of salt into the boiling water before pouring. The combination of heat and salt kills larvae and loosens debris from pipe walls.
Repeat this every day or two until you stop seeing flies near the drain. A single treatment rarely gets everything.
Build a Vinegar Trap
The classic DIY fruit fly trap works because fruit flies are powerfully attracted to the smell of fermentation. Apple cider vinegar is the go-to bait since it smells like rotting fruit to them. Here’s the most effective version:
Pour about half an inch of apple cider vinegar into a jar or small bowl. Add two or three drops of dish soap and stir gently. The dish soap breaks the surface tension of the liquid, so when flies land on it, their wings get weighed down and they sink instead of sitting on top and flying away. Without the soap, many flies will escape.
Place the trap near the area with the most fly activity, typically next to your fruit bowl, near the sink, or by the trash can. You can set out multiple traps around the kitchen. Replace the vinegar every two to three days as it loses its potency. You should start seeing dead flies within hours.
The Funnel Variation
If the open-bowl method isn’t catching enough, roll a piece of paper into a cone and place it point-down in a jar with vinegar at the bottom. Flies follow the scent through the wide opening, funnel down through the narrow tip, and then can’t figure out how to fly back up through the small hole. This version catches flies alive, so add dish soap to the vinegar if you want to ensure they drown.
Other Baits That Work
Apple cider vinegar isn’t the only option. Red wine (even the dregs left in a bottle), overripe fruit in a covered container with small holes poked in the lid, and beer all work as bait. The common thread is fermentation. Anything that smells like decomposing fruit or sugar will draw them in. Plain white vinegar is noticeably less effective because it lacks the fruity, fermented scent.
Prevent Them From Coming Back
Once you’ve cleared the infestation, a few habits keep fruit flies from returning. Store ripe fruit in the refrigerator rather than on the counter. Rinse produce when you bring it home, since fruit fly eggs are often already on the skin of store-bought fruit. Take out kitchen trash and recycling frequently, and wipe down the inside of bins when you swap bags.
Clean your sink drain weekly with boiling water to prevent organic film from building up again. Rinse bottles and cans before putting them in the recycling. Wipe up spills immediately, especially juice, wine, or anything sugary. Keep compost containers sealed with tight-fitting lids, and empty them before the contents start to break down.
Because the full life cycle takes 10 to 15 days depending on temperature, keep your traps out for at least two weeks after you stop seeing flies. Larvae that were already developing when you cleaned up can still emerge as adults, and you want the traps waiting for them when they do.