How to Get Rid of Fungus Gnats in Houseplants

How to Get Rid of Fungus Gnats in Houseplants

Fungus gnats are a watering problem that happens to fly. Let the top 1–2 inches of soil dry out, put out yellow sticky traps to catch the adults, and water in Bti to kill the larvae in the soil. Do all three for 3–4 weeks and the cycle breaks. Traps alone will not do it, and neither will drying alone.

Tiny black flies hovering over pots are annoying but rarely an emergency. The adults do not bite you and do not eat your plant. The real problem is out of sight, in the top layer of damp potting mix, where larvae feed on fungi, organic matter, and fine roots. That is why chasing the flies never finishes the job: new adults keep hatching from the soil. The fix is usually no strong insecticide — fix the damp soil, catch adults so they cannot lay more eggs, and treat larvae, and most infestations fade within a few weeks.

Are These Really Fungus Gnats?

Fungus gnats are tiny, dark, mosquito-like flies, about 1/16 to 1/8 inch long, with long legs and clear wings. They hover just above soil, crawl on the pot rim, and fly up in a cloud when disturbed. They hang around plants, windows, and soil — not fruit bowls, drains, or trash. Fruit flies are rounder and tan and gather around ripe fruit, compost, and drains. Potato test: lay a thin raw potato slice on the soil for a day or two, then lift it — tiny translucent white worms with shiny black heads underneath are fungus gnat larvae, confirming larvae live in the top 1–2 inches.

Why Fungus Gnats Love Your Pots

Females lay eggs in moist soil rich in organic matter; larvae hatch and feed there. In a warm room the life cycle (egg to larva to pupa to adult) takes roughly 3–4 weeks, which is why a one-week effort seems to fail. Triggers: watering on a calendar instead of checking soil, pots without drainage, saucers left full of standing water, debris rotting on the surface, new plants and freshly opened bags of mix.

Step 1: Let the Top Soil Dry Out

Most effective step, costs nothing. Stop watering until the top 1–2 inches feel dry to the touch (push a finger in, do not just look). Empty saucers/cache pots after every watering; clear debris off the surface. Goal is a dry top layer between waterings, not a drought-stressed plant. Learn the difference between overwatered vs underwatered plants, and compare bottom watering vs top watering.

Step 2: Trap the Adults With Yellow Sticky Traps

One trap per affected pot, close to the soil surface or just above the canopy; replace as they fill. Be honest: traps catch adults and show whether numbers are falling, but do not touch larvae — a pot with a full trap and wet soil keeps producing flies.

Step 3: Treat the Larvae With Bti

Bti (Bacillus thuringiensis subspecies israelensis) targets fly larvae, sold as mosquito dunks or granules labeled for fungus gnats or mosquito larvae. Soak/dissolve per label, water into soil to reach the top few inches. Repeat as labeled for a few weeks because Bti does not kill eggs or pupae. Considered safe for people, pets, and plants when used as labeled. Do NOT substitute caterpillar Bt (kurstaki). Alternative proven biological option: beneficial nematodes (Steinernema feltiae) as a soil drench.

What About Hydrogen Peroxide, Cinnamon, and Vinegar Traps?

Honest ranking — Hydrogen peroxide drench (1 part 3% peroxide to 4 parts water) is not a labeled standardized treatment and strong/repeated doses can stress roots; treat as an experiment on one plant, not the main plan. Cinnamon has mild anti-fungal properties but no solid evidence it reliably kills larvae. Apple cider vinegar traps catch fruit flies well and fungus gnats poorly — use yellow sticky traps instead. Sand or fine gravel top dressing (about 1/4 inch) is a genuinely useful helper alongside drying and Bti, not instead of them.

When Repotting Actually Helps (and When It Does Not)

Usually unnecessary and stresses the plant. Repot only if mix is badly degraded, stays soggy for days, or smells sour/swampy despite corrected watering. If repotting, shake off old mix, use fresh sterile mix, ensure drainage, then keep top dry and keep a trap in the pot for a few weeks.

The 4-Week Timeline: What to Expect

WeekWhat to doWhat you should see
Week 1Dry top 1–2 inches, set traps, first Bti wateringAdults still flying, but fewer landing on soil.
Week 2Water only when top is dry, second Bti as labeledTrap catches start falling.
Week 3Keep routine, replace full trapsOnly a few stragglers; soil surface mostly quiet.
Week 4Return to normal careful watering, keep one trap as monitorNo new flies for a week or more, you are clear.

Do not declare victory at week 1; consistency for the full cycle is the trick.

How to Keep Them From Coming Back

Water only when the plant needs it (check soil, not a schedule), always empty saucers. See our winter-watering guide. Quarantine new plants a week or two with a trap nearby; inspect potting mix bags (sour smell, soggy feel, or flies around it — let dry or skip). Keep debris off surfaces, give enough light to use the water given, keep one trap in any previously affected pot as early warning.

When to Worry (and When to Let a Plant Go)

Healthy mature plants: nuisance, not death sentence. At risk: seedlings, fresh cuttings, plants weakened by overwatering/root rot, because small/damaged roots suffer from larval feeding. If a seedling wilts and stalls with gnats swarming, treat larvae aggressively and consider a fresh cutting from healthy growth. Do not throw away a mature plant for gnats alone. See our overwatered-plant rescue guide, and the University of California’s integrated pest management program.

Related Rescues

Tiny white bugs in your soil?
How to Save an Overwatered Plant
Bottom Watering vs Top Watering

How long does it take to get rid of fungus gnats?

Plan on 3–4 weeks of consistent effort. Adults die within about a week, but eggs, larvae, and pupae already in the soil keep hatching, so you need to dry the top soil, trap adults, and repeat Bti until a full life cycle has passed with no new flies.

Do fungus gnats bite people or kill houseplants?

No, adults do not bite people or pets, and they do not eat plants. Large numbers of larvae can damage fine roots, especially on seedlings, cuttings, and stressed plants, which is why treating the soil matters even though the flies themselves are mostly a nuisance.

Will yellow sticky traps alone get rid of fungus gnats?

No. Traps catch adults and help you track progress, but they do not kill larvae in the soil. Pair them with letting the top 1–2 inches of soil dry and a Bti soil treatment for the larvae.

Is Bti safe for pets, children, and plants?

Yes, when used as labeled. Bti targets fly larvae and is considered safe for people, pets, and plants. Follow the product label for mixing and repeat applications, and do not substitute caterpillar Bt, which targets a different pest.

Can I just repot to get rid of fungus gnats?

Usually not worth it. Fresh soil helps only if the old mix stays soggy or smells sour, and a few surviving adults can reinfest new mix quickly. For most plants, drying the top soil, trapping adults, and treating larvae with Bti clears the problem without the stress of repotting.