Sproutly Plant Care Team

Practical indoor-plant guidance for home growers. Pages are reviewed when updated and focus on clear diagnosis, safer care habits, and realistic household conditions.

How to Get Rid of Fungus Gnats

Last Updated: June 2026 · Houseplant Gnat Control

Direct Answer

The fastest way to get rid of fungus gnats is to let the top 1-2 inches of potting mix dry between waterings, place yellow sticky traps near the soil to catch adults, and use a BTI soil drench or beneficial nematodes for persistent larvae. You may see fewer adults in days, but full control usually takes 3-4 weeks because eggs, larvae, pupae, and adults overlap.

First: Are These Actually Fungus Gnats?

Fungus gnats are commonly confused with fruit flies. Here's how to tell the difference.

FeatureFungus GnatsFruit Flies
SizeVery small (2-3mm)Slightly larger (3-4mm)
ColorDark gray/blackTan/brown, red eyes
Where you see themNear plant soil, crawling on potsNear fruit, kitchen, trash
Flight patternWeak, erratic, close to soilStronger, hover around food
Body shapeMosquito-like, long legsRound, stocky

How to Get Rid of Gnats Fast

Fast relief and full elimination are different. Adults can drop quickly; larvae take a full cycle to clear.

TimeframeGoalAction
TodayStop new eggsPause watering if the topsoil is wet; remove dead leaves from soil.
24-48 hoursReduce flying adultsPlace yellow sticky traps at soil level and near windows.
Week 1Target larvaeApply BTI or nematodes as a soil drench according to label directions.
Weeks 2-4Break the cycleRepeat monitoring and keep the top layer drying between waterings.

Why They Keep Coming Back: The Lifecycle

Understanding the 4-stage lifecycle is key to breaking the cycle. You must target all stages simultaneously.

Eggs

4-6 days

Up to 200 eggs laid in moist topsoil. Invisible to the naked eye.

Larvae

12-14 days

Translucent worms (5mm) that feed on soil fungi and fine roots.

Pupae

3-4 days

Cocoon stage in the soil. Resistant to most treatments.

Adult

7-10 days

Flies around, mates, lays eggs. The cycle repeats every 3-4 weeks.

Total lifecycle: ~3-4 weeks. That's why consistent treatment for a full month is essential.

5 Proven Elimination Methods

1. Dry Out the Soil

Foundation · Do This First

Fungus gnat larvae depend on damp, organic potting mix. Letting the top 1-2 inches dry between waterings reduces egg survival, makes the soil less attractive to females, and removes the condition that caused the infestation. This is the single most important step; without it, traps and drenches are temporary fixes.

How to do it:

  • • Wait until the top 1-2 inches of soil are completely dry before any watering.
  • • Consider bottom-watering to keep the top layer consistently dry.
  • • For moisture-loving plants, dry the surface layer rather than the entire root ball.

2. Yellow Sticky Traps

Immediate · Catches Adults

Fungus gnats are strongly attracted to the color yellow. Sticky traps placed near the soil surface catch adults before they can lay more eggs. This provides immediate visible reduction and also serves as a monitoring tool — fewer gnats on the trap means your treatment is working.

How to do it:

  • • Place traps horizontally just above soil level for maximum catch rate.
  • • Use 1 trap per plant, or 1 per 2-3 closely grouped plants.
  • • Replace when covered or after 2 weeks.
  • • Available at any garden center or online (~$5-8 for a pack of 20).

3. BTI Soil Drench

Targeted · Best Repeat Treatment

BTI, short for Bacillus thuringiensis israelensis, is a biological control used against fly larvae such as mosquitoes and fungus gnats. It targets larvae in the potting mix, so it pairs well with sticky traps that catch adults.

How to use:

  • • Choose a product labeled for fungus gnats or mosquito larvae and follow the label.
  • • Apply as a soil drench so the active ingredient reaches larvae in the top potting mix.
  • • Repeat as directed; BTI does not persist indefinitely in indoor potting media.
  • • Keep sticky traps up while BTI works underground.

4. Sand or Gravel Top Layer

Prevention · Blocks Egg-Laying

