How-to · July 30, 2026

How to Get Rid of Fungus Gnats (And Keep Them Gone)

Fungus gnats are annoying but beatable. Learn what causes them, how to break their life cycle, and how to keep your soil gnat-free for good.

You're watering your pothos and a little cloud of tiny flies lifts off the soil. Fungus gnats. They're one of the most common complaints among houseplant owners, and they have a knack for appearing right when you've finally gotten your plant routine dialed in. The good news: they're more of a nuisance than a catastrophe for most healthy adult plants, and they're genuinely controllable once you understand what you're dealing with.

The key is knowing that what you see flying around — the adult gnats — are almost beside the point. The real action is underground, where larvae feed on organic matter in moist soil and, in larger numbers, can nibble on tender roots. Getting rid of fungus gnats means interrupting that underground life cycle, not just swatting at what's in the air.

What fungus gnats actually are (and why your soil invited them)

Fungus gnats (most commonly Bradysia species) are small, dark-bodied flies that look a little like tiny mosquitoes. Adults live only about a week and don't bite or harm plants directly — their sole mission is to mate and lay eggs. A single female can lay up to 200 eggs in moist soil rich with organic matter, which is exactly what most quality potting mixes offer.

The larvae that hatch are slender, white, and nearly translucent, with a shiny black head. They live in the top few inches of soil, where they feed primarily on decaying plant material and fungal threads (hence the name). In light infestations this rarely harms established plants. In heavier infestations — or when delicate seedlings or newly rooted cuttings are involved — larval feeding on fine root hairs can cause wilting, yellowing, and slow growth that's easy to misread as a watering problem.

The single biggest invitation you can give fungus gnats is consistently wet topsoil. Overwatering is far and away the most common cause of persistent gnat problems. If you can fix the moisture issue, you've already done most of the work.

Step one: Let the soil dry out

Before you reach for any treatment, adjust your watering. Fungus gnat larvae need moisture to survive and eggs need it to hatch. Allowing the top two inches of soil to dry completely between waterings removes the conditions they depend on — and for many houseplants, this is perfectly appropriate care anyway.

This is particularly relevant for plants that are often overwatered out of habit: pothos, snake plants, ZZ plants, heartleaf philodendrons, and peace lilies are common victims. Push a finger into the soil before every watering session. If it's still damp at the first knuckle, wait. If you're not sure whether it's truly dry, a moisture meter takes the guesswork out entirely.

For plants that genuinely need consistent moisture — Boston ferns, calatheas, maidenhair ferns — the drying approach needs to be more strategic. Focus on surface dryness rather than letting the whole root zone dry out, and compensate with a physical barrier on top of the soil (more on that below).

Breaking the life cycle: treatments that actually work

Sticky yellow cards placed just above soil level catch adult gnats and are a useful way to gauge how bad an infestation is. They won't eliminate the problem on their own because the adults you're catching have often already laid eggs, but they help you track whether your other efforts are working.

Bacillus thuringiensis var. israelensis (Bti) is a naturally occurring soil bacterium sold under brand names like Gnatrol or Mosquito Bits. When watered into the soil, it produces proteins that are toxic to fungus gnat larvae but harmless to plants, humans, pets, and beneficial insects. It's the most effective larval control available to home growers and is approved for organic use. Soak Mosquito Bits in water for 30 minutes and then use that water to thoroughly drench the soil. Repeat every week or two for a month.

Neem oil, applied as a soil drench (not just a foliar spray), disrupts larval development and discourages egg-laying adults. Mix a small amount of concentrated neem oil with a few drops of dish soap and water, then water it into the soil. It has a strong smell that dissipates over a day or two. It's a reasonable option but generally considered less reliably effective on larvae than Bti.

Hydrogen peroxide drenches (one part 3% hydrogen peroxide to four parts water) can kill larvae on contact and break down quickly into water and oxygen, leaving no harmful residue. It's a fast-acting option when an infestation is severe. Drench the soil thoroughly and let it bubble — that fizzing reaction is the larvae being eliminated. Follow up with Bti treatments to prevent re-infestation.

Diatomaceous earth (food-grade) spread in a thin layer across the soil surface can deter adults from laying eggs. It works by physically damaging the exoskeleton of insects that cross it. It's less effective once it gets wet, so it needs to be reapplied after watering.

Physical barriers and long-term prevention

A layer of coarse material over the potting soil can make the surface inhospitable for egg-laying adults, even without any chemical treatment. Options include horticultural sand (at least a half-inch layer), fine gravel, or decorative pebbles. These top-dressings stay drier than potting mix, and adult gnats strongly prefer moist, soft organic surfaces for egg-laying.

