Fungus gnats are the tiny black flies that rise from a houseplant's soil when you water it. They are annoying, they gather near windows, and they make a healthy-looking plant feel like a problem. The good news is that they are one of the easiest houseplant pests to beat. They do not bite people, and they do not eat leaves, so the plant itself is usually fine even when the flies are everywhere.
Gnats appear because the top layer of soil stays damp, which is exactly where they lay their eggs. Change the moisture, and you break their life cycle. Most infestations clear within a few weeks once the soil is allowed to dry properly.

Why Gnats Choose Your Plants
Fungus gnats lay eggs in moist potting mix, and their larvae feed on fungi and fine root hairs in the top few centimetres. A plant watered often, or sitting in a saucer of water, gives them a perfect nursery. The adults live only about a week, but each female can lay dozens of eggs, which is why a small problem grows fast if the soil stays wet.
New bags of compost can carry eggs, and a plant brought home from a shop may bring a few adults with it. They spread from pot to pot indoors, so one damp plant can seed gnats across a whole windowsill within a week or two.
Dry the Soil and Break the Cycle
The single most effective step is to let the top two or three centimetres of soil dry out between waterings. Larvae cannot survive in dry mix, so eggs stop hatching and the population collapses. Most houseplants tolerate this easily, and many prefer it. If a plant wilts badly while the soil dries, water it from below for ten minutes, then let it drain fully before putting it back.
Water from below where you can, so the surface stays dry while roots drink. Remove dead leaves from the soil surface, since they hold moisture and feed fungi. For the watering habit behind this, see Light and Water: The Balancing Act Behind Healthy Houseplants.
Traps and Other Help That Actually Works
Yellow sticky traps catch adult gnats and show whether numbers are falling. Place one or two just above the soil of each affected plant and replace them as they fill. They will not solve the problem alone, but they cut egg-laying fast.
A thin layer of grit or sand on the soil surface makes it harder for adults to lay eggs, and a diluted biological control containing Bacillus thuringiensis israelensis, sold for mosquito control, kills larvae without harming the plant. Avoid home remedies that promise instant results; drying the soil does the real work. Sticky traps also help you judge progress: if the count drops week by week, the drying routine is working.
When Gnats Are a Real Problem
A handful of gnats around one plant is a nuisance, not a crisis. A large infestation in seedlings or very young plants is more serious, because larvae can damage fine roots and slow growth. Seedlings in damp trays are the most vulnerable.
If gnats persist after a month of drier soil and traps, repot the worst plants in fresh mix, shaking off the old compost from the roots. Check that pots drain freely and that no plant stands in water. For a calm approach to other plant troubles, see What Is Wrong With My Plant? A Steady Guide to Pests and Problems. Quarantine a badly infested new plant away from your other pots for a week or two until the gnats are gone.
Key takeaways
- Gnats breed in damp surface soil, so drying the top few centimetres breaks the cycle.
- Water from below and clear dead leaves from the soil surface.
- Yellow sticky traps catch adults and show whether numbers are falling.
- Seedlings suffer most; a few gnats on a mature plant are a nuisance, not a crisis.
Frequently asked questions
Are fungus gnats harmful to houseplants?
Adults are harmless, and larvae rarely hurt mature plants. Seedlings and very young plants can suffer if larvae damage fine roots, so keep seed trays drier and act early there.
How long does it take to get rid of fungus gnats?
Usually two to four weeks once the soil surface dries between waterings. Traps speed things up by catching adults before they lay eggs, but drying the soil is what ends the cycle.
Can I use apple cider vinegar traps for fungus gnats?
Vinegar traps catch fruit flies, not fungus gnats, which are drawn to soil rather than vinegar. Yellow sticky traps above the soil work far better for gnats. A small dish of soapy water near the pots catches very few gnats and is not worth the effort.



