Fungus gnat adults hover around pots, while their larvae live in moist growing medium. Adults are mainly a nuisance; larvae can damage young or stressed roots when populations are high. Control works best when you manage the root environment and target the appropriate stage.

Identify the flies and larvae
Adults are small dark flies with long legs and a mosquito-like appearance. Larvae are slender and translucent with a dark head. Compare whiteflies if insects rise from leaf undersides, or springtails if organisms jump across the soil rather than fly. Confirm the source before treating every pot.
Check roots as well as the nuisance level
Many established plants tolerate a few gnats, while seedlings and delicate roots are more vulnerable. Wilt and yellowing can also reflect saturated or diseased roots. UC IPM’s fungus gnat guide describes identification and management. A flying adult count alone does not establish how much root damage is present.
Account for overlapping stages
Eggs, larvae, pupae and adults can occur together in a pot. Sticky traps remove or monitor adults but leave larvae in the medium. Development changes with temperature, so allow time and follow a treatment plan rather than expecting all flies to disappear overnight.
Manage moisture and choose a larval treatment where needed
Let the surface dry as far as the plant tolerates, improve drainage and empty saucers. Remove decaying debris without starving a moisture-loving plant through severe drought. For persistent infestations, a product labeled for fungus gnat larvae containing Bacillus thuringiensis israelensis, or suitable beneficial nematodes such as Steinernema feltiae, may help. Nematodes are microscopic roundworms, not insects. Follow the exact product’s rate, storage, moisture and repeat directions. Use sticky cards near the pot to monitor adults.
Recheck the source instead of adding household remedies
Inspect incoming plants and store potting medium appropriately. Cinnamon, improvised peroxide drenches and routine oil sprays are not a dependable substitute for a diagnosed larval plan. A foliar neem product is not automatically suitable for pouring into soil. Continue monitoring and use the pest overview if the insects remain uncertain.