By Maya Reyes
Quick answer: Let the top two inches of soil dry out between waterings to break the gnat life cycle, use yellow sticky traps to catch adults, top-dress soil with sand or diatomaceous earth, and treat larvae directly with a diluted hydrogen peroxide soil drench for a persistent infestation.
Fungus gnats were my introduction to the fact that houseplants come with their own tiny ecosystem problems that no one warns you about when you buy them. I assumed the little flies buzzing around my pothos were fruit flies drawn to a bowl of fruit on the counter, until I realized they only ever hovered specifically near the plant soil and never anywhere near the actual fruit. That's the classic fungus gnat giveaway, and once I knew what I was looking at, dealing with them got a lot more straightforward.
How to Tell It's Fungus Gnats and Not Fruit Flies
Fungus gnats are small, dark, mosquito-like flies that hover close to the soil surface rather than around food sources. Fruit flies, by contrast, are more oval-shaped, slightly larger, and drawn specifically to ripening produce, spilled juice, or fermenting organic matter in the kitchen rather than potting soil. If you're seeing tiny flies specifically clustered near your plant pots and nowhere else in the house, it's almost certainly fungus gnats rather than a kitchen fruit fly problem.
Why Fungus Gnats Show Up in the First Place
Fungus gnats lay their eggs in consistently moist soil, and the resulting larvae feed on organic matter and fungus present in the top layer of soil. Overwatering is by far the single biggest contributing cause — dry soil surfaces are far less hospitable to egg-laying and larval survival than soil that stays damp for several days at a time between waterings. New potting soil, particularly mixes high in organic matter like peat or compost, can also sometimes introduce eggs or larvae directly, which is why an infestation sometimes appears shortly after repotting with fresh soil.
Getting Rid of Fungus Gnats, Step by Step
Let the soil dry out more between waterings. This is genuinely the most important step in the entire process. Fungus gnat larvae can't survive in dry soil conditions, so cutting back on watering frequency and consistently letting the top two inches dry out between waterings disrupts their life cycle at the source rather than just treating the visible adult flies.
Use yellow sticky traps near the soil surface. These catch adult gnats effectively and, just as importantly, give you a practical way to track how bad the infestation actually is over time and whether your other interventions are actually working, rather than guessing based on how many flies you happen to notice on a given day.
Apply a layer of sand or diatomaceous earth on top of the soil. This creates a physical barrier that makes it significantly harder for adult gnats to reach the soil surface to lay new eggs, effectively interrupting the reproductive cycle even while existing larvae are still present below.
Try a diluted hydrogen peroxide soil drench for a more established infestation. A mix of roughly one part standard 3% hydrogen peroxide to four parts water, poured directly into the soil until it runs through the drainage holes, kills larvae on contact through oxidation without harming most established houseplants. It will fizz noticeably when it contacts organic matter in the soil — that's normal and expected, not a sign of damage.
Consider mosquito bits (BTI) for persistent, recurring cases. These contain a naturally occurring bacteria, Bacillus thuringiensis israelensis, that specifically targets fungus gnat and mosquito larvae without harming your plant, beneficial soil organisms, pets, or people, making it one of the more targeted long-term solutions available for repeat infestations.
Preventing a Repeat Infestation
Once an infestation has cleared, the maintenance habits matter more than any single treatment. Stick to watering based on actual soil dryness rather than habit or a fixed calendar schedule, avoid letting water sit and collect in saucers underneath pots, and consider permanently top-dressing pots that are especially prone to staying damp with a thin layer of sand as an ongoing preventive measure rather than only reaching for it during an active infestation.
It's also worth being slightly more cautious with new potting soil, especially bargain or bulk mixes with a high organic content, since these can sometimes carry gnat eggs or larvae in from the start.
When to Worry About Fungus Gnats Beyond Annoyance
In small numbers, adult fungus gnats are mostly just an irritation rather than a genuine threat to plant health. In larger, sustained infestations, the larvae feeding on root hairs and organic matter can start to genuinely stress a plant's root system, particularly in young seedlings, freshly propagated cuttings, or already-weakened plants, which is when it's worth escalating from a single treatment to a more thorough combination of the steps above.
FAQ
Are fungus gnats harmful to my plants? In small numbers, adult gnats mostly just annoy you rather than cause real damage. In large, sustained numbers, the larvae can damage fine root hairs, especially in seedlings or young, vulnerable plants, so it's worth addressing an infestation before it grows.
How long does it take to get rid of fungus gnats? With consistent dry-out periods between waterings combined with sticky traps, most infestations clear up within two to four weeks as the reproductive life cycle gets progressively interrupted at each stage.
Do fungus gnats bite? No, fungus gnats don't bite humans or pets — they're purely a plant soil issue rather than a health hazard, which is a relief for anyone dealing with a swarm of them buzzing around their living room.
Can I use regular household insecticide spray on fungus gnats? Sprays mostly kill visible adult flies but don't address the larvae actually living in the soil, so they're considerably less effective on their own than directly addressing the consistently moist soil conditions that are causing the underlying problem.
Will letting soil dry out hurt my plant? For most common houseplants, letting the top two inches dry out between waterings is actually the correct watering approach anyway, not a compromise made purely for gnat control, so this fix generally improves overall plant health rather than working against it.
Can fungus gnats spread from one plant to another? Yes — adult gnats can fly between nearby plants and lay eggs in any consistently moist soil they find, which is why it's worth checking and treating all your plants together rather than isolating treatment to just the one where you first noticed a problem.
Maya Reyes writes about plant care and indoor gardening for Vines of Heaven.
