Plant problems / 5 min read

Fungus gnats in houseplants: dry the mix, break the cycle

Small dark flies around a pot usually mean a constantly moist potting mix. How to confirm fungus gnats, dry the root zone safely and stop new larvae.

Fungus gnats are small, dark, weak-flying insects that run across damp potting mix and drift up when you water. The adults are a nuisance rather than a direct threat. Their larvae live in the top layer of moist mix, feed mainly on fungi and organic matter and, in large numbers, can chew fine roots. The lasting fix is to change the moisture conditions that let them breed, not to chase the adults.

Match the signs before choosing a remedy

Scroll sideways to read the checks and first steps →

Match the signs before choosing a remedy
What you noticeWhat to checkA useful first response
Small dark flies rise when you waterLook for adults on the mix and set a yellow sticky card nearby.Let the top layer dry more between waterings and empty saucers.
Mix surface is always dark and dampCheck drainage holes, saucer and how many days the pot stays wet.Water less often, improve drainage or repot into a coarser mix.
Gnats keep returning after a few weeksUse a potato slice to confirm larvae are still present.Apply a labelled Bti drench and repeat as directed.
Plant wilts while the mix is wetInspect roots for soft, brown or collapsing tissue.Treat as a root-health problem first; see the root rot guide.
Botanical foliage illustrating the guide
Illustrative botanical photograph, not an example of a confirmed diagnosis. Photography credits ↗

Confirm what you are seeing

Adult fungus gnats are about 2–3 mm long, grey-black and mosquito-like, with long legs and antennae. They tend to stay near pots, rest on the surface of the mix or on leaves, and fly in short, weak bursts. Fruit flies are rounder, often tan with red eyes, and gather around fruit bins rather than plant pots.

To check for larvae, place a slice of raw potato on the surface of the mix for two or three days and look underneath. Larvae are translucent white with a shiny black head. In very wet pots you may also see thin, slimy trails on the surface.

  • Look for adults on the mix surface after watering.
  • Hang a yellow sticky card just above the pot for a week.
  • Use a potato slice to check for larvae.

Why one pot is full of gnats and another is not

Females lay eggs in moist, organic material. A pot that never dries at the surface, a peat-heavy or composted mix, a saucer that holds water, or a heavy layer of decomposing leaves all give them a place to breed. At warm room temperatures the life cycle can take less than three weeks, so a small population grows quickly.

Check how long the pot stays wet. A large container with a small root system, a cover pot without drainage or a plant moved to a darker spot will all extend drying time. The gnats are often a sign that the root zone is wetter than that plant needs.

Dry the top layer, without drought-stressing the plant

For most foliage plants, let the top few centimetres of mix dry before you water again, and empty saucers or cover pots after watering. That surface layer is where eggs are laid and young larvae feed; keeping it drier interrupts the cycle. Do not push a moisture-loving plant such as a peace lily to wilting; check deeper with a finger or by pot weight.

Remove fallen leaves and old flowers from the surface. If the mix stays soggy for many days and smells sour, the bigger issue may be drainage and root health, not the insects.

Traps and treatments that make sense indoors

Yellow sticky cards catch adults and show whether numbers are falling. They will not end an infestation alone, because larvae keep emerging from the mix. Treat them as a monitoring tool.

Products based on Bacillus thuringiensis subspecies israelensis (Bti), applied as a drench, target the larvae and are a commonly recommended option for home use. Follow the label and repeat as directed, since eggs hatch over several weeks. Broad insecticide sprays on adults are rarely needed in a home and do not address the source.

When to repot

Repotting into fresh, well-draining mix can help when the old mix has broken down, stays wet for a long time or is heavily infested. Shake off loose old mix, inspect the roots and use a clean pot. Store opened bags of potting mix sealed and indoors-clean; a bag left open outdoors can bring new gnats with it.

Repotting is not required for every case. If the plant is healthy and the population is small, better watering habits and a few weeks of monitoring are usually enough.

Check the roots if the plant is declining

Fungus gnat larvae can damage fine roots when they are numerous, especially in seedlings, cuttings and young plants. But wilting with wet mix is far more often caused by root rot or poor drainage. If the plant droops while the mix is wet, inspect the roots before deciding the gnats are the main cause.

What not to do

  • Do not rely only on sticky traps; they catch adults, not larvae.
  • Do not keep the surface constantly wet to 'protect' the plant.
  • Do not pour homemade mixtures of soap, vinegar or cinnamon into the pot as a cure-all.

What recovery can look like

Success looks like fewer adults on the sticky card each week and no larvae under a potato slice after about a month. Keep the watering habit that worked; gnats often return when the pot goes back to staying wet.

Questions worth asking

Do fungus gnats bite people or pets?

No. Adults are a nuisance indoors but do not bite. The concern is larvae feeding on fine roots when populations are large.

How long does it take to get rid of them?

Expect several weeks. Eggs, larvae and pupae already in the mix keep developing, so numbers fall gradually once the surface stays drier.

Will a layer of sand or grit on top help?

A dry, coarse top layer can make the surface less attractive for egg-laying, but it does not fix a root zone that stays wet underneath.

Can I bottom-water to avoid gnats?

Bottom watering can keep the very top drier, but if the whole pot stays wet the larvae still have a habitat. The drying interval matters more than the method.

Sources and editorial notes

These horticultural resources inform the guidance; they do not endorse this site or review an individual plant. A photo cannot confirm every cause or pathogen.

UC Statewide IPM Program — Fungus Gnats ↗University of Minnesota Extension — Managing insects on indoor plants ↗How we write and source our guides ↗