How to Get Rid of Fungus Gnats in Houseplants (For Good)

Fungus gnats are persistent — but fully eliminable. Here's a systematic approach to getting rid of them for good.

How to Get Rid of Fungus Gnats in Houseplants (For Good)

How to Get Rid of Fungus Gnats in Houseplants (For Good)

You're sitting at your desk, and a tiny fly buzzes past your face. You look at your plants and see more of them hovering around the soil. Then you notice little dark specks moving in the potting mix. Fungus gnats. They're one of the most annoying houseplant problems — not because they harm plants dramatically, but because they're persistent, they multiply fast, and they seem impossible to fully eliminate.

Here's the thing: you can eliminate them. Completely. But you have to address both the adult flies and the larvae in the soil simultaneously, and you have to change the conditions that attracted them in the first place. This guide gives you a complete, systematic approach.

🌿 Key Takeaways
• Fungus gnats lay eggs in moist soil; larvae feed on organic matter and roots
• The real solution is fixing the moisture problem — overwatered soil is the root cause
• Effective treatment requires addressing adults (traps) and larvae (soil treatments) simultaneously
• Hydrogen peroxide soil drench kills larvae quickly and safely
• Prevention means letting soil dry out more between waterings

What Are Fungus Gnats?

Fungus gnats (Sciaridae family, primarily Bradysia species) are tiny flies — about 2-3mm long — that look like miniature mosquitoes. The adults are mostly harmless to plants; they feed on fungal matter in soil. The real damage comes from their larvae.

Fungus gnat larvae are small (2-5mm), white, with black heads. They live in the top few inches of potting mix and feed on:

  • Fungal matter and organic material in the soil
  • Plant roots — particularly fine feeder roots
  • Root hairs

In small numbers, root damage is minor. In heavy infestations, root damage can cause wilting, yellowing, and slowed growth — symptoms that look like other problems. If you see yellow leaves alongside small flies, the gnats might be contributing. See our full guide to why plant leaves turn yellow for the complete diagnostic picture.

Why You Have Fungus Gnats

The short answer: consistently moist soil. Fungus gnats are attracted to wet, organic-rich potting mix — exactly the conditions that result from frequent watering or poor drainage. They're especially common in peat-based potting mixes that hold moisture well.

Other contributing factors:

  • Overwatering (the most common cause)
  • Pots without drainage holes
  • Organic matter sitting on the soil surface
  • Peat-heavy potting mixes that stay moist too long
  • Coming in from outdoors through windows or on new plants

Fixing the moisture problem is the most important long-term solution. Everything else treats the symptom.

The Complete Elimination Plan

Fungus gnats have a life cycle of about 3-4 weeks. You need to disrupt every stage simultaneously:

  • Eggs: In the top 1-2 inches of moist soil
  • Larvae: Living and feeding in soil
  • Pupae: In soil before emerging
  • Adults: Flying around your plants and home

Step 1: Let the Soil Dry Out

This is the foundation of everything. Fungus gnat eggs and larvae need moisture. If you let the top 2-3 inches of soil completely dry out between waterings, you eliminate the habitat they need.

  • Stop watering until the soil is noticeably dry
  • Insert a finger 2 inches into the soil — if it's still moist, wait
  • For severely infested plants, wait until the top 3-4 inches are dry before watering

Step 2: Hydrogen Peroxide Soil Drench (Fast Larvae Kill)

This is one of the fastest, safest ways to kill larvae in the soil:

  1. Mix 1 part 3% hydrogen peroxide (standard drugstore variety) with 4 parts water
  2. Water the plant with this solution as you normally would
  3. The peroxide kills larvae on contact and breaks down into water and oxygen — safe for plants
  4. Repeat every 3-5 days for 2-3 applications

You'll see fizzing in the soil — that's the peroxide working. Don't worry if it seems dramatic; it's not harmful to healthy roots.

Step 3: Sticky Traps for Adults

Yellow sticky traps are essential for catching adult gnats and monitoring the infestation:

  • Place yellow sticky cards at soil level (gnats fly low, near the soil)
  • They don't eliminate the infestation but dramatically reduce adult population
  • They also tell you how bad the infestation is and when it's clearing up
  • Replace when covered with gnats or debris

