Bug Identifier
Fungus gnat (likely larva or pupa)
Community identification

Fungus gnat (likely larva or pupa)

Sciaridae, likely Bradysia sp.

Order & Family
Diptera; family Sciaridae
Size
Larvae are typically 2–7 mm long; adults are about 2–4 mm. The pictured specimen appears to be a small immature stage.
See this bug in the Encyclopedia

Natural Habitat

Moist potting soil, decaying plant material, greenhouses, and damp indoor areas. Adults may occur around houseplants and windows.

Diet & Feeding

Larvae feed mainly on fungi, algae, and decaying organic matter, but may damage fine plant roots when abundant. Adults generally do not feed or consume only liquids.

Behavior Patterns

Larvae live in moist soil and organic debris; adults are weak fliers attracted to light and often emerge from houseplant soil. Several generations can occur annually indoors.

Risks & Benefits

Usually harmless to people and pets, though heavy infestations can weaken seedlings and houseplants. They also help decompose organic material and serve as prey for other organisms.