IndoorFlora
Pests & Problems

How to Get Rid of Fungus Gnats: 4 Fixes That Actually Work

How to Get Rid of Fungus Gnats: 4 Fixes That Actually Work
Quick answerTo get rid of fungus gnats, break their life cycle: let the top two inches of soil dry out completely between waterings, set yellow sticky traps to catch egg-laying adults, and water with BTI (Bacillus thuringiensis israelensis, sold as Mosquito Bits or Dunks) to kill the larvae in the soil. Keep all three going for three to four weeks — one full life cycle — and the infestation collapses. Killing adults alone never works; the larvae in damp soil are the real problem.

The Short Answer: Dry Soil Kills Gnats

To get rid of fungus gnats, you have to break their life cycle, not just swat the adults. Let the top two inches of soil dry out completely between waterings, put up yellow sticky traps to catch the flying adults, and treat the soil with BTI (a bacteria sold as Mosquito Bits or Mosquito Dunks) to kill the larvae. Do all three at once for three to four weeks and the infestation collapses.

That is the whole strategy. The rest of this guide explains why it works, how to do each step properly, and what to try if you have a stubborn case.

What Fungus Gnats Actually Are

Fungus gnats are tiny, dark, mosquito-like flies — a few millimeters long — that hover around houseplants and drift lazily into your face when you water. If you've been searching for "little flies in plant soil," this is almost certainly your bug. They are weak fliers, which is one easy way to tell them apart from fruit flies: fruit flies are fast and hang around your kitchen, while fungus gnats are slow and hang around your pots.

The adults are annoying but essentially harmless. The real problem is the larvae: small, translucent worms with black heads that live in the top inch or two of moist potting soil. They feed on fungi, algae, and decaying organic matter — and in heavy infestations, they will also nibble fine root hairs. Mature, healthy plants usually shrug this off. Seedlings, cuttings, and stressed plants can genuinely suffer.

Here is the fact that makes everything click: fungus gnat larvae need consistently damp soil to survive. If the surface of your soil is always wet, you are running a gnat nursery. That is why fungus gnats are so often a symptom of watering too frequently — if you are seeing them, it is worth reading up on how often houseplants actually need water, because the same habit that breeds gnats also causes root rot.

The life cycle you are trying to break

A female gnat lays her eggs in moist soil. The eggs hatch in a few days, the larvae feed in the soil for roughly two weeks, pupate, and emerge as new adults — which immediately start laying the next generation. The whole cycle takes about three to four weeks in typical room temperatures.

This is why killing adults alone never works. For every gnat you slap, dozens of larvae are maturing in the soil. Any fix that actually works has to target the soil.

The 4 Fixes That Actually Work

Each of these attacks a different stage of the life cycle. Used together, they end most infestations in under a month.

Fix Targets Speed Cost Best for
1. Let the soil dry out Eggs + larvae 1–2 weeks Free Every infestation, always
2. Yellow sticky traps Adults Immediate Cheap Stopping new eggs + tracking progress
3. BTI (Mosquito Bits/Dunks) Larvae 1–3 weeks Cheap Moderate to heavy infestations
4. Repot or top-dress Eggs + larvae + habitat Immediate Varies Severe cases, broken-down soil

Fix 1: Let the top of the soil dry out

This is the free fix, and it is not optional — the other three fixes are far less effective if the soil stays soggy.

Larvae live in the top layer of soil and die without moisture. So:

Most plants tolerate drying out far better than owners expect. If you are nervous, the signs are easy to check — droopy-but-dry looks different from droopy-and-soggy, and telling them apart is covered in our guide to overwatering vs. underwatering.

Fix 2: Yellow sticky traps for the adults

Fungus gnat adults are strongly attracted to the color yellow. Yellow sticky traps — small coated cards you stake into the pot or clip near the foliage — catch them by the dozen.

Be clear about what traps do and do not do:

Place traps horizontally near the soil surface or low on a stake — adults spend most of their time within a few inches of the soil. Replace cards when they are covered. If a fresh trap stays nearly empty for a week or two, you are winning.

Fix 3: BTI — the larvae killer

BTI (Bacillus thuringiensis subsp. israelensis) is a naturally occurring soil bacterium that is lethal to fungus gnat and mosquito larvae but harmless to plants, people, and pets when used as directed. It is the closest thing to a silver bullet in this fight, and it is the active ingredient in products commonly sold as Mosquito Bits and Mosquito Dunks.

How to use it for houseplants:

  1. Make a BTI tea. Soak the granules (or a chunk of a dunk) in your watering can — a common approach is a few tablespoons of Bits per gallon of water, left to soak for 30 minutes or more. Check your product's label for its specific rate.
  2. Water with it. Use the tea whenever the plant actually needs watering. The bacteria wash into the top layer of soil, larvae ingest them, and die.
  3. Repeat with every watering for 3–4 weeks. BTI kills larvae but not eggs, pupae, or adults, so you need to keep it present in the soil for at least one full life cycle.

