How to Get Rid of Fungus Gnats
Last Updated: April 2026 · 5 Proven Methods
Direct Answer
Let the soil dry out completely between waterings — this kills larvae and prevents egg-laying. For immediate results, use yellow sticky traps to catch adults and a hydrogen peroxide soil drench (1 part 3% H₂O₂ to 4 parts water) to kill larvae. Most infestations clear within 3-4 weeks with consistent treatment.
First: Are These Actually Fungus Gnats?
Fungus gnats are commonly confused with fruit flies. Here's how to tell the difference.
| Feature | Fungus Gnats | Fruit Flies |
|---|---|---|
| Size | Very small (2-3mm) | Slightly larger (3-4mm) |
| Color | Dark gray/black | Tan/brown, red eyes |
| Where you see them | Near plant soil, crawling on pots | Near fruit, kitchen, trash |
| Flight pattern | Weak, erratic, close to soil | Stronger, hover around food |
| Body shape | Mosquito-like, long legs | Round, stocky |
Why They Keep Coming Back: The Lifecycle
Understanding the 4-stage lifecycle is key to breaking the cycle. You must target all stages simultaneously.
Eggs
4-6 days
Up to 200 eggs laid in moist topsoil. Invisible to the naked eye.
Larvae
12-14 days
Translucent worms (5mm) that feed on soil fungi and fine roots.
Pupae
3-4 days
Cocoon stage in the soil. Resistant to most treatments.
Adult
7-10 days
Flies around, mates, lays eggs. The cycle repeats every 3-4 weeks.
Total lifecycle: ~3-4 weeks. That's why consistent treatment for a full month is essential.
5 Proven Elimination Methods
1. Dry Out the Soil
Foundation · Do This FirstFungus gnat larvae need consistently moist soil to survive. Letting the top 1-2 inches of soil dry completely between waterings kills existing larvae and makes the soil inhospitable for new eggs. This is the single most important step — without it, all other methods are temporary fixes.
How to do it:
- • Wait until the top 1-2 inches of soil are completely dry before any watering.
- • Consider bottom-watering to keep the top layer consistently dry.
- • Most houseplants tolerate drying out more than you think — this won't harm them.
2. Yellow Sticky Traps
Immediate · Catches AdultsFungus gnats are strongly attracted to the color yellow. Sticky traps placed near the soil surface catch adults before they can lay more eggs. This provides immediate visible reduction and also serves as a monitoring tool — fewer gnats on the trap means your treatment is working.
How to do it:
- • Place traps horizontally just above soil level for maximum catch rate.
- • Use 1 trap per plant, or 1 per 2-3 closely grouped plants.
- • Replace when covered or after 2 weeks.
- • Available at any garden center or online (~$5-8 for a pack of 20).
3. Hydrogen Peroxide Soil Drench
Effective · Kills Larvae on ContactA diluted hydrogen peroxide solution kills fungus gnat larvae on contact while being completely safe for plant roots. The H₂O₂ breaks down into water and oxygen in the soil, actually aerating roots as a bonus. This is the most effective direct treatment for active larvae.
Recipe:
- • Mix: 1 part 3% hydrogen peroxide + 4 parts water
- • Apply: Water the plant with this solution as you would normally (until it drains from the bottom)
- • Frequency: Once per week for 3 weeks (covering one full lifecycle)
- • Safety: Only use standard 3% H₂O₂ from the drugstore — never use higher concentrations
4. Sand or Gravel Top Layer
Prevention · Blocks Egg-LayingA ½-inch layer of coarse sand, perlite, or decorative gravel on the soil surface creates a physical barrier. Adults can't reach the moist soil to lay eggs, and larvae can't emerge. This is especially useful as a long-term prevention strategy after you've cleared an infestation.
How to do it:
- • Use coarse horticultural sand (not fine beach sand which compacts).
- • Apply at least ½ inch thick — gnats will dig through thinner layers.
- • Perlite works too but is lighter and can shift when watering.
- • Decorative gravel or aquarium stones double as aesthetic top dressing.
5. BTi (Bacillus thuringiensis israelensis)
Nuclear Option · Severe InfestationsBTi is a naturally occurring bacteria that specifically kills gnat and mosquito larvae. It's sold as "Mosquito Dunks" or "Mosquito Bits" and is the most reliably effective biological control. Safe for plants, pets, and beneficial insects — it only targets dipteran (fly/mosquito) larvae.
How to use:
- • Mosquito Bits: Sprinkle directly on soil surface. Water as normal — BTi releases as they dissolve.
- • Mosquito Dunks: Break a dunk into quarters, soak in a gallon of water for 24 hours, use that water for all your plants.
- • Frequency: Every watering for 4 weeks until all gnats are gone.
- • Where to buy: Garden centers, hardware stores, or online (~$10 for a 6-pack that lasts months).
The Complete Attack Plan
Combine methods for fastest results. Here's the optimal sequence.
Week 1: Full Assault
Set sticky traps near all affected plants. Let soil dry completely. Apply first H₂O₂ drench or BTi watering. Add sand layer if desired.
Week 2: Continue Treatment
Replace full traps. Apply second H₂O₂ drench. Continue dry soil policy. You should see fewer adults on traps.
Week 3: Mop Up
Third H₂O₂ drench. Last remaining pupae emerge as adults — traps catch them. Population should be very low.
Week 4: Monitor & Prevent
Keep traps up for monitoring. If traps are clean for 7 days, the infestation is eliminated. Maintain dry soil habits going forward.
Preventing Future Infestations
Once you're clear, these habits keep gnats from returning.
Related Answers
Frequently Asked Questions
Adult fungus gnats are mostly just annoying — they don't damage plants directly. However, their larvae feed on organic matter and fine root hairs in the soil, which can stress seedlings, propagations, and young plants. Mature, healthy plants can tolerate moderate populations, but large infestations weaken root systems and slow growth.
Fungus gnats typically arrive in contaminated potting soil — especially cheap, organic-rich mixes. They can also fly in through open windows. Each female lays up to 200 eggs in moist topsoil, and the lifecycle (egg to adult) takes only 3-4 weeks in warm conditions. Overwatered plants create ideal breeding conditions.
With consistent treatment, a full elimination takes 3-4 weeks — one complete lifecycle. You need to kill existing adults (sticky traps), eliminate current larvae (H₂O₂ drench or BTi), AND prevent new eggs from being laid (dry soil, sand barrier). Treating only adults or only larvae leads to recurring infestations.
Fungus gnats can spread between houseplants but they can't infest your house the way fruit flies can. They need moist organic soil to breed — they won't reproduce in carpets, food, or drains. However, they can appear in multiple plant pots if the infestation goes untreated, since adults fly between plants to lay eggs.
Drying the soil kills larvae and prevents new eggs from hatching, but it doesn't kill pupae (the cocoon stage) or adults already flying around. That's why you need a multi-pronged approach: dry soil breaks the breeding cycle, sticky traps catch adults, and a soil drench (H₂O₂ or BTi) kills remaining larvae and pupae.
Yes — a 1:4 ratio of 3% hydrogen peroxide to water is perfectly safe for plant roots. The H₂O₂ breaks down into water and oxygen upon contact with soil, which actually aerates the root zone. It only kills soft-bodied organisms like gnat larvae. Don't use higher concentrations.
Let AI handle the science.
Identify plants, diagnose diseases, and get personalized care schedules — all from a single photo. Free to download.