Homemade Gnat Traps to Catch and Kill Gnats Fast

The most effective homemade gnat trap uses apple cider vinegar and a single drop of dish soap. It takes about 30 seconds to set up, costs almost nothing, and starts catching gnats within hours. But the best trap for your situation depends on which type of gnat you’re dealing with, since fruit flies, fungus gnats, and drain flies each respond to different lures.

The Apple Cider Vinegar Trap

This is the go-to for fruit flies, the tiny reddish-brown flies that hover around your kitchen counter, fruit bowl, or trash can. You need a small jar or bowl, one-third cup of apple cider vinegar, two tablespoons of water, and one drop of liquid dish soap like Dawn.

Pour the vinegar into the jar, add the water, then add just one drop of soap. Swirl it gently without creating bubbles. Set the jar wherever you see the most gnats. Fruit flies are drawn to the smell of fermentation, and apple cider vinegar mimics the scent of ripening fruit almost perfectly. The vinegar releases the same chemical signals (acetic acid and ethanol) that rotting fruit does, which tells fruit flies “food is here, lay eggs here.”

The dish soap is what makes this trap lethal rather than just attractive. Normally, tiny insects can land on water and walk across it because of surface tension, the invisible film on a liquid’s surface. Soap breaks that film, so flies that touch the liquid sink and drown instead of skating across. One drop is enough. More than that and the soap smell can overpower the vinegar.

For even better results, stretch plastic wrap tightly over the jar and poke 8 to 10 small holes with a fork. Flies crawl in through the holes but struggle to find their way back out. Replace the mixture every two to three days.

Red Wine and Rotten Fruit Alternatives

If apple cider vinegar isn’t pulling in many flies, two alternatives often work even better. Red wine produces the same fermentation signals as vinegar, sometimes stronger because of its alcohol content. Add three drops of dish soap directly to a half-empty wine bottle and leave it uncorked on the counter overnight near the problem area. Or pour an inch of leftover wine into a shallow bowl with the soap.

For stubborn fruit fly clusters that ignore vinegar entirely, try a piece of overripe banana or peach in a tall glass jar. Stretch plastic wrap over the opening, secure it with a rubber band, and prick six to ten tiny holes with a fork. The holes should be just large enough for a fly to squeeze through but small enough to make escape difficult. The lure from actual rotting fruit is much stronger than any liquid substitute, and the funnel-like geometry of the holes keeps flies trapped inside. Check it daily and toss the contents when it gets full.

Yellow Sticky Traps for Fungus Gnats

If your gnats are coming from houseplant soil rather than your kitchen, you’re likely dealing with fungus gnats. These are slightly different creatures with long legs and long antennae. They breed in moist potting soil, and their larvae feed on decaying organic matter around plant roots. Vinegar traps won’t do much for them.

Fungus gnats are strongly attracted to the color yellow. You can buy yellow sticky traps at any garden center, but making your own is simple. Cut pieces of bright yellow cardstock or use yellow plastic plates, then coat them thinly with petroleum jelly or Vaseline. Stick them into the soil on small stakes or prop them near your plants. Adult gnats land on the yellow surface and get stuck. This won’t eliminate larvae already in the soil, but it catches adults before they can lay more eggs, which helps break the cycle.

Treating the Soil Directly

To kill fungus gnat larvae where they live, mix one part 3% hydrogen peroxide (the standard brown bottle from the drugstore) with four parts water. Pour it over the soil as you would normally water. The mixture will fizz as it attacks the larvae. It won’t harm your plants. Let the soil dry out completely afterward before watering again, since moist soil is exactly what fungus gnats need to reproduce.

For long-term prevention, spread a quarter to half inch of sand or small pebbles on top of the soil in every pot. Female fungus gnats lay their eggs on moist soil surfaces, and each one can produce over 200 eggs. Sand is too heavy for adult gnats to dig through, so they can’t reach the soil to lay eggs, and any larvae already inside can’t emerge as adults. Bottom watering your plants (filling the saucer and letting the soil absorb water from below) also keeps the surface dry and inhospitable.

Clearing Drain Flies

Drain flies are the fuzzy, moth-like flies that appear near bathroom or kitchen sinks. They breed in the slimy organic film that builds up inside drains, garbage disposals, and grease traps. Trapping adults won’t solve the problem because the breeding ground is inside the pipe itself. You need to clean the drain.

For each drain in your house (including showers), sprinkle half a cup of baking soda into and around the drain opening, then pour in one cup of white vinegar. It will bubble aggressively. Let it sit for about 10 minutes, then flush the drain with very hot water. Use the hottest tap water you can get rather than boiling water, which can damage certain pipes. This breaks down the organic film where drain flies lay their eggs. Repeat every few days until the flies are gone, and do it for every drain in the house since you may not know which one is the breeding site.

Identifying Which Gnat You Have

Picking the right trap starts with figuring out what you’re actually dealing with. All three common types are tiny, but they look and behave differently.

  • Fruit flies are less than one-eighth of an inch long with reddish eyes. They hover around fruit, trash cans, and drains where fermenting liquids collect. They can even pass through standard window screens. Vinegar and wine traps work best.
  • Fungus gnats have noticeably long legs and segmented antennae. They hover around potted plants and damp soil. Their presence usually means you’re overwatering. Yellow sticky traps and soil treatments work best.
  • Drain flies look furry or moth-like and rest on walls near sinks and showers. They breed in drain slime. No bait trap will solve the problem because you need to destroy the film inside the pipes.

Preventing Gnats From Coming Back

Traps catch the gnats you have now. Prevention stops the next wave. For fruit flies, the single most effective step is eliminating their food sources. Store ripe fruit in the refrigerator, take out kitchen trash frequently, and clean up any spills of juice, wine, or vinegar. Rinse recycling bins, since residue in bottles and cans is a major attractor.

For fungus gnats, the fix is almost always watering less. Let the top inch of soil in your pots dry out between waterings. Add a layer of sand or gravel on top of every pot. Switch to bottom watering so the surface stays dry. Fungus gnats don’t harm healthy plants, but their presence is a sign that conditions are too wet for optimal root health anyway, so adjusting your watering habits benefits the plants too.

For drain flies, a monthly flush of baking soda and vinegar down each drain keeps organic buildup from accumulating into a breeding ground. Pay attention to drains you rarely use, like a guest bathroom or utility sink, since standing water and undisturbed slime are ideal conditions for egg-laying.