LLeafLogic
Pests & Disease

How to Get Rid of Fungus Gnats for Good

Fungus gnats driving you crazy? Learn how to get rid of fungus gnats using proven, plant-safe methods that tackle both the adults and larvae at the source.

Published 2026-03-057 min readLeafLogic Team
Share

How to Get Rid of Fungus Gnats: A Complete Guide

If you've noticed tiny black flies hovering around your houseplants or darting up from the soil every time you water, you've got fungus gnats. These annoying little pests are one of the most common problems indoor plant owners face — but the good news is they're absolutely beatable. This guide will walk you through exactly how to get rid of fungus gnats using simple, effective methods that are safe for your plants and your home.

What Are Fungus Gnats?

Fungus gnats (Bradysia species) are small, dark flies that look a bit like tiny mosquitoes. The adults are mostly harmless nuisances, but their larvae are the real troublemakers. Fungus gnat larvae live in the top layer of moist indoor potting soil where they feed on organic matter, fungi, and plant roots. In large numbers, they can stunt plant growth, cause yellowing leaves, and even kill young seedlings.

Understanding this two-stage problem — adults flying around and larvae living in the soil — is the key to eliminating them completely.

Why Do You Have Fungus Gnats?

The number one reason fungus gnats appear is consistently moist soil. These insects are drawn to damp conditions and decaying organic matter. Overwatering your houseplants is the most common culprit, but other factors can contribute too:

  • Using a quality potting mix that retains too much moisture
  • Poor drainage and pots without drainage holes
  • Leaving plant saucers full of standing water
  • Keeping plants in low-light conditions where soil dries slowly
  • Using compost-heavy soil mixes

If you're struggling with overwatering in general, check out our guide on how to create the perfect watering schedule for houseplants — getting this right is the foundation of fungus gnat prevention.

How to Get Rid of Fungus Gnats: Step-by-Step

The most effective approach combines multiple tactics at once to attack gnats at every stage of their life cycle. Here's what to do:

Step 1: Let the Soil Dry Out

This is your first and most important move. Stop watering until the top 2 inches of soil are completely dry. Fungus gnat larvae cannot survive in dry conditions, so simply allowing the soil to dry out between waterings will kill off a significant portion of the larvae population. Be consistent — even one premature watering can give a new generation the foothold it needs.

Step 2: Use Sticky Yellow Traps

Place yellow sticky traps just above the soil surface or on top of the pot. Adult fungus gnats are attracted to the color yellow and will get stuck on the adhesive surface. This won't solve the problem on its own, but it dramatically reduces the adult population and helps you monitor how severe the infestation is. As the trap fills up and the numbers decrease, you'll know your treatment is working.

Step 3: Apply a Biological Control — Bacillus thuringiensis israelensis (Bti)

This is one of the most effective and plant-safe treatments available. Bacillus thuringiensis israelensis, commonly sold under brand names like Mosquito Bits or Gnatrol, is a naturally occurring soil bacterium that kills fungus gnat larvae without harming your plants, pets, or people. Simply sprinkle the granules on top of the soil or make a liquid drench according to package directions. The larvae ingest the bacteria and are killed within days.

Step 4: Try a Hydrogen Peroxide Soil Drench

For a quick DIY fix, mix one part 3% hydrogen peroxide with four parts water and use it to water your plant. The solution kills larvae on contact through oxidation. You may notice a fizzing reaction in the soil — that's normal and harmless. Let the soil dry out after this treatment before watering again. Repeat once a week for two to three weeks as needed.

Step 5: Add a Top Dressing of Sand or Gravel

Covering the top inch of your potting soil with coarse sand, perlite, or decorative gravel creates a dry, inhospitable surface layer that discourages adult gnats from laying eggs. It also helps the surface dry out faster between waterings. This is a great long-term preventative measure once you've dealt with the active infestation.

Step 6: Consider Neem Oil

Neem oil is a natural pesticide derived from the neem tree that works as both a soil drench and a foliar spray. When applied to the soil, it disrupts the larval life cycle and acts as a repellent for adult gnats. Mix neem oil with water and a small amount of dish soap (to help it emulsify) and apply it to the soil every seven to ten days. It's a particularly good option if you're also dealing with other pests — check out our article on common houseplant pests and how to treat them for more details.

What About Carnivorous Plants?

Here's a fun and totally natural solution: carnivorous plants like sundews (Drosera), Venus flytraps, and butterworts are exceptional fungus gnat hunters. Placing one near your infested plants can help catch adult gnats passively. It won't eliminate an infestation on its own, but it's a charming and eco-friendly addition to your pest management toolkit.

How to Prevent Fungus Gnats from Coming Back

Once you've cleared the infestation, keeping gnats away for good comes down to a few smart habits:

  1. Water less frequently — always check the soil moisture before watering, not just the calendar.
  2. Choose well-draining soil — look for mixes with perlite, bark, or coarse sand incorporated. Our guide on choosing the right potting mix for houseplants can help.
  3. Empty saucers promptly — don't let water pool under your pots for more than 30 minutes.
  4. Inspect new plants — always quarantine new additions for a week or two to make sure they're not bringing pests into your collection.
  5. Improve airflow — a small fan near your plants helps the soil surface dry faster.

When to Be Concerned

In most cases, fungus gnats are more of an annoyance than a true threat to mature plants. However, if you're growing seedlings, cuttings, or young plants, larval damage to roots can be serious and should be treated aggressively. If a mature plant is showing root damage symptoms — like sudden wilting, yellowing, or failure to absorb water — repotting into fresh, well-draining soil may be necessary alongside your gnat treatment.

Final Thoughts

Getting rid of fungus gnats takes a little patience, but it's completely achievable with the right combination of methods. Let the soil dry out, trap the adults, and kill the larvae — tackle all three and you'll be gnat-free before you know it. The most important thing is to stay consistent and not go back to overwatering once the gnats are gone.

Have a plant that's been struggling despite your best care efforts? Browse our Troubleshooting section at LeafLogic for more expert guidance on keeping your indoor garden happy and healthy.

Frequently Asked Questions

What are fungus gnats and why are they a problem?

Fungus gnats are small dark flies that resemble tiny mosquitoes. While the adults are mostly harmless, their larvae live in moist potting soil and feed on plant roots, which can stunt growth, cause yellowing leaves, and kill young seedlings.

Why do I suddenly have fungus gnats in my houseplants?

The most common cause is consistently moist or overwatered soil, which attracts fungus gnats and supports their larvae. Other contributing factors include poor drainage, standing water in saucers, heavy compost-based soil mixes, and low-light conditions where soil stays wet longer.

How do I get rid of fungus gnats in potted plants?

The most effective approach combines multiple methods: let the top 2 inches of soil dry out completely between waterings to kill larvae, place yellow sticky traps above the soil to catch adults, and apply a biological treatment like Bacillus thuringiensis israelensis (Bti), sold as Mosquito Bits, to target larvae in the soil.

Do yellow sticky traps get rid of fungus gnats?

Yellow sticky traps alone will not eliminate a fungus gnat infestation, but they significantly reduce the adult population and help you monitor the severity of the problem. They work best when combined with soil-drying and larval treatments.

What is the fastest way to kill fungus gnat larvae in soil?

Letting the soil dry out is the quickest natural method, as larvae cannot survive in dry conditions. For faster results, applying Bacillus thuringiensis israelensis (Bti), a safe biological pesticide sold as Mosquito Bits, directly targets and kills larvae in the soil.

Related Guides

Get Weekly Plant Tips

Join 2,500+ plant lovers who get one actionable tip every week. No spam, unsubscribe anytime.

Enjoyed this article? Share it!

Share