Step 4: Bacillus thuringiensis var. israelensis (BTi)

BTi is a naturally occurring bacteria that specifically targets fungus gnat larvae (and mosquito larvae) without harming plants, beneficial insects, pets, or humans. It's the most effective biological control available:

  • Available as "Gnatrol" or in mosquito dunks (break off a small piece)
  • Dissolve in water and use as a soil drench
  • Very effective and completely non-toxic
  • Apply every 5-7 days for 2-3 applications

Step 5: Top-Dress with Sand or Perlite

Covering the soil surface with a 1-inch layer of coarse sand or perlite creates a dry, hostile environment for egg-laying adults:

  • Adult gnats can't lay eggs in dry, inorganic material
  • The water still reaches the soil below when you water
  • It's a long-term deterrent, not an immediate fix

Prevention: Making Your Plants Gnat-Proof

Water less, water smarter: Check soil moisture before every watering. Most houseplants can wait until the top 2 inches are dry. This single change prevents most fungus gnat problems.

Improve drainage: Use well-draining potting mix with perlite. Avoid peat-heavy mixes that retain moisture. Always use pots with drainage holes. The choice between terracotta and plastic pots matters here too — terracotta dries out faster, making it less hospitable to gnats.

Inspect new plants: Fungus gnats often arrive on new plants from the nursery. Inspect soil and quarantine new plants for 1-2 weeks before integrating them with your collection.

Remove dead leaves: Organic debris on the soil surface is food and cover for gnats. Remove fallen leaves promptly.

Root rot prevention: Root rot creates the ideal moist, decaying environment gnats love. Preventing root rot prevents gnats.

What Doesn't Work

Cinnamon: A common internet remedy. Some weak antifungal properties but doesn't kill larvae and provides minimal prevention.

Coffee grounds: Also commonly suggested. No reliable evidence they deter fungus gnats.

Apple cider vinegar traps: Catches some adults but won't resolve the infestation.

Stick to the proven methods: let soil dry out, hydrogen peroxide or BTi for larvae, yellow sticky traps for adults. That combination works.

Frequently Asked Questions

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

With consistent treatment (letting soil dry out, hydrogen peroxide drench, sticky traps), most infestations clear up within 2-4 weeks. Be patient — you need to disrupt the full life cycle, which takes several weeks. Continue treatment until you stop seeing adults on traps.

Can fungus gnats harm plants?

In small numbers, fungus gnats cause minor root damage. In heavy infestations, larval feeding can damage feeder roots significantly, causing wilting, yellowing, and stunted growth — particularly in seedlings and young plants. Adults are harmless to plants.

Are fungus gnats the same as fruit flies?

No. Fruit flies (Drosophila) are attracted to ripe or fermenting fruit and food. Fungus gnats are attracted to moist soil. You can tell them apart by where they congregate — if they're around your plants and soil, they're fungus gnats; if they're around fruit bowls and garbage, fruit flies.

Does hydrogen peroxide kill fungus gnat eggs?

Yes — a 1:4 hydrogen peroxide:water drench kills both fungus gnat eggs and larvae in the soil on contact. It's one of the most effective immediate treatments. The peroxide breaks down quickly to water and oxygen, so it's safe for plants.

Why do I keep getting fungus gnats even after treatment?

You're likely not letting the soil dry out enough between waterings. If the soil stays moist, gnats will re-infest. The most common reason treatment doesn't stick is reverting to overwatering. Fix the moisture, and the gnats won't come back.

Eliminate Gnats and Keep Them Gone

Fungus gnats are a symptom of moist soil — fix that, and you fix the gnat problem permanently. Combine drying out the soil with hydrogen peroxide or BTi treatments, and yellow sticky traps for adults. Within a month, your plants should be gnat-free.

For everything you need to know about building healthy, thriving houseplants that resist problems, our complete guide to indoor plants is the foundation. Understanding root rot and overwatering will serve you well as you prevent future gnat problems.