What Are Fungus Gnats
Fungus gnats are small flies in the family Sciaridae, primarily the genus Bradysia. Adults are 1–3mm long, dark gray to black, with long legs and a characteristic hunched-back appearance when at rest. They look similar to fruit flies but are more slender and are almost always found near plant soil rather than near food. Adults do not bite, do not feed on plants, and live only 7–10 days. The trouble is entirely underground.
The larvae — white, translucent maggots up to 5–6mm long with a shiny black head — are the damaging stage. They live in the top 2–3 inches of potting soil and feed on fungal hyphae, decaying organic matter, and critically, plant root hairs. In small numbers, larval feeding causes minimal damage. At high population densities, they consume root systems aggressively, leading to the kind of decline that is frequently mistaken for overwatering or fertilizer deficiency.
Lifecycle of a Fungus Gnat
Understanding the fungus gnat lifecycle is essential to breaking it effectively. Treatments that target only one stage will fail because the other stages continue the cycle unimpeded.
Egg Stage
A female fungus gnat lays 100–200 eggs in small clusters in moist soil, just below the surface and in cracks where soil has pulled away from the pot edge. Eggs are oval, yellowish-white, and invisible without magnification. At typical indoor temperatures (65–75°F), eggs hatch in 3–6 days.
Larval Stage
After hatching, larvae pass through four instars (development stages) over approximately 10–14 days. During this phase they feed actively in the top 2–3 inches of soil. Larval damage is most severe in the third and fourth instars. The larvae prefer soils with high organic matter content — peat-heavy commercial mixes, mixes rich in bark or compost, and any medium with decaying roots.
Pupal Stage
Larvae form pupae in the soil for 3–7 days, during which they are dormant and harder to kill with contact treatments. Adults emerge from the soil surface and begin seeking mates immediately.
Adult Stage
Adults live 7–10 days, during which each female lays up to 200 eggs. The complete lifecycle from egg to adult takes approximately 17–28 days at typical indoor temperatures. Because multiple generations overlap continuously, an untreated infestation escalates rapidly — populations can double every 2–3 weeks.
Why Overwatering Causes Them
Fungus gnats and overwatering are deeply linked — one almost always accompanies the other. Here is why:
Female fungus gnats are attracted to the moist, oxygen-depleted surface layer of waterlogged soil. They detect this through carbon dioxide gradients and volatile organic compounds released by decomposing organic matter. Constantly moist soil also supports the fungi and decomposing material that larvae eat alongside root hairs. A soil surface that dries out between waterings becomes inhospitable to both egg-laying and larval survival.
The damage larvae cause in overwatered pots compounds the overwatering problem: damaged roots can no longer take up water efficiently, causing the plant to wilt even while the soil is saturated — a common source of confusion. Many gardeners respond by watering more, which accelerates the gnat population. The solution is to break the overwatering habit and address both the pest and the root damage simultaneously. See our guide to root rot in houseplants for the root recovery process.
Signs of Infestation
Fungus gnat infestations have visible signs at both the adult and larval levels:
- Adults hovering around soil — the most obvious sign; adults stay close to the soil surface rather than flying around the room
- Adults on soil surface — they also crawl on the soil, making small, erratic movements
- Unexplained wilting or yellowing — especially in well-watered plants; indicates root damage from larvae
- Slow or stunted growth — heavy larval feeding reduces the root surface area available for nutrient and water uptake
- Larvae visible in soil — if you disturb the top inch of soil in a bright area, tiny white maggots may be visible wriggling away from light
- Potato-slice test — place a raw potato slice cut-side down on the soil for 24 hours; larvae are attracted to potato and will gather underneath, confirming their presence
Treatment Methods Ranked
The most effective approach combines multiple methods targeting different life stages simultaneously. Here they are ranked by importance:
1. Let the Soil Dry (Most Important)
Allow the top 2 inches of soil to dry completely between waterings. This single change kills eggs and young larvae, disrupts the breeding cycle, and makes the soil inhospitable for egg-laying adults. Without this step, no other treatment will achieve lasting control — eggs and larvae will simply keep appearing in the moist soil.
2. Yellow Sticky Traps
Place yellow sticky traps at soil level near infested pots. Adults are attracted to yellow and will land on the traps before they can lay new eggs. While sticky traps alone cannot eliminate an established infestation (they catch adults but not larvae or eggs), they dramatically reduce the adult population and provide a reliable measure of infestation severity. Change traps when they fill up, typically every 1–2 weeks.
3. BTi Soil Drench
Bacillus thuringiensis israelensis (BTi) is a naturally occurring soil bacterium that produces proteins toxic to fungus gnat larvae (and mosquito larvae) but completely harmless to plants, humans, pets, and beneficial insects. Sold as Mosquito Bits, Gnatrol, or similar products. See the dedicated section below for full application details.
4. Hydrogen Peroxide Drench
Mix 1 part 3% hydrogen peroxide with 4 parts water and use it as a soil drench instead of regular watering. The hydrogen peroxide reacts with soil organic matter, releasing oxygen that kills larvae and eggs on contact. It breaks down quickly into water and oxygen, leaving no harmful residue. The fizzing in the soil is normal and harmless. Repeat every 7–10 days for 3–4 applications.
5. Diatomaceous Earth as a Top Dressing
Food-grade diatomaceous earth (DE) spread as a 0.5–1 inch layer on the soil surface creates a physical barrier that dehydrates and kills adult gnats attempting to lay eggs. It is most effective in low-humidity conditions; DE clumps and loses effectiveness when wet, so reapply after watering.
6. Neem Oil Soil Drench
Neem oil applied as a soil drench has repellent effects on egg-laying adults and some activity against larvae. Mix according to our full neem oil guide. Neem is most useful as a supplemental treatment alongside BTi rather than as a standalone solution.
The BTi Method Explained
BTi is currently the gold standard for biological fungus gnat larval control and is the treatment recommended by most university extension services and professional horticulturalists.
How It Works
When fungus gnat larvae ingest soil containing BTi spores and the associated crystalline proteins (Cry toxins), the proteins bind to receptors in the larval gut lining, causing gut paralysis and death within 24–48 hours. The toxin is specific to the larval gut receptors of flies and mosquitoes — it has no mechanism to harm other organisms. BTi is approved for use in organic growing systems.
How to Apply
Mosquito Bits (the most widely available retail product) can be used in two ways: (1) Steep 4 tablespoons of Mosquito Bits in a gallon of water for 30 minutes, strain out the granules, and use the water to irrigate your plants normally. The BTi is now in suspension in the water and will be deposited throughout the soil. (2) Sprinkle bits directly on the soil surface and water them in — less efficient but simpler. Apply every 7–14 days for at least 4–6 applications to break the full lifecycle including pupating stages.
Resistance and Safety
BTi has been in widespread use for decades without documented resistance developing in fungus gnats. It is non-toxic to mammals, birds, fish, and beneficial insects including bees and predatory beetles. It is the only larvicide safe to use around food crops without any pre-harvest interval.
Sticky Traps
Yellow sticky traps are available as flat cards, tent-shaped folds, or small stakes that insert into the soil. All work on the same principle: adults attracted to the yellow color land and become permanently stuck. Place traps at soil level — gnats fly low and rarely rise above 12 inches. Use one trap per medium-sized pot at minimum. Monitor trap catch rates: if you are catching dozens of adults per day, the infestation is severe and you need to intensify larval treatments. If catch rates are declining week by week, your treatment strategy is working.
Soil Drenches
For severe infestations that do not respond to BTi and soil drying within 4–6 weeks, systemic insecticide soil drenches containing imidacloprid (a neonicotinoid) are available. The plant absorbs imidacloprid through its roots, and larvae feeding on root hairs ingest a lethal dose. Products like Bayer Tree & Shrub Insect Control use this mechanism. Imidacloprid is effective but should be used as a last resort in ornamental houseplants due to its systemic nature and potential environmental concerns if plants are later composted. Do not use on edible plants.
Preventing Fungus Gnats
The most effective prevention is also the simplest: correct watering habits.
Water Correctly
Water deeply and infrequently, allowing the top 2 inches of soil to dry completely between waterings for most houseplants. This keeps the soil surface inhospitable to egg-laying. Bottom watering (setting the pot in water and allowing soil to absorb from below) also helps because the soil surface stays drier while lower roots receive water.
Quarantine New Plants
New plants frequently arrive with fungus gnat eggs or larvae already in the soil. Quarantine every new plant for 2–3 weeks and monitor for adult emergence. Apply a preventive BTi drench during the quarantine period. Full guidance in our plant quarantine guide.
Use Well-Draining Soil
Mixes that drain quickly and do not stay wet at the surface reduce gnat habitat significantly. Adding perlite (25–30% by volume) to standard potting mix improves drainage and reduces moisture retention in the surface layer.
Top-Dress with Sand or Perlite
A 1-inch layer of coarse sand or perlite on the soil surface is less hospitable to egg-laying adults and dries out faster than organic potting mix, providing a physical deterrent. This is a particularly effective preventive measure for plants that need consistently moist lower soil (like ferns) but whose surface should ideally stay dry between waterings. See the houseplant pests guide for an overview of integrated prevention strategies.