Skip to content
Verdejar

Fungus gnats in houseplant soil: causes and fixes

Those tiny flies drifting up from the pot didn’t come in from outside: they were born in the compost. It’s almost always the watering, and that’s where the fix starts.

Verdejar Team5 min read

The tiny flies rising from your plant pots are fungus gnats (sciarid flies), and they live wherever compost stays damp for too long. The adults are mostly a nuisance; to get rid of them, let the top layer dry out between waterings and catch the adults on yellow sticky traps.

Where do fungus gnats come from?

They’re born in the pot. Adults lay eggs in damp compost, and the larvae live in the top centimetre or so, feeding on organic matter and fungi. Virginia Tech Extension says the larvae stay in the top layer, around half to one centimetre, and need moisture to survive.

They may have arrived with a new pot, a bag of compost or an open window. But they only stay if the pot suits them, and constantly wet compost does.

Are they harmful to the plant?

Usually not. The RHS says adult fungus gnats don’t damage plants and are mainly an annoyance flying about indoors. The larvae matter most for very young plants: they can nibble the roots of seedlings and freshly rooted cuttings.

On an established, healthy plant, the gnats are most likely a symptom of compost that stays too wet, and that’s the message worth hearing.

Why do they like damp compost?

Damp feeds the fungi the larvae live on. Virginia Tech links overwatering and soggy compost to fungal growth and root rot, which support the larvae. Extension.org and the RHS also note that compost rich in organic matter, such as peat-heavy mixes, is especially attractive.

So the same habit that causes yellow leaves and weak roots also brings the gnats. If you’d like to judge watering better, the finger test and other signs help.

How do you get rid of them?

Start with the cause, then add the rest.

  • Let the top layer dry out. This is the step extensions repeat most. Oregon State suggests checking that the top 2.5 cm (an inch) is dry before watering; Virginia Tech talks about half a centimetre to a centimetre. The sources differ on the exact figure, but agree on the idea: compost that’s dry at the surface is less attractive for egg-laying and harder for larvae to survive in.
  • Yellow sticky traps. Placed beside the plants, they catch adults and show you how big the problem is. They won’t solve it alone, because the larvae stay in the compost.
  • Biological control. The RHS mentions nematodes mixed into the compost, which attack eggs, larvae and pupae. Oregon State mentions the bacterium Bacillus thuringiensis subsp. israelensis, added to the watering, which kills larvae but not adults.
  • Fresh compost. When repotting, the RHS advises throwing away the old compost rather than reusing it, since it carries eggs and larvae, and using a compost made for houseplants.

Advice on insecticides differs: Virginia Tech allows a soil drench with an approved product in severe cases, always alongside corrected watering; Iowa State advises against them on houseplants as unnecessary and ineffective. We don’t recommend them here.

How do you stop them coming back?

  • Water only when the compost asks for it, and make sure the pot drains.
  • Remove dead leaves and debris from the surface.
  • When you bring a new plant home, keep it apart for a while with a yellow trap beside it before it joins the others (Oregon State’s advice).

Every plant has its own rhythm. For a pothos, say, the watering guide shows how to find it; for a peace lily, the peace lily watering guide does the same.

At a glance: signs, causes, fixes

What you see Likely cause What to do
Tiny flies near the pot Fungus gnats in damp compost Let the top layer dry between waterings
Compost always wet on top Overwatering or poor drainage Water less often, check drainage
Lots of adults, few young plants Larvae in the compost Yellow traps and, if you like, biological control
Seedlings or cuttings wilting Larvae nibbling the roots Drier compost, or fresh compost
Gnats after buying a plant Came with the plant or compost Isolate the plant and dry the surface

Quick questions

Are fungus gnats harmful to people? They aren’t known to be: the nuisance is simply the flying about.

Is killing the adults enough? No. Adults are a small part of the problem; the larvae stay in the compost, so the damp is what you need to change.

Should I replace all the compost? Only if the problem persists. When repotting, use fresh compost and throw the old away.

Can they appear without overwatering? Yes, they can arrive with compost or a new plant, but without damp they rarely settle in.

And once they’re gone?

Gnats are really a warning that the compost has been too damp. Verdejar takes the plant, the spot, the pot and the season into account, and tells you when the compost has probably dried, so you don’t water out of habit. The compost under your fingertip is what decides. For your plant, try:

Sources: Royal Horticultural Society · Virginia Tech Cooperative Extension · Oregon State University Extension · Iowa State University Extension. The days between waterings come from the Verdejar watering engine.