What Are Fungus Gnats?
If you have noticed tiny black flies hovering around the soil of your houseplants, you are almost certainly dealing with fungus gnats (families Sciaridae and Fungivoridae). These small, mosquito-like insects measure just 2–5 mm in length and are one of the most common pests encountered by indoor gardeners. While the adult gnats are mostly a nuisance, their larvae — tiny white worms with black heads that live in the top few centimetres of potting soil — can cause real damage by feeding on plant roots, stunting growth and opening the door to secondary fungal infections.
Fungus gnats thrive in the warm, moist environments that houseplants naturally create. Understanding their lifecycle and what draws them to your plants is the first step toward eliminating them permanently.
Why Fungus Gnats Appear
The single biggest reason fungus gnats move in is overwatering. Soggy, poorly draining soil provides the perfect breeding ground. The larvae feed on fungi and decaying organic matter in wet soil, so any pot that stays damp for too long becomes a magnet.
Other contributing factors include using bagged potting soil that was already infested with gnat eggs, bringing a new plant home that carries larvae, and having poor air circulation around your plants. Peat-based composts are particularly attractive because they retain moisture for long periods and contain the organic matter that larvae devour.
The Fungus Gnat Lifecycle
To beat fungus gnats, you need to understand how they reproduce. The lifecycle unfolds in four stages:
- Egg — Adult females lay 100–300 eggs on the soil surface, typically near plant stems. Eggs hatch in just 4–6 days.
- Larva — The white, black-headed larvae burrow into the soil and feed on roots, fungi, and decaying organic matter for 10–14 days.
- Pupa — Larvae pupate in the soil for 3–4 days before emerging as adults.
- Adult — Adults live for about 7–10 days, during which they mate and lay the next generation of eggs.
The entire lifecycle from egg to flying adult takes roughly 17–24 days in warm indoor conditions. Because adults reproduce so quickly and the larvae hide beneath the soil, a small problem can escalate into a full infestation in under three weeks. Treating both larvae and adults simultaneously is essential.
6 Proven Methods to Eliminate Fungus Gnats
1. Yellow Sticky Traps
Yellow sticky traps are the simplest first line of defence. Adult gnats are drawn to the colour yellow, so placing these traps on short stakes near the soil surface captures flying adults before they can lay more eggs. Stick a trap in every affected pot. While sticky traps will not eliminate larvae already in the soil, they dramatically reduce the breeding population. Check and replace traps every week until you stop catching gnats.
2. Hydrogen Peroxide Soil Drench
A diluted hydrogen peroxide drench kills larvae on contact and oxygenates the root zone at the same time. Mix one part 3% hydrogen peroxide with four parts water and pour it through the soil until it runs from the drainage holes. You will see a brief fizzing — that is the peroxide breaking down organic matter and killing larvae. Repeat this treatment once a week for three weeks to catch newly hatched larvae. This method is safe for most houseplants but always test on one plant first if you are concerned.
3. Beneficial Nematodes
For a biological approach, beneficial nematodes (Steinernema feltiae) are remarkably effective. These microscopic roundworms seek out fungus gnat larvae in the soil, enter their bodies, and release bacteria that kill the host within 48 hours. The nematodes then reproduce inside the dead larva and their offspring hunt more larvae. Nematodes are completely safe for plants, pets, and humans. Mix them with water according to the package instructions and drench the soil. Because nematodes are living organisms, they need to be stored in the fridge and used promptly. Apply them when soil temperatures are above 12 °C.
4. Cinnamon Powder on the Soil Surface
Cinnamon contains cinnamaldehyde, a natural antifungal compound that suppresses the fungi that gnat larvae feed on. By removing their food source at the larval stage, you make the soil inhospitable. Sprinkle a generous layer of ground cinnamon across the entire soil surface of affected pots and water it in gently. Reapply after each watering. Cinnamon also has mild insecticidal properties that can deter adult gnats from laying eggs.
5. Let the Soil Dry Out Between Waterings
Because fungus gnat larvae depend on moist soil to survive, the most effective long-term control is simply letting the top 2–3 cm of soil dry out completely before you water again. This breaks the lifecycle by desiccating eggs and larvae near the surface. For plants that tolerate drying — succulents, snake plants, ZZ plants, pothos — this is surprisingly effective on its own. For moisture-loving plants, consider using the next method in combination.
6. Switch to Bottom Watering
Bottom watering ensures the root zone gets moisture while the soil surface stays dry — the worst of both worlds for fungus gnats. Place your pot in a tray of water for 20–30 minutes, allowing the soil to wick moisture upward through the drainage holes. Then remove the pot and let any excess water drain away. The dry surface layer makes it extremely difficult for adult gnats to find a suitable place to lay eggs. Over time, the population collapses.
Prevention Tips
Once you have cleared an infestation, these habits will keep gnats from returning:
- Water less frequently. Most houseplants prefer to dry out slightly between waterings. When in doubt, wait an extra day.
- Improve drainage. Use pots with drainage holes and add perlite or orchid bark to your potting mix to prevent compaction.
- Quarantine new plants. Keep new acquisitions separate for two weeks and inspect the soil for larvae before adding them to your collection.
- Use fresh soil. If bagged soil has been open for a long time, sterilise it by pouring boiling water through it or microwaving it in short bursts before use.
- Cover the soil surface. A thin layer of sand, horticultural grit, or decorative moss creates a physical barrier that adult gnats struggle to penetrate for egg-laying.
Fungus gnats are frustrating but entirely manageable once you understand their lifecycle and hit them from multiple angles. Combine sticky traps for adults with soil treatments for larvae, adjust your watering habits, and within a few weeks the problem will be a thing of the past.
For a watering schedule that prevents gnats from ever coming back, try our free Watering Calculator.