Fungus Gnats: How to Get Rid of Them
Fungus Gnats in Houseplants, Vivariums, and Bioactive Setups: How to Get Rid of Them (For Real)
If you’ve ever watered a plant and watched tiny black flies pop up like you opened a portal… those are probably fungus gnats.
The annoying part isn’t the adults. It’s the larvae living in the top layer of damp soil/substrate. If you only kill the flying ones, they’ll be back fast.
The fix is simple: trap the adults + kill the larvae + make the habitat less gnat-friendly.
Step 1: Confirm it’s fungus gnats (not fruit flies)
- Fungus gnats: small black/grey flies that hang around soil, especially after watering.
- Fruit flies: more tan/brown and usually hover around fruit, garbage, or sinks.
Step 2: Knock down the adults (so they stop laying eggs)
Yellow Sticky Traps (adult control)
Yellow sticky traps don’t solve the whole problem alone, but they’re a key piece because they catch adults before they lay more eggs — and they let you measure progress.
- Use 1–2 traps per pot/enclosure area (more if it’s bad).
- Place traps close to the soil surface.
- Replace when covered in dust/debris/bugs.
Step 3: Kill the larvae (this is the real cure)
Mosquito Bits / Mosquito Dunks (BTI) (larvae control)
Mosquito Bits and Dunks contain BTI, a naturally occurring bacteria that targets larvae of gnats/mosquitoes/blackflies. It’s one of the most effective repeatable options for fungus gnat larvae.
How to use:
- Add Bits (or a small piece of Dunk) to water.
- Let it steep for at least 30 minutes (longer is fine).
- Water your plants/substrate with that treated water.
- Repeat once per week for 3–4 weeks.
Bioactive/terrarium note: BTI is targeted, but every enclosure is different. If you run sensitive species, test a small section first and don’t flood the enclosure just to apply it.
Step 4: Make your setup less inviting (or they’ll keep returning)
Reduce moisture at the surface
- Let the top layer dry out between waterings (houseplants).
- Bottom-water when possible.
- Improve airflow (even a small fan in the room helps).
Top-dress the surface (optional but powerful)
A dry barrier makes it harder for adults to lay eggs and for larvae to thrive.
- Coarse sand (houseplants)
- Fine gravel or pumice
- For terrariums: use only if it fits your setup and won’t disrupt your cleanup crew.
Remove the worst offenders
If one pot is a gnat factory, consider repotting into fresh, better-draining mix. Discard old soil and clean the pot.
Extra tools (for stubborn infestations)
- Beneficial nematodes (Steinernema feltiae): hunt larvae in substrate.
- Predatory mites (Stratiolaelaps scimitus): great for consistently moist setups.
The “Do This For Two Weeks” Quick Plan
Day 1: Put out sticky traps + water with BTI-treated water.
Day 7: Repeat BTI watering + replace traps if needed.
Day 14: Repeat BTI watering again. Keep going to 3–4 weeks total if it was heavy.
Common mistakes that keep fungus gnats alive
- Only using sticky traps (larvae keep coming).
- Overwatering / constantly wet soil surface.
- Treating once then stopping too early.
- Not isolating new plants (gnats hitchhike constantly).
Final takeaway
To actually win:
- Adults: yellow sticky traps
- Larvae: Mosquito Bits/Dunks (BTI)
- Prevention: less surface moisture + good habits