Growli

pests diseases

How to get rid of fungus gnats — 4-step kill protocol

Fungus gnats die in 3 weeks if you break the breeding cycle. Stop watering, sticky traps for adults, hydrogen peroxide or BTI for larvae, top-dress to prevent.

Growli editorial team · 13 May 2026 · 7 min read

How to get rid of fungus gnats — 4-step kill protocol

Fungus gnats — sometimes called soil gnats or plant flies (family Sciaridae) — are the #1 houseplant pest in modern centrally-heated homes. They're harmless to humans — they don't bite, they don't damage anything but soggy soil — but a population explosion looks alarming and the larvae do nibble at fine root hairs. They are also a leading indirect cause of the common houseplant diseases hub's #1 entry, root rot, because they signal chronically wet soil. This guide is the 4-step protocol that actually works (plus the 3 things that don't).

Confirm with Growli before treating: Photograph the flies and the soil surface in Growli and the app distinguishes fungus gnats from fruit flies (different fix) before you spend on treatments.


What fungus gnats are

Tiny dark flies, 2-4 mm long, with long legs and slow weak flight. The adults are nuisances but harmless. The damage comes from the larvae — transparent worms 2-5 mm long with black heads, living in the top 1-2 cm of damp soil. They feed mostly on fungus and decaying organic matter, but in large numbers they also chew root hairs.

Distinguish from look-alikes:

If something is biting you, it's not a fungus gnat.

Why fungus gnats explode in houseplants

Fungus gnats thrive in chronically damp soil. The conditions in many indoor plant setups are perfect for them:

One adult lays ~200 eggs in its 7-10 day lifespan. With the full life cycle at 3-4 weeks, a population can 10x within a month.

How to confirm you have fungus gnats

Three quick tests:

  1. Tap the pot. Adults fly up in a small cloud. If you see 5+ adults per plant, it's an infestation.
  2. Yellow sticky stake. Push a sticky stake into the soil. Within 24-48 hours it catches 10+ gnats if there's an active population.
  3. Potato slice test. Lay a 5 mm slice of raw potato on the soil surface. After 4 hours, lift gently — translucent larvae crawl onto the underside if present.

The 4-step kill protocol

Step 1 — Stop watering for 7-10 days

The single most effective action. Larvae die fast when topsoil dries out. Most houseplants tolerate a 10-day dry spell with no lasting damage; succulents and cacti welcome it. Skip this step only for very thirsty plants (ferns, prayer plants) — for those, use bottom watering with a sponge-on-top trick to keep the surface dry.

Step 2 — Yellow sticky traps for adults

Place one yellow sticky stake per affected pot, near the soil surface. Yellow specifically — adults are visually attracted to that wavelength. Replace every 2-3 weeks.

This step alone catches roughly 30-50% of adults before they can lay eggs, but it doesn't kill larvae already in the soil. You need step 3 too.

Step 3 — Kill the larvae

Two options:

Option A: Hydrogen peroxide drench. Mix 1 part 3% hydrogen peroxide (the standard pharmacy strength) with 4 parts water. Water the plant once with this solution at normal watering time. The peroxide fizzes on contact with larvae and kills them, then breaks down to harmless water + oxygen within hours. The plant is unharmed.

Option B: BTI (Bacillus thuringiensis israelensis). A bacterial larvicide that infects only fly larvae. Sold as:

Apply at watering time, repeat every 7-10 days for three weeks to break the life cycle.

Step 4 — Top-dress with sand or diatomaceous earth

Once the active population is suppressed, top the compost with 1 cm of horticultural sand, fine grit, or food-grade diatomaceous earth. Adult gnats can't lay eggs through this barrier. This is the long-term prevention layer.

Treatment comparison

