A small, dark-colored fly with smoky wings and long, slender legs sits on a plant stem.

Dark-winged fungus gnat. Photo via Adobe Stock

Updated: July 2, 2026

Fungus gnats are tiny, dark-colored flies that are commonly seen around lamps and windows. They are annoying, but harmless and do not significantly damage indoor plants.

The larvae breed in moist soil, primarily in potted plants containing lots of organic matter. Larvae feed on fungi in the damp soil. They can also breed in drains with a buildup of moist debris.

Overwatering indoor plants contributes to the growth of the fungi on which the larvae feed.

  • dark winged fungus gnat

    Dark-winged fungus gnats (Bradysia sp.).
    Photo: Whitney Cranshaw, Colorado State University, Bugwood.org

  • fungus gnat larvae

    Larvae of dark-winged fungus gnats (Bradysia sp.) on the root of a greenhouse plant.
    Photo: David Cappaert, Bugwood.org

Fungus gnat management

  • Determine if the gnats are coming from a particular plant or drain. To do this, cover the plant or drain with screen or cheesecloth and check over the next several days for evidence of the flies.
  • Monitor for fungus gnats and other flying indoor plant pests by placing yellow paper sticky traps in the containers.
  • If the fungus gnats are breeding in potting soil, dry it out. When the soil dries, the larvae will die.
  • Change the watering cycle of the indoor plants to prevent the soil from remaining wet.
  • Another option is using Bacillus thuringiensis var. Israelensis (Bti), also called H-14 strain, it is a naturally occurring bacterium found in soils. Bti is the active ingredient in soil drench products labeled for indoor plants to control fungus gnat larvae in the soil. Look in garden centers or do an online search for sources.
  • If they are breeding in a drain, use a commercial drain cleaner and or clean out the trap to eliminate the breeding site. 

Dark winged fungus gnat larvae found outdoors

A very unusual insect occurrence may be noticed during wet years, near wooded areas, or even crossing a driveway. These insects are a species of dark-winged fungus gnat larvae. These and related species have this interesting habit of moving in snake-like masses. The larvae are harmless and live in decomposing organic matter in wooded areas.  Management is not necessary.

fungus gnat larvae
Fungus gnat larvae. Photo: S. Klick, University of Maryland Extension