Skip to content
PlantRescue

Fungus gnats in houseplants: how to get rid of them for good

Tiny black flies around your plants are fungus gnats. They breed in wet soil. Dry the soil out and break their life cycle in 2–3 weeks.

Not sure what’s wrong with yours? Get a free photo diagnosis
Close-up photo of a fungus gnat: a slim, dark, mosquito-like fly with long legs, long antennae and smoky grey wings
Fungus gnat: slim, dark and mosquito-like, with long legs. It walks on the soil and flies weakly around pots. Photo: Katja Schulz, CC BY 2.0
Close-up photo of a fruit fly: a stocky tan fly with bright red eyes
Fruit fly, for comparison: stocky and tan with red eyes. It hangs around fruit bowls and bins, not plant soil. Photo: André Karwath, CC BY-SA 2.5

Fungus gnats are tiny, slow, dark flies that hover around pots and walk on the soil. Their larvae live in the top few centimetres of wet compost. Get rid of the wet soil and you get rid of the gnats.

A 3-week plan

  1. Let the soil dry out. Water less, and only when the top 3–5 cm are dry. This alone stops most infestations.
  2. Catch the adults. Put yellow sticky traps just above the soil to stop them laying more eggs.
  3. Treat the larvae. Water with a product containing Bti (Bacillus thuringiensis israelensis, often sold as “mosquito bits”), or put a 1 cm layer of sand or fine grit on top of the soil.
  4. Water from below for a few weeks so the surface stays dry.
  5. Keep going for 3 weeks – that is one full life cycle.

Prevent them

  • Use pots with drainage and empty saucers after watering.
  • Store bags of potting mix sealed – gnats love open bags.

Gnats plus yellow leaves usually means overwatering. Get a diagnosis and a watering plan. Upload a photo for a free diagnosis →

Quick answers

Are fungus gnats harmful to plants?
The adults are just annoying. Large numbers of larvae can nibble young roots, especially of seedlings and cuttings.
Do fungus gnats mean I am overwatering?
Almost always. They need constantly moist soil to breed, so they are a useful warning sign.

Not sure what’s wrong with yours?

Upload a photo, answer 3 questions, get a diagnosis and a 7-day plan. Free.

Diagnose my plant