How to Get Rid of Fungus Gnats in Houseplants for Good
🔎 Free tool: Not sure how often to water? Try our Houseplant Watering Calculator for a schedule tailored to your plant, light and pot.
What Are Fungus Gnats, Really?
Tiny black flies that hover around houseplants, or burst out of the pot when you water, are usually fungus gnats. These mosquito-like insects measure roughly 1/8 inch long and spend much of their life cycle in damp potting mix. Adult gnats are mostly a nuisance. The larvae are the real problem: they feed on fungi and decomposing material in the soil, and heavy infestations can nibble delicate roots.
That matters most for seedlings, cuttings, and plants already struggling with poor drainage or stress. A healthy pothos may shrug them off; a tray of young herbs often will not.
Fungus gnats need one thing more than anything else: soil that stays wet for too long. Fix that, and you remove the conditions they depend on.
Step 1: Let the Soil Dry Out
Start here. It is usually the fastest and most effective change you can make because eggs and larvae do poorly when the upper part of the pot dries properly.
- Wait until the top 1–2 inches of soil feel dry before watering again.
- For moisture-loving plants such as ferns, do not let the whole root ball become bone-dry. Instead, water a little less often and make sure the mix is moist rather than swampy.
- Use pots with drainage holes, and empty saucers after 10–15 minutes. A pot sitting in a shallow pool of water is basically an invitation for gnats.
After one or two better-spaced watering cycles, many people notice fewer adults flying around. It is not instant, but the difference can be surprisingly obvious.
Step 2: Use Yellow Sticky Traps
Yellow sticky traps do not kill larvae beneath the soil, so they are not a complete solution on their own. They are still extremely useful for catching adult gnats before they lay more eggs, and for showing whether the infestation is actually improving.
- Place 2–3 yellow sticky cards in or just above the soil of each affected pot.
- Replace them once a week, or earlier if the surface is covered with gnats.
- Fewer trapped adults from week to week means your soil treatments are doing their job.
Think of the traps as both pest control and a simple progress report. If one card catches 30 gnats in a few days, that pot needs attention.
Step 3: Apply BTI (Bacillus thuringiensis israelensis)
BTI is one of the most dependable ways to deal with fungus gnat larvae. It is a biological treatment that targets the larvae without harming plants, pets, children, or beneficial insects when used as directed.
- Look for products such as Mosquito Bits or Gnatrol.
- To make a soil drench, soak Mosquito Bits in water overnight, strain if needed, then water the affected plants with that infused water. Some products can also be sprinkled directly over the soil surface.
- Repeat every 1–2 weeks for about a month. Fungus gnats can complete the egg-to-adult cycle in roughly 3–4 weeks, so consistency matters.
BTI handles the hidden stage of the problem. Sticky traps catch the flyers; BTI takes care of what is living in the pot.
Step 4: Top-Dress With Sand or Diatomaceous Earth
A dry barrier across the soil surface makes it harder for adult gnats to lay eggs and for larvae to move upward.
- Add a ½-inch layer of coarse sand, horticultural grit, or fine gravel over the potting mix.
- Food-grade diatomaceous earth is another option. Sprinkle it lightly on dry soil, avoid breathing in the dust, and reapply after watering because it loses effectiveness once wet.
Coarse sand tends to be the lower-maintenance choice for indoor plants. It also gives pots a neat, finished look.
Step 5: Try a Hydrogen Peroxide Soil Drench for Severe Cases
For a particularly bad infestation, mix 1 part 3% hydrogen peroxide with 4 parts water and use it as a one-time soil drench. It may fizz when it reaches organic material and larvae in the soil, helping kill larvae on contact before breaking down into water and oxygen.
Use this sparingly, not every time you water. It can be helpful as a reset for a badly infested plant, but better watering habits and BTI are more suitable for long-term control.
Common Mistakes That Keep Gnats Coming Back
- Watering “just in case”, Consistently damp soil is the main reason fungus gnats return.
- Reusing tired potting soil without refreshing it, Old mix often holds excess moisture and decaying material that larvae feed on.
- Forgetting saucers and trays, Even if the pot itself has dried out, standing water in a drip tray can support gnats.
- Treating only the obvious plants, Adults travel easily from pot to pot. If you have 12 houseplants in one room, inspect and treat the whole group.
Prevention Tips Going Forward
- Water thoroughly, then wait until the soil has partly dried before watering again.
- Choose a fast-draining potting mix with perlite, orchid bark, or similar material mixed in.
- Keep new plants separate for two weeks before placing them beside your existing collection.
- Use a thin sand layer on plants that have repeatedly attracted gnats.
Final Thoughts
Getting rid of fungus gnats is mostly about interrupting their life cycle. Let the soil dry enough to make it unfriendly, trap the adults, use BTI for the larvae, and create a barrier on the surface.
With steady treatment, most infestations fade within 3–4 weeks. Once overwatering is no longer part of the routine, these tiny flies usually stop being a recurring houseplant problem.