The simplest DIY fruit fly trap takes about 30 seconds to build: pour a quarter cup of apple cider vinegar into a jar, add a few drops of dish soap, and set it near your fruit bowl. The vinegar mimics the smell of fermenting fruit, which fruit flies can’t resist, and the dish soap breaks the surface tension of the liquid so they sink and drown instead of landing safely on top. Most people see flies collecting in the trap within a few hours.
That basic setup works well on its own, but adding a physical barrier on top of the jar makes it even more effective by preventing flies from escaping once they’ve entered. There are a few ways to do that, plus some important steps beyond trapping that actually solve the problem long-term.
Three Trap Designs That Work
All three use the same bait: about a quarter cup of apple cider vinegar with a few drops of liquid dish soap in a jar or glass. The difference is how you seal the top.
- Paper cone funnel. Roll a piece of paper into a cone shape and insert it into the mouth of the jar, narrow end pointing down. Flies follow the scent through the small opening at the bottom of the cone but struggle to find their way back out. This is the most effective design for most people because the funnel naturally guides flies inward.
- Plastic wrap cover. Stretch plastic wrap tightly over the top of the jar and secure it with a rubber band. Poke a few small holes with a fork or toothpick. Flies crawl through the holes and get trapped inside. The holes need to be small enough that flies don’t easily exit, so a toothpick works better than a fork for making precise punctures.
- Jar with holes in the lid. If your jar has a metal lid, use a hammer and nail to punch a few tiny holes through it. Same idea as the plastic wrap method, but sturdier and reusable. This version is good if you want to leave a trap out for several days without it looking messy.
Place traps wherever you see the most fly activity. The kitchen counter near fruit, the sink area, and near trash cans are the most common hot spots. You can set out two or three traps at once in different locations to cover more ground.
Why Apple Cider Vinegar Works Best
Fruit flies are specifically attracted to the acetic acid and fermentation byproducts in apple cider vinegar. It smells, to them, like overripe fruit breaking down. White vinegar doesn’t work nearly as well because it lacks those fermentation compounds.
Red wine and beer also make effective baits for the same reason. If you have a glass of wine that’s gone bad or the last inch of a beer bottle, either one will attract fruit flies. Some people use a piece of overripe banana or other soft fruit as bait inside the funnel trap, which works but gets messier and can actually become a breeding site if you leave it too long. Liquid baits are cleaner and easier to refresh. Swap out the vinegar every two to three days for best results, since the scent fades as the acetic acid evaporates.
Make Sure You’re Dealing With Fruit Flies
Not every tiny flying bug in your kitchen is a fruit fly, and the wrong identification means your trap won’t work. Fruit flies are about an eighth of an inch long with brownish-black bodies and striped abdomens. The most common species has distinctly red eyes. They hover around fruit, trash cans, and sink drains.
Fungus gnats look similar but are darker black and fly erratically, almost bouncing around in the air. They breed in moist potting soil, so if your tiny flies are clustering around houseplants rather than the kitchen, you likely have fungus gnats. Vinegar traps won’t attract them effectively. Letting the top inch of soil dry out between waterings is the better fix.
Drain flies are another common lookalike. They’re fuzzy with oversized wings relative to their body, and they tend to sit on walls near bathrooms or laundry rooms. They breed inside the organic buildup coating your drain pipes, not around food.
Traps Alone Won’t Solve the Problem
Here’s the part most people miss: a trap catches adult flies, but if you don’t eliminate their breeding sites, new adults keep emerging faster than the trap can catch them. A single female fruit fly lays hundreds of eggs, and at typical room temperature (around 72°F), those eggs go from laid to flying adult in just 11 to 12 days. At warmer temperatures, closer to 77°F, that cycle shortens to 9 or 10 days. That means a small population can explode within two weeks if conditions are right.
The breeding sites aren’t always obvious. Fruit flies lay eggs on the surface of fermenting organic material, which includes the expected places like overripe fruit and the bottom of your trash can, but also less obvious ones like the sludge inside your kitchen drain, your garbage disposal, and compost bins.
How to Clean Up Breeding Sites
Start with the obvious: get rid of any overripe or damaged fruit sitting out on the counter. Store ripe fruit in the refrigerator during an active infestation. Take out kitchen trash daily and wipe down the inside of the trash can, especially the bottom where juices collect.
Drains are the breeding site people most often overlook. Fruit flies lay eggs in the thin film of organic gunk that coats the inside of pipes. To clean a kitchen drain, pour half a cup of baking soda followed by half a cup of salt into the drain, then add a cup of white vinegar. Let it sit overnight, then flush with boiling water in the morning. You can also use a pipe brush to physically scrub inside the drain opening. For a quicker approach, just pour a pot of boiling water down the drain daily for a few days.
If you keep a countertop compost bin, make sure it seals tightly. During warmer months, consider storing compost scraps in the freezer instead, which kills any eggs and eliminates the fermentation smell entirely. Plug sink drains at night to block flies from accessing the pipe interior while you sleep.
How Long Until They’re Gone
With traps set and breeding sites cleaned, you should notice a significant drop in the fruit fly population within three to five days. Complete elimination typically takes one to two weeks, which accounts for the time needed for any existing eggs and larvae to mature, emerge as adults, and get caught in the traps. If you’re still seeing flies after two weeks, there’s almost certainly a breeding source you haven’t found yet. Check under the refrigerator for forgotten spills, inside recycling bins with residue from bottles or cans, and behind or under appliances where food debris accumulates.
Replacing your trap’s vinegar every couple of days keeps it effective throughout this period. Once the flies are gone, keeping fruit refrigerated during summer months and staying on top of drain cleaning every few weeks will prevent them from coming back.