How to Get Rid of Fungus Gnats in Houseplants (For Good)
Fungus gnats ruining your plants? Here’s the two-phase method that actually works — kill the larvae first, then trap the adults.
How to Get Rid of Fungus Gnats in Houseplants (For Good)
You notice tiny dark flies hovering just above your soil every time you water. You wave them away, they come back. A week later there are more. The frustrating truth is that swatting or spraying those adults is almost completely pointless — the real problem is happening underground, in your potting mix, where hundreds of larvae are quietly chewing through your plant’s roots.
I’ve been growing plants professionally for 25 years, and fungus gnats are one of the most persistent pests I see people struggle with — not because they’re hard to control, but because most gardeners attack the wrong life stage. This guide walks you through the complete biology of the pest, every effective treatment method, and a clear timeline for getting your plants back to health.

We go deeper into identification and treatment in our guide to integrated pest management ipm.
The Fungus Gnat Life Cycle: Why Adults Are the Least of Your Problems
Fungus gnats (Bradysia spp.) complete a four-stage life cycle — egg, larva, pupa, adult — and understanding which stage is actually damaging your plants changes everything about how you treat them.
Seasonal Garden Calendar
Know exactly what to plant, prune and sow — every month of the year.
Eggs are tiny (0.2 mm), white, and laid in batches of up to 30 in the top one to two inches of moist potting soil. A single adult female can deposit 100–200 eggs in her short lifetime. Eggs hatch in three to six days under typical indoor temperatures.
Larvae are the stage that matters. They’re translucent white, roughly 5–6 mm long at maturity, with a distinctive shiny black head capsule. Larvae progress through four instars (L1–L4) over one to two weeks. During the first two instars they feed almost entirely on decaying organic matter and fungal threads (hence “fungus” gnat). By L3 and L4, especially under population pressure, they turn to root hairs, fine feeder roots, and the base of stems. This is where the real damage occurs.
According to the University of Wisconsin Extension, larvae also serve as mechanical vectors for soilborne pathogens — Pythium, Fusarium, and Botrytis in particular — carrying spores on their bodies as they move through the root zone. A mildly overwatered plant that might have recovered on its own can tip into full root rot once fungus gnat larvae are present in numbers.
Pupae form in a silk-lined cocoon near the soil surface. This stage lasts four to six days. Pupae do not feed and are not susceptible to most treatments, which is why you need to maintain any treatment programme through multiple application cycles.
Adults live for seven to ten days. They are weak fliers, rarely moving more than a metre from the pot. They do not feed on plants or bite humans. Their sole biological purpose is reproduction — and the cycle restarts. Under warm indoor conditions (20–24°C), a full generation takes three to four weeks, meaning an untreated population builds exponentially.
Dealing with this outdoors? find get rid thrips walks through organic options that actually work.
The practical implication: even a perfect larval kill this week will be followed by adults emerging from pupae already in the soil, and from eggs that haven’t hatched yet. Treatment needs to be sustained for at least four weeks to break every overlapping generation.
Fungus Gnats vs. Shore Flies: How to Tell Them Apart
Fungus gnats are frequently confused with shore flies (Scatella spp.), which also appear in moist potting soil. The distinction matters because shore fly larvae do not feed on roots — they feed on algae — and the treatment approach differs.
| Feature | Fungus Gnat | Shore Fly |
|---|---|---|
| Body length | 2–3 mm, slender | 3–5 mm, stocky |
| Wing markings | Clear with forked Y-vein visible | Dark with 5 white spots |
| Antenna | Long, bead-like | Short, bristle-like |
| Movement | Erratic, hovers near soil | Runs across surfaces, short bursts of flight |
| Larval feeding | Roots, organic matter, fungi | Algae only |
| Sticky trap catch | Yellow traps near soil surface | Also caught on yellow traps |
If you’re unsure which pest you have, look at a trapped adult under a magnifying glass. The forked Y-vein in the wings is the clearest fungus gnat identifier. Shore flies respond to improved sanitation and reduced moisture on hard surfaces rather than soil treatment.
Treatment Method 1: Soil Drydown (The Foundation of Every Programme)
Before you spend money on any product, address the root cause: chronically moist soil. Fungus gnats cannot complete their life cycle without consistently damp substrate. The Penn State Extension identifies allowing the top layer of soil to dry as one of the most effective and environmentally sound controls available.
Allow the top two inches to dry completely before watering again. Test with a finger or a wooden chopstick — if it comes out clean and dry at two-inch depth, you’re safe to water. This won’t kill existing larvae, but it dramatically reduces egg hatching success and larval survival.
Supporting tactics:
- Bottom-water. Pour water into the saucer and let the plant absorb from below, keeping the top inch dry.
- Improve drainage. Pots sitting in standing water keep soil saturated indefinitely. Empty saucers after 30 minutes.
- Upgrade your mix. Peat-heavy mixes stay wet for days. A mix amended with perlite, pumice, or coarse bark dries faster and is less hospitable to larvae.
Treatment Method 2: Hydrogen Peroxide Drench
For an active infestation, a hydrogen peroxide drench delivers fast larval kill without chemical residue. Mix one part 3% hydrogen peroxide (standard pharmacy strength) with four parts water. Water the plant thoroughly with this solution until it drains from the bottom of the pot.
The peroxide reacts with organic matter in the soil, releasing oxygen and killing soft-bodied larvae on contact — you’ll often see a light fizzing in the top inch. It then breaks down completely into water and oxygen within hours, leaving nothing harmful behind. It is safe for the roots of established plants at this dilution.
Important limitations: the peroxide penetrates the top two to three inches most effectively, so larvae deeper in large pots may survive. It also deactivates any BTi bacteria in the soil, so do not use both simultaneously. Apply once per week for two to three weeks to catch newly hatched larvae from eggs that survive the first treatment.

