Pests & Problems
How to Get Rid of Fungus Gnats in Houseplants
Learn how to get rid of fungus gnats in houseplants fast with sticky traps, soil drenches, and watering changes that actually work.

Fungus gnats are small, soil-dwelling flies whose larvae feed on organic matter and tender root tips in potting mix. If you spot tiny dark gnats hovering near your pots or skimming the soil surface, you almost certainly have them. The fix isn't complicated, but it does require tackling both the adults and the larvae simultaneously, swatting the flying ones buys you nothing if the next generation is already hatching in the soil.
Why Fungus Gnats Show Up
The larvae (Bradysia species, most commonly) need moist, organic-rich soil to survive. They don't thrive in dry conditions; they thrive when the top few inches of potting mix stay consistently damp. Overwatering is the single most common reason a plant develops a gnat infestation.
Peat-heavy potting mixes are especially hospitable because they retain moisture and decompose slowly, giving larvae plenty to eat. Perlite-amended or bark-based mixes dry out faster and are naturally less welcoming.
A few other triggers:
- Bringing home a new plant with larvae already in the nursery soil
- Repotting with old, partially composted potting mix
- Keeping plants in low-light spots where evaporation is slow
- Saucers that hold standing water for more than a day
Fungus gnats are annoying rather than catastrophic for most established plants, but heavy larval feeding on root hairs can stress seedlings and cuttings badly enough to stunt or kill them.
How to Confirm It's Fungus Gnats (Not Fruit Flies)
Fruit flies circle around ripening fruit and fermenting liquids. Fungus gnats circle soil and are most active near the pot surface. To check: press a piece of raw potato, cut side down, onto the soil surface for 24 hours. If you lift it and see tiny white larvae clinging to the flesh, you have fungus gnats. If not, the problem is likely fruit flies originating elsewhere in the kitchen.
Adult fungus gnats are about 2–3 mm long, dark gray to black, with long legs and a slow, meandering flight pattern. Under magnification the larvae are translucent white with a shiny black head.
Getting Rid of Fungus Gnats: A Two-Front Approach
Controlling fungus gnats means addressing adults above the soil and larvae below it at the same time. Doing one without the other just prolongs the infestation.
Step 1: Let the Soil Dry Down
Before reaching for any product, change your watering habit. Allow the top 2 inches of soil to dry out completely between waterings. For most tropical houseplants (pothos, philodendrons, peace lilies) this won't cause harm. Succulents and cacti can go much longer. Bottom watering, setting the pot in a tray of water for 20–30 minutes, then draining, keeps the top layer of soil dry while still hydrating the root zone.
This single change collapses larval survival rates dramatically because newly hatched larvae desiccate quickly in dry soil.
Step 2: Use Yellow Sticky Traps
Yellow sticky traps catch adult gnats and break the egg-laying cycle. Place them horizontally just above soil level (adults tend to stay low) or vertically near the pot. One trap per medium pot is usually enough. Check them every few days; a heavily infested plant might fill a trap within a week.
Sticky traps won't eliminate an infestation on their own, but they give you a reliable measure of whether the population is declining over two to three weeks.
Step 3: Apply a Biological or Chemical Soil Drench
This is where you target larvae directly.
Bacillus thuringiensis israelensis (Bti) is a naturally occurring soil bacterium sold under names like Mosquito Bits or Gnatrol. It's highly effective against fungus gnat larvae and is safe for plants, pets, and people. Soak the Mosquito Bits in water for 30 minutes, then use that water to drench the soil. Repeat every 7–10 days for a month. Bti only works when larvae ingest it, so the drench needs to reach down through the root zone.
Beneficial nematodes (Steinernema feltiae) are microscopic roundworms that actively seek and parasitize larvae in soil. Mix them into water per package directions and apply as a drench immediately (nematodes don't survive long once mixed). Soil temperature between 50–85°F (10–29°C) is needed for them to stay active. Nematodes are completely harmless to plants, people, and pets.
Hydrogen peroxide drench (3% solution, diluted 1:4 with water) kills larvae on contact through oxidation. It breaks down into water and oxygen quickly and doesn't harm roots at this dilution. It's a useful quick fix but has no residual effect, so you may need to repeat it after 5–7 days.
Step 4: Consider a Top Dressing
Applying a 1-inch layer of coarse horticultural sand or fine gravel on top of the potting mix makes the surface inhospitable to egg-laying adults. They prefer to oviposit in moist organic material; dry inorganic topdressings discourage them. This won't cure an active infestation but reduces reinfection once you've knocked the population down.
Treatment Timeline
| Week | What to do |
|---|---|
| Week 1 | Set sticky traps; let soil dry; apply first Bti drench |
| Week 2 | Reapply Bti drench; check trap counts |
| Week 3 | Third Bti drench; assess sticky trap catches |
| Week 4 | If population is down, maintain dry-top watering; add topdressing |
| Ongoing | Continue bottom watering; replace sticky traps monthly as monitoring |
Most infestations resolve within 3–4 weeks with consistent treatment. If you still see heavy adult activity at week four, consider swapping to a fresh, perlite-rich potting mix after knocking the larvae back.
Plants Most Commonly Affected
Fungus gnats hit hardest where potting mix stays moist the longest. In practice, that means:
- Ferns and calatheas, both prefer consistent moisture, giving larvae a steady window
- Peace lilies (Spathiphyllum), often kept too wet
- Pothos and heartleaf philodendrons, popular, frequently overwatered
- Seedling trays and propagation setups, high humidity, constant moisture, and tender roots are ideal for larvae
Succulents and cacti can get gnats if overwatered, but their natural preference for dry soil makes serious infestations uncommon.
If you're also dealing with discolored foliage alongside pest damage, check our guide on why plant leaves turn yellow, larval root feeding can sometimes cause yellowing that gets mistaken for a nutrient or watering problem.
Preventing Fungus Gnats from Coming Back
Once you've cleared an infestation, a few habits keep gnats from returning:
- Water on a schedule tied to soil moisture, not the calendar. Stick a finger 2 inches into the soil; if it's still damp, wait.
- Use a well-draining mix. Adding 20–30% perlite by volume to any standard potting soil improves drainage considerably.
- Inspect new plants before bringing them home. Press a small piece of potato into the soil at the nursery or quarantine new arrivals for a week on their own.
- Avoid leaving fallen leaves or decomposing organic matter on the soil surface.
Fungus gnats are one of the more common pest problems you'll run into with indoor plants. Unlike spider mites, which reproduce fast enough to defoliate a plant in weeks, gnats are more a nuisance pest. But if you're propagating cuttings or growing seedlings, keep an eye out for the signs covered in our guide to identifying and treating spider mites, since pest pressures often cluster in similar environments. Similarly, a plant weakened by gnat larvae can become more susceptible to other issues; see our mealybug treatment guide if you notice cottony white spots alongside a gnat problem.
Frequently Asked Questions
Will fungus gnats harm my plants?
For mature, established plants, a moderate infestation is mostly cosmetic, irritating, but unlikely to cause serious damage. The larvae feed on decaying organic matter and fine root hairs rather than healthy root tissue. However, seedlings, freshly rooted cuttings, and plants already stressed by overwatering can decline from larval feeding because their root systems are too small to absorb the damage.
Can I use dish soap to kill fungus gnats?
A dilute dish soap solution (a few drops per quart of water) kills adult gnats on contact when sprayed directly. It doesn't work on larvae in soil, and it can damage leaves or disrupt beneficial soil biology if overused. It's a quick short-term measure, not a treatment plan.
How long does it take to get rid of fungus gnats completely?
Expect 3–4 weeks with consistent treatment. The adult lifespan is about a week, and the larval stage lasts another 10–14 days, so you need to sustain pressure through at least two full cycles. Sticky traps give you a visible record of whether numbers are trending down.
Are fungus gnats dangerous to people or pets?
No. They don't bite, don't transmit disease, and don't infest food. They're a plant-specific nuisance. That said, if you're treating soil with any product, keep pets from digging in treated pots until the drench has dried and been absorbed.
Do fungus gnats come from store-bought potting soil?
Yes, sometimes. Bags of moist potting mix can harbor eggs or larvae. Leaving bags open and moist encourages them. Use fresh mix promptly after opening, store remaining mix in a sealed container, and consider spreading fresh mix out on a tray to dry slightly before use if you've had gnat problems before.