When you repot, take the opportunity to refresh old potting mix. Older soil that has broken down into fine, peaty particles stays wet longer and harbors more fungal material for larvae to feed on. A well-structured mix with perlite or bark chips drains faster, dries faster, and is simply less hospitable to gnats. This matters most for plants that have been in the same pot for several years.

Quarantining new plants before introducing them to your collection is one of the most underrated prevention strategies. A new plant from a nursery can arrive with eggs already in the soil. Keep new arrivals separate for two to three weeks, watch for adult gnats, and treat proactively if you see any. This protects every plant you already own.

If you start plants from seed or take cuttings, be especially vigilant. The fine root systems of seedlings and freshly rooted cuttings are the most vulnerable to larval damage. Use a sterile, well-draining propagation mix, keep surfaces as dry as you can manage, and use Bti preventively rather than waiting for gnats to appear.

When to worry (and when not to)

For most established houseplants, a mild fungus gnat infestation is more cosmetically annoying than truly dangerous. A few gnats rising up from your monstera or golden pothos when you water is not a crisis. Take it as a gentle signal that your soil is staying too wet, adjust your watering, and treat the soil — the problem will resolve.

Watch more closely if you notice wilting or yellowing that doesn't match what you'd expect from your watering habits. Pull a struggling plant gently out of its pot and look at the roots. Healthy roots are white or tan and firm. Roots that are brown, mushy, or seem sparse for the size of the plant may indicate significant larval feeding, or may point to root rot from overwatering (often the two problems go together, since the conditions that cause root rot also attract gnats).

Calatheas, nerve plants, maidenhair ferns, and other plants with fine, delicate root systems are worth monitoring more carefully than tough-rooted plants like snake plants or ZZ plants. Seedlings and cuttings in propagation media deserve the most attention of all. In those cases, treating early and treating thoroughly is genuinely important rather than optional.

The short version
  • Yellow sticky cards are your monitoring tool, not your cure — use them to measure progress, not to eliminate the infestation.
  • Mosquito Bits (Bti) is widely available at garden centers and hardware stores; it's one of the safest and most effective larval treatments you can use indoors.
  • Bottom watering reduces surface moisture and is a smart long-term practice for gnat-prone plants — it keeps the topsoil drier while still hydrating roots deeply.
  • Never let water sit in saucers for extended periods; standing water under a pot keeps the base of the soil perpetually damp.
  • If your infestation persists despite treatment, check that you're letting the soil dry enough — consistent moisture is the single biggest driver of reinfestation.

FAQ

Where do fungus gnats come from if I haven't brought in any new plants?

Fungus gnat eggs and larvae are often present in bags of potting mix before you ever open them. They can also fly in through window screens, especially in warmer months. The most common trigger, though, is simply a change in your watering habits — if your soil is staying wetter than usual, gnats that were barely present can suddenly multiply into a noticeable infestation.

Do fungus gnats harm my plants?

Adult gnats don't harm plants at all. Larvae feed primarily on decaying organic matter in the soil and typically cause little damage to established plants with healthy root systems. In large infestations, larvae can damage fine root hairs, leading to wilting or yellowing — and seedlings or freshly rooted cuttings are more vulnerable because their root systems are less developed.

How long does it take to get rid of a fungus gnat infestation?

With consistent treatment — letting the soil dry out and applying Bti every one to two weeks — most infestations resolve within three to four weeks. The fungus gnat life cycle from egg to adult takes about three to four weeks at room temperature, so you need to maintain treatment long enough to break the cycle completely. Seeing a few adults for several weeks after you start treating is normal; watch the sticky cards to confirm numbers are declining.

Is it safe to use hydrogen peroxide on my plants?

A diluted 3% hydrogen peroxide solution (one part hydrogen peroxide to four parts water) is safe for most houseplants when used as a soil drench. It kills larvae on contact and breaks down rapidly into water and oxygen. Avoid using stronger concentrations, and don't apply it as a foliar spray — it can bleach leaves. It's best used as a fast-acting intervention rather than a long-term maintenance treatment.

Can I use cinnamon to get rid of fungus gnats?

Cinnamon is sometimes recommended online as a fungus gnat remedy. It does have mild antifungal properties that may reduce the fungal food source in soil, and sprinkling it on the surface may have some deterrent effect on adult egg-laying. However, it won't kill existing larvae, and the evidence for its effectiveness is largely anecdotal. It's harmless to try alongside more proven methods, but don't rely on it as your primary treatment.