Treatment Method 3: BTi (Bacillus thuringiensis israelensis) — Mosquito Bits
BTi is a naturally occurring soil bacterium that produces crystal proteins specifically toxic to the larvae of fungus gnats, mosquitoes, and related Diptera. When larvae ingest soil or water containing BTi, the proteins disrupt their gut epithelium and kill them within 24–48 hours. BTi has no effect on plants, earthworms, pollinators, mammals, or beneficial insects — its mode of action is specific to flies in the suborder Nematocera.
If fungus gnats is a recurring problem, get rid scale insects their identification covers the most effective solutions.
The most widely available domestic product is Mosquito Bits (Summit Chemical). To use for fungus gnats: soak four tablespoons of Mosquito Bits in one gallon of water for 30 minutes, skim off the floating granules, and use the BTi-infused water for normal irrigation. The Oklahoma State University Extension recommends applications every five to seven days, since BTi kills larvae but not eggs or pupae — repeat applications are essential to catch newly hatched larvae between cycles.
Gnatrol WDG is a professional-grade BTi concentrate used in commercial greenhouse production. It contains a higher BTi concentration than Mosquito Bits and is more cost-effective for large plant collections. It is available from horticultural supply companies but harder to source in small quantities. For most home growers, Mosquito Bits remain the practical choice.
BTi is my first-line recommendation for moderate to heavy infestations. It is the only treatment method with both high efficacy and a completely benign environmental profile. The main requirement is persistence — skip a week and you allow a new cohort of larvae to establish.
Treatment Method 4: Neem Oil Soil Drench
Neem oil’s active compound, azadirachtin, functions as an insect growth regulator (IGR) — it disrupts the moulting process and reproductive physiology of insect larvae rather than killing on contact. Applied as a soil drench, it can remain biologically active for up to 22 days.
For a neem soil drench: use cold-pressed, pure neem oil (not a pre-diluted foliar spray concentrate) at two tablespoons per gallon of water, emulsified with half a teaspoon of insecticidal soap or dish soap. Apply to the root zone weekly. Penn State Extension notes that neem-based treatments alone do not provide reliable long-term control, so treat neem as a useful supplementary tool rather than a primary treatment.
Neem is a reasonable choice if you are committed to a single-product organic programme or cannot source BTi, but its efficacy is more variable than either H₂O₂ drenches or BTi. It also requires more careful emulsification to be effective — neem oil that isn’t properly emulsified will bead off soil particles rather than penetrating.
Treatment Method 5: Diatomaceous Earth (Surface Treatment)
Food-grade diatomaceous earth (DE) is a fine powder made from fossilised diatom shells. When insects with soft cuticles — including fungus gnat larvae and adults — contact DE, the sharp silica particles damage their exoskeleton and cause desiccation. Spread a thin, even layer (2–3 mm) across the soil surface.
DE works best as a barrier and contact treatment for crawling adults and larvae near the surface. Its effectiveness diminishes when it gets wet, so reapply after each watering. It should not be inhaled — use a dust mask when applying. It works better as a preventive topdress than a standalone cure for an active infestation, but combined with soil drydown it adds useful pressure on the adult and near-surface larval populations.
Treatment Method 6: Sand or Grit Topdress
Applying a 1–2 cm layer of coarse horticultural sand, pea gravel, or fine grit to the soil surface creates a physical barrier that deters adult egg-laying. Adult fungus gnats strongly prefer laying eggs in soft, damp organic material — a dry mineral surface is much less attractive. Grit topdressing is primarily preventive and works well as a long-term maintenance measure on susceptible plants like calathea, maidenhair fern, and peace lily that need consistent moisture.
Treatment Method 7: Beneficial Nematodes
Steinernema feltiae is an entomopathogenic nematode that actively hunts and parasitises fungus gnat larvae in the soil. Unlike BTi (which must be ingested), S. feltiae infects larvae by penetrating the cuticle, releasing symbiotic bacteria that kill the host within 24–48 hours.
Nematodes are applied as a soil drench — you mix the nematode concentrate in water and water it in thoroughly. They remain active in the soil for several weeks under appropriate conditions (soil temperature above 12°C, adequate moisture, protected from UV light). They are safe for plants, earthworms, bees, and mammals.
The main limitation is availability and shelf life — beneficial nematodes must be used within a few weeks of purchase and stored refrigerated. They are most cost-effective for large plant collections or greenhouse settings. For a few houseplants, Mosquito Bits are more practical. However, if you have a recurrent problem across many pots, a single nematode application covering all affected soil is worth considering.
Treatment Method 8: Yellow Sticky Traps
Yellow sticky traps do not cure the underlying infestation — adults caught on traps are adults that have already mated and laid eggs. However, they serve two genuine purposes: reducing the breeding adult population (fewer adults means fewer eggs laid the following week), and functioning as a monitoring tool to gauge whether your larval treatments are working.
Push the stakes into the soil just above the surface, as close to the pot as possible. Adult fungus gnats stay near the soil, so low positioning matters — a trap at eye level across the room is largely useless. Replace traps when full, typically after two to three weeks. Expect to see high adult counts in week one, declining across weeks two and three as the larval population is eliminated and new adults stop emerging.
Complete Treatment Programme Comparison
| Method | Target Stage | Speed | Efficacy | Notes |
|---|---|---|---|---|
| Soil drydown | Eggs, all stages | 1–2 weeks | High (prevention/control) | Free. Foundation of every programme. |
| H₂O₂ drench (1:4) | Larvae (contact) | Hours | High | Don’t combine with BTi. Weekly x3. |
| BTi (Mosquito Bits) | Larvae (ingested) | 24–48 hrs | Very high | Best all-round. Every 5–7 days. No eco risk. |
| Neem oil drench | Larvae (IGR) | Days–weeks | Moderate | Supplementary. Requires proper emulsification. |
| Diatomaceous earth | Adults, surface larvae | Hours (contact) | Moderate | Reapply after watering. Best as barrier. |
| Sand/grit topdress | Adult egg-laying | Ongoing | Moderate (preventive) | Good long-term maintenance measure. |
| Beneficial nematodes (S. feltiae) | Larvae | 24–48 hrs | Very high | Best for large collections. Short shelf life. |
| Yellow sticky traps | Adults | Immediate | Low (monitoring) | Position near soil surface. Monitoring tool primarily. |
The Four-Week Rescue Timeline
A typical infestation clears within four weeks when you combine soil drydown with a consistent larval treatment. Here’s how to structure it:
Week 1: Deploy yellow sticky traps at soil level. Stop all top-watering and let the soil dry down as far as the plant will tolerate (most tropical houseplants tolerate the top three to four inches drying completely). Begin BTi watering (or first H₂O₂ drench if you’re going that route). Adult catches on traps will be high — this is normal.
Week 2: Second BTi application (or second H₂O₂ drench). Adult catches on traps should begin to decline. Continue allowing the soil to dry between waterings. The larvae from last week’s eggs are now hatching — the BTi or peroxide needs to catch them now.
Week 3: Third BTi application. Adult counts on traps should be noticeably lower. The majority of the larval population should now be dead. Any remaining adults are from pupae that formed before treatment began.
Week 4: Fourth BTi application (optional — some infestations are fully clear by now). If sticky trap catches are at zero or near-zero for five consecutive days, the infestation is broken. Continue bottom-watering and dry-between-waterings habits permanently.
If adults persist past week four, look for a secondary breeding source: another pot nearby, standing water in a drain, a bag of damp potting mix left open, or decomposing plant material.
How to Prevent Fungus Gnats Coming Back
- Water only on demand, never on schedule. The single biggest driver of chronic fungus gnat problems is watering by the calendar rather than checking soil moisture. Always check before you water.
- Use a well-draining mix. Peat-heavy mixes stay wet for extended periods. A mix amended with perlite (20–30%), pumice, or coarse bark dries faster and discourages oviposition.
- Quarantine all new plants. New arrivals — especially those from garden centres or online sellers — frequently carry eggs or larvae in the potting mix. Isolate them for two weeks and treat with BTi immediately on arrival.
- Apply a sand or grit topdress to vulnerable plants. Plants that need consistently moist soil are ongoing targets. A grit layer keeps the surface dry and hostile to egg-laying adults.
- Keep one or two sentinel traps running permanently. A yellow trap near your most vulnerable plants will catch early arrivals before a new infestation builds. When you start seeing adults on traps, begin BTi waterings immediately — don’t wait for the population to grow.
- Don’t leave standing water in saucers. Empty saucers 30 minutes after watering.