TreatmentTargetsCostWhen to use
Yellow sticky trapsAdults only~$3-8 for 20Always — Step 2
Hydrogen peroxide drenchLarvaeFree if you have itStep 3 — quick kill
BTI mosquito bitsLarvae~$10-15/bag, lasts monthsStep 3 — chronic cases
Beneficial nematodes (Steinernema feltiae)Larvae~$15-20Chronic / multi-plant infestations
Diatomaceous earth top-dressingEgg-laying barrier~$10/lbStep 4 — prevention
Neem oil drenchSurface larvae only~$10/bottleSupplement, not standalone
Cinnamon top-dressingAntifungal claim onlyFreeDoesn't work; skip
Vinegar / apple cider trapFruit fliesFreeWrong pest — doesn't catch fungus gnats

Prevention going forward

Five rules that prevent ~95% of infestations:

  1. Bottom water when possible. Set the pot in a saucer of water for 20 minutes, drain. Topsoil stays dry — gnats can't breed.
  2. Switch to peat-free or coir-based potting mix. Drains faster, less consistently damp.
  3. Quarantine new plants for 2 weeks. Most infestations arrive with new plants from garden centers.
  4. Let soil dry between waterings. Houseplants generally tolerate this; fungus gnats don't.
  5. Sticky traps as monitoring. Even after the infestation is gone, keep one trap per plant cluster. Catches early invaders before they breed.


Related articles


Reviewed and updated by the Growli editorial team. For questions about anything here, open Growli and ask — or email hello@getgrowli.app.

Frequently asked questions

How do I get rid of fungus gnats?

Combine four actions for at least three weeks: (1) stop watering until the top soil is bone dry, (2) yellow sticky traps to catch adults, (3) hydrogen peroxide drench (1:4 dilution with water) OR BTI mosquito bits to kill larvae, (4) top-dress with sand or diatomaceous earth to block egg-laying. Single tactics fail — the breeding cycle needs all four to break.

Do fungus gnats bite?

No. Fungus gnats don't have biting mouthparts. They're harmless to humans and pets. People sometimes confuse them with biting midges (no-see-ums), which are unrelated outdoor pests near water. If something is biting you, it's not a fungus gnat — look for mosquitoes or midges instead.

Does neem oil kill fungus gnats?

Neem oil kills the larvae it directly contacts on the soil surface, but it doesn't penetrate the 1-2 cm where most larvae live. It's a useful supplement to the main protocol (sticky traps + dry-out + peroxide or BTI drench), not a sole solution. For severe infestations, BTI or beneficial nematodes work better.

What do fungus gnats look like?

Tiny dark flies, 2-4 mm long, with long legs and slow weak flight. They tend to crawl on the soil more than fly. Larvae are transparent worms 2-5 mm long with a black head, found in the top 1-2 cm of soil. If you see flies hovering around fruit, those are fruit flies (lighter brown, with red eyes) — different pest.

Where do fungus gnats come from?

They almost always arrive with new plants — eggs or larvae are already in the soil when you bring a plant home from a garden center. Damp peat-based potting mix is their preferred breeding ground. Less commonly, adults fly in from outdoors through open windows in spring and summer.

How long do fungus gnats live?

Adults live 7-10 days. The full life cycle (egg → larva → pupa → adult) is 3-4 weeks at typical room temperature. That's why a single treatment doesn't end the problem — you need to break the cycle for at least three weeks before the population collapses.

Are fungus gnats harmful to plants?

In small numbers, no — larvae feed mostly on fungus and decaying matter. In large numbers, larvae graze on fine root hairs and stunt seedlings or weaken established plants. The bigger problem is that fungus gnats indicate chronically overwatered soil, which is itself bad for plants.

How does Growli help with fungus gnats?

Photograph the flies and the soil surface in Growli. The app confirms it's fungus gnats (not fruit flies or biting midges), recommends the specific treatment protocol for your plant species and pot setup, and sets reminders for the 3-week cycle of sticky-trap replacement, peroxide drenches, and the eventual switch to a less-friendly potting mix.

Related articles

More from Pests Diseases