Does Vinegar Kill Gnats or Just Attract Them?

Vinegar doesn’t kill gnats on contact, but it’s one of the most effective ways to trap and drown them. Apple cider vinegar mimics the smell of fermenting fruit, which gnats are hardwired to seek out. Combined with a drop of dish soap, it becomes a simple drowning trap that can noticeably reduce a gnat population within three to five days.

Why Vinegar Attracts Gnats

Apple cider vinegar contains acetic acid and ethanol, two compounds that fermenting fruit produces naturally. Fruit flies and many other small flying insects are programmed to locate fermenting organic matter for feeding and egg-laying, so a dish of vinegar registers as a food source. Raw, unfiltered apple cider vinegar works far better than the clear, filtered kind because it retains more of those organic fermentation compounds.

White vinegar also works. The acetic acid mimics the smell of overripe fruit, though apple cider vinegar is slightly more effective because of its sweeter scent profile. Red wine is another strong option for the same reason: gnats can’t resist the aroma of fermentation.

How the Trap Actually Works

Vinegar alone will attract gnats, but many of them will land on the surface, feed, and fly away. The critical ingredient is dish soap. A few drops break the surface tension of the liquid so that when a gnat lands, it sinks and drowns instead of sitting on top. Without the soap, you have bait but not a trap.

The simplest version: fill a small jar or bowl with about a quarter cup of apple cider vinegar and add three drops of liquid dish soap. Set it near the problem area, whether that’s a fruit bowl, a sink, or a houseplant. You should see catches within 24 hours.

Which Gnats It Works On

The word “gnat” covers several different insects, and vinegar traps don’t work equally well on all of them.

  • Fruit flies are the primary target. They’re the tiny tan flies hovering around your kitchen, and they respond strongly to vinegar. Expect a noticeable population drop in three to five days of consistent trapping.
  • Fungus gnats are the dark-bodied flies that hover around houseplant soil. They’re drawn to moist organic matter in potting mix, not fermenting fruit. Vinegar traps will catch some adults, but they won’t solve the problem alone. Fungus gnat larvae live in the soil, so the full life cycle takes three to four weeks to break. You’ll need to let the soil dry out between waterings or use a biological soil treatment alongside traps.
  • Drain flies breed in the organic film inside pipes. They have little interest in vinegar and require cleaning the drain itself.

If you’re not sure which type you have, set out a vinegar trap and observe. Fruit flies will swarm it. Fungus gnats might investigate but in smaller numbers. Drain flies will mostly ignore it.

Getting the Most Out of Your Trap

Placement matters more than people expect. Set traps directly next to the source of the problem: the fruit bowl, the compost bin, the potted plant, the drain. A trap across the room catches far fewer gnats than one six inches from their breeding site. Using multiple small traps in different locations works better than one large one.

Refresh the vinegar every two to three days. As the liquid fills with dead insects and the fermentation scent fades, it loses its pull. Dump it, rinse the container, and refill with fresh vinegar and soap. Consistency is what breaks the cycle. A single trap set once and forgotten won’t eliminate an infestation.

Why Traps Alone May Not Be Enough

A vinegar trap kills adult gnats, but it does nothing about eggs or larvae. If gnats are breeding in your kitchen, there’s a source somewhere: an overripe banana, a forgotten potato, a wet sponge, organic debris in a drain, or waterlogged plant soil. Every female fruit fly can lay hundreds of eggs, so as long as that source exists, new adults will keep emerging faster than your trap can catch them.

The trap buys you time and reduces the visible population, but the real fix is finding and removing the breeding source. Check under appliances, inside garbage disposals, and in the bottom of trash cans. For fruit flies, storing produce in the refrigerator during an active infestation cuts off their food and egg-laying sites. For fungus gnats, letting the top inch of soil dry completely between waterings kills larvae that need constant moisture to survive.

Combining source removal with two or three vinegar traps refreshed every few days is the most reliable way to clear a gnat problem. Most fruit fly infestations resolve within a week using this approach. Fungus gnats take longer, closer to three to four weeks, because their soil-dwelling larvae have a longer development cycle.