Skip to main content

What Are Fungus Gnats and How Do You Get Rid of Them?

Ilisa Beurg
9 min read
gardeningfungus gnatshouseplantspest controlindoor plants

Small black flies hovering around a houseplant in a terracotta pot on a windowsill

You’ve noticed tiny black flies drifting around your houseplants — rising up in a little cloud when you water, circling aimlessly near the windows, occasionally making their way into your mug of tea. They’re not dangerous to you, but they’re deeply annoying, and if the infestation is serious enough, they can genuinely harm your plants from the roots up.

Quick Answer: Fungus gnats are small flies whose larvae live in damp potting compost and feed on plant roots and organic matter. The most effective way to eliminate them is to let the soil dry out properly between waterings — this alone breaks the life cycle — combined with yellow sticky traps and a biological drench of Bacillus thuringiensis var. israelensis (BTi).


What Exactly Are Fungus Gnats?

Fungus gnats (most commonly Bradysia species in UK and European gardens) are tiny flies in the 2–4mm range. They’re dark grey to black, with long legs and antennae, and they hold their wings flat when at rest. Adults are weak, erratic fliers — you’ll often see them wandering across compost surfaces or hopping around the base of pots rather than flying decisively anywhere.

The adult flies are essentially harmless to plants. The problem is what they leave behind: eggs laid in damp potting compost, which hatch into larvae that feed on fungal mycelium, decaying organic matter, and — in larger numbers — on fine root hairs and seedling stems. Seedlings and young cuttings are most at risk. Mature plants can usually tolerate some larval activity, but heavy infestations cause wilting, stunting, and yellowing that’s easy to mistake for other problems.

Fungus Gnats vs Fruit Flies: How to Tell the Difference

These two get confused constantly. The quick test: where are they congregating? Fungus gnats hover almost exclusively around plants and compost. Fruit flies are drawn to fruit, wine, vinegar, and kitchen scraps — they’ll be near your fruit bowl or recycling bin, not your monstera.

Up close, fruit flies are rounder and more orange-brown with bright red eyes. Fungus gnats are darker, more elongated, and have noticeably long legs relative to their body size. If you’re still unsure, set a small piece of banana near the plant — fruit flies will rush to it, fungus gnats won’t.


Why Overwatering Is the Real Culprit

Fungus gnats don’t appear randomly. They need specific conditions to complete their life cycle: moist compost, ideally with some decaying organic matter. Overwatered houseplants — pots where the surface compost stays damp for days at a time — are essentially perfect breeding grounds.

This is why fungus gnats are particularly common in autumn and winter, when reduced light slows plant growth and water requirements drop, but many people continue watering at the same frequency they used in summer. The compost never fully dries out, and conditions stay permanently ideal for egg-laying.

The Life Cycle (and Why It Matters for Control)

Understanding the cycle helps you understand why persistence is needed. Adult females lay 100–200 eggs in moist compost over their short 7–10 day adult lifespan. Eggs hatch in 4–6 days. Larvae feed for about 2 weeks before pupating in the soil. Adults emerge in another 5–7 days. The whole cycle from egg to adult takes roughly 3–4 weeks.

This means that even if you kill all the adults today, a fresh wave of larvae is already working through the compost. Effective control requires targeting multiple life stages simultaneously, not just swatting the adults you can see.


5 Ways to Eliminate Fungus Gnats

Yellow sticky traps placed among potted houseplants on a shelf

Method 1: Let the Soil Dry Out Properly

This is the single most important thing you can do, and it costs nothing. Fungus gnat eggs and young larvae cannot survive in dry conditions — they desiccate quickly when the compost dries to a depth of 2–3cm.

Check your pots before watering by pushing your finger 2cm into the compost. If it feels moist at all, wait another day or two. This habit alone, maintained consistently, breaks the cycle because females can’t lay viable eggs in dry soil, and larvae that hatch in conditions that then dry out don’t survive. For many mild infestations, this method alone resolves the problem within a month.

Method 2: Yellow Sticky Traps

Fungus gnat adults are irresistibly attracted to yellow. Small yellow sticky cards — available inexpensively from garden centres and online — placed horizontally on the soil surface or hung just above pot level catch adults before they can lay more eggs.

They don’t eliminate larvae already in the soil, but they do significantly reduce the next generation by preventing reproduction. They also serve as a useful population monitor — check them every few days and watch whether you’re catching fewer gnats over time. That decline tells you your other treatments are working.

Method 3: BTi Biological Control

