GardenSolved

Houseplants

How do I get rid of fungus gnats in houseplants?

The short answer

Reduce unnecessary moisture, improve drainage, use yellow sticky traps to monitor adults, and address larvae with a labeled or biologically appropriate control if the infestation persists.

Fungus gnats are small flies associated with damp potting mix. Adults are mostly a nuisance, while larvae live in the soil and can damage roots when numbers are high.

Diagnostic snapshot

What to check before you act

What you are seeing

  • Consistently damp potting mix
  • Organic material and decaying roots

Check first

Confirm that the insects are small fungus-gnat-like flies associated with the potting mix rather than fruit flies from another source.

Compare first

  • Consistently damp potting mix
  • Organic material and decaying roots
  • Infested new plants or potting mix

Hold off for now

Do not rely on sticky traps alone while the potting mix remains continuously damp.

Investigate further if

If young plants are stunted, roots are damaged, or the infestation persists across many pots, identify the larvae and review the moisture conditions before applying repeated treatments.

Photograph this before you act

  • Photograph the soil surface and root-zone or container context; do not disturb roots just to take a photo.
  • Take one close-up of the clearest symptom and one wider view that shows the surrounding area for comparison.
4 consulted sources4 evidence-linked claimsUpdated Oct 2026Methodology
Black adult dark-winged fungus gnat with long legs and segmented antennae on a green stem
Real adult dark-winged fungus gnat (Sciaridae), photographed outdoors. This close-up supports comparing adult features; it does not show an infestation in a houseplant pot, identify larvae or establish root damage. Confirm the insects and growing-mix conditions described in the article. Photo: John Tann · CC BY 2.0 · auto-oriented and compressed; full-frame responsive derivatives

Recommended diagnostic check

Pest Evidence Checker

What pest evidence can you actually confirm?

Match insects, eggs, webbing, residue, frass, feeding marks, or another physical sign before treating. This checker is generated from this answer’s canonical diagnostic comparison.

First evidence check

Confirm that the insects are small fungus-gnat-like flies associated with the potting mix rather than fruit flies from another source.

Do not choose a pesticide from symptoms alone. Confirm the pest or a pest-specific physical pattern first.

Read the pattern before treating

PatternWhat it can suggest
Consistently damp potting mixMoist soil supports egg laying and larval development. Plants that are watered too often are more likely to sustain repeated generations.
Organic material and decaying rootsFungus gnat larvae feed mainly on fungi and decaying organic matter, but large populations can also feed on root hairs and stress young plants.
Infested new plants or potting mixGnats can arrive with a new plant, reused soil, or damp growing media. Adults may keep appearing because eggs and larvae develop at different times.

Compare the main branches

Consistently damp potting mix

  • Moist soil supports egg laying and larval development. Plants that are watered too often are more likely to sustain repeated generations.

More likely if

  • Small dark flies rise from the potting mix after watering or handling the plant
  • Yellow sticky cards catch adults close to the pot

Less likely if

  • Flies concentrate around food or drains and repeated inspection finds no activity in the pots.

Let the surface and appropriate upper layer of soil dry between waterings, while still following the needs of moisture-loving plants that cannot be allowed to dry fully.

Organic material and decaying roots

  • Fungus gnat larvae feed mainly on fungi and decaying organic matter, but large populations can also feed on root hairs and stress young plants.

More likely if

  • The surface stays damp for long periods and the mix contains abundant organic material
  • Larvae can be found in the moist upper root zone

Less likely if

  • The mix is clean and drains well, with no persistent dampness or decaying surface debris.

Remove dead leaves and other decaying surface debris, and check drainage. If the plant also declines in wet mix, investigate root stress separately from the adult flies.

Infested new plants or potting mix

  • Gnats can arrive with a new plant, reused soil, or damp growing media. Adults may keep appearing because eggs and larvae develop at different times.

More likely if

  • Adults first appear around a recently acquired plant or newly used damp mix
  • Inspection links activity to that pot rather than food or household drains

Less likely if

  • The infestation clearly predates the new plant or mix; arrival timing alone is not proof.

Separate a suspect new plant and monitor pots with sticky cards while checking the soil stage. Use a locally permitted, labeled control only after confirming fungus gnats and if moisture correction is insufficient.

Checks before you act

  • Confirm that the insects are small fungus-gnat-like flies associated with the potting mix rather than fruit flies from another source.
  • Use yellow sticky cards to monitor adults; treat them as a detection tool, not the whole solution.
  • Check how long the surface and root zone remain wet after watering.
  • If the plant is wilting or yellowing, inspect drainage and roots because plant decline may come from overwatering rather than adult gnats.

Route the strongest clue

  1. Root-zone or watering evidence is strongest: Continue with the more specific Houseplant guide.How often should I water houseplants?
  2. Light or environmental evidence is strongest: Continue with the more specific Houseplant guide.How do I fix an overwatered houseplant?
  3. Pest or surface-growth evidence is strongest: Continue with the more specific Houseplant guide.Why is there mold on my houseplant soil?
  4. A related Houseplant symptom is more specific: Continue with the more specific Houseplant guide.Why are my houseplant leaves drooping?

What to do now

  1. Let the surface and appropriate upper layer of soil dry between waterings, while still following the needs of moisture-loving plants that cannot be allowed to dry fully.
  2. Place yellow sticky traps near the soil to catch adults and monitor whether numbers are falling. Traps do not remove larvae by themselves.
  3. Check drainage, remove decaying material, and use a labeled biological or chemical control only as directed if the infestation continues. Treat the soil stage, not just flying adults.

GardenSolved checkpoint

Do not do this yet

Avoid common shortcuts

  • Do not rely on sticky traps alone while the potting mix remains continuously damp.
  • Do not keep watering on schedule if the root zone has not dried appropriately.
  • Do not treat every small indoor fly as a fungus gnat without confirming its source.
  • Do not use pesticides not labeled for indoor plants or the intended soil treatment.

Confirm the likely cause first, then choose the treatment.

What recovery looks like

  1. Adult numbers should decline as the breeding environment becomes less favorable and larvae are controlled.
  2. Sticky-card catches should trend down rather than rebound after every watering.
  3. The plant should maintain normal turgor and root function as the watering cycle improves.
  4. If adults persist despite corrected moisture, inspect nearby pots and other damp organic sources.

Reduce repeat problems

  • Avoid keeping potting mix constantly wet and empty excess water from saucers.
  • Quarantine new plants and inspect the soil before placing them with the collection.
  • Use clean, suitable potting mix and keep dead leaves from accumulating on the soil surface.

When to investigate further

If young plants are stunted, roots are damaged, or the infestation persists across many pots, identify the larvae and review the moisture conditions before applying repeated treatments.

Sources

Save & recheck

Compare what changes before changing course.

Save this diagnosis only in this browser, then come back and compare the same clues. No account, reminder subscription, or server-stored diagnostic record is created.

Your baseline

  • Consistently damp potting mix
  • Organic material and decaying roots

Check again when you return

  • Confirm that the insects are small fungus-gnat-like flies associated with the potting mix rather than fruit flies from another source.
  • Use yellow sticky cards to monitor adults; treat them as a detection tool, not the whole solution.

Tip: photograph the same area from a similar angle so the visible pattern is easier to compare.

Do not just keep monitoring if: If young plants are stunted, roots are damaged, or the infestation persists across many pots, identify the larvae and review the moisture conditions before applying repeated treatments.

Related questions

Diagnostic Finder

Still not sure this answer fits?

Open the Diagnostic Finder with the relevant growing subject or care context preselected and compare other published GardenSolved diagnoses.

Compare other possibilities