Fungus gnats are tiny dark flies that breed in moist potting soil, and if you’re seeing them hover around your houseplants, the real problem isn’t the adults you notice but the larvae feeding below the surface. A single generation completes its entire life cycle in about 17 days at room temperature, which means a small problem can become an infestation fast. The good news: fungus gnats are manageable once you understand what’s happening in the soil and cut off the conditions they need.
What Fungus Gnats Look Like
Adult fungus gnats are small, dark-bodied flies roughly 1/8 inch long with long legs and translucent wings. They’re often mistaken for fruit flies, but fruit flies are rounder, tan or brown, and hover near food rather than soil. Fungus gnats stay close to the soil surface and tend to fly in short, erratic bursts when you water or disturb a pot.
The larvae are harder to spot but more important to identify. They’re slender, translucent white with a shiny black head capsule, and live in the top few inches of soil. You might see them if you flip over a pot or dig into wet potting mix near the surface.
Their Life Cycle in Soil
Fungus gnats pass through four stages: egg, larva, pupa, and adult. At around 75°F, eggs hatch in about 3 days. Larvae feed in the soil for roughly 10 days, passing through four growth stages before pupating. Adults emerge about 4 days after that. From egg to egg-laying adult, the whole cycle takes approximately 17 days, though cooler temperatures slow it down.
This speed is what makes fungus gnats so persistent. A female lays her eggs in moist organic soil, and within three weeks, a new generation of adults is ready to repeat the process. If you only kill the adults without addressing the larvae in the soil, you’ll keep seeing new waves of gnats every two to three weeks.
How Larvae Damage Plant Roots
The adults are mostly a nuisance. They don’t bite and they don’t feed on plants. The larvae, however, feed on fungi, decaying organic matter, and plant roots in the soil. In healthy, established plants, the damage is usually minor. But seedlings, cuttings, and young plants with delicate root systems can suffer. You might notice unexplained wilting, yellowing leaves, or stunted growth even though you’re watering correctly. In severe infestations, larvae can chew through enough fine root tissue to seriously set a plant back.
Why Your Soil Has Fungus Gnats
Moisture is the primary driver. Fungus gnats lay eggs in consistently damp soil, and organic potting mixes rich in peat, bark, or compost give larvae plenty to feed on. Overwatering is the single biggest reason fungus gnats establish themselves indoors. Pots without drainage holes, saucers left full of water, and soil that never fully dries between waterings all create ideal breeding conditions.
Bagged potting soil can also introduce gnats. Eggs or larvae sometimes come pre-loaded in commercial mixes, especially bags stored outdoors or left open. If you repot a plant and notice gnats shortly after, the soil itself was likely the source.
Let the Soil Dry Out
The simplest and most effective first step is to let the top 2 inches of soil dry out completely between waterings. Fungus gnat eggs and young larvae need moisture to survive, and a dry surface layer kills them or prevents females from laying eggs in the first place. For most houseplants, this slight shift in watering schedule won’t cause harm. Plants that need consistently moist soil (like ferns) are trickier, but even they can tolerate brief dry periods at the very surface.
Bottom watering, where you place pots in a tray of water and let the soil wick moisture upward, keeps the top layer drier while still hydrating roots. This alone can dramatically reduce gnat activity.
Physical Barriers That Block Egg-Laying
Covering the soil surface with a thin layer of coarse sand creates a barrier that adult gnats can’t easily penetrate to lay eggs. The sand drains quickly and stays dry, making the surface inhospitable even if the soil below is moist. A half-inch layer is typically enough. Decorative top dressings like small pebbles or gravel serve the same purpose.
Yellow Sticky Traps for Adults
Yellow sticky traps are inexpensive and effective at catching adult gnats before they can lay more eggs. Place the trap so its bottom edge sits even with the top of the plant canopy, since fungus gnats tend to fly close to the soil surface and low foliage. If your plants are growing quickly, position the trap a few inches above the canopy and adjust upward over time so leaves don’t grow into it.
Orienting traps horizontally, facing the soil, can be especially effective for fungus gnats since they emerge from and rest on the growing media. Sticky traps won’t eliminate an infestation on their own because they only catch adults, but they’re useful for monitoring how bad the problem is and whether your other efforts are working. A declining trap count over two to three weeks means you’re winning.
Hydrogen Peroxide Soil Drench
A hydrogen peroxide drench kills larvae on contact without harming plant roots. Mix one part standard 3% hydrogen peroxide with four parts water and pour it through the soil as you would a normal watering. The solution fizzes on contact with organic matter, releasing oxygen that kills larvae and eggs. It breaks down into water and oxygen quickly, so there’s no chemical residue. You can repeat this with each watering cycle until gnat activity stops.
Beneficial Nematodes
For persistent infestations, microscopic predatory nematodes offer a biological solution. These are living organisms, sold in packets you mix with water and apply to soil, where they actively seek out and kill fungus gnat larvae. They’re effective at soil temperatures between 55°F and 85°F, which covers most indoor conditions.
Apply nematodes in the early morning or evening, because UV light kills them quickly. Water the soil before and after application, and keep it moist for at least two weeks so the nematodes can move through the soil and find their targets. Apply directly to the root zone, and if you’re using a watering can or sprayer, agitate the mixture every five minutes or so to keep the nematodes evenly distributed rather than settling to the bottom. They’re completely safe for plants, pets, and people.
Putting It All Together
The most reliable approach combines multiple methods. Start by adjusting your watering habits so the top layer of soil dries between sessions. Set out yellow sticky traps near affected plants to reduce the adult population. Then address the larvae directly with either a hydrogen peroxide drench or beneficial nematodes. Adding a sand or gravel top layer prevents re-infestation once you’ve cleared the current generation.
Because the full life cycle takes about 17 days, plan on maintaining your efforts for at least three to four weeks. That ensures you’ve caught any eggs or pupae that were already in the soil when you started. Most people see a dramatic drop in gnat numbers within the first week and near-total elimination by the end of the second cycle. Going forward, simply avoiding overwatering and using well-draining soil keeps fungus gnats from coming back.