How to Get Rid of Fungus Gnats on Houseplants
By Ellen Hermance · PlantCareAI Editorial
If you see tiny dark flies hovering around your houseplants or zigzagging near the soil surface, you're dealing with fungus gnats. They're more annoying than dangerous to mature plants, but their larvae feed on organic matter in the soil β and sometimes young roots. The key to beating them is understanding their life cycle: adults live only about a week but lay up to 200 eggs in moist topsoil. Here's how to break that cycle and get rid of them for good.
Quick Answer: Fungus gnats breed in moist topsoil. To eliminate them: let the top 2 inches of soil dry between waterings, use yellow sticky traps for adults, and apply a hydrogen peroxide soil drench (1 part H2O2 to 4 parts water) weekly to kill larvae.
9 Proven Ways to Eliminate Fungus Gnats
-
Let the soil dry out between waterings
Fungus gnats lay eggs in moist topsoil β they literally cannot reproduce in dry soil. Allowing the top 1β2 inches to dry completely between waterings breaks their life cycle at the source. This is the single most effective long-term fix and should be your first step.
How to fix it: Check soil moisture before watering. Use the finger test and only water when the top inch feels dry. For gnat-prone plants, let soil dry even deeper than usual for a few weeks.
-
Use yellow sticky traps
Adult fungus gnats are strongly attracted to the color yellow. Small yellow sticky traps placed near the soil surface or stuck into the soil on stakes catch adult gnats before they can lay more eggs. This reduces the breeding population quickly while you address the larvae in the soil.
How to fix it: Place 1β2 traps per plant, positioned at soil level. Replace traps every 1β2 weeks or when they're full. These are available cheaply at garden centers or online.
-
Try a hydrogen peroxide soil drench
Mix one part 3% hydrogen peroxide with four parts water and water your plants with this solution. The fizzing action kills larvae and eggs in the soil without harming plant roots. It also adds extra oxygen to the root zone, which is a bonus for plant health.
How to fix it: Apply the H2O2 solution once a week for 3 consecutive weeks to break the entire life cycle. Water normally between treatments, allowing soil to dry as much as possible.
-
Add a sand or gravel top layer
A half-inch layer of coarse sand, perlite, or decorative gravel on top of the soil creates a dry barrier that prevents gnats from reaching the moist soil where they lay eggs. The surface stays dry even after watering (moisture passes through to the roots below).
How to fix it: Apply an even layer at least 1/2 inch thick over the entire soil surface. Avoid fine sand (it holds moisture) β use coarse horticultural sand, perlite, or decorative small stones.
-
Use mosquito dunks (BTI)
Bacillus thuringiensis israelensis (BTI) is a naturally occurring biological larvicide that specifically targets gnat and mosquito larvae. It's completely safe for plants, pets, and humans. Soak a piece of mosquito dunk in your watering can overnight, then use that water for your plants.
How to fix it: Use BTI-treated water for every watering for 4β6 weeks. This ensures each new generation of larvae is killed before reaching adulthood. Available at hardware and garden stores.
-
Try neem oil soil drench
Neem oil mixed into water and applied to soil acts as both a larvicide and a repellent. It disrupts the gnat life cycle by preventing larvae from maturing. Mix 1 teaspoon of cold-pressed neem oil with 1 liter of water and a drop of dish soap as an emulsifier.
How to fix it: Apply neem solution to soil every 1β2 weeks until gnats are gone. Don't use neem as a foliar spray for this purpose β it works against gnats only when applied to the soil.
-
Improve soil drainage
Dense, peat-heavy potting mixes retain moisture for days β creating the perfect gnat nursery. Soil that stays wet for more than a week is an open invitation for fungus gnats. Good drainage means faster drying, which means fewer gnats.
How to fix it: Amend existing soil with perlite or pumice (mix in about 25β30% by volume). For future repotting, use a chunky, well-draining mix rather than dense peat-based soil.
-
Use apple cider vinegar traps for adults
Fill a small jar with apple cider vinegar and add a drop of dish soap. The vinegar attracts adult gnats and the soap breaks the surface tension so they can't escape. This works well alongside sticky traps for a multi-pronged approach.
How to fix it: Place vinegar traps near the most affected plants. Refresh every 2β3 days. This catches adults but doesn't affect larvae β combine with soil treatments for full effectiveness.
-
Repot with fresh, well-draining soil
If the infestation is severe and other methods aren't working fast enough, repotting removes the larvae-infested soil entirely. Use fresh, sterile potting mix amended with perlite for better drainage. Discard the old soil outside β don't compost it indoors.
How to fix it: Gently remove all old soil from roots, rinse roots if needed, and repot in fresh mix. Add a sand or gravel top layer immediately to prevent re-infestation. Resume careful watering.
Fungus Gnat Treatment Methods Compared
For best results, combine 2β3 methods simultaneously:
| Method | Targets | Speed | Effort |
|---|---|---|---|
| Drying soil out | Larvae (prevents new eggs) | Slow (1β2 weeks) | Low |
| Yellow sticky traps | Adults only | Immediate | Low |
| Hydrogen peroxide drench | Larvae and eggs | Fast (1β3 weeks) | Low |
| Sand/gravel top layer | Prevents egg-laying | Immediate barrier | Low (one-time) |
| Mosquito dunks (BTI) | Larvae specifically | 1β2 weeks | Low |
| Neem oil drench | Larvae and eggs | 1β2 weeks | Medium |
| Apple cider vinegar trap | Adults only | Immediate | Low |
| Full repotting | Everything (removes all) | Immediate | High |
| Bottom watering only | Keeps surface dry | Ongoing prevention | Medium |
Frequently Asked Questions
- Are fungus gnats harmful to plants?
- Adult gnats are mostly harmless nuisances. Their larvae can damage young roots and seedlings in large numbers, but mature plants usually tolerate them. The bigger issue is they signal overwatering.
- How long does it take to get rid of fungus gnats?
- With consistent treatment β drying soil, sticky traps, and soil drenches β most infestations clear up in 2β3 weeks. The full life cycle is about 3β4 weeks.
- Does cinnamon kill fungus gnats?
- Cinnamon has mild antifungal properties and can deter gnats when sprinkled on topsoil, but it's not as effective as drying the soil, using BTI, or hydrogen peroxide drenches.
- Why do I keep getting fungus gnats back?
- Recurring infestations almost always mean the soil is staying too moist. Address your watering habits permanently, improve soil drainage, and new gnats won't establish.
- Can fungus gnats spread to other plants?
- Yes β adult gnats fly between plants and will lay eggs in any moist soil they find. Treat all nearby plants, not just the most affected one.
The Bottom Line on Fungus Gnats
Fungus gnats are a moisture problem in disguise. The most effective strategy combines three approaches: dry the soil out (stops egg-laying), trap adults (sticky traps or vinegar), and kill larvae (H2O2 drench or BTI). Within 2β3 weeks, they'll be gone. For long-term prevention, never let soil stay constantly soggy and use well-draining potting mixes.
Get Personalized Plant Care Advice
PlantCareAI uses your location and local weather to give you advice tailored to your exact situation. No signup required to try.
Try the AI Plant Doctor