Gnat Trap Recipe: Vinegar, Yeast, and More

The most effective DIY gnat trap takes about 30 seconds to make: mix three parts apple cider vinegar with one part water in a shallow bowl, then add three or four drops of dish soap. The vinegar smells like fermenting fruit, which gnats 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.

That basic recipe handles most situations, but different types of gnats respond to different approaches. Here’s how to build the right trap and actually solve the problem.

The Apple Cider Vinegar Trap

This is the go-to recipe because it works fast and uses ingredients most people already have. Pour about three-quarters of a cup of apple cider vinegar into a shallow bowl or jar, add a quarter cup of water, and stir in three or four drops of any liquid dish soap. Set it near wherever you’re seeing the most gnats, typically near fruit bowls, trash cans, or kitchen sinks.

Why it works: vinegar is literally fermented fruit juice. Gnats and fruit flies are hardwired to seek out fermentation because it signals decaying organic matter where they can feed and lay eggs. The dish soap is the critical ingredient. Without it, gnats can land on the liquid’s surface and fly away. The soap molecules disrupt the surface tension, so the moment a gnat touches down, it breaks through and sinks to the bottom.

White vinegar works in a pinch, but apple cider vinegar is noticeably more effective because it contains residual fruit sugars that make the scent stronger.

How to Keep Gnats From Escaping

An open bowl works well enough, but you’ll catch more gnats if you add a cover that lets them in and keeps them from finding their way back out. You have a few options.

  • Plastic wrap method: Stretch plastic wrap tightly over the top of a jar or glass, then poke five or six small holes with a fork. The gnats crawl through the holes toward the scent but struggle to locate the exit from inside.
  • Paper funnel method: Roll a piece of paper into a cone with a small opening at the narrow end, about the width of a pencil. Set the funnel point-down into a jar or glass containing your bait. Gnats follow the scent down through the funnel but fly upward along the walls when trying to escape, never finding the hole in the center.
  • Soda bottle trap: Cut the top third off a plastic bottle, flip it upside down, and nest it back into the bottom portion so it forms a built-in funnel. Pour your vinegar mixture into the base. This design traps roughly 98% of gnats that enter.

Of these, the soda bottle and paper funnel designs outperform the plastic wrap approach. Some people find that gnats can navigate back out of simple holes in plastic wrap, especially if the holes are too large.

The Yeast and Sugar Trap

If you don’t have apple cider vinegar on hand, you can create your own fermentation lure. Add one tablespoon of sugar and one teaspoon of active dry yeast to one cup of warm water, then stir. The yeast starts fermenting the sugar almost immediately, producing carbon dioxide and the same kind of decay scent that draws gnats in. Drop a few small pieces of banana or apple into the mixture to boost the attraction.

Pour the mixture into a soda bottle funnel trap for best results. This version can be even more effective than plain vinegar for heavy infestations because the active fermentation keeps producing fresh scent over several days.

Red Wine Trap

Leftover red wine works as a gnat attractant for the same reason vinegar does: it’s a fermented fruit product. Pour an inch or so of wine into a jar, add a couple drops of dish soap, and cover with plastic wrap or a paper funnel. This is a good use for wine that’s already turned or gone flat.

When to Replace Your Traps

A fresh vinegar trap starts losing its pull after one to two days. You’ll notice the catch rate drop off as the scent fades and the liquid gets cloudy with dead gnats. Swap out the mixture every two days for consistent results. The yeast and sugar version lasts a bit longer since the fermentation continues, but check it every couple of days as well. If you see mold forming on the surface, it’s past due for a change.

Place multiple traps in different spots rather than relying on a single one. Gnats tend to cluster near their food source, and you may have more than one breeding site in your home.

Fungus Gnats Need a Different Approach

If your gnat problem is centered around houseplants rather than the kitchen, you’re likely dealing with fungus gnats instead of fruit flies. These are the tiny dark flies that hover around potted plant soil. They aren’t attracted to vinegar traps nearly as well because they feed on fungi and organic matter in damp soil, not fermenting fruit.

To kill fungus gnat larvae in the soil, mix one part standard 3% hydrogen peroxide with four parts water and pour it directly over the soil as you would when watering. The peroxide kills larvae on contact without harming plant roots. You may see some fizzing at the soil surface, which is normal.

The longer-term fix is changing your watering habits. Fungus gnats thrive in consistently moist topsoil because that’s where they lay their eggs. Let the top inch or two of soil dry out completely between waterings. Adding perlite or coarse sand to your potting mix improves drainage and makes the soil less hospitable. If you’re repotting, use only pasteurized potting mix, since cheap or bulk soil sometimes comes pre-loaded with gnat eggs.

Stopping the Source

Traps kill adult gnats, but they won’t solve an infestation on their own if the breeding source is still active. Fruit flies can lay hundreds of eggs on a single piece of overripe fruit, and those eggs hatch within a day or two. While your traps are working, take a few minutes to eliminate what’s feeding the cycle.

Store ripe fruit in the refrigerator. Empty kitchen trash cans daily, especially if they contain food scraps. Clean out sink drains where organic buildup collects (pouring white vinegar down the drain helps). Check for forgotten produce: a single soft potato or onion tucked in the back of a pantry can sustain an entire population. Once you remove the food source and run traps for three to five days, most infestations clear up completely.