Habitat, diet, life cycle, and behaviours
Fungus gnats are found both indoors and outdoors. They are drawn to damp areas and materials rich in organic matter. Understanding their habits can help with fungus gnat prevention.
Where do fungus gnats live?
Fungus gnats love places that are damp or growing anything, such as potted plants. They often rest on growing plants and even litter. They are attracted to light, so don't be surprised if you find them all over your windows.
Homes and offices are big target areas, as they are full of moisture sources — potted plants, under appliances, in crawl spaces or beneath slabs, and moisture-damaged walls. Of course, there's plenty more water outside, too. Large quantities of decaying vegetable matter in damp soil – let's say a vegetable garden – are pretty much begging for an infestation, and gnats are not ones to disappoint.
Diet
A rotten diet — who said fresh is best? The name comes from what the larvae eat – they chow down on fungi and decaying organic matter. They can also eat small plant roots, which may harm young plants. Adults don’t feed much but might take in moisture from surfaces. Keeping the soil dry can help limit their food source.
Life cycle
Fungus gnats develop through several life stages: egg, larva, pupa, and adult. Their full life cycle lasts about two to four weeks, depending on temperature and humidity. Eggs are laid in damp soil, and larvae hatch within a few days. They feed and grow before forming a pupa and later becoming an adult.
Behaviours
Fungus gnat adults are weak fliers, often seen near windows, lights, or plant pots. They’re attracted to light and tend to fly in short bursts. Larvae stay below the soil, feeding on organic material. If it's a very moist day and there are a lot of gnats out and about, larvae can leave charming little slime trails, just like snails or slugs. On mushroom farms, they can multiply right before your very eyes. If you’re seeing clusters of tiny flies hovering near damp soil or overwatered plants, you may be noticing typical fungus gnat behavior.