Bacillus thuringiensis var. israelensis (BTi) is a naturally occurring soil bacterium that produces proteins toxic to the larvae of fungus gnats, mosquitoes, and midges — but completely harmless to plants, humans, pets, and other insects. In the UK it’s sold under brand names including Gnat Off and Nemasys Vine Weevil Killer (check the label — the fungus gnat-specific product contains BTi).

You apply it as a soil drench: mix according to instructions and water it into the compost. The bacteria colonise the soil and kill larvae as they feed. Apply every two weeks for a minimum of three treatments to work through the complete life cycle. This is the most effective biological option available and safe for use on all houseplants including edibles.

Method 4: Hydrogen Peroxide Drench

A 3% hydrogen peroxide solution (the standard pharmacy strength) diluted 1:4 with water can be used as a compost drench to kill larvae on contact through direct oxidation. Mix 1 part hydrogen peroxide to 4 parts water and apply to the soil until it drains through. It will fizz briefly as it reacts — this is normal and indicates it’s working.

This method is fast-acting but doesn’t persist long in the soil, so it addresses larvae present at time of application but not eggs that later hatch. Use it alongside sticky traps and improved watering habits for best results. It’s safe for plant roots at this concentration, though avoid splashing foliage.

Method 5: Sand Mulch on the Soil Surface

A 1–2cm layer of coarse horticultural sand or grit spread over the compost surface acts as a simple preventive barrier. Female gnats prefer to lay eggs in loose, moist, organic compost — the dry, inorganic texture of sand is actively unappealing to them. Larvae that do hatch also struggle to move through it.

Sand mulch won’t resolve an existing infestation on its own, but it significantly reduces new egg-laying and makes your other treatments more effective. It also helps the soil surface dry faster and looks neat. Use coarse horticultural grit (not fine building sand, which can compact and restrict airflow).


Keeping Fungus Gnats from Coming Back

Once you’ve cleared the infestation, a few ongoing habits keep gnats from returning.

Always water from the base when possible. Setting pots in a tray of water and letting them absorb what they need keeps the soil surface drier. The top 2–3cm — exactly where gnat eggs are laid — remains drier when plants take water from below.

Use peat-free compost with good structure. Peat-free composts made with wood fibre, coir, and bark tend to dry out at the surface more quickly than old-style peat-based mixes, which naturally held moisture high. This makes them less hospitable to gnats in general.

Don’t leave decomposing material in pots. Dead leaves and spent compost on the soil surface are a feeding site for larvae. Clear debris regularly and replace old, broken-down compost in houseplant pots every couple of years.


Frequently Asked Questions

Are fungus gnats harmful to humans? No. Adult fungus gnats don’t bite, sting, or carry disease. They’re purely a nuisance to people and a more significant problem for your plants’ root systems, particularly seedlings and young cuttings.

Why do I only get fungus gnats on certain plants? Gnats prefer moisture-retaining composts and plants that are watered frequently. Cacti and succulents in fast-draining gritty compost are rarely affected. Ferns, tropical plants, and anything in peat-heavy compost that stays moist are far more vulnerable.

How do I know if gnats are damaging my plant’s roots? Look for unexplained wilting despite moist soil, yellowing leaves on an otherwise healthy plant, and slow or stopped growth. Tip the plant gently out of its pot and inspect roots — gnat-damaged roots are brown and mushy rather than white and firm.

Can I use neem oil against fungus gnats? Yes. A neem oil soil drench can help discourage egg-laying and has some effect on larvae. It’s less targeted than BTi but worth combining with other methods if you already have neem oil for other pest control purposes.

How long does it take to get rid of fungus gnats completely? With consistent treatment — letting the soil dry, using sticky traps, and applying BTi — most infestations clear within 4–6 weeks. Because of the 3–4 week life cycle, you need to persist even after the adults seem to have gone, as larvae will still be in the soil.

My plants are wilting but I haven’t overwatered — could it be gnats? Possibly, especially if you have an established infestation. Gnat larvae feeding on fine root hairs cause symptoms identical to underwatering, because damaged roots can’t take up water efficiently. If you also see adults and sticky traps are catching gnats, treat for larvae and assess root health by inspecting the rootball.


About The Paliurus Team

We are a dedicated group of home gardeners, plant care advocates, and soil enthusiasts. We research, test, and write plain-English troubleshooting guides to help you grow your garden with confidence. Every guide is review-verified by home horticulturalists.

Disclaimer: The information on Paliurus.com is for general gardening guidance only. Results may vary by climate, soil type, and plant variety. Always check your local growing conditions.Read our full disclaimer →