Fungus Gnats: How to Get Rid of Them for Good

You water your plant, and a tiny black cloud rises from the soil. A few little flies, hovering around the pot, landing on the rim, drifting toward your coffee. They’re fungus gnats — and before you reach for the fly spray, here’s the thing that matters most: the flies you see aren’t the problem. Their larvae are.

The adults are mostly a nuisance. The larvae live in the top 2–3 inches of your potting mix, feeding on decaying organic matter and fine roots, and they can damage seedlings and stunt growth. A few gnats become a cloud within weeks — each female can lay up to 200 eggs in damp mix. But the fix is straightforward, and it starts with the one thing the gnats are telling you: your soil is staying wet too long.

What fungus gnats are

Fungus gnats are delicate, dark gray-to-black flies about 1/8 of an inch long, with long legs and antennae, that look like tiny mosquitoes. The adults live about a week. The larvae are clear-to-whitish, legless, worm-like, with a shiny black head, up to 1/4 inch (6 mm) long.

The life cycle is the key to beating them, so here it is:

  • Stage: How long · Where
  • Eggs: Hatch in 3–6 days · In damp mix
  • Larvae: 1–2 weeks (about 10 days at 75°F / 24°C) · Top 2–3 inches of soil
  • Pupae: About 1 week · In the soil
  • Adults: About 1 week · Flying around the pot

One full cycle takes about 3–4 weeks — which is why the treatment plan takes 3–4 weeks too. You’re not fighting one generation; you’re breaking a cycle. Any treatment that only kills the adults, or only kills the larvae once, will fail, because the next stage is already waiting in the soil.

Why you have them

Gnats are a symptom, not a random accident. The top of the soil never dries — watering on a schedule instead of checking the soil, a deep saucer or cachepot (a decorative outer pot with no drainage hole) holding water, a rich peat-based mix that stays wet. Gnats are telling you the soil has been wet too long, and that’s worth listening to: the same wet soil that breeds gnats is the soil that causes root rot. Fix the moisture, and you fix both problems.

The staged plan: attack every life stage at once

No single step on this list ends an infestation by itself. The plan works because each step hits a different stage. Do Steps 1–4 together. Steps 5 and 6 are alternatives to Step 4 — pick one larva-killer, not all three, and if you pick nematodes, skip the surface-drying in Step 1.

Step 1: Dry out the top of the soil. (The most important step.) Wisconsin Extension calls changing soil moisture the most important step, and I agree — it’s the foundation everything else stands on. Let the top 1–2 inches dry before watering. Empty saucers and cachepots so pots never sit in water. Water from the bottom so the surface stays dry. Most infestations reduce measurably within 2 weeks of consistent surface-drying alone. Your plants will be fine — most houseplants would rather be a little dry on top than constantly wet.

Step 2: Top-dress with sand or gravel. A 1/2–1 inch layer of coarse sand or fine gravel on the soil surface keeps it drier and less attractive for egg-laying. It’s simple, it looks tidy, and it removes the damp landing pad the females need.

Step 3: Trap the adults. Yellow sticky traps at soil level — the adults fly low. One per pot, replaced every 7 days or once covered. Traps alone will never end an infestation, but they catch egg-laying females, and they’re your scoreboard: trap counts falling week to week means the plan is working.

Step 4: Kill the larvae with Bti.

Bacillus thuringiensis subsp. israelensis — sold as Mosquito Bits or Gnatrol — kills larvae and nothing else. It’s safe for pets, humans, earthworms, and beneficial insects. Soak Mosquito Bits in water for 30 minutes, strain, and drench the soil. Reapply every 5–7 days for 3–4 weeks. Bti doesn’t touch eggs, pupae, or adults, so a single dose is never enough — you have to keep killing each new batch of larvae as they hatch.

Step 5 (alternative to Bti): hydrogen peroxide drench. If you can’t get Bti, a hydrogen peroxide drench works: 1 part 3% peroxide to 4 parts water, poured onto the soil in place of a regular watering. It fizzes and kills larvae on contact. (Some sources use a weaker 1:10 mix — the 1:4 is the stronger of the two, and either way, Bti is the more reliable larval treatment.) Note this is a different use from the root-rot root rinse — a soil drench, not a root dip — so don’t mix up the ratios.

Step 6 (alternative): beneficial nematodes.

Steinernema feltiae, about 50,000 per liter of water as a drench. Keep the mix damp but not waterlogged, and follow the supplier’s temperature range. One warning: don’t dry the surface and use nematodes at the same time — pick one approach per pot, because nematodes need moisture to move.

Timeline: expect 3–4 weeks to break the life cycle. A systematic plan resolves most household infestations within 4–6 weeks. The trap counts are your guide — when a fresh trap stays nearly empty for a full week, you’re done.

A diagnostic trick: the potato slice

Not sure whether you have larvae? Press a slice of raw potato cut-side down onto the soil and lift it after 2–3 days. Larvae gather under it. If you see tiny white worms with black heads, you’ve confirmed the diagnosis — and you know the Bti drench is the right treatment.

Prevention: keep them from coming back

  • Use a well-draining mix with 20–30% perlite by volume, and pasteurized commercial mix rather than garden soil.
  • Water by checking the soil, not the calendar. Top 1–2 inches dry means water; still damp means wait.
  • Keep 1–2 yellow sticky traps in place year-round as an early-detection tool. A single gnat on a trap is a warning, not yet a problem.
  • Treat every pot in the room. The flies move between pots, so treating one plant while the one next to it is infested is a waste of effort.

Related guides

Frequently asked questions

Are fungus gnats harmful to my plants? The adults are mostly a nuisance. The larvae feed on fine roots and organic matter in the top 2–3 inches of soil — they can damage seedlings and stunt growth, especially in young or small plants. In a mature houseplant, a light infestation is more annoying than deadly, but it’s a sign the soil is too wet, and that wet soil can cause root rot.

How long does it take to get rid of fungus gnats? Expect 3–4 weeks to break the life cycle, and most household infestations resolve within 4–6 weeks with a systematic plan. The key is repeating the Bti drench every 5–7 days — one dose never works because it doesn’t touch the eggs.

Do yellow sticky traps alone work? No. Traps catch the egg-laying adults and show you whether the plan is working, but they don’t touch the larvae in the soil. You need the drying + Bti combination to actually end the infestation.

Will letting the soil dry out hurt my plant? No — letting the top 1–2 inches dry between waterings is what most houseplants want anyway. You’re not droughting the plant; you’re just letting the surface dry. Water from the bottom if you’re worried, so the roots get water while the surface stays dry.

Can I use hydrogen peroxide instead of Bti? Yes — 1 part 3% peroxide to 4 parts water, poured on the soil in place of a regular watering. It kills larvae on contact. Bti is the more reliable treatment, but peroxide is a good fallback if you can’t get Bti.

Why do the gnats keep coming back? Usually one of three reasons: the soil surface is still staying wet (the drying step wasn’t consistent), the Bti was only applied once (the eggs kept hatching), or an untreated pot in the same room is reinfesting the treated ones. Treat every pot, dry the surface, and repeat on schedule.

Are fungus gnats the same as fruit flies? No, though they look similar at a glance. Fungus gnats are dark, slender, and hang around plant soil. Fruit flies are rounder, tan, and hang around fruit and drains. If the flies are coming from your plants, they’re gnats.

—

Sources: UC IPM (fungus gnats); Colorado State Extension; University of Wisconsin Extension; Oregon State Extension; PlantBlueprint; Garden.com; The Spruce; Botanicaly. Numbers cross-checked against the Plant Problems Diagnosis Hub research brief (2026-12-02).

Leave a Comment