Fungus gnats need persistently moist organic matter to breed. Their presence is therefore a fairly dependable signal about how you are watering, and treating them without changing the watering is why they keep coming back.
Why damp compost is the requirement
Adults lay eggs in the top two or three centimetres of compost. Larvae hatch within a week and feed on fungi, decaying organic matter and, when numbers are high, fine roots. They need moisture continuously; the eggs and young larvae desiccate quickly in dry compost.
The whole cycle takes about three to four weeks. Keep the top layer damp continuously and you supply a permanent nursery. Let it dry between waterings and the cycle breaks at its weakest point.
What this tells you
A persistent gnat population usually means the surface of the compost is never drying out. That may be because you water little and often, because the pot is too large for the plant, because light is poor and demand low, or because the plant is standing in a saucer of water.
It is worth treating gnats as a diagnostic rather than merely an annoyance. They are pointing at something.
Breaking the cycle
- Let the top three to four centimetres dry out fully between waterings. For most plants this is safe and is the single most effective measure.
- Water thoroughly but less often, rather than little and often.
- Empty saucers and cache pots.
- Bottom water for a while, which keeps the surface dry while the roots still get what they need.
- Yellow sticky traps to catch adults and to monitor whether numbers are falling.
- Top-dress with a centimetre of grit, sand or bark, which creates a dry barrier the adults will not lay through.
- Remove the top layer of compost where numbers are high, taking most of the eggs and young larvae with it.
- Biological control – nematodes or predatory mites – for persistent infestations across a collection.
Where they come from
Usually in the compost of a new plant, or in a bag of compost that has been stored damp. Quarantining new plants for three weeks catches most arrivals, and storing opened compost sealed and dry prevents the other route.
How much harm they do
Adults do no damage at all – they do not bite and do not feed on the plant. Larvae eat fungi and decaying matter and only turn to fine roots in large numbers, where they can genuinely set back seedlings and cuttings.
For an established plant, gnats are mainly a nuisance and a signal. For seedlings and freshly rooted cuttings they are a real threat, and worth acting on promptly.