venoplants.

Fungus gnats on houseplants: causes, identification and extermination

Fungus gnats on houseplants stem from constantly wet potting soil, and letting the surface layer dry out is the first check to make.

GGabijaUpdated 21 October 2026

Fungus gnats on houseplants are caused primarily by excessively moist potting soil rich in decomposing organic matter. According to Colorado State University Extension, adult females target wet, decaying media to deposit their eggs. These small insects belong to the family Sciaridae, with common species measuring 2-3 mm (0.1-0.1 in) in length as reported by the University of California Statewide Integrated Pest Management Program. Unchecked infestations damage fine roots, stunt growth and spread quickly between pots in indoor spaces.

Gnats follow wet compost, so start with soil that stays wet for weeks; for other pests, see the pests and diseases hub.

Small dark flies near soil

Possible causes: 3 · most likely first
Most likely

Excessive soil moisture and organic decay

Fungus gnats multiply rapidly when houseplant potting media stays damp for extended periods. According to Colorado State University Extension, high peat content and degraded organic media hold surplus water that attracts egg-laying females. A single female deposits up to 200 eggs in media crevices, which hatch in 3 days at 24 °C (3 days at 75 °F) based on data from the University of California Statewide Integrated Pest Management Program. Larvae then feed on fungi, organic debris and tender root hairs.

Check

Inspect the top 3 cm of soil (top 1.2 in of soil) where larvae reside, or place 6 mm slices of raw potato (0.2 in slices of raw potato) on the compost surface to draw out larvae within two days, as outlined by Colorado State University Extension.

Fix

Allow the compost to dry significantly between waterings to starve young larvae and deter egg laying. For active infestations, drench the medium with the microbial active substance Bacillus thuringiensis subsp. israelensis, checking the product label for application rates, as advised by the University of California Statewide Integrated Pest Management Program.

Also common

New plant arrivals and outdoor transfers

Fungus gnats often enter indoor areas inside colonized potted plants brought indoors from outdoor spaces or newly acquired pots from retail shops. Observations from Colorado State University Extension confirm that contaminated root balls carry hidden eggs and immature larvae. Adult gnats live for 7 to 10 days, flying between neighbouring pots to expand the colony, according to Colorado State University Extension.

Check

Inspect all new plants thoroughly and place yellow sticky cards horizontally near the soil surface to capture emerging adults, as recommended by the University of California Statewide Integrated Pest Management Program. Bradysia adults show a distinct Y-shaped wing vein and antennae longer than their head, separating them from shore flies that have short bristle-like antennae, noted by the University of California Statewide Integrated Pest Management Program.

Fix

Isolate incoming plants for 2 to 4 weeks (14 to 28 days) to monitor gnat emergence, which is the timeframe required to break the reproductive cycle according to Colorado State University Extension. Drench infested pots with beneficial entomopathogenic nematodes such as Steinernema feltiae to eliminate larvae as described by the University of California Statewide Integrated Pest Management Program.

Less common

Heavy larval root infestation

Dense populations of mature larvae reach up to 9 mm (0.4 in) through four instars within the upper compost. When organic matter runs low, heavy larval feeding causes direct root damage that leads to wilting, poor vigour and telltale slime trails on the substrate, as documented by the University of California Statewide Integrated Pest Management Program. Larvae take 10 days at 24 °C (10 days at 75 °F) to reach the pupal stage before completing a full generation cycle in 17 days at 24 °C (17 days at 75 °F), as reported by the University of California Statewide Integrated Pest Management Program.

Check

Check for wilting despite damp compost, or look for shiny black heads on elongated clear bodies crawling through the top layer of substrate. In cool conditions, development extends to 40 days at 16 °C (40 days at 61 °F), meaning larvae remain active in the roots for longer periods as noted by the University of California Statewide Integrated Pest Management Program.

Fix

Introduce predatory soil mites such as Stratiolaelaps scimitus or Hypoaspis species into the root zone to consume larvae, following guidance from the University of California Statewide Integrated Pest Management Program. Check product labels for handling instructions and maintain treatments consistently over several weeks.

Sources

University of California Statewide Integrated Pest Management Program

Fungus Gnats

Colorado State University Extension

Fungus Gnats as Houseplant and Indoor Pests

University of California Statewide Integrated Pest Management Program

Fungus Gnats / Floriculture and Ornamental Nurseries

Questions we get

One question per cause, answered in the words on the page

How long does it take to eliminate fungus gnats on houseplants?

Total eradication of fungus gnats on houseplants typically requires 2 to 4 weeks (14 to 28 days) of sustained treatment according to Colorado State University Extension. Because adults live for 7 to 10 days and pupae do not consume soil drenches, interventions must persist until all hidden eggs hatch and pupae emerge as adults, as documented by Colorado State University Extension.

How do I identify fungus gnats on houseplants compared to shore flies?

Adult fungus gnats on houseplants measure 2-3 mm (0.1-0.1 in), have long slender legs, display antennae longer than their head, and Bradysia species feature a clear Y-shaped wing vein, as noted by the University of California Statewide Integrated Pest Management Program. In contrast, shore flies possess stouter bodies with short bristle-like antennae, according to the University of California Statewide Integrated Pest Management Program.

Do fungus gnats on houseplants harm roots directly?

Fungus gnats on houseplants primarily feed on organic debris, but high numbers of larvae feed directly on fine plant roots and root hairs in the top 3 cm of soil (top 1.2 in of soil), as reported by the University of California Statewide Integrated Pest Management Program. This larval root feeding leads to sudden wilting and loss of plant vigour, according to the University of California Statewide Integrated Pest Management Program.

Read next