FAQs
How long does it take to get rid of fungus gnats?
With consistent treatment — reduced watering, BTi or H₂O₂ soil drench, and sticky traps — most infestations are under control within two to three weeks and fully cleared within four. The critical factor is persistence: because eggs, larvae, pupae, and adults are all present in the soil simultaneously, you must maintain treatment long enough to break every overlapping generation.
Can fungus gnats kill my houseplants?
Established plants with healthy root systems generally tolerate low-level infestations. The real danger is to seedlings, cuttings, and plants already stressed by overwatering — in those cases, L3 and L4 larval root feeding, combined with the fungal pathogens the larvae carry, can cause rapid decline and death. If your plant is showing root rot symptoms alongside a gnat problem, treat both simultaneously.
Do fungus gnats come from potting soil I buy?
Yes. Commercially sold peat-based potting mixes can harbour eggs and larvae, particularly if stored in warm, humid conditions at the garden centre. This is one of the most common routes of introduction into a home with no prior gnat problem. As standard practice, treat all newly potted plants with BTi water immediately after potting, regardless of whether you see adult flies.
Are fungus gnats harmful to humans or pets?
No. Fungus gnat adults do not bite, sting, or carry human pathogens. They are purely a plant problem. The treatments recommended here — BTi, hydrogen peroxide at appropriate dilution, neem oil, diatomaceous earth — are also safe around children and pets when used as directed.
Should I use chemical insecticides?
Conventional insecticides such as pyrethrin drenches or systemic imidacloprid can kill larvae but carry broader environmental risks and, in the case of imidacloprid, potential impacts on beneficial insects if the treated plant is later moved outdoors or visited by pollinators. In my view, BTi is as effective and carries essentially no ecological risk. I do not routinely recommend synthetic insecticides for fungus gnat control in a home setting.
Sources
- University of Wisconsin Horticulture Extension. Fungus Gnats on Houseplants. Wisconsin Horticulture Division of Extension. hort.extension.wisc.edu
- Penn State Extension. Fungus Gnats in Indoor Plants. Pennsylvania State University. extension.psu.edu
- Oklahoma State University Extension. Get Control of Fungus Gnats on Houseplants. OSU Extension. extension.okstate.edu
- Cornell Cooperative Extension Allegany County. A Spooky Houseplant Pest: Fungus Gnats. Cornell Cooperative Extension. allegany.cce.cornell.edu
- Cloyd, R.A. Management of Fungus Gnats in Greenhouse and Nursery Production. Kansas State University Agricultural Experiment Station. ksre.k-state.edu









