The Houseplant Care HQ

Home › Fungus gnats

Problem diagnosis

How to get rid of fungus gnats

Method verified against university horticulture extension and RHS guidance on 9 August 2026. Sources linked below.

Fungus gnats feel impossible to beat because most people fight the wrong half of the problem. They swat the flies. The flies come back. The reason is in the soil.

You get rid of fungus gnats by hitting two life stages at once and fixing the cause. The adults you see are the annoying half; the larvae living in the top of the wet soil are the half that keeps the infestation going. Kill only the adults and more hatch within days. Kill the larvae, trap the adults, and dry out the soil, and the cycle breaks.

The reason they keep coming back: swatting or spraying the flies does nothing to the eggs and larvae in the soil. You have to treat the soil.
TargetWhat it isHow to hit it
AdultsThe small dark flies around the soilYellow sticky traps laid flat on the soil surface
Larvae and eggsIn the top few centimetres of wet soilLet the top of the soil dry out; treat with BTI (a biological larvicide, sold as mosquito bits)
The causeSoil that stays wetWater less, water from the bottom, and make sure the pot drains
Fungus gnats have three targets, not one. Hit all three at once. houseplantcarehq.com · Houseplant Care HQ

What are fungus gnats, and are they harmful?

Fungus gnats are small, dark, weak-flying insects that live around the soil of houseplants, and the adults are mostly a harmless nuisance. The damage comes from the larvae. They live in the top layer of moist soil, feed on fungi, organic matter and fine roots, and they can set back seedlings, cuttings and already weak plants.

A strong, established plant usually shrugs off a few gnats. A heavy infestation stresses any plant, and more to the point, it is a sign the soil is staying too wet, which is a problem in its own right. That is why the flies are worth acting on even though the adults themselves do little harm.

How do you know it is fungus gnats and not fruit flies?

You know it is fungus gnats, not fruit flies, by where the insects gather, because the two are easy to confuse and need different fixes. Fungus gnats hover around the soil of plants; fruit flies gather around ripe fruit and the kitchen.

ClueFungus gnatsFruit flies
Where they gatherAround plant soilAround ripe fruit, bins, drains
LookThin, dark, long legs, weak flyersRounder, tan or brown
The fixTreat the soilRemove the fruit source

If the flies scatter from the soil when you water, they are fungus gnats, and the rest of this guide is for you.

How do you get rid of fungus gnats?

You get rid of fungus gnats by treating the soil and the adults together over two to three weeks, long enough to outlast the eggs already laid. Do all of these at once, because any one alone leaves a stage of the life cycle running:

  1. Let the top of the soil dry out. Larvae need moisture in the top few centimetres, so letting it dry between waterings kills them and stops new eggs surviving. This step does the most work.
  2. Put out yellow sticky traps flat on the soil to catch the adults, which also shows you whether numbers are falling.
  3. Treat the larvae with BTI (Bacillus thuringiensis israelensis, sold as mosquito bits), a biological larvicide that targets gnat larvae and is harmless to plants and pets. Follow the label to water it in or steep it.
  4. Water less, and from the bottom. Bottom-watering keeps the top layer dry where the larvae live, while the roots still drink.

Keep all of this going for a few weeks. Stopping the day the flies thin out is how people end up back where they started, because a later batch of eggs is still waiting in the soil.

Swat the adults only Treat soil + adults Eggs + larvae in wet soil New adults hatch They keep coming back Dry soil + BTI kill larvae No new adults The cycle breaks
Kill only the adults and the soil keeps hatching more. Break the soil stage and the cycle stops. houseplantcarehq.com · Houseplant Care HQ

Why do fungus gnats keep coming back?

Fungus gnats keep coming back for two reasons, and both are about the soil rather than the flies. The first is that killing the adults leaves the eggs and larvae untouched, so a new generation hatches within days. The second is soil that stays wet, which is the exact condition the larvae need to survive.

Fix both and they do not return: treat the soil, not just the air, and change the watering that made the soil hospitable. A gnat problem that never ends is almost always an overwatering problem wearing a disguise.

How do you prevent fungus gnats?

You prevent fungus gnats by keeping the top of the soil dry and the pot draining, because gnats cannot establish in soil that dries out between waterings. The habits that prevent them are the same habits that prevent root rot:

Because the cause is the same wet soil behind so many houseplant problems, the watering guide below is the real long-term fix. If the flies are not the only pest around, check whether it is spider mites or mealybugs instead, both of which look nothing like a fungus gnat and need a different treatment.

FAQ

Why do fungus gnats keep coming back?
Because killing the adults does nothing about the eggs and larvae in the soil, which keep hatching, and because the soil stays wet. Dry the top of the soil, treat the larvae, and trap the adults at the same time to break the cycle.
Are fungus gnats harmful to plants?
The adults are mostly a harmless nuisance, but the larvae feed on roots and can damage seedlings, cuttings and weak plants. A heavy infestation stresses any plant and signals soil that stays too wet.
Are fungus gnats the same as fruit flies?
No. Fungus gnats are thin, dark and hover around soil; fruit flies are rounder, tan, and gather around fruit and the kitchen. Soil means gnats, fruit means fruit flies, and the fix differs.

Related guides

Sources