Pests
Fungus gnats: how to recognize them and get rid of them
Those tiny black flies that take off when you touch a pot are very often fungus gnats. They are rarely serious for an established plant, but they point to potting mix that stays wet too often, and that is where to act.

What are fungus gnats?
Fungus gnats are tiny, delicate flies, dark gray to black, only a few millimeters long. With their long, slender legs and segmented antennae longer than the head, they look like miniature mosquitoes. Their wings are clear to smoky gray and fold flat over the back at rest; under a magnifying glass you can see, near the wing tip, a rounded Y-shaped vein that is typical of the family.
Adults fly weakly around plants or run across the surface of the potting mix. Because they are attracted to light, you often notice them first on windows, away from the pot they came from. A simple trick helps locate them: tap the pot lightly, and any gnats present will take flight.
The larvae live in the potting mix. They are small white to translucent worms with no legs and a shiny black head that is easy to spot; even fully grown, they remain very small. They stay mostly in the top 2–3 in of the mix and sometimes show up on the surface.
Don’t mix them up
Fungus gnats are very often mistaken for fruit flies, but they are two distinct insects. Fungus gnats are tied to pots: they need moist potting mix to breed.
Another possible mix-up is shore flies. They can be told apart by their short, bristle-like antennae, whereas fungus gnat antennae are long and clearly visible.
Why they multiply so fast
The full life cycle, from egg to adult, takes about three to four weeks, and a little over two weeks at around 75 °F. A female can lay up to two hundred eggs in the cracks and crevices of moist potting mix. The eggs hatch within a few days, the larvae feed for one to two weeks, then pupate near the surface; the adult emerges a few days later and lives for about a week. Generations overlap, so a handful of gnats can turn into a small cloud within a few weeks.
Indoors, they breed year-round. They thrive in potting mix that is kept constantly moist, especially mixes rich in peat and decaying organic matter. Plants that spend the warm season outdoors are commonly colonized: when you bring them back inside, at the end of summer or early in fall depending on your climate, check the potting mix and watch for gnats over the following weeks.
Are they harmful to plants?
Adults do not bite, do not feed on plants, and do not damage them: they are mainly a household nuisance. The larvae feed mostly on fungi, algae, dead roots, and decaying plant debris. An established, healthy plant usually does not suffer from them.
The risk comes when larvae are very numerous. They can then chew on root hairs or tunnel into roots, especially in seedlings, young plants, and at the base of soft cuttings. The signs are slower growth, yellowing foliage, and dropping leaves. In commercial plant production, these insects have also been linked to the spread of several root and crown diseases.
Keep in mind, though, that yellowing or leaf drop can have many other causes, starting with overwatering itself, which suffocates roots. Gnats on a declining plant often signal waterlogged potting mix and are not necessarily the cause of the problem. Check the roots and the drainage before drawing conclusions.
Confirm that larvae are present
Before treating, find out which pots are actually infested:
- Yellow sticky traps: placed near the foliage, they catch adults and show how the population is changing. They serve both to monitor and to reduce gnat numbers.
- The potato slice: set a slice or chunk of raw potato on the potting mix, or press it in slightly. Larvae gather on it to feed within a few days; lift it after three or four days and look for small worms with black heads.
Start with watering
Larvae need moist potting mix to survive, and females prefer to lay eggs on a wet surface. Letting the mix dry out is therefore the most effective tool and the first one to use:
- Let the top 1–2 in of the mix dry out before watering again, as far as the plant tolerates. Check with a finger or by lifting the pot, as explained in Water by observation, not by the calendar.
- Get rid of standing water: empty the saucer and cachepot after each watering, and avoid sloppy watering that leaves water everywhere.
- Water from the bottom if the plant allows it: the surface stays drier and is less attractive to egg-laying females.
- Remove dead leaves and plant debris lying on the potting mix.
- Repot a plant whose mix has broken down or no longer drains, into fresh potting mix made for houseplants, and throw out the old mix. The steps are covered in Repotting a houseplant. Choose a pasteurized potting mix.
- Ventilate: good ventilation is part of prevention.
What about plants that like to stay moist?
Some plants cannot tolerate their root ball drying out deeply: the Boston fern, the delta maidenhair fern, the nerve plant, and the peace lily need consistently moist potting mix. For these, don’t sacrifice the plant to fight gnats: let only the surface layer lose its moisture when possible, empty saucers carefully, and rely more on traps and the biological controls described below. Check each plant’s profile to fine-tune watering.
Biological control
When drying out the mix is not enough, several beneficial organisms attack the larvae right in the pot:
- The bacterium Bacillus thuringiensis israelensis (Bti): applied in the watering can, it acts on larvae in the potting mix. It does not kill adults, which keep laying eggs, so several applications spaced five to seven days apart are needed.
- Steinernema feltiae nematodes: these microscopic worms are applied as a drench and are particularly effective against the larvae, killing them within three to four days. The best results come from several applications a week apart.
- Predatory mites (Hypoaspis) and a small predatory rove beetle, Atheta coriaria, settle into the potting mix and feed on eggs, larvae, and pupae.
These beneficials are mostly sold by specialized suppliers, sometimes at garden centers. Follow the supplier’s instructions for rate and frequency.
Insecticides and home remedies
At home, an insecticide is rarely warranted. Pyrethrin-based products give only temporary relief, because they mainly act on adults while the larvae stay in the potting mix. A chemical treatment should never be your only measure: without a change in watering, the gnats come back.
Be wary of household tricks, too. Sprinkling the potting mix with cinnamon, baking soda, coffee grounds, or diatomaceous earth, or drenching it with hydrogen peroxide, is not very effective and can harm the plant.
At a glance
| Method | Stage targeted | What to know |
|---|---|---|
| Letting the surface dry | Eggs and larvae | The main tool; adjust it for moisture-loving plants |
| Yellow sticky traps | Adults | Monitor and reduce the population, without reaching the larvae |
| Repotting into fresh mix | Larvae and pupae | Useful if the mix has broken down or drains poorly |
| Bti | Larvae | Several applications spaced five to seven days apart |
| Steinernema feltiae nematodes | Larvae | Repeated applications a week apart |
| Predatory mites and rove beetles | Eggs, larvae, pupae | Settle into the potting mix |
| Pyrethrins | Adults | Temporary effect, never on its own |
To sum up: find the infested pots, fix your watering, trap the adults, then bring in beneficial organisms if the population persists. Since the life cycle lasts a few weeks, judge the results over a month rather than a few days.
Sources
- Fungus Gnats — UC Statewide IPM Program, University of California Agriculture and Natural Resources (accessed September 28, 2026)
- Fungus Gnats on Houseplants — University of Wisconsin–Madison Division of Extension (Wisconsin Horticulture) (accessed September 28, 2026)
- Fungus Gnats as Houseplant and Indoor Pests — Colorado State University Extension (accessed September 28, 2026)
- Fungus gnats (sciarid flies) — Royal Horticultural Society (accessed September 28, 2026)
- Fungus gnats — Missouri Botanical Garden (accessed September 28, 2026)
- Houseplant Help from the Missouri Botanical Garden — Missouri Botanical Garden (Discover + Share) (accessed September 28, 2026)