YardSolver app iconYardSolver is now an app —Get it on Google Play· iPhone app coming soon
YardSolver
Know what you need. Buy exactly that.

Guides · Plant problems · Published November 1, 2026

How to Get Rid of Fungus Gnats

Tiny black fungus gnats walking on the surface of a houseplant pot, beside the yellow sticky trap that catches the adults — the visible half of a problem that lives in the mix

Tiny black flies that drift up when you tap a pot, walk across the soil, and gather at windows: fungus gnats, the number-one indoor gardening pest. The flying adults are mostly a nuisance — the real issue is underground, where their larvae feed in constantly wet potting mix and nibble the root hairs of seedlings and young plants. Killing only the flies never works. Breaking the life cycle does, in about three weeks.

Signs it is fungus gnats (not fruit flies)

Step 1 — Dry the surface: starve the nursery

The change that does more than any spray: the top few centimetres of mix left to dry between waterings, and the plant watered from below, so female gnats find no damp nursery for their eggs
Step 1 — A plant standing in water is a gnat hotel.

Female gnats lay eggs in moist surface mix, and larvae need that damp layer. Let the top 2–3 cm of mix dry out between waterings — most houseplants prefer this rhythm anyway — and water established plants from the bottom where the pot allows it, so the surface stays drier while roots drink below. Empty saucers after watering; a plant standing in water is a gnat hotel. This single change does more than any spray.

Step 2 — Trap the adults so they cannot reseed

Yellow sticky traps pushed into the pots at soil level catch the adults before they reseed — every trapped adult is hundreds of eggs unlaid, and the weekly catch shows the population falling
Step 2 — Traps alone don't finish it — they prove it's working.

Push yellow sticky traps into the pots at soil level. They will catch depressing numbers at first — that is the point: every trapped adult is hundreds of eggs unlaid. Traps alone will not finish an infestation (the larvae are untouched), which is why people conclude they 'don't work'; paired with Steps 1 and 3, they are how you watch the population actually fall week by week.

Step 3 — Treat the mix: Bti in the watering can

Treating the mix itself: a Bti mosquito dunk soaking in the watering can, so every watering for three weeks carries the larvicide to the larvae — harmless to plants, pets and people
Step 3 — Three weeks minimum — the life cycle is a month.

The targeted treatment is Bti — Bacillus thuringiensis israelensis, a natural bacterium sold for mosquito control as dunks, bits or granules. Soak the product in your watering water as its label directs, and water the plants with it: gnat larvae eat the Bti and die, while plants, pets, people and other insects are unaffected. Repeat with every watering for at least three weeks to catch each new hatching — the life cycle is roughly a month, so one treatment never covers it. Work out treatment quantities for your can in the Garden Mix Calculator.

Step 4 — Block and quarantine

Blocking the nursery with a centimetre of coarse sand dressed on the pot surface — and quarantining every new plant for a week or two, because most infestations arrive as passengers
Step 4 — Most infestations arrive as passengers on new plants.

A 1 cm top-dressing of coarse sand or fine grit on the mix surface dries fast, deters egg-laying, and makes the dry-down of Step 1 easier to keep. Quarantine new plants for a week or two and tap-test them before they join the collection — most infestations arrive as passengers. For a plant that is truly overrun and declining, repotting into fresh mix (shaking the old mix off the roots, binning it outside) is the honest reset.

Step 5 — Protect the seed trays

Protecting the seed trays: fresh trays kept under vented lids until germination and watered from below, with a sticky trap standing in every tray from day one
Step 5 — Seedlings are the gnats' most vulnerable victims.

Seedlings are the gnats' most vulnerable victims, and seed trays are kept moist by necessity. Cover fresh trays with a vented lid until germination, water from below, let the surface dry slightly between waterings, and keep a sticky trap standing in every tray from day one. If seedlings start falling, read Why Are My Seedlings Dying? — in wet trays the two problems usually arrive together.

Keep going

Indoor growing, sorted: How to Grow Herbs Indoors in Winter · How to Grow Microgreens Indoors. The other common indoor pest gets the full ladder in How to Get Rid of Aphids on Plants.

Questions people ask

Are fungus gnats harmful to people or pets?
No — they do not bite, sting or spread disease to people or pets, and the Bti used against their larvae is a target-specific bacterium considered safe around both. The harm is to plants, and mainly to seedlings and plants already weakened by overwatering.

How long until they are actually gone?
Plan on three to four weeks of the full routine. Adults live about a week and eggs and larvae are already in the mix at several ages, so numbers fall steadily rather than stopping overnight. If the sticky traps are not clearly quieter by week three, somewhere there is a permanently wet pot still breeding them.

Do vinegar traps work on fungus gnats?
Not really — vinegar traps are built for fruit flies, which breed in fermenting fruit and drains. Fungus gnats are only weakly drawn to them. Yellow sticky traps at soil level are the right trap, because they intercept the gnats exactly where they live and lay.

Share this page

Found it useful? Pass it on to a fellow gardener.

Comments & ratings

No comments yet.

Be the first to share your experience.

Comments appear publicly only after approval. No email is asked for, and nothing you write here is shared anywhere else.