Skip to content
Plant Diseases

Fungus Gnats: Kill the Larvae, Not the Flies You See

The adults are harmless; the larvae in the top inch of compost are what damage roots. Why letting the surface dry works, and what actually breaks the cycle.

A close-up of an adult dark-winged fungus gnat
Photo: Katja Schulz from Washington, D. C., USA, CC BY 2.0, via Wikimedia Commons
On this page

The small dark flies drifting up from a houseplant every time you water it are irritating and essentially harmless. Killing them accomplishes very little.

The larvae are the pest, and they are in the top inch of the compost — up to two hundred eggs per adult, hatching in under a week.

The life cycle is the whole problem

Roughly three to four weeks, and it runs continuously indoors:

  1. Eggs — up to 200 per female, laid in damp compost in the top half inch. Hatch in 4 to 6 days.
  2. Larvae — tiny, translucent, with a distinct black head. Two weeks feeding on fungi, algae, decaying matter and root hairs. This is the damaging stage.
  3. Pupae — 3 to 4 days in the compost.
  4. Adults — about a week, flying, mating and laying.

Which means: killing the adults you can see leaves several overlapping generations underground, and the flies are back within days. Any approach that targets only adults will feel like it is failing, because it is.

Why it matters, and when it doesn’t

On seedlings, cuttings and young plants, larvae can be genuinely destructive. Those plants have few roots and no reserves, and larvae grazing the fine root hairs is enough to kill them or stall them permanently.

On an established houseplant, the damage is subtler: unexplained wilting despite damp compost, slow or stalled growth, yellowing lower leaves. The plant is losing root function to something you cannot see.

Heavy infestations can also spread Pythium and other root-rot pathogens between pots.

Fungus gnats are a symptom of how you water

They only establish in compost that stays damp at the surface. Persistent gnats almost always mean a plant is being watered a little and often, or is sitting in a saucer, or is in a pot too large for its root ball. Fixing the watering fixes the gnats — and usually fixes a slow root-rot problem you had not noticed yet.

What to do, in order

1. Let the surface dry. The top inch or two, properly dry, between waterings. This alone removes the habitat. Push a finger in to check rather than judging by the look of it.

2. Water from the bottom. Stand the pot in water for twenty minutes and drain it. The roots drink, the surface stays dry, and the eggs have nowhere to hatch.

3. Add a barrier. Half an inch of horticultural grit, coarse sand or perlite on the surface stops adults reaching the compost to lay. This works well and looks better than the alternatives.

4. Yellow sticky traps. Adults are strongly attracted to yellow. Traps do not solve the problem, but they catch egg-laying females, and — more usefully — they tell you whether the population is going up or down.

5. Biological control, for an established infestation:

Treatments that reach the larvae
TreatmentHow it worksNotes
Bacillus thuringiensis israelensisBacterial toxin, larvae onlyVery effective; safe; repeat weekly ×3
Steinernema feltiae nematodesParasitic nematodes seek larvaeExcellent; needs damp compost to work
Hypoaspis / Stratiolaelaps mitesPredatory soil mitesLong-term prevention, slow to act
Hydrogen peroxide drench (3%, 1:4)Kills larvae on contactDoes nothing to eggs; repeat every 4 days
Sticky trapsCatches adultsMonitoring, not control
Household insect sprayKills visible adultsAchieves almost nothing

6. Repot, if it is severe. Remove as much old compost as you can, check for root rot, and repot into fresh, free-draining mix — see potting soil. Add extra perlite to open it up.

Give it three to four weeks. You are outlasting eggs already in the compost. Numbers should fall noticeably by week two.

Not letting them come back

  • Water properly: thoroughly, then not again until the plant needs it.
  • Never leave standing water in saucers or cachepots.
  • Right-sized pots. An oversized pot holds wet compost the roots cannot use.
  • Store compost sealed and dry. Open bags left damp are how infestations arrive.
  • Quarantine new plants for two or three weeks. Nursery plants are the other common route in.
  • Clear dead leaves off the compost surface — that decaying material is what the larvae eat.

Is it actually a fungus gnat?

  • Fungus gnat — dark, slender, long legs, weak erratic flight, comes out of pots.
  • Fruit fly — stubby, tan, red eyes, purposeful flight, around fruit, bins and drains.
  • Shore fly — darker and stockier than a fungus gnat, short legs, spotted wings, also from damp compost; the same controls work.
  • Whitefly — white, on the undersides of leaves, flies up in a cloud when disturbed. A different pest entirely.

Common questions

Are fungus gnats harmful to plants?

The adult flies are harmless — they do not bite, sting or feed on plants. The larvae are the problem: they live in the top inch or two of compost eating fungi, algae and organic matter, and in numbers they also graze on fine root hairs. On seedlings and cuttings that can be fatal; on an established houseplant it usually shows as unexplained wilting and stalled growth.

How do you get rid of fungus gnats permanently?

Break the cycle at the larval stage rather than swatting adults. Let the top inch or two of compost dry fully between waterings, which kills larvae and stops eggs hatching; add yellow sticky traps to catch adults; and treat the compost with Bacillus thuringiensis israelensis or nematodes if the infestation is established. Expect three to four weeks, because you have to outlast the eggs already laid.

Does letting the soil dry out kill fungus gnats?

It is the single most effective measure. Eggs and larvae need constantly damp organic material in the top layer and die when it dries. Letting the surface dry properly between waterings — and watering from the bottom so the surface stays dry — removes the habitat rather than fighting the population.

What is the difference between fungus gnats and fruit flies?

Fungus gnats are dark, slender, long-legged and mosquito-like, they fly weakly and erratically, and they come up out of plant pots. Fruit flies are stubbier, tan or brown with red eyes, they fly more purposefully, and they gather around fruit, drains and bins. The fix is completely different, so it is worth identifying which you have.

Do cinnamon, hydrogen peroxide, or sand actually work on fungus gnats?

Partially. A hydrogen peroxide drench kills larvae on contact but does nothing about eggs, so it needs repeating. A half-inch of horticultural sand or grit on the surface works well as a physical barrier that stops adults laying. Cinnamon has mild antifungal action and limited effect. None of these substitute for letting the surface dry.

Why do I keep getting fungus gnats in new potting mix?

Because bagged compost often arrives with eggs or larvae already in it, particularly if the bag has been stored damp and open. Peat and coir-based mixes with a lot of organic matter are ideal habitat. Store bags sealed and dry, and if you have had repeated problems, sterilise small quantities or use a mix with more inorganic material.

Backyard Weekly

Know what to plant, week by week

Free planting calendar. Join the weekly email for seasonal jobs, fixes for what is going wrong, and gear worth buying.

Set MONETIZATION.email.endpoint in src/config/site.ts to enable this form.

By subscribing you agree to our privacy policy. Grow In Backyard will never sell your address.