Some people sprinkle granules directly on the soil surface instead. That works too, though the tea method distributes the bacteria more evenly.

A note on hydrogen peroxide: the popular home remedy — one part 3% hydrogen peroxide to four parts water, poured through the soil — does kill larvae on contact. It is a reasonable emergency measure, but it has no residual effect, so eggs that hatch the next day are unaffected. BTI is more reliable because it persists between treatments.

Fix 4: Repot, or top-dress with a gnat barrier

For severe infestations — or old, broken-down potting mix that stays wet for a week or more — sometimes the fastest path is to remove the habitat entirely.

Full repot: slide the plant out, shake or rinse off as much old soil as you reasonably can, and repot into fresh, free-draining mix. Bagged mixes heavy in unfinished compost or bark that has begun decomposing are gnat magnets; a chunkier, faster-drying blend makes your pots much less hospitable. Our potting mix guide covers what to look for. Throw the old soil in an outdoor bin — not your indoor compost caddy.

Top-dressing barrier: if a full repot is impractical, cover the soil surface with a half-inch to an inch of coarse sand, fine gravel, or decorative grit. The dry, fast-draining layer makes it physically difficult for adults to reach the soil to lay eggs and for emerging adults to escape. It is not foolproof, but combined with fixes 1–3 it closes the loop.

A Realistic 3-Week Battle Plan

Why They Keep Coming Back — and How to Prevent It

If gnats return every few months, one of these is usually the reason:

Fungus gnats are also the classic "gateway pest" — the one that teaches you to check your plants regularly. While you are at it, learn to spot the other usual suspects in our guide to common houseplant pests, because spider mites and mealybugs are far more destructive and far easier to beat when caught early.

When to Escalate

If you have genuinely done all four fixes for a month and still have gnats, two biological options are worth knowing about: beneficial nematodes (typically Steinernema feltiae), microscopic worms watered into the soil that hunt larvae, and predatory soil mites (often sold as Stratiolaelaps or Hypoaspis) that patrol the top layer of soil. Both are used widely in greenhouses, are safe around pets, and are available online for home growers. They cost more than BTI, so treat them as the second line, not the first.

Most people never need them. Dry soil, sticky traps, and BTI — done consistently for one full life cycle — ends the vast majority of fungus gnat problems for good.

Common questions

Do fungus gnats damage houseplants?

The flying adults are harmless — just annoying. The larvae in the soil feed mainly on fungi and decaying organic matter, but in heavy infestations they will also nibble fine root hairs. Mature, healthy plants usually shrug this off, while seedlings, fresh cuttings, and already-stressed plants can genuinely suffer. The bigger issue is what gnats indicate: soil that stays constantly wet, which also sets plants up for root rot.

How do I tell fungus gnats from fruit flies?

Location and flight style give it away. Fungus gnats are slow, weak fliers that hover around plant pots and drift into your face when you water; they are dark, skinny, and mosquito-like. Fruit flies are faster, stockier, often tan with red eyes, and gather around ripe fruit, drains, and trash rather than plants. If the tiny flies are coming from your soil, they are fungus gnats.

Does BTI (Mosquito Bits) really work on fungus gnats?

Yes — BTI is the most reliable soil treatment for home growers. It is a naturally occurring bacterium that is lethal to fungus gnat larvae but harmless to plants, people, and pets when used as directed. Soak the granules in water to make a tea, then use it whenever the plant needs watering, repeating for three to four weeks. It kills larvae but not eggs or adults, so a full life cycle of treatment is essential.

Will letting the soil dry out kill fungus gnats?

It is the single most important step. Larvae live in the top inch or two of soil and die without consistent moisture, so letting that layer dry fully between waterings destroys their habitat. Bottom-watering helps during an infestation: the root zone gets moisture from below while the surface stays dry and hostile. Drying alone may not end a heavy infestation, which is why it is paired with sticky traps and BTI.

Does the hydrogen peroxide trick work for fungus gnats?

Partly. A mix of one part 3% hydrogen peroxide to four parts water, poured through the soil, does kill larvae on contact, so it is a reasonable emergency measure. But it has no lasting effect — eggs that hatch the next day are untouched, so gnats usually return within a week or two. BTI is the better soil treatment because it persists between waterings and keeps killing larvae across the whole life cycle.

Why do my fungus gnats keep coming back?

Usually one of four reasons: you returned to watering too often, so the surface soil stays constantly damp; a new plant arrived carrying eggs or larvae in its nursery pot; an opened bag of potting mix stored somewhere damp is harboring them; or there is a hidden moisture source like a wet saucer or water pooled in a drainless cachepot. Quarantining new plants for two weeks and storing mix sealed and dry prevents most re-infestations.