Apple cider vinegar is one of the most effective household baits for trapping fruit flies. The fermentation smell mimics ripening fruit, drawing them in reliably. But it only works well against fruit flies, and the trap itself needs to be built correctly to actually kill them rather than just attract a crowd.
Which Flies It Works On
Apple cider vinegar targets fruit flies specifically. These are the tiny, tan-colored flies that hover around your fruit bowl, kitchen sink, and trash can. The vinegar’s fermented apple scent is almost irresistible to them because it signals exactly what they’re looking for: decomposing fruit sugars.
If your flies are darker, slightly larger, or seem to cluster near drains and houseplant soil rather than fruit, you’re likely dealing with a different species. Drain flies are fuzzy, moth-like insects that breed in the organic gunk inside pipes. Fungus gnats look similar to fruit flies but live in damp potting soil. Neither species responds well to vinegar traps because they aren’t attracted to fermented fruit. A common reason people report that “the vinegar trap isn’t working” is that they’ve misidentified the fly. If you’re a plant person with lots of indoor pots, fungus gnats are the more likely culprit.
How To Build a Trap That Actually Works
Pour about half an inch of apple cider vinegar into a jar or cup. Then add two drops of liquid dish soap and give it a gentle swirl. The soap is the critical ingredient most people underestimate. Without it, fruit flies can land on the vinegar’s surface, drink, and fly away. Dish soap breaks the surface tension of the liquid so the flies sink and drown the moment they touch it.
White vinegar or rice vinegar won’t work nearly as well. Apple cider vinegar specifically contains the fermented fruit compounds that attract fruit flies. Some people boost the scent by adding a small piece of overripe banana or a drop of honey, though plain apple cider vinegar with soap is effective on its own.
Covering the Trap
You can leave the cup open if you’ve added dish soap, since the flies will drown on contact. But adding a cover increases the trap’s effectiveness by preventing flies from escaping once they’ve entered. There are two popular approaches:
- Plastic wrap with pinholes. Stretch plastic wrap tightly over the jar and secure it with a rubber band. Poke a few small holes with a toothpick. Flies crawl in through the holes but can’t navigate back out. Pushing the plastic wrap down slightly into the jar to create a funnel shape makes this even more effective.
- Paper funnel. Roll a piece of paper into a cone with a small opening at the narrow end, roughly an eighth of an inch in diameter. Tape the seam so it holds its shape, then set the funnel into the jar with the narrow end pointing down, a few inches above the vinegar. Flies walk down the funnel and get trapped inside the jar. If the opening is too wide, they’ll find their way back out.
Both methods work. The paper funnel tends to catch flies faster because the opening is easier for them to find, but the plastic wrap version is simpler to set up and less likely to tip over.
Where To Place Traps
Set traps near the areas where you see the most fly activity. The kitchen counter near your fruit bowl, next to the sink, beside the trash can, and near any compost bin are the highest-traffic zones. Using two or three small traps spread across different spots works better than one large trap in a single location. Fruit flies don’t travel far from their food source, so a trap on the opposite side of the kitchen from the problem area won’t catch much.
Why Traps Alone Won’t Solve the Problem
Trapping adult flies is satisfying, but it’s only half the job. A single female fruit fly lays hundreds of eggs, and those eggs hatch in about 24 hours. At typical room temperature (around 72°F), a fruit fly goes from egg to flying adult in roughly 12 days. At warmer temperatures, that shrinks to 9 or 10 days. This means a new generation of flies is emerging on a cycle that’s faster than most people expect, and traps can only catch adults.
To actually end an infestation, you need to eliminate the breeding sites where eggs and larvae are developing. That means addressing the source directly.
Eliminating Breeding Sites
Fruit flies breed in any moist organic material. The most common spots are overripe fruit left on the counter, kitchen drains, garbage cans, compost bins, and recycling bins with residue from bottles or cans. Even a forgotten banana peel at the bottom of the trash can sustain a population.
Start by storing all ripe produce in the refrigerator. Wipe down counters to remove juice or residue. Take out the trash and clean the inside of the bin. Rinse any recyclable bottles or cans before they sit in the bin.
Kitchen drains are a breeding ground people often overlook. A layer of organic buildup inside the pipe gives fruit flies everything they need. Use a stiff brush or pipe cleaner to physically scrub the inside of the drain, then flush it with hot water. Plugging your sink drains at night prevents flies from moving in and out of the pipes while you sleep. Some people pour a small amount of vinegar or a drain cleaner down the pipe, though the mechanical scrubbing matters more than the chemical.
If you have a compost bin indoors, keep it sealed with a tight-fitting lid or move it outside during an active infestation. Even a small gap is enough for fruit flies to access the material inside.
How Long To Keep Traps Running
Because the egg-to-adult cycle takes about 12 days at room temperature, you should keep traps active for at least two full weeks after you’ve cleaned up all breeding sources. This ensures you catch the adults that emerge from eggs that were already laid before you started cleaning. Replace the vinegar every few days, since it loses its scent as it fills with dead flies and the surface gets cloudy.
If you’re still catching significant numbers of flies after two weeks, there’s likely a breeding source you haven’t found. Check less obvious spots: the drip tray under the fridge, a forgotten potato in the back of a pantry, or a damp mop head stored in a closet. Fruit flies need very little organic material to sustain a colony, and the source is almost always something small and hidden.