This simple apple cider vinegar trap is a homemade way to catch fruit flies, the tiny flies often mistaken for gnats around ripe produce and kitchen scraps. Its fruity smell lures them in, while a little dish soap helps them sink; it is less effective for fungus gnats or drain flies, which need different fixes.
Ingredients
This recipe makes one small trap. Use a clean, narrow glass or jar that you can leave safely near the flies.
- 1/2 cup (120 ml) apple cider vinegar
- 2 to 3 drops liquid dish soap
- 1 small glass, jar, or cup, about 4 to 8 ounces
- 1 small piece of ripe fruit (optional, about 1 teaspoon)
Instructions
- Choose a spot near the activity. Put the empty glass beside the fruit bowl, compost pail, or other place where you see fruit flies. Setting the trap close to the source gives it a better chance of catching flies than placing it across the room. Keep it away from food preparation surfaces and out of reach of children and pets.
- Add the vinegar. Pour 1/2 cup of apple cider vinegar into the glass. Its fermented, fruity scent attracts many adult fruit flies. If you do not have apple cider vinegar, see the variations below; ordinary white vinegar is usually less appealing to them.
- Add a little soap. Put 2 to 3 drops of liquid dish soap into the vinegar. Swirl gently once or twice to distribute it without making a thick layer of bubbles. The soap reduces the liquid’s surface tension, making it harder for a fly that lands on the surface to escape.
- Add fruit if needed. If the vinegar alone does not seem to draw flies, add a small piece of very ripe fruit, around 1 teaspoon in size. Do not add a large portion: excess fruit can make the trap messy and may attract more insects than it catches.
- Leave the trap undisturbed. Keep the glass open and let it sit for 24 hours. Flies may not go in immediately, and you may not see results in the first few minutes. Avoid moving the trap repeatedly; place it where flies already gather and give it time.
- Check and refresh it. Look at the trap once a day. If it has caught flies, or if the mixture looks dirty, replace it. If you see no activity after a day, check whether the insects are actually fruit flies and move the trap closer to their source before making more.
Tips
- Identify the insect before making several traps. Fruit flies are often tan or brown, hover around produce, and may have reddish eyes. Fungus gnats are usually dark and delicate-looking; they tend to flutter around houseplant soil. Drain flies look fuzzy and are usually found near sinks or floor drains. A vinegar trap is primarily for fruit flies, so a correct identification saves time.
- Use just a few drops of soap. A heavy pour can create bubbles that cover the liquid and make the trap harder to inspect. Dish soap is a helper, not the lure. If you accidentally add too much, pour the mixture out and start again with the measured amount.
- Remove competing food sources. A trap cannot solve an ongoing infestation while ripe fruit, sticky drink spills, uncovered compost, or food scraps are available nearby. Put produce in the refrigerator or a covered container, wipe spills, and empty food waste regularly. This makes the trap’s scent more noticeable and limits places where flies can feed and breed.
- Keep the trap away from delicate surfaces. Vinegar can damage or dull some stone finishes, and a knocked-over jar can leave a sticky mess if fruit is added. Set the glass on a washable plate or tray, not directly on marble, limestone, or an unsealed surface.
Serving Suggestions
This is a pest-control mixture, not a food recipe, so do not taste or serve it. For the best placement, set one open trap near—but not inside—the fruit bowl or compost container. A small plate underneath makes it easier to move and helps catch drips. If flies are concentrated in two separate areas, such as a fruit bowl and a recycling bin, use one trap beside each source rather than relying on one trap at the other end of the kitchen.
Keep the glass out of the way of cooking, eating, and food preparation. Do not set it beside an open plate of food or where a child or pet might drink from it. The trap is not a substitute for covering food or cleaning the area. Once you have caught a few flies, deal with the source as well: rinse cans and bottles, wipe the underside of a compost lid, and discard produce that is leaking or overripe.
Variations
Use red wine vinegar. If apple cider vinegar is unavailable, try 1/2 cup of red wine vinegar with 2 to 3 drops of dish soap. Its fermented scent can work as a lure for fruit flies. Results vary, so give it a day and compare it with the apple cider vinegar trap if flies remain active.
Try a paper funnel cover. For a trap that is less open, pour the same vinegar-and-soap mixture into a jar and place a paper funnel in the opening, with the narrow end pointing down but not touching the liquid. Secure the wide rim with tape. The funnel gives flies a route in and makes it harder for them to leave. Replace the paper if it becomes damp or dirty, and make sure the opening is not blocked.
Skip the soap if you prefer a catch-and-release setup. Use vinegar in a glass jar and fit a paper funnel as described above, without dish soap. Check it often and take the jar outside to release captured flies. This approach may catch fewer flies, and it does not prevent new ones from entering the home, so keep cleaning up the source.
For fungus gnats, change the approach. Do not keep adding vinegar to the trap expecting it to solve a plant-soil problem. Let the top layer of potting mix dry between waterings when suitable for the plant, empty standing water from saucers, and use yellow sticky cards to catch adults. For persistent larvae, consider a product containing Bacillus thuringiensis subspecies israelensis (Bti) and follow its label directions for the plant and setting.
Storage and Reheating
There is no reheating step: this is a disposable trap, not a dish. For best results, leave the prepared mixture out for up to 24 to 48 hours, then inspect it. Replace it sooner if it catches several flies, collects dust or food debris, smells unpleasant, or gets knocked or spilled. In a warm kitchen or near a compost pail, checking and refreshing it daily is sensible.
Do not store a used, uncovered trap in the refrigerator or save it for later use. To make a fresh one, wash and dry the glass, then add a new measured batch. Pour the used liquid down a sink only if that is appropriate for your plumbing and local guidance; otherwise, seal it in a disposable container and put it in household trash. Wash your hands after handling it, and keep both the liquid and used trap away from children and animals.
The trap works best as a short-term aid while you remove the breeding source. If the flies stop appearing for a day or two, discard the mixture and continue keeping produce covered and food waste closed. If they return, inspect drains, recycling, houseplants, and hidden spills rather than simply leaving the same old trap out indefinitely.
Frequently Asked Questions
Does vinegar kill all kinds of gnats?
No. Apple cider vinegar is most useful for adult fruit flies, which are attracted to fermented, fruit-like smells. The word “gnat” is used for several small flying insects, including fungus gnats and drain flies. Those pests usually need a source-specific approach: manage moist potting soil for fungus gnats, or clean organic buildup in drains for drain flies.
How long does it take for an apple cider vinegar trap to work?
You may catch a few fruit flies within several hours, but give the trap about 24 hours before judging it. The number caught depends on how many flies are present, how close the trap is to their source, and whether more appealing food is available nearby. If it remains empty, verify the insect type and move the trap beside the activity.
Can I use white vinegar instead of apple cider vinegar?
You can try it, but white vinegar generally has a less fruity smell and may be less attractive to fruit flies. Red wine vinegar is another reasonable alternative. Use the same amount and add 2 to 3 drops of dish soap; if the trap does not catch flies, switch to apple cider vinegar and remove competing food sources.
Should I cover the glass with plastic wrap?
It is optional. An open glass is the simplest version and is easy to make and check. If you use plastic wrap, stretch it securely over the opening and poke several small holes with a toothpick so flies can enter. Keep the holes small enough to limit easy escapes, and replace the cover if it becomes loose or wet.
Why are there still flies after I set the trap?
A trap catches some adults but does not remove eggs or larvae in a breeding source. Check for overripe produce, food residue in a bin, sticky spills, damp potting soil, and drain buildup. If the insects gather around plants or drains rather than fruit, use the method suited to that source instead of making more vinegar traps.
Is this trap safe to use around pets and children?
It uses common household ingredients, but it is not meant to be drunk or played with. Put the glass somewhere stable and inaccessible, and do not leave it where a pet can lap up the mixture or knock it over. For a household where an open container is not safe, use a covered funnel-style trap placed well out of reach and address the pest source directly.