How to Get Rid of Fungus Gnats in Houseplants (2026 Guide)
Updated 2026 · kill them fast, then stop them for good
Those tiny black flies drifting up from your soil are fungus gnats — annoying but harmless to you, and almost always a symptom of one thing: soil that stays too wet. The adults are just the visible part; the real problem is the larvae living in the top inch of damp soil. Here's how to break the cycle for good.
Why you have them
Fungus gnats lay eggs in consistently moist potting mix, and the larvae feed on fungus and organic matter in that wet top layer. Overwatering — or soil that never gets a chance to dry out — is the root cause almost every time. Fix the moisture and you fix the gnats.
Step 1: Let the top of the soil dry out
This is the most important step. Larvae can't survive in dry soil. Let the top 1–2 inches dry completely between waterings, and water from the bottom for a while so the surface stays dry. Do only this and a light infestation often collapses on its own within a couple of weeks.
Step 2: Trap the adults with yellow sticky cards
Lay or stake yellow sticky traps at the soil surface. They catch the adult gnats before they can lay more eggs, breaking the reproduction cycle and telling you whether numbers are dropping. Cheap, non-toxic, and genuinely effective.
Step 3: Kill the larvae in the soil
- Hydrogen peroxide drench: mix one part 3% hydrogen peroxide with four parts water and water the plant with it. It fizzes, kills larvae on contact, then breaks down into water and oxygen — safe for roots.
- BTI (Bacillus thuringiensis israelensis): a natural bacteria sold as mosquito bits or dunks. Steep in your watering can or sprinkle on the soil; it targets gnat larvae specifically and is safe for plants and pets.
- A layer of sand or gravel: topping the soil with about half an inch of coarse sand makes it hard for adults to lay eggs and for larvae to surface.
Step 4: Stop them from coming back
Once they're gone, prevention is all about moisture: water only when the plant actually needs it, use pots with drainage, empty the saucer, and don't let soil sit soggy. Fresh, well-draining potting mix (some people bake or freeze old mix before reuse) also helps, since bags of soil can arrive already carrying eggs.
The real fix: stop overwatering
Every method above is really just buying time until the soil dries. The permanent fix is watering on the plant's actual schedule instead of a habit. Plant Parenthood builds a personalized watering schedule for each plant and reminds you only when it's genuinely due — adjusting for the plant type and your local weather — so soil never stays wet long enough for gnats to breed in the first place.
Get smart watering reminders — free →FAQ
How long does it take to get rid of fungus gnats? With sticky traps plus letting the soil dry (and a peroxide or BTI treatment), most infestations clear in 2–4 weeks — the length of the gnat's life cycle.
Are fungus gnats harmful to my plants? Adults are harmless; heavy larvae populations can nibble fine roots and stress seedlings, but healthy established plants usually shrug them off. They're mostly a nuisance.
Do fungus gnats go away on their own? Only if the conditions change. As long as the soil stays wet they'll keep breeding — dry it out and they disappear.
Will letting soil dry hurt my plant? No — most houseplants prefer drying out partway between waterings anyway, so it helps the plant while starving the gnats.