If you have ever leaned over a tray of seedlings and watched a cloud of tiny black flies rise into the air, you already know the pest — fungus gnats in indoor seedlings and pots, one of the most common indoor growing problems, and they turn up in almost every home that starts seeds on a windowsill or keeps houseplants in the winter. The adults are annoying but harmless. The real damage is done by their larvae, tiny white worms with black heads that live in the top few centimetres of damp compost and feed on fungi, decaying matter, and — when there are enough of them — the fine root hairs of your seedlings. A light infestation is mostly a nuisance. A heavy one can stall or kill young plants outright, and it is the reason so many seedlings mysteriously wilt, yellow, and collapse even though the grower did everything else right. The good news is that fungus gnats are one of the easiest indoor pests to beat without any pesticides at all. They need constantly damp compost to breed, and that single weakness is the key to the whole fight. Dry the top of the compost, trap the flying adults so they cannot lay more eggs, and treat the larvae in the soil with a biological control, and the population collapses within a few weeks. This guide covers the whole job: how to be sure you have fungus gnats and not fruit flies, the life cycle that decides which treatments work, the dry-top method in detail, traps, Bti, nematodes, top dressings, repotting, the honest truth about hydrogen peroxide and home remedies, and a week-by-week plan that takes you from a cloud of flies to clean, healthy seedlings.
Quick Reference — Fungus Gnats at a Glance
What they are: tiny black flies, 2–4 mm long, that breed in damp compost; larvae live in the top 2–3 cm (about 1 inch) of the mix.
Damage: adults are harmless; larvae eat root hairs and fungi, and can kill seedlings and stress young plants.
Life cycle: about 3–4 weeks at room temperature (20°C / 68°F); a female lays 100–200 eggs.
First fix: let the top 2–3 cm of compost dry out between waterings — gnats cannot breed in dry compost.
Best combination: dry tops + yellow sticky traps for adults + Bti drench for larvae, for 3–4 weeks.
Prevention: fresh bagged compost, drainage holes, empty saucers, quarantine new plants, never leave pots standing in water.
What Fungus Gnats Actually Are
Fungus gnats are small, dark, mosquito-like flies in the families Sciaridae and Mycetophilidae. The ones that bother indoor growers are almost always sciarid flies, and the species you are most likely to meet is Bradysia, a genus of small black gnats that lives wherever there is damp organic matter. The adults are 2–4 mm long — about the size of a pin head — with long, thin legs, long antennae, and a single pair of narrow, smoky wings. They are weak fliers. They do not zoom around the room the way fruit flies do; they hover low, drifting a few centimetres above the compost surface, and they spend most of their time walking on the soil or sitting on the rim of the pot. If you disturb a pot and a dozen tiny flies rise up, hover for a few seconds, and settle back down again, you are almost certainly looking at fungus gnats.
The adults live for only about a week to ten days, and they do not feed on your plants at all. Many do not feed on anything as adults. Their entire adult life is devoted to mating and laying eggs, and a single female can lay 100–200 eggs in that short life. She lays them in cracks in the compost surface and in the top few millimetres of the mix, always choosing the dampest spots she can find. That is the first clue to control: the eggs need moisture to hatch, and the larvae need moisture to survive. Take the moisture away from the surface, and the breeding cycle breaks.
The larvae are the part of the life cycle that matters to your plants. They are slender, translucent white worms, up to about 5 mm (a quarter of an inch) long when fully grown, with a shiny black head capsule that is easy to see against the pale body if you look closely. They live almost entirely in the top 2–3 cm of compost, because that is where the fungi and organic matter they feed on are most abundant, and where the moisture is. In a healthy pot with a small gnat population, larvae feed on fungi and decaying material and do little harm. In a crowded seed tray, or a pot that stays wet for weeks, the larval population explodes, the fungi run out, and the larvae turn to the finest root hairs of your plants. That is when damage starts: seedlings wilt even though the compost is wet, growth stalls, leaves yellow from the bottom up, and in bad cases the seedling collapses at the base and dies — a failure that is often blamed on damping off, and is sometimes partly caused by the gnats themselves, because the wounds the larvae make in the roots let damping-off fungi in.
Fungus gnats are not a sign that you are a bad gardener, and they are not a sign that your home is dirty. They arrive in bags of compost, in the soil of shop-bought plants, through an open window in summer, and in the compost of a plant a friend gave you. Every indoor grower meets them sooner or later. They are a moisture problem, not a cleanliness problem, and they are solved by changing the moisture, not by scrubbing the house.
Fungus Gnats vs Fruit Flies vs Shore Flies
Before you treat anything, be sure you are treating the right fly. Three small flies turn up around indoor plants and seed trays, and they need completely different fixes. Fungus gnats breed in damp compost. Fruit flies breed in fermenting fruit, vegetables, and kitchen waste. Shore flies breed in algae on wet surfaces and in the water of hydroponic systems. Put a vinegar trap out for fungus gnats and you will catch nothing, because fungus gnats are not attracted to vinegar. Dry out your compost to beat fruit flies and nothing changes, because fruit flies were never breeding in the compost in the first place. Ten seconds of identification saves weeks of wasted effort.
| Feature | Fungus gnat | Fruit fly | Shore fly |
|---|---|---|---|
| Size | 2–4 mm, slim, mosquito-like | 3–4 mm, plump, rounded | 2–3 mm, stout, dark |
| Colour | Black or very dark grey | Tan or yellowish-brown with red eyes | Black with pale spots on the wings |
| Flight | Weak, low hovering over compost | Strong, quick, darts around the kitchen | Short hops, runs on surfaces |
| Where you see them | On and just above pot compost | Around fruit bowls, bins, drains | On wet benches, algae, hydroponic trays |
| Breeding site | Damp compost, top 2–3 cm | Fermenting fruit and veg, drains | Algae on wet surfaces and in water |
| Larvae | White worms with black heads, in compost | White maggots, in rotting fruit | Small maggots, in algae and water |
| Plant damage | Yes — larvae eat root hairs | None — a kitchen pest only | Rare — mostly cosmetic |
The potato slice test. If you are still not sure, there is a simple check. Cut a slice of raw potato about 5 mm thick, lay it flat on the compost surface, and leave it for 48 hours. Fungus gnat larvae are attracted to the potato and will gather underneath it, where you can see them clearly when you lift the slice: tiny white worms with black heads. Fruit fly larvae will not be there, because fruit flies do not breed in compost. A potato slice with a dozen larvae underneath it is a confirmed fungus gnat problem, and it also gives you a rough measure of how bad it is: a few larvae is a light infestation, dozens is a heavy one.
The saucer check. Another quick test is to look at the underside of the pot and the saucer beneath it. Fungus gnat larvae sometimes migrate down through the drainage holes, and you may find small white worms in a saucer that has been standing in water. Shore flies, by contrast, will be on the wet bench or the outside of the pot, and you will usually find green algae somewhere nearby — on the surface of the compost, on the bench, or in a tray of standing water.
The Life Cycle — and Why It Decides the Fix
Every effective fungus gnat treatment works because it attacks a specific stage of the life cycle. Every failed treatment fails because it misses one. So it is worth knowing the cycle properly, because it explains why some remedies that feel as if they should work do not, and why the treatments that do work need three to four weeks rather than three to four days.
Eggs (4–6 days). The female lays her eggs in the damp surface of the compost, often in small clusters in cracks and crevices. At normal room temperature, around 20°C (68°F), the eggs hatch in four to six days. They need moisture to hatch; eggs laid on dry compost dry out and die. This is the first reason the dry-top method works: a dry surface does not just discourage egg-laying, it kills the eggs that are already there.
Larvae (about 2 weeks). The newly hatched larvae are almost invisible, less than a millimetre long. They feed and grow for roughly two weeks, passing through four stages, and reach about 5 mm before they pupate. They stay in the top 2–3 cm of compost, where the fungi and organic matter are, and they need constant moisture. If the top layer of compost dries out for a few days, young larvae die of drying out. Older larvae can sometimes survive a short dry spell by moving deeper, which is why drying alone sometimes needs help from a larval treatment. This is also the stage that does the damage to your plants, and the stage that Bti and nematodes target.
Pupae (3–4 days). When the larva is fully grown, it moves slightly deeper — still in the top few centimetres — and forms a pupa. The pupal stage lasts three to four days at room temperature. Pupae are the toughest stage: they do not feed, they do not move, and most treatments that kill larvae do not touch them. This is the main reason a single treatment never finishes the job. You can kill every larva in the pot on Monday, and still have a fresh wave of adults emerging on Friday from pupae that were already formed.
Adults (7–10 days). The adult gnat emerges from the pupa, mates within a day or two, and the female starts laying eggs almost immediately. Adults live about a week to ten days. They do not feed on plants, but they are the stage that spreads the problem: a single female can lay 100–200 eggs, so ten surviving adults can restart an infestation of a thousand larvae within a fortnight. This is why sticky traps matter even though they never catch every adult — every female caught is a hundred or more eggs that never get laid.
The full cycle is about 3–4 weeks at 20°C, and it speeds up in warm conditions: at 25°C (77°F) the whole cycle can take as little as 20 days, and on a warm windowsill in summer you can have a new generation every three weeks. In a cool room, below about 15°C (59°F), the cycle slows to five or six weeks. The practical meaning is simple: any treatment plan must run for at least one full life cycle, and preferably a little longer, because eggs laid on the day you start will still be producing adults three weeks later. Plan for four weeks. If you stop after one week because the flying adults have gone, you have only killed one generation, and the next one is already underground.
Why Seedlings Suffer Most
Established houseplants with a thick root system can carry a moderate fungus gnat population and show no symptoms at all. The plant has roots to spare, and a few larvae nibbling root hairs is a cost it can absorb. Seedlings are a different story, and it comes down to how little root a young plant has. A seedling that is two weeks old may have a single thin tap root and a handful of fine root hairs, and those root hairs are its entire water and nutrient supply. Lose half of them to larvae, and the seedling cannot take up enough water to keep up with what its leaves lose, even in wet compost. The grower sees a seedling wilting in damp soil, assumes it needs more water, waters again, and makes the gnat problem worse. It is a miserable loop, and it is the single most common way beginners lose a tray of seedlings.
The second reason seedlings suffer is that they are grown in exactly the conditions gnats love. Seed compost is kept constantly moist for germination. Seed trays are shallow, so the whole depth of the compost is within the larvae's feeding zone. Trays sit close together on a windowsill or under a grow light, in warm, still air, often with a propagator lid or a sheet of cling film holding the humidity high. It is a perfect gnat nursery: warm, damp, and full of young roots. A tray that started clean can be heavily infested within three weeks of sowing if a few adults find it.
The third reason is damping off. Damping off is the collapse of seedlings at soil level, caused by fungi such as Pythium and Rhizoctonia, and it is the classic seedling killer. Fungus gnat larvae make it worse in two ways. The wounds they chew in the roots give the damping-off fungi an easy way in, and the larvae themselves carry fungal spores on their bodies as they move through the compost. A seedling that might have survived a light fungal infection on its own can be finished off when larvae are feeding on its roots at the same time. If your seedlings are collapsing at the base and you can also see small flies above the tray, treat both problems: dry the surface, improve air circulation, and deal with the larvae.
Which seedlings are most at risk? Slow-growing seedlings are the worst affected, because they spend the longest in the vulnerable stage. Parsley, which can take three weeks to germinate and grows slowly afterwards, is a classic victim. Chillies, aubergines, and other heat-lovers that are sown early and kept warm indoors for months are also at high risk. Fast growers — radishes, lettuce, beans — are usually up and potted on before a gnat population can build to damaging numbers. Small seeds sown on the surface, such as lettuce and many herbs, are more exposed than large seeds sown deep, because the emerging root has further to travel through the larval zone. And seedlings in peat-free compost, which tends to hold water differently and often contains more woody material, can be more attractive to gnats than seedlings in a fine, free-draining seed mix — though any damp compost will do.
The signs to watch for. The first sign is almost always the adults: tiny black flies above the tray. After that, look for seedlings that wilt in wet compost, seedlings that stop growing for no obvious reason, leaves that yellow from the bottom up, and seedlings that collapse at the base. If you gently lift a seedling and the roots look brown and stubby, with few fine white root hairs, larvae have been feeding. A healthy seedling root is white, fine, and feathery. A gnat-damaged root looks pruned.
The Dry-Top Method
The dry-top method is the single most effective fungus gnat control there is, and it costs nothing. The principle is simple: fungus gnat eggs and larvae need a damp surface to survive, so you let the top of the compost dry out between waterings, and the breeding cycle breaks. Adults cannot lay eggs that hatch on dry compost. Young larvae die when the top layer dries. Within a week or two of starting, the number of new adults drops sharply, and within a month the population collapses — provided you combine it with traps for the adults that are already flying.
How dry, exactly? For most established potted plants, let the top 2–3 cm (about 1 inch) of compost dry out before you water again. Push your finger into the compost to the first knuckle: if it feels dry at that depth, it is time to water. If it still feels cool and damp, wait. For seedlings in trays, you need to be more careful, because seedlings have shallow roots and can dry out fast. Let the top 1–2 cm dry — the surface should look visibly lighter in colour and feel dry to the touch — but do not let the whole tray dry out. The aim is a dry surface over moist compost below, not a bone-dry pot. A chopstick or a wooden skewer pushed into the compost is a good moisture gauge: pull it out after a minute, and if the lower half is dark and damp while the top is dry, you have it right.
How long does the surface need to stay dry? Gnat eggs take four to six days to hatch, and young larvae die within a few days on dry compost. That means you need the surface dry for most of each week, not just for a day. In practice, this means watering less often and watering thoroughly when you do water, rather than giving little sips every day. A pot that is soaked properly and then left alone for a week is far less gnat-friendly than a pot that gets a splash every morning, because the daily splash keeps the surface permanently wet. The deep-watering habit is better for the plants too: it encourages roots to grow down rather than staying at the surface.
Which plants tolerate it? Most vegetables and herbs tolerate a dry top without any trouble. Tomatoes, peppers, chillies, courgettes, beans, and herbs such as rosemary, thyme, and sage actively prefer it — they are Mediterranean or warm-climate plants that dislike wet feet. Leafy crops such as lettuce, spinach, and basil like steadier moisture, but they still tolerate the top centimetre drying out between waterings. The plants that genuinely struggle with a dry top are the moisture-lovers: mint, parsley, and coriander are more sensitive, and very young seedlings of any kind need the surface to stay at least slightly damp until they have their first true leaves. For those, use a thinner dry layer — 1 cm rather than 2–3 cm — and rely more on the other controls: traps, Bti, and a grit top dressing.
Practical tips for drying the top. Air circulation makes a big difference: a small fan on a low setting, or a window opened for a few hours a day, dries the surface much faster than still air, and moving air also discourages adult gnats from landing to lay eggs. Terracotta pots dry out faster than plastic ones, because water evaporates through the clay, so seedlings in terracotta are less gnat-prone than the same seedlings in plastic. A layer of fine grit or horticultural sand on the surface (see the top dressing section below) dries out within hours of watering and creates a permanent dry barrier. And if you use saucers, empty them: a pot standing in 1 cm of water keeps the compost wet from below, and the surface never dries at all.
The one mistake to avoid. Do not swing from overwatering to underwatering. A seedling that wilts from drought is just as dead as one eaten by larvae, and a plant that is stressed by drought is more vulnerable to every other pest. The dry-top method is about the surface, not the whole pot. The compost below the top 2–3 cm should stay lightly moist. If in doubt, water from below (next section) — it wets the roots without wetting the surface at all.
Watering From Below
Watering from below — sometimes called bottom watering — is the dry-top method's best friend. Instead of pouring water onto the surface, you stand the pot in a tray or saucer of water and let the compost soak it up through the drainage holes by capillary action. The roots get the water they need, and the surface stays dry. Adult gnats find nothing to lay eggs in. Larvae in the top layer dry out. It is simple, it works, and for seed trays and small pots it is the single best watering habit you can adopt.
How to do it. Stand the pot or tray in a saucer or shallow tray and pour in water to a depth of about 2–3 cm (about 1 inch). Leave it for 15–30 minutes for a small pot, up to an hour for a large one. The compost will draw the water up; you can tell it has worked when the surface just starts to feel slightly cool and damp, or when the pot feels noticeably heavier. Then — and this is the important part — tip away any water that is left. Do not leave the pot sitting in water. A pot left standing in a saucer of water is back to square one: the compost stays saturated, the surface stays wet, and the gnats return.
How often? The same rule as any other watering: when the plant needs it, not on a fixed schedule. In a warm room in spring, a seed tray may need bottom watering every two to three days. An established herb in a terracotta pot on a cool windowsill may need it once a week or less. Lift the pot: a dry pot is surprisingly light, a wet pot is heavy, and after a week of practice you will know the difference by feel alone. A wooden skewer or chopstick pushed into the compost is the most reliable check for deeper pots.
Seed trays and capillary matting. For seed trays, bottom watering is almost always the right choice. Most seed trays have drainage holes, and standing the whole tray in a shallow tray of water for twenty minutes wets the compost evenly without disturbing the seeds on the surface — which is another advantage over watering from above, where a heavy pour can wash small seeds out of place or bury them too deep. Capillary matting takes the idea further: a sheet of absorbent matting sits in a tray, one end dipping into a reservoir of water, and the pots or trays sit on the matting and draw up moisture as they need it. It is a good system for a windowsill full of seedlings, but keep the reservoir shallow and the matting clean, because a permanently wet mat can itself become a breeding site for gnats and algae if it is left to go green.
When bottom watering does not suit. Very large pots are awkward to lift in and out of saucers, and plants in heavy ceramic containers may be impractical to move at all. For those, water from above but water carefully: pour slowly around the edge of the pot, away from the stem, and use a long-spouted watering can so the water goes where you want it rather than splashing across the whole surface. And for plants that are badly dried out, bottom watering alone can be slow — the compost may have shrunk away from the sides of the pot, and water runs down the gap instead of soaking in. In that case, water from above once to re-wet the compost, then go back to bottom watering for the routine.
Yellow Sticky Traps
Yellow sticky traps are the most useful single purchase in the fight against fungus gnats. They are small cards coated in a non-drying glue, in a bright yellow that flying insects are strongly attracted to. You push them into the compost on a small stick, and adult gnats fly onto them and stick. They do not kill larvae, and they will not solve an infestation on their own, but they do three important things: they catch adult females before they can lay eggs, they cut the adult population fast enough that you can see the difference within days, and they tell you how bad the problem is and whether it is getting better.
How many, and where? For a seed tray, one trap per tray is a good start; for a bad infestation, use two, one at each end. For individual pots, one trap per pot for small pots (up to about 15 cm / 6 inches across), and two for larger pots. Place the trap so the yellow card sits just above the compost surface — about 2–5 cm (1–2 inches) above it — because that is where the gnats fly. A trap hanging at window height catches far fewer gnats than one sitting low over the pot. If you have a shelf of plants, put a trap in every pot, not just the ones with visible flies: gnats move between pots, and the pots that look clean today are where the next generation is already breeding.
When to replace them. A trap is spent when it is covered in flies and dust, which in a bad infestation can be within a week. Replace traps every two to four weeks as a routine, and sooner if the surface is full. A full trap catches nothing more, and it also stops telling you anything useful — you cannot judge whether the population is falling if the trap is already black with flies. Keep a note of how many flies are on each trap when you replace it: a trap that had fifty flies last week and ten this week is proof the treatment is working, even if you can still see a few adults in the air.
Traps as a monitor, not just a killer. This is the part most growers miss. Sticky traps are the best early-warning system you have. Leave one trap in every pot permanently, even after the infestation is beaten, and check it weekly. A trap that suddenly has a dozen flies on it tells you a new infestation is starting, weeks before you would notice the flies in the air. Catching it at that stage — a few dry days and a Bti drench — takes an afternoon. Catching it when the air is thick with flies takes a month. Traps are cheap, they last for weeks, and they are the closest thing to a fungus gnat alarm system that exists.
What about the other colours? Blue sticky traps are sold for thrips, and they do catch some fungus gnats, but yellow is far more effective for gnats. White traps are for other pests entirely. Stick to yellow for fungus gnats. And buy the cards with the little sticks included, or a roll of yellow sticky tape that you can cut to size — the tape is cheaper per trap and works just as well if you wrap it around a bamboo cane or a lollipop stick pushed into the compost.
Bti and Nematodes: Biological Control That Targets Larvae
Dry tops and sticky traps attack the adults and the eggs. But the larvae already living in the compost are the stage that damages your plants, and the stage that keeps the infestation going, and to deal with them you need something that works in the soil itself. Two biological controls do exactly that, and both are safe, natural, and approved for use around food plants. The first is Bti. The second is a microscopic nematode. Neither is a pesticide in the chemical sense, neither leaves any residue on your vegetables, and neither harms pets, children, or pollinators.
Bti — Bacillus thuringiensis israelensis. Bti is a naturally occurring soil bacterium that produces a protein which is toxic to the larvae of flies and mosquitoes, and to almost nothing else. When a fungus gnat larva eats Bti, the protein damages its gut lining, the larva stops feeding within hours, and it dies within a day or two. The protein is broken down quickly in the soil, it does not harm plants, earthworms, bees, pets, or people, and it is used in organic growing and in mosquito control in water supplies around the world. It is sold in the UK and the US under various names — look for products labelled for mosquito control that list Bacillus thuringiensis israelensis as the active ingredient, sold as granules (often called "bits") or as slow-release dunks or discs for water.
How to use Bti on pots. The simplest method is the "Bti tea" drench. Put a tablespoon (about 15 ml) of Bti granules into a litre of water (about 2 pints), stir, and leave it to soak for at least 30 minutes — overnight is better. Strain out the granules through a fine sieve or a piece of muslin, and water your pots with the strained liquid, soaking the top few centimetres of compost thoroughly. The Bti is now in the soil, where the larvae will eat it as they feed. Repeat once a week for three to four weeks, to catch each new wave of larvae as they hatch. If you buy the dunk form, break off a small piece, drop it in your watering can, leave it overnight, and use the water the same way; one dunk treats a large watering can for several weeks. Bti does not kill eggs or pupae or adults, which is why the weekly repeat matters: each drench kills the larvae that have hatched since the last one, and after three or four rounds there are no larvae left to become adults.
Bti safety and limits. Bti is safe to use on vegetables, herbs, and salads, right up to harvest — there is no harvest interval, because the protein breaks down in the soil and is not taken up by the plant. It is safe around cats, dogs, and children, and it does not harm bees, because bees do not eat soil. The one real limit is that Bti needs to be eaten by the larvae to work, so it only works when the compost is moist enough for the larvae to be actively feeding. In bone-dry compost, the larvae are dormant or dead anyway, so that is not a practical problem. The other limit is that Bti breaks down in sunlight and in the soil within a few days, which is why the weekly repeat is essential — a single drench is not enough. Store Bti granules in a cool, dry place, and check the date on the packet: old stock loses potency.
Nematodes — Steinernema feltiae. The second biological control is a microscopic roundworm, Steinernema feltiae, which hunts fungus gnat larvae in the compost. The nematodes are too small to see with the naked eye — they are about half a millimetre long — and they are sold as a powder or a sponge that you mix with water and apply to the compost with a watering can. Once in the soil, they seek out gnat larvae, enter through a natural opening, and release a bacterium that kills the larva within a day or two. The nematodes then breed inside the dead larva and emerge to hunt for more. They are completely harmless to plants, people, and pets, and they die out naturally once their food source is gone.
How to use nematodes. Buy them fresh — nematodes are living organisms with a short shelf life, and they need to be kept cool (in the fridge, at 2–8°C) and used within a week or two of arrival. Mix the pack with water exactly as the instructions say, usually a litre or two of lukewarm water, and stir well. Water the compost first so it is moist, then apply the nematode solution with a watering can fitted with a coarse rose, soaking the surface evenly. The compost must stay moist for at least two weeks after application, because the nematodes need a film of water to move through the soil — this is the one treatment that conflicts with the dry-top method, so if you use nematodes, skip the dry-top approach for the fortnight after application and rely on traps and the nematodes themselves. Nematodes work best at soil temperatures between 10°C and 25°C (50–77°F), which covers most indoor growing. One application is usually enough for a moderate infestation; a heavy one may need a second dose two weeks later.
Which one to choose? For most indoor growers, Bti is the easier option: it is cheaper, it keeps on the shelf for months, it works alongside the dry-top method, and you can repeat it weekly without any fuss. Nematodes are the stronger option for a heavy infestation, or for a greenhouse or a large collection of plants, because they actively hunt larvae rather than waiting to be eaten. You can use both together — they do not interfere with each other — and the combination of Bti weekly plus one nematode application is the fastest biological knockdown available without chemicals. Neither is a quick fix on its own: both need two to four weeks to break the life cycle, because both leave the eggs and pupae untouched.
| Treatment | Targets | Speed | Cost | Works with dry tops? |
|---|---|---|---|---|
| Dry-top method | Eggs and young larvae | 1–2 weeks to see fewer adults | Free | Yes — it is the dry-top method |
| Yellow sticky traps | Adults | Days | Low | Yes |
| Bti drench | Larvae | 2–4 weeks (weekly repeats) | Low–medium | Yes |
| Nematodes | Larvae | 1–3 weeks | Medium | No — needs moist compost for 2 weeks |
| Sand / grit top dressing | Egg-laying adults | Immediate barrier | Low | Yes — it is a dry barrier |
| Hydrogen peroxide drench | Larvae (and soil microbes) | Days, but partial | Very low | Yes, but see the caveats |
| Repotting in fresh compost | All soil stages at once | Immediate | Medium | Yes |
Sand and Grit Top Dressing
A top dressing is a layer of dry, inorganic material spread over the surface of the compost, and it works by giving the adult gnats nowhere to lay their eggs. A female gnat looking for a damp, organic surface to lay on finds a layer of dry grit instead, and either flies off to find a better spot or lays her eggs on the grit, where they dry out and die. It is a physical barrier, not a chemical one, and it works from the moment you put it on.
What to use. Horticultural grit, coarse sand, or fine gravel all work. The material should be dry, free-draining, and made of particles about 2–5 mm across — big enough to leave air gaps, small enough to sit neatly on the surface. Horticultural grit, sold in garden centres for alpines and cacti, is ideal. Coarse builders' sand works too, but avoid fine play sand, which can form a crust that holds water on the surface rather than letting it drain through. Aquarium gravel is fine if you have it. What does not work is anything organic: bark chips, cocoa shells, and decorative moss all hold moisture and give the gnats exactly the damp, organic surface they want.
How thick, and how to apply it. Spread a layer 5–10 mm thick (about a quarter to half an inch) over the whole surface of the compost, right up to the stem of the plant and out to the edge of the pot. Any gap is a landing strip for a gnat. Water from below if you can, so the dressing stays dry; if you water from above, pour slowly and the water will drain straight through the grit into the compost below, and the grit will be dry again within a few hours. The dressing also has a side benefit: it stops compost splashing onto the leaves when you water, and it makes the pots look tidy.
The limits. A top dressing stops new eggs being laid, but it does nothing about the larvae already in the compost, so it must be combined with a larval treatment — Bti, nematodes, or repotting — to finish the job. It also makes it harder to judge soil moisture by looking at the surface, because the surface always looks dry. Use the finger test or a skewer pushed through the dressing to check the compost underneath. And on seed trays, a grit dressing is not practical for seeds that have not yet germinated, because the seedlings need to push through it — use it on trays only once the seedlings are up and have their first true leaves, and keep the layer thin, about 5 mm, so the stems are not buried.
Beating fungus gnats in indoor seedlings and pots: the week-by-week plan
Here is the whole treatment pulled together into a four-week plan. It combines everything above in the order that works best, and it is designed for a typical infestation: visible adults above the pots, larvae confirmed by the potato slice test, and seedlings or young plants at risk. If your infestation is light — a few flies, no plant damage — you can skip the Bti and rely on dry tops and traps. If it is heavy — clouds of flies, seedlings wilting — do everything, and consider repotting the worst-affected plants as well.
Week 1 — Break the breeding cycle. Start on day one by putting a yellow sticky trap in every pot and tray. Stop watering from above; switch to bottom watering, and let the top 2–3 cm of compost dry out before each watering. Empty every saucer, and do not leave any pot standing in water. On day two or three, apply the first Bti drench to every pot, soaking the top few centimetres. If you are using nematodes instead, apply them this week and keep the compost moist for the fortnight — skip the dry-top step until the nematodes have had their two weeks. Spread a grit top dressing on established pots. By the end of week one, you should see far fewer adults in the air, and the traps should be catching fewer new flies each day.
Week 2 — Kill the next wave of larvae. Keep the dry tops going and the traps in place. Apply the second Bti drench at the start of the week. Check the potato slice test again: lift the slice after 48 hours and count the larvae underneath. If the number has dropped sharply, the treatment is working. If it has not dropped at all, check that the compost is actually drying between waterings — the most common reason for failure is a saucer still holding water, or a daily splash from above that keeps the surface wet. Replace any traps that are full. This is also the week to quarantine any new plant you bring home, and to check the compost in any bag you have open: if a bag of compost has flies in it, seal it and use it only outdoors, or not at all.
Week 3 — Hold the line. By now the adult population should be small, and it is tempting to stop. Do not. The eggs laid in week one are still hatching, and the pupae formed in week two are still emerging as adults. Apply the third Bti drench. Keep the traps in place and keep the tops dry. If you used nematodes, you can now go back to the dry-top method. Check the seedlings: new growth should be green and vigorous, and wilting in wet compost should have stopped. If a particular pot is still heavily infested — traps filling fast, larvae thick under the potato slice — consider repotting it in fresh compost this week (see the repotting section below) rather than waiting.
Week 4 — Confirm the win and prevent a return. Apply a fourth and final Bti drench at the start of the week. By the end of week four, the traps should be catching almost nothing, the potato slice test should show no larvae, and you should be able to lean over the pots without a single fly rising. Leave the traps in place permanently as monitors, and keep the dry-top watering habit — it is good practice for the plants as well as for gnat control. If you still have a few flies at the end of week four, do not panic: a small number of adults can linger for another week or two, especially in warm conditions. Keep the traps up, do one more Bti drench in week five, and the last of them will go. If the infestation is as bad in week four as it was in week one, something is wrong with the execution — usually a hidden wet spot, such as a saucer that is never emptied, a drip tray under a shelf, or a bag of damp compost stored nearby — and it is worth hunting for it before repeating the plan.
Repotting and Dealing With Infested Compost
Sometimes the fastest fix is to remove the problem entirely: take the plant out of its infested compost, and put it into fresh, clean compost. Repotting is the most thorough single treatment there is, because it removes the eggs, the larvae, and the pupae all at once, in one move. It is also the most work, and the most stressful for the plant, so it is not the first thing to try — but for a heavily infested pot, or a valuable plant that is clearly suffering, it is often the right call.
When to repot. Repot when the potato slice test shows dozens of larvae, when the plant is wilting and yellowing despite correct watering, when you have already tried dry tops and Bti for two weeks with no improvement, or when the compost itself smells sour and has gone green with algae on the surface. Do not repot seedlings that are only a few days old — they are too fragile to handle — but seedlings with two or three sets of true leaves can be potted on into fresh compost without much trouble. Established plants in small pots are the easiest candidates. A large plant in a heavy pot is a bigger job, and for those, the Bti and dry-top route is usually more practical.
How to do it properly. Work outdoors or over a bin, because you do not want to scatter larvae around the room. Gently slide the plant out of its pot and shake off as much of the old compost as you can without tearing the roots. For a bad infestation, rinse the root ball under a gentle stream of lukewarm water — a shower head or a watering can with a fine rose works well — to wash away the old compost and as many larvae as possible. Inspect the roots: trim away any that are brown, soft, and mushy with clean scissors, and keep the white, firm roots. Wash the old pot with hot soapy water before reusing it, and scrub the saucer too, because eggs and larvae can hide in the drainage holes and in the rim. Pot up into fresh, clean compost — ideally a new bag, opened for the job — and water from below. Put a sticky trap in the fresh pot straight away, because a few adults will almost certainly find it.
What to do with the infested compost. Do not put it back in the bag, and do not tip it onto another pot. If you have a garden or an outdoor compost heap, tip it there: outdoors, the larvae have predators, the compost dries and freezes, and the gnats are not a problem. If you have no outdoor space, seal the compost in a bag and put it in the household rubbish, or spread it thinly on a baking tray and leave it in the sun or by a radiator for a few days to dry out completely before binning it. Do not reuse infested compost for seedlings, even after it looks dry — eggs can survive a short dry spell, and a seed tray is the worst place to find out.
Can you sterilise compost? You can, and for seed compost it is sometimes worth it. Spreading damp compost on a baking tray and heating it in the oven at 80–90°C (175–195°F) for 30 minutes kills gnat eggs, larvae, and most fungal spores. It also kills the beneficial microbes in the compost, and it smells unpleasant, so it is a method for small batches of seed compost rather than for a big pot. Microwaving damp compost in a covered container for 90 seconds per litre has a similar effect. Neither method is necessary for ordinary potting compost — a fresh bag is cheaper and easier — but if you are reusing your own compost for seed sowing, sterilising the batch you use for seeds is a sensible precaution.
The Hydrogen Peroxide Drench: Honest Caveats
Hydrogen peroxide is the home remedy that gets recommended most often for fungus gnats, and it is the one that needs the most honest discussion, because it does work a little, and it also has real downsides that most recommendations skip. The idea is simple: a dilute hydrogen peroxide solution poured onto the compost fizzes on contact with organic matter, and the fizzing kills the soft-bodied larvae in the top layer of the mix. It is cheap, it is easy to buy, and it breaks down into water and oxygen, leaving no residue. All of that is true. What is also true is that it is a blunt instrument, and it is not a substitute for the treatments above.
The ratio. Use ordinary 3% hydrogen peroxide, the kind sold in pharmacies for first aid. Mix one part 3% peroxide with four parts water — for example, 100 ml of peroxide (about 3.5 fl oz) in 400 ml of water (about 14 fl oz) to make 500 ml of drench. That gives you a 0.6% solution, which is strong enough to kill larvae in the top centimetre of compost without immediately scorching the plant. Pour it slowly and evenly over the surface, enough to soak the top 2–3 cm, and let it drain through. You will see fizzing on the surface, which is the peroxide reacting with organic matter. Do not use stronger peroxide: the 6% and 9% solutions sold for hair bleaching, and the 35% food-grade peroxide sold online, will burn roots and skin, and they have no place in a plant pot.
What it does and does not do. A peroxide drench kills a good proportion of the larvae in the top layer of compost on contact, and it also kills fungi and algae on the surface, which removes some of the larvae's food. It does not kill eggs reliably, it does not reach larvae deeper than the top couple of centimetres, and it does not kill pupae. Its effect lasts for hours, not days, because the peroxide breaks down quickly in the soil. That means a single drench is a partial knockdown, not a cure, and you would need to repeat it every few days for weeks to match what Bti achieves with one weekly application. For a light infestation, one or two drenches combined with dry tops and traps can be enough. For a heavy infestation, it is not enough on its own.
The caveats, honestly stated. Hydrogen peroxide does not distinguish between harmful and helpful soil life. It kills the beneficial bacteria and fungi in the compost along with the larvae, and repeated drenches can leave the compost biologically dead, which makes it harder for the plant to take up nutrients and more vulnerable to the next pest that comes along. It can also damage fine root hairs, especially in young seedlings, and seedlings treated with peroxide sometimes wilt for a day or two afterwards. And it does nothing about the adults: unless you also have traps up, the surviving adults will lay a fresh batch of eggs within days, and the cycle restarts. Use it as a one-off knockdown for a light problem, or as a first step while you wait for Bti to arrive — not as your main treatment, and not repeatedly on the same pot.
What Does Not Work
Every pest attracts home remedies, and fungus gnats have more than most. Some of them are harmless but useless, and some actively make the problem worse. Here is the honest list, so you can skip the experiments that waste your time.
Vinegar traps. A jar of apple cider vinegar with a drop of washing-up liquid is the classic fruit fly trap, and it works well for fruit flies. It catches almost no fungus gnats, because fungus gnats are not attracted to vinegar or to fermenting fruit — they are attracted to damp compost and to the colour yellow. If your vinegar trap is full of flies, you have fruit flies, not fungus gnats, and the fix is in the kitchen, not in the pots.
Cinnamon. Ground cinnamon sprinkled on the compost surface is widely recommended online as a natural fungicide that starves the larvae by killing the fungi they eat. In practice, it does very little. Cinnamon has mild antifungal properties in a laboratory dish, but a sprinkle on a pot does not kill enough fungi to starve the larvae, and the cinnamon itself goes mouldy in damp conditions, which gives the larvae more food, not less. It will not harm your plants, but it will not solve the problem either.
Coffee grounds. Used coffee grounds on the compost surface are sometimes suggested as a gnat deterrent. They are wet, organic, and full of fungi-friendly material — which is to say, they are exactly what fungus gnats like. Coffee grounds on the surface make the problem worse, not better. Compost them properly, or use them outdoors, but do not put them on indoor pots.
Dish soap sprays. A spray of water with a few drops of washing-up liquid will kill adult gnats on contact, because the soap breaks the surface tension of the water and drowns them. It is satisfying in the moment and useless as a control, because you cannot spray the larvae in the soil, and the adults you miss will lay eggs within hours. Soap drenches poured into the compost can damage roots and kill soil microbes, and they are not recommended.
Essential oils. Peppermint oil, neem oil, and tea tree oil are all suggested for gnats at various times. Neem oil has some genuine insecticidal effect, but it works as a soil drench only at concentrations that can also damage seedlings, and it has an unpleasant smell indoors. The other oils have no reliable evidence behind them for fungus gnats. If you want a biological control, Bti and nematodes are proven, cheap, and safe — there is no need to experiment with oils.
Fly spray and insecticide. This blog is pesticide-free, and for good reason: aerosol fly sprays kill the adult gnats you can see and do nothing about the larvae you cannot, they leave residues on plants you intend to eat, and they are unnecessary when dry tops, traps, and Bti work better. Systemic insecticides are worse — they are taken up by the plant and persist in the leaves and fruit. There is no fungus gnat problem that needs a chemical insecticide, and there is no chemical insecticide that works as well as breaking the life cycle.
Prevention: Stopping the Next Infestation
Beating one infestation is satisfying. Never having another one is better. Prevention is mostly a matter of habits, and the habits that prevent fungus gnats are the same habits that make for healthy indoor plants generally. None of them is difficult, and together they make your windowsill a place where gnats struggle to get established at all.
Start with clean compost. Buy fresh, bagged compost from a reputable supplier, and check the bag before you buy it: if you can see flies around the bags in the shop, or the bag is torn and damp, choose another one. Store open bags sealed — a bag clip, a knot in the bag, or a lidded bin — because an open bag of damp compost in a warm room is an ideal breeding site. Do not store compost indoors for months; buy what you need, use it, and keep the rest somewhere cool and dry. If you make your own compost or reuse old potting mix, use it only for outdoor plants, or sterilise a batch for seed sowing as described above.
Quarantine new plants. Every new plant that comes into your home — from a shop, a market, or a friend — should spend two weeks away from your other plants, ideally in a different room. Put a yellow sticky trap in the pot on the day it arrives, and check the trap after a week. If it catches gnats, treat the new plant with a Bti drench before it joins the others. This single habit prevents more infestations than any other, because shop-bought plants are the most common way gnats enter a home.
Water well, not often. The dry-top habit should be permanent, not just a treatment. Water thoroughly when the plant needs it, let the surface dry between waterings, and water from below whenever it is practical. Never leave a pot standing in a saucer of water for more than an hour. If you use self-watering pots or trays, check the reservoir regularly and do not let it stay full for weeks on end — a reservoir that never empties keeps the compost permanently wet at the bottom, and the gnats will find the damp layer.
Keep the growing area clean and dry. Wipe up spills and splashes, empty drip trays and saucers, and do not leave dead leaves sitting on the compost surface — they rot, they hold moisture, and they feed the fungi that the larvae eat. A small fan on a low setting, or a window opened for a few hours a day, keeps the air moving and the compost surface dry, and it also makes life harder for adult gnats, which are weak fliers. Clean saucers and trays with hot soapy water between uses, and scrub out any green algae, because algae holds moisture and gives the gnats another food source.
Keep the traps up. Leave a yellow sticky trap in every pot permanently, and check them weekly. A trap that is suddenly catching flies is the earliest possible warning of a new infestation, and a few dry days plus one Bti drench at that stage will stop it before it becomes a problem. Traps are cheap, they last for weeks, and they are the best early-warning system you will ever have. A windowsill with a trap in every pot is a windowsill where fungus gnats rarely get a foothold.
Frequently Asked Questions
How do I know if I have fungus gnats or fruit flies?
Look at where the flies are and what they look like. Fungus gnats are slim, black, mosquito-like flies that hover low over pot compost and walk on the soil surface. Fruit flies are plumper, tan or brown with red eyes, and they hang around fruit bowls, bins, and drains. If the flies are above your pots and the potato slice test shows white worms with black heads under the slice after 48 hours, you have fungus gnats.
Can fungus gnats kill my seedlings?
Yes, a heavy infestation can kill seedlings. The larvae eat the fine root hairs that a young seedling depends on for water, so the seedling wilts even in wet compost, stops growing, and may collapse at the base. The wounds the larvae make also let damping-off fungi in, which finishes off seedlings that might otherwise have survived. Established plants with a big root system are rarely killed, but seedlings are genuinely at risk.
How long does it take to get rid of fungus gnats?
Plan for four weeks. The full life cycle is about three to four weeks at room temperature, and eggs laid on the day you start will still be producing adults three weeks later. You should see far fewer flying adults within the first week of dry tops and traps, but the larvae underground take longer, which is why Bti needs weekly repeats for three to four weeks. Stopping after one good week is the most common reason infestations come back.
Is Bti safe for vegetables, pets, and children?
Yes. Bti is a naturally occurring soil bacterium whose protein is toxic only to the larvae of flies and mosquitoes. It does not harm plants, earthworms, bees, pets, or people, it breaks down in the soil within days, and it is not taken up by the plant, so there is no harvest interval — you can use it on vegetables and salads right up to picking. It is used in organic growing and in mosquito control in water supplies around the world.
Does cinnamon get rid of fungus gnats?
No, not in any useful way. Cinnamon has mild antifungal properties in a laboratory, but a sprinkle on a pot does not kill enough fungi to starve the larvae, and the cinnamon itself goes mouldy in damp compost, which gives the larvae more food. It will not harm your plants, but it will not solve the problem. Dry tops, sticky traps, and Bti are the treatments that actually work.
Should I throw away infested compost?
For a heavily infested pot, yes — repotting into fresh compost removes the eggs, larvae, and pupae all at once. Tip the old compost outdoors, onto a garden bed or a compost heap, or seal it in a bag and bin it if you have no outdoor space. Do not reuse it for seedlings, and do not put it back in the bag. For a light infestation, you do not need to repot — dry tops and Bti will clear the larvae in the compost you already have.
Can fungus gnats come from a new bag of compost?
Yes, and it is one of the most common ways they arrive. Bags of compost are stored outdoors at garden centres, and gnats lay eggs in them through the small holes in the packaging. Always check a bag before you buy it, store open bags sealed, and if you open a bag and see flies, use it only outdoors. Quarantining new plants and keeping a sticky trap in every pot will catch a compost-borne infestation early, before it spreads to your seedlings.
Fungus gnats feel like a disaster when you first see the cloud of flies above your seedlings, but they are one of the most beatable pests in indoor gardening. They have a single weakness — they need damp compost to breed — and every effective treatment works by taking that weakness away. Dry the top of the compost, trap the adults so they cannot lay eggs, and treat the larvae with Bti for a few weeks, and the population collapses. Keep the traps up, keep the dry-top watering habit, quarantine new plants, and you will rarely see them again. Your seedlings will thank you for it: stronger roots, greener leaves, and a windowsill where the only things flying are the bees outside the glass.




0 Comments