How to Get Rid of Gnats in House Fast (Kitchen, Plants & Drains) — 2026

how to get rid of gnats in house

Tiny flies hovering around your fruit bowl, your houseplants, or the kitchen sink are almost always gnats — most often fungus gnats or fruit flies. They do not bite, but they are annoying, they multiply fast, and a few can become hundreds in a week. The good news is that learning how to get rid of gnats in house is straightforward once you find where they are breeding. Killing the flying adults is only half the job; the real fix is removing the damp, rotting places where they lay eggs.

This guide shows how to identify the source, trap the adults, treat drains and plants, and keep gnats from coming back. Most infestations clear up within one to two weeks if you attack the breeding site as well as the flies. Once you know how to get rid of gnats in house, the same routine keeps them from coming back.

What Kind of Gnats Are They?

Before you treat anything, figure out which gnat you have. It decides where to look.

Fruit flies are small, tan or brown, with red eyes. They hover around ripe fruit, vegetables, trash, and recycling. They breed in anything fermenting or rotting.

Fungus gnats are small, dark, and mosquito-like with long legs. They hover around houseplants and damp soil. Their larvae live in the top layer of potting soil and feed on fungi and roots.

Drain flies are fuzzy, moth-like, and grey. They hang around sinks, showers, and floor drains. They breed in the slimy buildup inside drains.

Step 1: Remove the Food and Breeding Sites

Gnats need something damp and rotting to breed in. Start by removing it. That is why the first step in how to get rid of gnats in house is always to remove what they breed in.

In the kitchen, throw out overripe fruit and vegetables, take out the trash, and clean the recycling bin. Wipe down counters and clean under the sink, where leaks and spills create damp spots. Do not leave dirty dishes in the sink overnight, and empty the compost bin daily.

For houseplants, remove dead leaves from the soil surface and throw them away. Let the top inch or two of soil dry out between waterings, because fungus gnat larvae need damp soil to survive. If a plant is badly infested, consider repotting it in fresh, dry soil.

Step 2: Trap the Flying Adults

Traps reduce the flying population while you fix the source, and they also tell you whether the problem is getting better. The simplest trap works very well.

Apple cider vinegar trap: Pour apple cider vinegar into a small jar or bowl, add a few drops of dish soap, and cover the top with plastic wrap. Poke several small holes in the wrap. The gnats are attracted to the vinegar, crawl through the holes, and the dish soap breaks the surface tension so they sink and drown. Replace the trap every few days.

Place traps near the problem area — on the kitchen counter, next to the plants, or beside the sink. One trap per room is usually enough. Yellow sticky traps, sold at garden stores, also work well for fungus gnats around plants. Trapping adults is only one part of how to get rid of gnats in house — the source still has to go.

Step 3: Treat the Drains

If gnats are coming from a drain, a vinegar trap alone will not fix it. The larvae live in the slimy film inside the pipe, and you need to remove it.

Pour half a cup of baking soda down the drain, followed by one cup of white vinegar. Let it fizz for 15 minutes, then flush with a kettle of boiling water. Repeat daily for three to five days. This cleans the film where drain flies breed.

For stubborn cases, scrub the inside of the drain opening with a long brush to physically remove the buildup. Avoid pouring bleach down the drain as a first step — it can damage pipes and does not remove the slime as well as scrubbing and the baking soda treatment does.

Step 4: Treat the Soil in Houseplants

Fungus gnats are the hardest to eliminate, because the larvae are hidden in the soil. A combination of methods works best.

First, let the soil dry out. Most houseplants tolerate a dry top layer, and fungus gnat larvae die when the top inch of soil dries completely. Water from the bottom by setting the pot in a tray of water for a few minutes, so the surface stays dry. Drying the soil is the gentlest part of how to get rid of gnats in house from plants.

Second, cover the soil surface with a thin layer of sand or fine gravel. It dries fast and makes it hard for adult gnats to lay eggs in the soil.

Third, use sticky yellow traps stuck into the soil to catch adults before they lay eggs. For a heavy infestation, water the plants once with a diluted hydrogen peroxide solution — one part 3% hydrogen peroxide to four parts water — which kills larvae without harming most plants. You can also buy Bacillus thuringiensis israelensis (Bti) products, a natural bacteria that kills gnat larvae and is safe for plants, pets, and people.

Step 5: Seal Entry Points and Stop Them Returning

Gnats get in through open windows and doors, and they ride in on fruit and plants from the store. You cannot seal your house completely, but you can make it much less inviting.

Keep fruit in the fridge or in sealed containers, especially bananas, tomatoes, and stone fruit. Wash new fruit when you bring it home. Check new houseplants for gnats before bringing them inside, and quarantine a new plant for a few days if you are unsure.

Fix dripping taps and leaks under sinks, because damp wood and standing water breed drain flies and fungus gnats alike. Clean garbage disposals regularly by running them with cold water and a handful of ice cubes, and wipe down the rubber splash guard, where food collects. That routine is how to get rid of gnats in house and keep them away.

Mistakes to Avoid

Only killing the adults. Spraying or trapping flying gnats without fixing the breeding site means new gnats will keep appearing. Always find and remove the source.

Overwatering plants. Constantly wet soil is the number one cause of fungus gnats indoors. Most houseplants prefer to dry out a little between waterings.

Leaving fruit out too long. A single overripe banana on the counter can support a fruit fly population. Store fruit properly or eat it before it turns.

FAQ

Do gnats come from the drain or the fruit?

It depends on the type. Fruit flies come from fruit and trash, fungus gnats from plant soil, and drain flies from drains. Watch where they gather to find the source.

How do I keep gnats away for good?

Store fruit sealed, let plant soil dry between waterings, clean drains regularly, and take the trash out daily. A dry, clean kitchen gives gnats nothing to breed in.

Conclusion

Getting rid of gnats in house comes down to three steps: find the breeding source, trap the adults, and dry out or clean the place where they lay eggs. Kitchen gnats need fruit and trash removed, plant gnats need drier soil, and drain gnats need the slime scrubbed out of the pipes. Do all three, keep the traps out for two weeks, and the gnats will be gone — and they will stay gone as long as you keep the kitchen dry and the fruit put away. Once you know how to get rid of gnats in house, a weekly check of fruit, drains, and soil is enough to stop the next infestation before it starts.

Related guides: how to get rid of gnats, how to get rid of gnats in the house, how to get rid of fruit flies in kitchen, and how to clean a microwave.