How to Get Rid of Fungus Gnats for Good (Not Just the Ones You See)
Sticky traps catch the ones flying. The next batch is already in the pot, and that is why they keep coming back.
You swat one. Two more appear. You put out a sticky trap, it fills up, and a week later there are just as many as before.
That is because the flies you can see are the least important part of the problem. The adults live about a week and barely eat. The actual population is in your pots, as larvae, chewing through organic matter in the top inch of soil. Every adult you kill has already laid up to two hundred eggs.
So the job is not killing flies. It is making the soil uninhabitable.
Are you sure they are fungus gnats?
Worth thirty seconds, because the fix is different for each.
- Fungus gnats: tiny, dark, mosquito-shaped, weak drifting flight. Hang around the soil surface and walk on it. Appear when you water.
- Fruit flies: rounder, tan or brown, often red eyes. Hover around fruit, bins and drains, not soil.
- Drain flies: fuzzy, moth-like, sit on bathroom walls. Nothing to do with your plants.
- Whiteflies: white, not dark, and they explode off the leaves in a cloud when you disturb the plant. Those genuinely damage the plant and need a different approach.
If they rise off the soil rather than the leaves, and they cannot fly very well, they are fungus gnats.
The good news
Fungus gnats are mostly harmless. In heavy infestations the larvae will nibble fine root hairs and can set back seedlings and cuttings, which have little root to spare. On an established houseplant they are an annoyance, not a threat.
What they are is a symptom. Fungus gnat larvae need consistently damp organic matter. If you have a lot of them, something in your routine is keeping the top of the soil wet all the time.
Fungus gnats are a watering problem wearing a costume. Fix the soil moisture and the insects leave on their own.
Rule of thumbThe fix, in order of what actually works
- Let the top two inches of soil dry out completely between waterings. Larvae cannot survive in dry soil. This single change ends most infestations within two to three weeks.Do this first
- Water from the bottom for a few weeks. Stand the pot in a tray, let it drink for twenty minutes, tip the rest away. The roots get water, the surface stays dry.Removes the nursery
- Top the soil with half an inch of coarse sand, grit or aquarium gravel. Adults cannot get through to lay, and larvae cannot climb out.Physical barrier
- Yellow sticky traps flat on the soil surface, not just hanging. They catch adults and, more usefully, tell you whether numbers are falling.Monitoring plus cull
- Drench with Bacillus thuringiensis israelensis, sold as mosquito bits or BTi. A bacterium that kills gnat larvae and nothing else, safe around pets and people. Soak the bits in water overnight, strain, water with it, repeat weekly for three weeks.The targeted kill
- Hydrogen peroxide drench, three percent diluted one part to four parts water. Kills larvae on contact and breaks down to water and oxygen. It fizzes. Harmless to roots at that dilution.Fast knockdown
- Repot badly infested plants into fresh mix, washing the old soil off the roots. Reserve this for plants that are struggling.Last resort
Do the first three together and you have solved it without buying anything. Add BTi if the population is large or you have a lot of plants.
Things that do not work
Cinnamon. It is mildly antifungal, which is not the same as killing insect larvae. Popular online, largely useless here.
Killing adults alone. Sprays and traps reduce today's flies and change nothing about next week's, because the eggs are already in the soil.
Apple cider vinegar traps. Great for fruit flies, which are attracted to fermentation. Fungus gnats are not particularly interested.
Treating one plant. Adults fly, badly but far enough. If one pot has them, treat every pot in the room or they simply relocate and come back.
Letting a plant that hates drying out go bone dry. Do not kill a calathea to spite a gnat. For moisture-loving plants, lean on bottom watering and a grit topping instead.
Why they showed up in the first place
Usually one of four things.
New plant. Nursery soil is kept damp and is very often already carrying eggs. This is far and away the most common source, which is why quarantining a new plant for a couple of weeks is worth the trouble.
New bag of compost. Especially one that has been open or stored damp. Peat-based mixes are prime habitat.
Winter. Plants use much less water in low light, but people keep watering on the summer schedule. The soil stays wet for weeks and you have built a gnat farm.
Pots with no drainage, or a full saucer. Same result by a different route.
Keeping them gone
Check the soil before you water, every time. Finger to the second knuckle, or lift the pot and feel the weight. If it is damp, come back in a few days.
Empty saucers after watering. Quarantine new plants away from the others for two weeks. Store compost sealed and dry.
And adjust for the season. The single biggest cause of winter gnat outbreaks is a watering routine that made perfect sense in July. If you would rather not track that yourself, Identium builds a care plan per species and schedules watering to the plant rather than the calendar, which is the habit that prevents this in the first place.
Frequently asked questions
What kills fungus gnats instantly?
A hydrogen peroxide drench, three percent peroxide diluted one part to four parts water, kills larvae on contact and is harmless to roots at that dilution. It only treats what is in the pot right now, so pair it with letting the soil dry out, or the next generation of eggs simply hatches a week later.
Do fungus gnats damage plants?
Rarely on established plants. The larvae feed mostly on decaying organic matter in the soil, and only nibble fine root hairs in heavy infestations. Seedlings and fresh cuttings are the exception, since they have very little root to lose, and there a bad infestation can genuinely stunt or kill them.
How long does it take to get rid of fungus gnats?
Two to four weeks if you let the top two inches of soil dry between waterings, which covers the full life cycle from egg to adult. Adding a BTi drench weekly for three weeks shortens it. Expect to still see some adults in the first fortnight even when the treatment is working.
Where do fungus gnats come from?
Almost always in with a new plant or a bag of compost, since nursery soil is kept damp and often already contains eggs. They then multiply wherever soil stays wet. Winter outbreaks are usually people watering on their summer schedule while the plants are barely growing.
Does cinnamon get rid of fungus gnats?
No. Cinnamon has mild antifungal properties, which is a different thing from killing insect larvae. It is widely recommended online and does not meaningfully reduce a gnat population. Drying the soil surface, a grit topping and BTi are what actually work.
References
- University of Wisconsin-Madison Division of Extension Fungus gnats: life cycle, soil-dwelling larvae and Bacillus thuringiensis israelensis
Every claim with a number attached to it in this article traces back to one of these. Checked September 5, 2026.