To get rid of fungus gnats, dry out the top few centimetres of your substrate and kill the larvae living in it with Bti or a hydrogen peroxide drench. The small flies you see drifting around the pot are the symptom, not the problem. They breed in the moist organic top layer, so the real fix is the substrate, not the air. Sticky traps catch adults and tell you whether you are winning, but they never finish the job on their own.
TL;DR
- The adults are harmless and short-lived. The larvae in the top 2 to 5 cm of soil are what you are actually fighting.
- Let the surface layer dry between waterings. That alone starves most of an infestation.
- Kill the larvae directly with Bti (Mosquito Bits or Dunks) or a drench of 1 part 3% hydrogen peroxide to 4 parts water.
- Yellow sticky traps are for monitoring and adult suppression only, never a standalone cure.
- Switch to a chunkier, more inorganic mix and expect a 3 to 4 week treatment window, the length of one full lifecycle.
What fungus gnats are (and what they aren’t)
Fungus gnats are small, dark, mosquito-shaped flies from the family Sciaridae. They are weak fliers, drift in lazy zigzags near the soil, and tend to run across the surface rather than buzz around your fruit bowl. That last detail is the quickest way to tell them apart from fruit flies, which are tan or orange and cluster around ripe produce and drains. If a little cloud lifts off the pot when you water, those are gnats.
The adults do not bite, do not spread to your food, and live only about a week. On their own they are an annoyance. The larvae are the part that matters. They live in the top layer of the soil, feed on decaying organic matter and fungal threads, and in heavy numbers will graze on fine feeder roots and root hairs. Seedlings and fresh cuttings are the most vulnerable, since they have little root system to spare. On an established plant the bigger message is what the gnats are telling you: the surface of your pot is staying wet for too long.
Why fungus gnats are really a substrate problem
Here is the reframe that most gnat guides skip. You do not have a fly problem, you have a wet-substrate problem that happens to produce flies. The eggs and young larvae need constant moisture in the top couple of centimetres to survive. Keep that layer permanently damp and you are running a gnat nursery. Let it dry out regularly and the nursery collapses.
This is why the mix you use matters more than any spray. Fine, peat-heavy and coir-heavy substrates hold a saturated band near the surface for days after watering, which is exactly the condition larvae want. The mechanism is the same one behind root rot: a fine mix holds fine mixes hold a saturated surface band for days while a chunky aroid blend drains within hours and re-aerates as it goes. Larvae never get a stable wet layer to colonise in the chunky mix.
The larvae also feed on the living and decaying organic content of the soil, which ties them to the soil food web that larvae feed in. A dense, organic, constantly moist pot is a buffet. A leaner, sharper-draining pot with a dry surface is not. Fix the substrate and the adults disappear on their own, because there is nowhere left to breed.
Step 1: Dry out the breeding layer
Before you buy anything, change how you water. Let the top 2 to 5 cm of the pot dry out completely between waterings. For most houseplants that means lifting the pot to feel its weight rather than watering on a fixed day, and watering thoroughly only when the surface is genuinely dry to the touch a few centimetres down.
Switching to bottom-watering helps a lot here. Set the pot in a tray of water for twenty minutes or so, let the mix wick moisture up from below, then drain it. The roots drink while the surface stays bone dry, which denies the larvae the damp top layer they depend on. This single change starves out a large share of any infestation within a couple of weeks.
There is a deeper reason chronic wet soil causes trouble: a saturated pot is also an oxygen-starved one, and overwatering is really an oxygen problem before it is anything else. The same habit that suffocates roots is the one that breeds gnats. Drying the surface fixes both at once.
Step 2: Kill the larvae with Bti or peroxide
Drying the soil works slowly. To knock the population down fast you treat the larvae directly, and there are two reliable, plant-safe ways to do it.
The first is Bti, short for Bacillus thuringiensis israelensis. It is a naturally occurring soil bacterium that produces a toxin lethal to fungus gnat and mosquito larvae but harmless to plants, pets, and people. It is sold as Mosquito Bits or Mosquito Dunks. Steep a handful of the granules in water for a few hours, then use that water to soak the soil at your normal watering. You can also scatter the bits across the surface so every watering releases a fresh dose. Repeat with each watering for a few weeks.
The second is a hydrogen peroxide soil drench. A common, safe dilution is 1 part 3% hydrogen peroxide to 4 parts water, poured slowly through the soil until it runs from the drainage hole. It fizzes when it contacts larvae and organic matter and kills the larvae on contact, then breaks down into water and oxygen within minutes. One caution worth understanding: other guides quote ratios like 1:6 or 1:8, but a ratio is meaningless without the starting concentration. The 1 to 4 figure here assumes ordinary 3% peroxide from the pharmacy. Stronger 9% peroxide has to be diluted considerably more or it can burn roots. When in doubt, weaker and repeated beats strong and once.
Both methods reach the layer where the larvae actually live, which is the whole point and the thing a trap on the windowsill can never do.
Step 3: Trap and monitor the adults
Yellow sticky traps belong in every infested pot, but not for the reason most people think. They catch flying adults, mostly egg-laying females, which trims the next generation a little. Their real value is as a gauge. Stick one near the soil, check it every few days, and watch the count. While the larval treatment works, the number of fresh adults caught should fall week over week. When the traps stay clean, you are done.
What they cannot do is end an infestation by themselves. Every adult on the trap is one that already laid its eggs in the soil, and the larvae below keep maturing regardless of how many flies you catch. Treating sticky traps as the cure is the single most common reason people think their gnats are immortal. A cheap supplement is a small cup of apple cider vinegar with a drop of dish soap, which drowns some adults, but again, it is monitoring and suppression, not a fix.
Step 4: Block re-infestation at the substrate
Once the population is down, close the door behind it. The durable fix is to make the pot inhospitable to the next generation.
Start with the mix. Move toward a chunkier, more inorganic blend built on bark, perlite, and pumice, which dries fast at the surface and never holds the saturated band larvae need. If you are diagnosing a plant that keeps producing gnats, the same checklist applies as in the signs your soil mix is wrong guide; chronic gnats are on that list for exactly this reason. A gritty inorganic top-dressing helps too. A 1 to 2 cm layer of coarse sand, fine gravel, or pumice over the soil physically blocks females from reaching the surface to lay, and it dries within hours, so even if they do, the eggs desiccate.
Finally, treat your bag of potting soil as a likely source. Eggs and larvae are frequently present in store-bought mix before you ever open it, and perforated plastic bags sitting in warm garden-center warehouses let adults colonise the contents through the holes. Buy sealed bags, store them dry and closed, and consider mixing your own from dry components if gnats are a recurring problem. A fresh infestation that appears days after a repot almost always rode in on the new soil.
What doesn’t work (and why)
A few popular remedies waste time, and it helps to know why so you do not lean on them.
- Neem oil. It is a short-persisting contact insecticide. On foliage it can knock down a few adults, but it does not reach larvae in the soil reliably and needs constant reapplication. It is not a cure for a soil-based pest.
- Cinnamon, chamomile tea, and potato slices. These target fungus or trap a handful of larvae at best. They do nothing about the wet breeding layer, so the population rebuilds as soon as you stop.
- Sticky traps alone. Covered above. They only catch adults. The larvae in the soil keep maturing no matter how full the trap gets.
- Waiting it out. Without a moisture change the cycle simply repeats. Each generation lays the next, and a single overwatered pot can sustain gnats indefinitely.
Every one of these fails for the same reason: it ignores the substrate. Anything that does not dry the top layer or kill the larvae in it is, at best, a temporary dent.
How long it takes: the fungus gnat lifecycle
Set your expectations to the insect’s clock, not your patience. The full egg-to-adult cycle runs about 3 to 4 weeks at normal room temperature, faster when it is warm. A single female lays up to around 200 eggs before she dies, which is why an unchecked pot escalates so quickly and why a few survivors can restart the whole thing.
The practical consequence is that you treat for at least one full cycle, not for a couple of days. Dry the surface, apply Bti or peroxide with your waterings, and keep sticky traps up as your scoreboard. You will see adult numbers drop within the first week or two, but eggs already in the soil will keep hatching for a while, so hold the routine until the traps come up clean. Stop early and the survivors rebuild. Treat through a whole lifecycle and they do not.
FAQ
What’s the difference between fungus gnats and fruit flies?
Fungus gnats are small, dark, mosquito-like flies that hover around soil and run across the surface. Fruit flies are tan or orange and cluster around ripe fruit and drains. If the flies rise from the pot when you water, they are gnats.
Do fungus gnats actually damage my plants?
The adults do not. The larvae can, in heavy numbers, by feeding on fine feeder roots and root hairs in the top layer of soil. Seedlings and cuttings are most at risk. On established plants the bigger issue is the moisture problem the gnats reveal.
What hydrogen peroxide ratio kills fungus gnat larvae?
A common safe drench is 1 part 3% hydrogen peroxide to 4 parts water, poured through the soil until it drains. The ratio only makes sense with the starting concentration; stronger 9% peroxide must be diluted further. It fizzes on contact and kills larvae directly.
Does letting the soil dry out really kill them?
Mostly, yes. Eggs and young larvae need constant moisture in the top few centimetres. Letting that layer dry between waterings starves the cycle. It will not kill every larva instantly, so pair drying with Bti or a peroxide drench for a fast result.
How do Mosquito Bits or Dunks work on gnats?
They contain Bti, a soil bacterium that produces a toxin lethal to fungus gnat larvae but harmless to plants, pets, and people. Steep the bits in water and use that water to soak the soil, or sprinkle them on the surface so each watering releases more.
How long does it take to get rid of fungus gnats?
Plan for 3 to 4 weeks, the length of one egg-to-adult cycle. Drying the surface and applying Bti or peroxide cuts numbers fast, but new eggs keep hatching for a while. Keep sticky traps up and treating until adult counts reach zero.
Read next
- Monstera soil mix: two recipes that actually work. The chunky, fast-draining blends that deny gnats the wet surface layer in the first place.
- How to water a monstera: the complete guide. Cadence, bottom-watering, and why a saturated pot is an oxygen problem before it is a pest one.
- The perched water table, explained. Why fine mixes hold a saturated band for days and chunky mixes do not.
- Feed the soil, not the plant. The soil food web the larvae feed in, and how mix composition shapes it.