How to Get Rid of Gnats in the House: Plants, Drains and Kitchens
A few tiny dark specks drift up from the plant pot every time you water it. They are too small to swat and too stubborn to ignore. If that sounds familiar, you have gnats, and the cloud usually gets bigger before you decide to do something about it.
This guide explains how to get rid of gnats in your house, starting with the one question that decides everything: where are they breeding? Gnats look alike, but plant gnats and drain gnats need different fixes, and the wrong one wastes a week.
Quick answer
To get rid of gnats, find the breeding spot first. For gnats around houseplants, let the top inch of soil dry out between waterings and put yellow sticky cards in the pots. For gnats around sinks, scrub the drain pipe to remove the film they breed in. Most homes are clear within two to three weeks.
Which gnats do you actually have?
People use the word gnat for several tiny flies. In a house, two cause nearly all the trouble, and a quick look at where they gather tells you which one you have.
- Fungus gnats. Slim, dark, mosquito shaped flies with long legs. They hover over potted plants, crawl across the soil and rest on windows nearby. Their larvae live in damp potting soil.
- Drain gnats, also called drain flies. Fuzzy and moth shaped, with wings held like a little roof. They sit on walls around sinks, showers and floor drains, and they breed in the gunk inside pipes.
- The small flies near your fruit bowl. If the cloud follows overripe produce rather than plants or drains, that is a different insect with its own guide on how to get rid of fruit flies.

How to get rid of gnats in plants
Fungus gnats in plants are the most common reason people search for this. The adults you see are harmless, they do not bite or feed, and they live only 7 to 10 days. The larvae are the real target. They live in the top inch or so of damp soil and feed on fungi and decaying matter, sometimes nibbling roots. Control the larvae and the adults run out.
Let the soil dry out
This is the single most effective step. Water only when the top inch of soil feels dry to the touch. Water from the bottom by filling the saucer and letting the pot drink, then empty the saucer after half an hour. A dry surface gives eggs nowhere to survive. Houseplants such as pothos, ficus and succulents tolerate this well.
Set yellow sticky traps

Push yellow sticky cards into the soil or hang them near the leaves. Adults are drawn to the colour and stick to the card. Traps will not cure the infestation alone, but they catch egg laying females and show you whether the numbers are falling week by week. Replace them every few days while the problem lasts.
Test for larvae with a potato slice
Lay a slice of raw potato face down on the soil. If larvae are present they gather on the underside. Check after three or four days. It is an easy way to confirm what is living in the pot before you act.
Use a biological treatment if you need one
If the soil stays wet for a good reason, such as a plant that needs steady moisture, a biological product containing Bti (Bacillus thuringiensis israelensis) targets the larvae in the soil and is sold as mosquito dunks or soil granules for houseplants. Follow the label. If infestation is severe, repot the plant in fresh dry potting mix and discard the old soil outside.
How to get rid of drain gnats
If the flies are in your bathroom, kitchen or laundry room and gather near the plumbing, your drain is the nursery. A thin organic film clings to the pipe wall just below the opening, and the larvae feed on it. Pouring a kettle down the pipe rinses the surface and leaves the film behind.

- Confirm the drain. Tape a piece of clear plastic over the opening for one night. If tiny flies are stuck to it in the morning, you have found the source.
- Scrub the pipe. Use a long bottle brush to scrub the first several inches of the pipe wall. You are removing the film, not just wetting it.
- Flush with hot water. Hot tap water is safe for plastic pipes. Water just off the boil is fine for metal ones.
- Use an enzyme cleaner for stubborn drains. Apply it at night and leave it to digest the film. Never mix cleaners, and never combine bleach with vinegar.
- Check seldom used drains. A spare bathroom sink, a basement floor drain or a shower no one uses dries out and fills with film. Run water through them weekly.
How to get rid of gnats in the house quickly
Nothing removes a breeding colony in a day, but you can cut the visible cloud fast while the real fix works. Run a handheld vacuum across the plants and walls where the adults rest. Wipe windowsills near the pots. Place sticky cards around every infested plant. These steps clear what you can see and buy time while the soil dries and the drains are scrubbed.
A gnat trap without apple cider vinegar
Vinegar traps are the usual home remedy, but you do not need apple cider vinegar to make one. Fill a small bowl with water, add a few drops of dish soap and a splash of red wine or a little fruit juice, and leave it near the plants. The scent draws adults and the soap sinks them. Change it every two or three days. It is a helper for the main fix, not a replacement for drying the soil.
Gnats in the kitchen, bathroom and outside
Kitchen. Look past the sink. A damp sponge, an overwatered herb pot on the counter and a neglected garbage disposal can all host gnats. Dry and clean each in turn.
Bathroom. Bathroom gnats are almost always drain gnats. Scrub the sink and shower drains, and fix any slow leak under the cabinet.
Outside. Outdoor gnats gather around wet mulch, compost and standing water. Rake mulch thin so it dries, empty saucers and buckets that hold rain and keep compost covered. Fewer gnats outside means fewer wandering indoors through open doors.
Keep gnats from coming back
- Water plants only when the top inch of soil is dry
- Empty saucers and plant trays after watering
- Use pots with drainage holes and well draining potting mix
- Scrub kitchen and bathroom drains with a brush every week or two
- Quarantine new plants for a week and check the soil before bringing them near your others
- Keep compost and kitchen scraps well away from indoor plants
If gnats persist after three weeks of consistent drying and trapping, check for a hidden leak or soaked insulation near pipes. UC Integrated Pest Management notes that watering habits are the key lever for fungus gnats.
Frequently asked questions
How long does it take to get rid of gnats?
Expect two to three weeks. The life cycle runs about three to four weeks at room temperature, so you may still see a few new adults after you fix the cause.
Where do gnats in my house come from?
They arrive from damp soil in new or old potted plants, from film in drains, or from outdoors through doors and windows. Overwatered pots and unused drains are the most common sources.
Do gnats bite?
Fungus gnats do not bite or feed as adults. They are a nuisance rather than a health risk, although heavy larvae numbers can stress plant roots.
Does vinegar kill gnats?
Vinegar attracts adults, and dish soap in the mixture drowns them. It does nothing to larvae in the soil or pipe, so use it to catch adults only.
Will gnats go away on their own?
Not if the soil stays wet or the drain stays dirty. Gnats breed continuously indoors, so removing the damp breeding spot is what ends the problem.
