Fungus gnats breed in moist soil, so getting rid of them naturally means killing the larvae already living in your potting mix and cutting off the conditions that let adults lay more eggs. The full lifecycle from egg to adult takes roughly three weeks at room temperature, which means you’ll need to keep up any treatment for at least that long to break the cycle completely.
Why Your Soil Is the Real Problem
The tiny adults flying around your plants are mostly a nuisance. The real damage happens below the surface, where larvae feed on fungi, organic matter, and fine root hairs. A single female can lay 100 to 200 eggs in just five days, tucking them into cracks in the soil. Those eggs hatch into larvae that spend about two weeks feeding and growing through four stages before pupating. After another four to seven days, new adults emerge, live about 10 days, and the cycle starts again.
Fungus gnats are especially attracted to potting mixes containing peat moss and pine bark, and they thrive when the top layer of soil stays consistently damp. That’s why overwatered houseplants are ground zero for infestations. Every effective natural strategy targets either the larvae in the soil, the moisture that sustains them, or both.
Let the Soil Dry Out Between Waterings
The single most important thing you can do is stop keeping the top of your soil wet. Fungus gnat eggs and young larvae need moisture to survive. Let the top inch of soil dry out completely before watering again. For many common houseplants, this is perfectly fine and may actually improve root health.
Switching to bottom watering is one of the most effective long-term changes. Instead of pouring water over the surface, set your pot in a tray or basin of water and let the soil wick moisture up from the drainage holes. The surface stays dry, which makes it far less attractive for egg-laying, while roots still get the water they need. Check the soil regularly: when the top inch feels dry, it’s time for another session. This alone won’t eliminate an active infestation, but it starves out the next generation.
Hydrogen Peroxide Soil Drench
A hydrogen peroxide drench is one of the fastest ways to kill larvae already in the soil. Mix one part standard 3% hydrogen peroxide with four parts water and pour it through the soil as you would a normal watering. The mixture will fizz on contact as it attacks larvae. It breaks down into water and oxygen quickly, so it won’t harm your plant’s roots or beneficial soil microbes in any lasting way.
One application won’t catch eggs that haven’t hatched yet. Repeat the drench every few days for two to three weeks to cover the full lifecycle. Between treatments, let the soil surface dry as described above.
Beneficial Nematodes for Soil Treatment
Microscopic nematodes are one of the most effective biological controls for fungus gnat larvae. The species sold for this purpose (often labeled Sf nematodes) are tiny worm-like organisms that actively hunt larvae in the soil, infect them, and kill them. Infected larvae turn opaque white or light yellow and then disintegrate, so you may not even see the evidence.
You can buy these nematodes online or at garden centers. They arrive refrigerated and need to be mixed into water, then applied as a soil drench. A few practical tips for best results:
- Water the soil the day before. Nematodes need moisture to move through the growing medium.
- Keep soil temperature between 60 and 70°F. They can tolerate down to 50°F but lose effectiveness above 80°F and die above 95°F.
- Apply in the evening or on a cloudy day. UV light kills nematodes quickly.
- Repeat every two weeks. This keeps nematode populations high enough to catch newly hatching larvae.
Nematodes work best as a preventive measure or against moderate infestations. For severe problems, combine them with one of the other methods below.
Sand or Gravel Top Layer
Covering the soil surface with a half-inch to one-inch layer of coarse sand or fine gravel creates a physical barrier. It dries out quickly after watering and makes the surface unappealing for egg-laying. Adults that can’t reach the moist organic soil below simply can’t reproduce.
Use coarse horticultural sand or decorative pebbles, not fine beach sand, which can compact and hold moisture. This method works well as a companion to other treatments. It won’t kill larvae already in the soil, but it prevents new eggs from being deposited while your other strategies handle the existing population.
Diatomaceous Earth on the Soil Surface
Food-grade diatomaceous earth is a fine powder made from fossilized algae. At a microscopic level, its particles have sharp edges that damage the bodies of soft insects and larvae, causing them to dehydrate. Sprinkle a thin, even layer on the soil surface around affected plants. You can also mix it into your potting soil at about 3% to 5% by volume when repotting.
The catch is that diatomaceous earth only works when dry. Watering washes it away and neutralizes it, so you’ll need to reapply after every watering. For this reason, it pairs especially well with bottom watering: the surface stays dry, and the diatomaceous earth stays active longer. Reapply every few weeks regardless, and use only the food-grade version for indoor plants.
Yellow Sticky Traps for Adults
Yellow sticky traps won’t solve an infestation on their own, but they play a useful supporting role. Adult fungus gnats are strongly attracted to bright yellow. Placing sticky cards near your plants catches adults before they can lay eggs, and gives you a visual read on how bad the problem is and whether your other treatments are working.
Position the traps horizontally near the soil surface, since fungus gnats tend to hover close to the growing medium. For taller plants, you can orient them vertically with the bottom edge even with the top of the plant canopy. Check and replace them weekly. If your trap count drops to near zero over two to three weeks, your soil treatments are doing their job.
Combining Methods for Fastest Results
No single method handles every life stage at once. The most reliable approach layers two or three strategies together. A practical combination that covers all the bases: switch to bottom watering immediately to dry out the soil surface, apply a hydrogen peroxide drench to kill existing larvae, set out yellow sticky traps to intercept adults, and add a sand or diatomaceous earth top layer to block new egg-laying.
Give it a full three to four weeks. That’s enough time for every egg currently in the soil to either hatch and be killed by your treatments, or for emerging adults to get caught on traps before reproducing. Most people see a dramatic drop in flying adults within the first week and near-complete elimination by week three. If you’re still seeing gnats after a month, check whether your soil is staying too wet or whether nearby plants that you haven’t treated are serving as a source.