How to Get Rid of Fungus Gnats in Houseplants (For Good)
You've seen them: tiny dark flies that drift up from a plant when you water it, hover around your face, and die dramatically in your coffee. Those are fungus gnats — and while the adults are just annoying, understanding one fact about them changes everything: the flies are not the infestation. The infestation is in your soil, where each female lays up to 200 eggs in moist potting mix, and the larvae feed on fungus, organic matter, and — in heavy infestations — your plant's fine root hairs.
That's why swatting adults never works. Here's the plan that does.
First, confirm it's fungus gnats
Fungus gnats are mosquito-like: delicate, dark, weak fliers that stay near soil and windows. Fruit flies are rounder, tan, strong fliers that hang around your kitchen and ripe fruit. If they rise from a plant pot when disturbed, they're gnats. One more tell: press a few raw potato slices onto the soil surface and check underneath after a day or two — larvae (tiny translucent worms with black heads) gather on the underside.
The 4-step elimination plan
Step 1: Dry them out
Fungus gnat eggs and larvae need consistently moist topsoil to survive — it's non-negotiable for them. Let the top two inches of soil dry fully between waterings, on every pot in the room (they migrate). This alone collapses most infestations within two weeks, and it's usually a favor to the plant too, since gnats and overwatering are roommates. Switching to bottom-watering — pot in a tray of water for 20–30 minutes — keeps the surface layer dry while roots still drink.
Step 2: Trap the adults
Yellow sticky traps, stuck horizontally just above the soil, catch adults before they lay the next generation. This is population control and a progress meter in one — when a fresh trap stays mostly empty for a week, you're winning.
Step 3: Kill the larvae
For active infestations, treat the soil directly:
- BTI (Bacillus thuringiensis israelensis) — sold as Mosquito Bits/Dunks. Soak in your watering can (about 4 tablespoons of Bits per gallon, steep 30 minutes) and water it in. BTI is a larvae-specific biological control, harmless to plants, pets, and people. Repeat with each watering for 3–4 weeks to break the life cycle.
- Hydrogen peroxide drench — the fast home option: 1 part 3% peroxide to 4 parts water, watered through dry-ish soil. It fizzes on contact, killing larvae, then breaks down into water and oxygen.
Step 4: Seal the surface
Top-dress pots with a half-inch of coarse sand, fine gravel, or decorative grit. Females can't dig to the moist layer to lay eggs, and emerging adults struggle to surface. It's the door-closer once steps 1–3 have knocked the population down.
Why they keep coming back
Reinfestation almost always arrives by one of three routes: a new plant (quarantine newcomers for two weeks), a bag of potting mix that came with eggs (store opened bags sealed; some people microwave or bake small batches, or simply switch to sterile mixes for propagation), or one chronically soggy pot everyone forgot — often something moisture-loving hiding in a dim corner. Find that pot and you find the nursery.
Are they actually hurting the plants?
Light infestations: no, just your sanity. Heavy ones: yes — larvae chewing root hairs cause slowed growth, sudden wilting, and yellowing, especially in seedlings, cuttings, and small pots where the root system is mostly fine hairs. Seedling trays deserve the full plan at the first gnat sighting.
Gnats are a watering problem wearing wings
Fungus gnats show up where soil stays wet too long — and Leafora's species-specific watering schedules are built to prevent exactly that. Log each watering with one tap, let the app tell you when the soil should be dry enough for the next, and the gnats' nursery closes for good. Overdue alerts make sure no forgotten soggy pot in a dim corner restarts the cycle.
Frequently asked questions
Do fungus gnats mean I'm overwatering?
Almost always, at least at the surface level where they breed. Constantly moist topsoil is their only viable nursery — so a gnat cloud is best read as a moisture warning for the pot they're rising from, even if the plant itself still looks fine.
How long does it take to get rid of fungus gnats?
With drying + traps + a larvicide (BTI or peroxide), expect a dramatic drop in 1–2 weeks and elimination in 3–4 — you have to outlast every egg already in the soil, and the full egg-to-adult cycle runs about three weeks at room temperature.
Are fungus gnats harmful to humans or pets?
No — they don't bite, sting, or carry disease to people or pets. The BTI treatment is likewise specific to fly larvae and is safe around children and animals, which is why it's the recommended soil treatment.
Meet your plant's new doctor
Identify any plant, diagnose problems from a photo, and never miss a watering — free to start.