Gnats in potting soil are fungus gnats, and the fix is drying the top two inches of soil, trapping adults with yellow sticky traps, and treating larvae with Bti or beneficial nematodes.
Those tiny flies circling your houseplants aren’t fruit flies. They’re almost certainly fungus gnats, and they’re thriving because the soil stays too wet. The good news is the whole infestation can be stopped with a few targeted moves — no need to toss the plant.
The key is understanding that fungus gnats breed in moist container media and decaying organic matter. Your watering habits created the problem, so correcting them is step one.
First, Cut the Moisture That Lets Gnats Breed
Overwatering and constantly damp soil are the core conditions that support fungus gnat breeding. UC IPM recommends avoiding overwatering, providing good drainage, and letting the soil surface dry between waterings. Cornell IPM is more specific: the top two inches of soil in potted plants should be dry to discourage fungus gnats.
This single change disrupts everything. Adult gnats lay eggs in moist surface soil, and larvae need damp conditions to survive. Let the top two inches dry out before you water again, and you’ve removed the nursery.
While you’re at it, clean up standing water and leaks around the plant, and make sure the pot actually drains. A pot sitting in a saucer of water keeps the bottom of the soil perpetually wet regardless of what the surface looks like.
How to Trap the Adults Flying Around
Yellow sticky traps catch flying adults and show you how bad the infestation is. Place them near the soil surface, where fungus gnats hover and land. The bright yellow color attracts them, and the adhesive does the rest.
These traps don’t solve the problem alone — the larvae in the soil keep developing into new adults. But they cut the flying population while you treat the source, and they’re an honest gauge of whether your efforts are working.
Position the traps close to the soil surface, not up near the plant’s leaves. That’s where the gnats live and breed.
Treat the Larvae in the Soil Directly
The most reliable way to kill larvae in container media is a biological control. University of Washington Extension says commercially available Steinernema nematodes, Hypoaspis mites, or Bti can be applied to control larvae in potting soil. These are living organisms that target the larvae without the broad toxicity of chemical pesticides, and they’re labeled for this exact use.
Beneficial nematodes, specifically Steinernema feltiae, are microscopic worms that enter the larvae and kill them from within. Both are applied as a soil drench, and both are safe for houseplants when used according to the label.
Timing matters. A LA Times gardening column recommends repeating nematode soaks every 10 to 14 days until the problem is resolved. The reason is simple: adults can keep laying eggs while conditions remain favorable, and each treatment only catches the larvae present at that moment.
Always follow each product’s label directions for application rates and timing. The label is the authority on how to use it safely.
A Top-Dressing Barrier Adds Protection
Cornell IPM notes that a 1-inch layer of sand on the soil surface, kept dry, can eventually stop reproduction. Improving mix drainage with perlite also helps make the surface less hospitable to gnats.
If the Infestation Is Severe, Repot
When the soil is heavily infested, Cornell says the quicker, possibly more effective method is to replace the potting soil completely and rinse the roots and pot well. University of Washington Extension also recommends repotting with sterile potting soil when possible.
Mind the roots: keep them moist and don’t let them dry out while you remove the infected media. Cornell warns specifically against letting roots dry during repotting. Discard the old soil, wash the pot thoroughly, and use fresh sterile mix. If you’re reusing stored potting soil, University of Washington Extension recommends pasteurized or heat-treated mix stored in closed containers.
If you’re starting fresh or shopping for a new bag, our roundup of indoor potting soil with no gnats covers tested mixes that resist these pests.
Common Mistakes That Keep Gnats Coming Back
Most failed treatments share the same errors. Keeping the soil uniformly wet while only treating adults lets the cycle continue. Using just one tactic — traps only, or moisture control alone — rarely works because you’re only hitting one life stage. Ignoring drainage problems or standing water under the pot undoes your efforts. And repotting into contaminated soil or a dirty container starts the problem fresh.
Integrated control is the answer: reduce moisture, trap the adults, treat the larvae, and fix drainage. Do all of them together, and the gnats run out of places to breed.
For houseplants and container plants in the U.S., this approach — rooted in UC IPM, Cornell, and University of Washington Extension guidance — is the established, credible path. Some internet remedies suggest homemade sprays or mixtures, but the reputable sources emphasize moisture control, sticky traps, and targeted biological controls over broad homemade concoctions.
| Step | Action | What It Targets |
|---|---|---|
| 1 | Dry top 2 inches of soil before watering | Breeding conditions |
| 2 | Place yellow sticky traps near soil surface | Flying adults |
| 3 | Apply Bti or Steinernema feltiae nematodes every 10–14 days | Larvae in soil |
| 4 | Add 1-inch dry sand layer on soil surface | Prevents egg-laying |
| 5 | Repot with sterile mix, rinse roots and pot | Heavy infestations |
FAQs
Will fungus gnats go away on their own?
Fungus gnats rarely disappear without intervention. They breed as long as the soil stays moist and organic matter is available. Traps and larval treatment speed the process considerably.
Are fungus gnats harmful to houseplants?
Healthy plants usually tolerate light infestations. The larvae feed on fungi and organic matter in the soil, but heavy populations can damage roots, especially on young or weak plants. The real harm is often indirect: gnats indicate chronically overwatered soil, which itself risks root rot.
References & Sources
- UC IPM. “Fungus Gnats.” Details on moisture control, drainage, and integrated management.
- Cornell IPM. “Fungus Gnats.” Guidance on drying top two inches, sand barriers, and repotting.
- University of Washington Extension. “Managing Fungus Gnats Indoors.” Recommendations on nematodes, Bti, and sterile potting mix.
