How to Catch Gnats in the House: Traps That Work

The fastest way to catch gnats in your house is with a simple vinegar trap: a small jar of apple cider vinegar with a drop of dish soap. But the best approach depends on what type of gnat you’re dealing with and where they’re breeding, because killing the adults without addressing the source means new ones hatch within days.

Identify Which Gnats You Have

The tiny flies people call “gnats” are usually one of three insects, and each one breeds in a different spot. Getting this right saves you time because the trap that works for one type won’t necessarily solve another.

Fruit flies are brownish-black, about ⅛ inch long, and often have red eyes. They hover around fruit bowls, garbage cans, sink drains, and compost bins. Anywhere food is rotting, fruit flies will find it.

Fungus gnats are black or brown and fly in erratic, bouncing patterns near houseplants. They lay eggs in moist potting soil, and their larvae feed on plant roots. If you see a swarm above a potted plant, these are almost certainly the culprit.

Drain flies have fuzzy, moth-like bodies and oversized wings. They breed inside sink and floor drains where organic buildup gives their larvae something to eat. You’ll typically spot them resting on walls near bathrooms or kitchens.

The Apple Cider Vinegar Trap

This is the go-to DIY method for fruit flies and works reasonably well on other small flies too. The vinegar mimics the smell of fermenting fruit, drawing gnats in. The dish soap breaks the surface tension of the liquid so they sink and drown instead of landing on top and flying away.

Pour about ⅓ cup of apple cider vinegar into a small jar or bowl. Add 2 tablespoons of water and a single drop of liquid dish soap (Dawn or similar). Don’t over-do the soap, one drop is enough. Set the jar wherever you’re seeing the most activity: near the fruit bowl, by the kitchen sink, next to a trash can. You should see dead gnats within hours.

For even better results, cover the jar with plastic wrap and poke a few small holes in it with a toothpick. Gnats crawl through the holes easily but struggle to find their way back out. Replace the mixture every two to three days as it loses its scent.

Other Traps That Work

If you don’t have apple cider vinegar, a splash of red wine in a jar with the same plastic wrap method works just as well for fruit flies. They’re attracted to anything that smells like fermentation. Even a piece of overripe banana in a jar with a paper funnel taped over the opening creates an effective trap.

For fungus gnats specifically, yellow sticky traps are more effective than vinegar. These are small cards coated with adhesive that you stick into the soil of your houseplants or lay near the pot. Fungus gnats are strongly attracted to the yellow color and get stuck on contact. You can find them at any garden center for a few dollars. Place them horizontally at the soil surface for the best catch rate, since fungus gnats tend to hover low.

For drain flies, traps alone won’t do much. The breeding site is inside the drain itself. Pouring a pot of boiling water down the drain daily for a week, or using an enzyme-based drain cleaner that eats through the organic film where larvae live, targets the actual problem.

Cut Off the Source

Traps catch adults, but a single female fungus gnat can kick off a new generation in about 17 days. At room temperature, eggs hatch in roughly 3 days, larvae develop over 10 days, and adults emerge about 4 days after that. If you’re only trapping adults while eggs keep hatching, you’ll be refilling vinegar jars indefinitely.

For fruit flies, the source is almost always something rotting that you’ve overlooked. Check under the fridge, behind the trash can, and in the bottom of your recycling bin. A single forgotten potato or an unwashed beer bottle is enough to sustain a population. Store ripe fruit in the refrigerator, take out garbage daily, and rinse any containers before they go in the recycling.

For fungus gnats, the fix is your watering habits. Their larvae need consistently moist soil to survive. Let the top inch or two of soil dry out completely between waterings, and they lose their breeding ground. You can also add a layer of coarse sand or decorative pebbles over the soil surface to block females from laying eggs. If an infestation is severe, bottom-watering your plants (setting the pot in a tray of water and letting it soak up from below) keeps the top layer dry where the eggs would be.

How Long Until They’re Gone

With traps catching adults and the breeding source eliminated, most indoor gnat problems clear up within two to three weeks. That timeline lines up with the lifecycle: you’re waiting for the last generation of eggs and larvae already in the soil or drain to mature into adults, get caught, and die off without producing more offspring.

If you’re still seeing gnats after three weeks, you’ve likely missed a breeding source. Recheck drains, potted plants, and hidden spots where organic matter could be decomposing. Sometimes a slow drain in a guest bathroom or a bag of onions in a pantry corner is the overlooked culprit. Placing vinegar traps in different rooms can help you zero in on the hotspot based on which trap catches the most.