How to Get Rid Of Gnats

Disclosure: This post contains affiliate links. As an Amazon Associate and partner with other programs, we earn a small commission from qualifying purchases at no extra cost to you. This helps keep PestPolicy.com free. Read our full disclosure →

Gnats don’t bite most of the time, but they make up for it by being everywhere at once. One day your kitchen is fine, the next there’s a cloud of them hovering over the sink, the fruit bowl, and your coffee cup. They’re small enough to slip through screens, they breed fast, and by the time you see the adults, the eggs and larvae are already established.

The good news: you don’t need an exterminator for a typical indoor gnat problem. You need to find where they’re breeding, kill the adults, and stop the cycle.

Fastest fix for indoor gnats

Yellow sticky traps catch adult gnats immediately without chemicals. Trappify Indoor Sticky Traps are double-sided, non-toxic, and you can tuck them into plant soil, near sinks, or on windowsills. Adults stick on contact.

Check Price on Amazon →

Note: If you’re dealing with gnats near food prep areas, wash your hands after handling traps and keep chemical sprays away from anything edible.

Why gnats are in your house

Gnats aren’t random. They’re responding to specific signals. Adult gnats live about 7 to 21 days, but they can lay hundreds of eggs in that window, which is how a few turn into dozens overnight.

The most common attractants:

Overripe fruit: That bowl of bananas on the counter is a beacon. Fermentation odors draw fruit flies and fungus gnats from surprising distances.

Dirty drains: Kitchen and bathroom sinks collect organic sludge — food particles, soap scum, hair, skin oils. Drain flies lay eggs in that film.

Houseplants: Overwatered potting soil is perfect for fungus gnats. The top layer stays damp, algae grows, and the larvae feed on decaying matter and root hairs.

Trash and recycling: Even a rinsed-out wine bottle in the recycling bin smells like food to a gnat. Unsealed trash is worse.

Standing water: Pet bowls, drip trays under plants, wet sponges — any moisture that sits still can support breeding.

Once you know which source you’re dealing with, you can pick the right trap instead of wasting time on methods that don’t apply.

DIY traps that actually work

Apple cider vinegar, sugar, and dish soap

This is the classic for a reason. Mix two tablespoons of apple cider vinegar, a tablespoon of sugar, and a few drops of dish soap into a small bowl of water. The vinegar and sugar mimic fermentation — gnats can’t resist it. The soap breaks the surface tension so when they land, they sink and drown.

Set the bowl near the problem area. If the gnats are coming from the sink, put it on the counter right next to it. If they’re around plants, set it on the saucer. Replace the mixture every two days. Don’t use straight vinegar without soap — they’ll land, drink, and fly away.

Stale wine or beer

Same principle as the vinegar trap, but if you’ve got half a bottle of wine that’s turned, use it. The fermentation smell is even stronger. Pour a small amount into a glass, add a drop of dish soap, and leave it out. Cover the top with plastic wrap poked with small holes if you want to keep the smell contained and force them through a narrow entry.

Beer works too, though wine tends to attract more. Dump and refresh every few days.

Rotten fruit jar

If the gnats are clearly fruit flies, overripe bananas are like a dinner bell. Put a few small pieces in a jar, cover the top with plastic wrap, and poke several small holes with a toothpick. The gnats crawl in to get to the fruit and can’t figure out how to escape.

This works fast but it’s gross to look at. Keep the jar out of direct sight and toss it once you’ve caught a noticeable batch — usually within 24 hours.

Citronella candle trap

This one works at night when you can control the lighting. Place a small bowl of water with a few drops of dish soap on the counter. Set a lit candle in the center or right next to it. Turn off all other lights in the room.

Gnats are attracted to the flame. Some burn their wings. Others miss the flame and end up in the soapy water below, where they drown. It’s not as reliable as the vinegar trap, but it works in a pinch. Don’t leave a burning candle unattended, and keep it away from curtains or anything flammable.

Commercial traps and sprays

Sticky traps

For fungus gnats in houseplants, yellow sticky traps are the most effective tool. Adult gnats are drawn to the color yellow. They land on the trap and stick. It won’t kill larvae in the soil, but it breaks the breeding cycle by removing adults before they can lay more eggs.

Tuck the traps into the soil of affected plants and replace them when they’re covered. You can also hang them near windows or sinks where gnats congregate. If you need a supply, these indoor sticky traps are cheap enough to use liberally.

Check Price on Amazon →

Fogging

If you’ve got gnats everywhere — not just one room — a fogger might be necessary. These release a fine pesticide mist that fills a room and settles on surfaces. Most use pyrethrins, which kill adult gnats on contact.

Remove pets, people, and food before fogging. Follow the timer on the can exactly, air out the room afterward, and wipe down counters before you prep food. One fogging usually isn’t enough because it won’t reach larvae in drains or deep soil. Plan a second treatment 7 to 10 days later to catch the next wave of adults as they emerge.

For drain gnats

If the gnats are coming from your sink or shower drain, traps on the counter won’t fix it. You need to kill what’s living in the pipe.

Pour a mixture of half bleach, half water down the drain. Let it sit for 10 minutes without running water. The bleach breaks up the organic sludge where eggs and larvae live. Do this at night so the drain sits undisturbed for hours. Repeat for three nights in a row.

If you don’t like using bleach, boiling water works as a milder alternative — less effective on the sludge but it kills larvae on contact. Pour a full kettle down, slowly.

Mechanical scrubbing helps too. A long drain brush pushed down the pipe dislodges the biofilm better than any liquid. It’s gross, but it’s the most thorough method.

Fix the source: prevention

Killing adults is only half the battle. If you don’t remove the breeding ground, you’ll be setting traps forever.

Manage your fruit: Store ripe fruit in the refrigerator. If it needs to ripen on the counter, check it daily and toss anything that turns. One overripe peach can restart the whole problem.

Clean drains weekly: Even when you don’t see gnats, pour boiling water or a baking soda and vinegar mix down the drains once a week to keep sludge from building up.

Let plant soil dry: Fungus gnats need moist topsoil. Wait until the top inch of soil is dry before watering again. For severe infestations, let the plant dry out a bit more than usual — the plant can handle short-term dryness better than the gnats can.

Seal trash and recycling: Use a lidded trash can and rinse recycling thoroughly. Don’t leave wine bottles or beer cans sitting in an open bin.

Check drip trays: Empty saucers under plants so water doesn’t sit. Same for pet bowls — change the water daily and wipe the bowl.

Repair screens: Gnats slip through tiny tears. Patch holes in window and door screens, especially near kitchen windows.

If you’re also dealing with outdoor swarms, a personal repellent helps. See our guide to the best gnat repellent for options that keep them off your skin.

When to call a professional

If you’ve run traps for two weeks, cleaned every drain, dried out your plants, and you’re still seeing dozens of gnats daily, the breeding source might be hidden. It could be a leaky pipe inside a wall, a cracked sewer line, or a clogged floor drain you forgot about. A pest control company can inspect for hidden moisture and apply professional-grade IGRs that stop larvae from developing into adults.

Bottom line

Gnats are a symptom, not the disease. Find the source — fruit, drains, plants, or trash — set the right trap for the adult stage, and fix the conditions that let them breed. Vinegar and soap bowls handle most kitchen infestations. Sticky traps work for plants. Bleach or boiling water clears drains. Stay consistent for two weeks and the population collapses. Get lazy with the fruit bowl or the watering can, and they’ll be back next month.

Scroll to Top