A ½-inch layer of coarse sand, perlite, or decorative gravel on the soil surface creates a physical barrier. Adults can't reach the moist soil to lay eggs, and larvae can't emerge. This is especially useful as a long-term prevention strategy after you've cleared an infestation.

How to do it:

  • • Use coarse horticultural sand (not fine beach sand which compacts).
  • • Apply at least ½ inch thick — gnats will dig through thinner layers.
  • • Perlite works too but is lighter and can shift when watering.
  • • Decorative gravel or aquarium stones double as aesthetic top dressing.

5. Beneficial Nematodes or Repotting

Backup · Severe Infestations

For severe infestations that keep returning, step beyond traps and moisture changes. Beneficial nematodes such as Steinernema feltiae can target larvae in damp media, while repotting may be necessary if the mix has broken down and stays wet for too long.

When to escalate:

  • • Adults still appear after 3-4 weeks of dry topsoil and traps.
  • • The potting mix smells sour, collapses, or stays wet for many days.
  • • Seedlings, cuttings, or young plants are wilting despite careful watering.
  • • Multiple pots are infested; treat the group, not just one plant.

The Complete Attack Plan

Combine methods for fastest results. Here's the optimal sequence.

W1

Week 1: Full Assault

Set sticky traps near all affected plants. Let the topsoil dry. Apply the first BTI watering or nematode drench if larvae are likely. Add a coarse top layer if desired.

W2

Week 2: Continue Treatment

Replace full traps. Repeat BTI or nematodes according to directions. Continue dry topsoil habits. You should see fewer adults on traps.

W3

Week 3: Mop Up

Last remaining pupae may emerge as adults, so keep traps in place. If numbers are not dropping, inspect the potting mix and drainage.

W4

Week 4: Monitor & Prevent

Keep traps up for monitoring. If traps are clean for 7 days, the infestation is eliminated. Maintain dry soil habits going forward.

Preventing Future Infestations

Once you're clear, these habits keep gnats from returning.

Always let the top inch of soil dry between waterings.
Quarantine new plants for 2 weeks before placing near existing plants.
Use fresh, well-draining potting mix and store open bags sealed and dry.
Consider a BTI watering for new soil if you have recurring gnat problems.
Keep a yellow sticky trap near your plant area as an early warning system.
Remove dead leaves and organic debris from the soil surface.

Fungus Gnat References

Related Answers

Frequently Asked Questions

Adult fungus gnats are mostly just annoying — they don't damage plants directly. However, their larvae feed on organic matter and fine root hairs in the soil, which can stress seedlings, propagations, and young plants. Mature, healthy plants can tolerate moderate populations, but large infestations weaken root systems and slow growth.

Fungus gnats typically arrive in contaminated potting soil — especially cheap, organic-rich mixes. They can also fly in through open windows. Each female lays up to 200 eggs in moist topsoil, and the lifecycle (egg to adult) takes only 3-4 weeks in warm conditions. Overwatered plants create ideal breeding conditions.

With consistent treatment, full elimination usually takes 3-4 weeks, roughly one lifecycle indoors. You need to catch adults with sticky traps, reduce larvae in the soil with drying or BTI, and stop new eggs by keeping the top layer less wet. Treating only adults or only larvae often leads to recurring infestations.

Fungus gnats can spread between houseplants but they can't infest your house the way fruit flies can. They need moist organic soil to breed — they won't reproduce in carpets, food, or drains. However, they can appear in multiple plant pots if the infestation goes untreated, since adults fly between plants to lay eggs.

Drying the top 1-2 inches reduces egg survival and larval habitat, but it does not catch adults already flying around. Pair soil drying with yellow sticky traps and, for persistent infestations, a BTI soil drench or beneficial nematodes.

A diluted 3% hydrogen peroxide drench is a common home remedy, but it is not the most precise long-term control and can stress sensitive roots or soil biology if repeated. If you use it, dilute carefully, avoid stronger concentrations, and test on one plant first. BTI and moisture control are safer repeat strategies.

No. Adult fungus gnats are nuisance flies around plants and windows, but they do not bite people. The plant risk comes from larvae feeding in damp potting mix, especially around seedlings, cuttings, and weak root systems.

Sproutly

Let AI handle the science.

Identify plants, diagnose diseases, and get personalized care schedules — all from a single photo. Free to download.