How do I get rid of fungus gnats?
Get rid of fungus gnats by drying out the top inch of potting mix, where their larvae live. Water less often and from below, catch adults on yellow sticky cards, and drench pots with a Bti product (sold as mosquito bits or dunks) to kill the larvae. Keep it up for three to four weeks to break the cycle.
On this page
What fungus gnats are, and whether they hurt plants
Fungus gnats are the tiny, dark, weak-flying insects that hover over houseplants and seed trays and walk across the soil surface. Adults are about 1/8 inch (3 mm) long, with long legs and long antennae. They look a lot like mosquitoes but don't bite.
The adults are only a nuisance. The larvae are the real issue. They are tiny, clear to white worms with shiny black heads, living in the top inch or two (2.5 to 5 cm) of moist potting mix. They feed mostly on fungi and decaying organic matter. When numbers are high, they also chew fine roots and the stems of seedlings, which can stunt young plants. Fungus gnats can also carry the spores of root-rot organisms that cause damping-off in seedlings.
To check for larvae, push a slice of raw potato into the soil surface. After two or three days, lift it and look underneath for the little worms.
Step by step
- Confirm the larvaePress a slice of raw potato into the soil surface and check underneath after two or three days for tiny worms with black heads.
- Dry the top inchWater only when the top inch of mix is dry, and empty saucers after watering.
- Switch to bottom wateringSet pots in a tray of water for 20 to 30 minutes, then let them drain fully.
- Drench with BtiUse water treated with a Bti mosquito product, as the label directs, every time you water for three to four weeks.
- Trap the adultsPlace yellow sticky cards just above the soil to catch egg-laying females and track progress.
- Top-dress with sandAdd half an inch of coarse sand or grit to keep the surface dry and discourage new eggs.
The real cause: wet potting mix
Fungus gnats are a moisture problem first and an insect problem second. They lay eggs in damp, rich mix where fungi grow, and the cycle from egg to adult takes about three to four weeks at room temperature. A pot that never dries at the surface is a nursery.
Common triggers:
- Watering on a schedule instead of when the plant needs it.
- Pots without drainage holes, or saucers left full of water.
- Large pots with small plants, so the mix stays wet for days.
- Peat-heavy or bark-rich mixes and fresh, unfinished compost that stay soggy.
- Low winter light, when plants use much less water.
That last one is why gnats boom in late fall. Plants come indoors, growth slows, and we keep watering as if it were July.
Free: Chapter 1 + the Leaf First-Aid Chart
Diagnose yellow, purple, spotted or curling leaves in 60 seconds, and read the chapter that explains who really feeds your plants.
How to clear an infestation
Work on both stages at the same time: adults and larvae.
| Target | Method | How |
|---|---|---|
| Larvae | Let the surface dry | Wait until the top inch is dry before watering. Water from below by setting the pot in a tray for 20 to 30 minutes, then drain. |
| Larvae | Bti drench | Products with Bacillus thuringiensis subsp. israelensis (sold for mosquitoes) kill gnat larvae. Soak granules or a crumbled dunk in water as the label directs and use that water for a few weeks. |
| Larvae | Beneficial nematodes or predatory mites | Soil-dwelling nematodes (Steinernema feltiae) or the soil mite Stratiolaelaps hunt larvae. Good for greenhouses and big plant collections. |
| Adults | Yellow sticky cards | Lay or stake cards just above the soil. They catch egg-laying females and show you progress. |
| Eggs | Top dressing | Half an inch (1 cm) of coarse sand or fine grit on top keeps the surface dry and makes egg-laying harder. |
Bti is a natural soil bacterium, specific to the larvae of flies such as mosquitoes and gnats, and safe around people and pets when used as labeled. Repeat treatments for at least three weeks, since eggs keep hatching.
You'll know it's working when the sticky cards catch fewer gnats each week and the potato slice comes up clean. If adults are still flying after a month, look for a pot you missed: one soggy pot in a corner can keep reinfesting the whole collection. Check under sinks and around floor drains too, since some small flies there look similar.
Home remedies: what helps and what doesn't
- Hydrogen peroxide drench. Many gardeners water with 1 part ordinary 3% peroxide to 4 parts water. It kills larvae it touches and breaks down into water and oxygen. It is not species-specific, so it also knocks back the helpful microbes in the mix. Use it once, not as a habit, and only 3% drugstore strength.
- Cinnamon. Popular online, but there's no good evidence that a dusting controls larvae.
- Apple cider vinegar traps. A dish of vinegar with a drop of dish soap catches some adults. It doesn't touch the larvae, so it won't solve the problem alone.
- Repotting. For a badly infested plant, replacing the top few inches of mix, or the whole mix, gives a quick reset. Don't reuse the old mix for seedlings.
Avoid harsh insecticide drenches. They are overkill for a nuisance insect and kill the life in the potting mix along with the gnats.
Protecting seedlings this winter
Fungus gnats are most damaging in seed trays, where tender stems and roots are easy to chew and damping-off can follow. When you start seeds, use fresh seed-starting mix, never garden soil, and clean trays. Water from below, let the surface dry slightly between waterings, and run a small fan for air movement. A thin layer of dry sand on the surface does double duty against both gnats and damping-off. If seedlings stretch and flop, it's usually light, not gnats; see why seedlings get leggy.
It's November, so most gardeners are bringing plants in now and planning seeds for late winter. Clear gnats from houseplants before the first seed tray goes on the shelf beside them. Our guide on when to start seeds indoors gives the timing by crop.
If you make your own potting mix, use finished compost, not fresh. Mature compost has done its heating and smells like forest soil. Half-finished material keeps decomposing in the pot and draws gnats. For tips on refreshing old mix, see can you reuse potting soil.
Grow Like a God
In the book: First-Aid Table (stress and care problems) and the seeds chapter
The book covers overwatering, damping-off and seed starting from the soil-life angle, including the seed soaks the author uses for a clean, strong start.
- 5 laws of living soil, explained in plain words
- 15 printable guides, including the Leaf First-Aid Chart
- No chemicals, no digging, no pest sprays
- 90-day Living Soil Double Guarantee
People also ask
Are fungus gnats harmful to people or pets?
No. Adult fungus gnats don't bite, sting or carry human diseases. They are a nuisance indoors. The harm is to plants: large numbers of larvae can chew roots and seedling stems, and they can help spread damping-off organisms in seed trays.
How long does it take to get rid of fungus gnats?
Plan on three to four weeks. That's about one full life cycle at room temperature. Drying the surface and treating larvae stops new adults from forming, but adults already flying and eggs already laid need time to die off or hatch into treated soil.
Why do I have fungus gnats in winter?
In winter, light is low and plants use less water, so potting mix stays wet longer. Plants brought in from outdoors may also carry eggs or larvae. Water less often in winter, check the top inch before watering, and inspect pots before bringing them inside.
Are fungus gnats the same as fruit flies?
No. Fruit flies are tan with red eyes and hang around ripe fruit, drains and compost bins. Fungus gnats are dark, slender and found around potted plants and damp soil. Vinegar traps catch fruit flies well but do little for fungus gnats.