How to Get Rid of Fungus Gnats on Seedlings

This post may contain affiliate links. If you buy through links on this page, we may earn a commission at no extra cost to you.

As an Amazon Associate I earn from qualifying purchases.

Fungus gnats are the small black flies that drift up when you brush a seed tray. The adults are a nuisance; the damage happens below the surface, where their larvae feed in the top layer of mix on fungi, decaying matter, and the fine root hairs of young seedlings. A light infestation slows a tray down. A heavy one, on seedlings in their first two weeks, can thin a tray out cell by cell. The short answer: catch adults on yellow sticky traps, dry the mix surface out and cover it with sand so females cannot lay eggs, and water with Bti to kill the larvae. Then hold all three in place for five weeks, because the life cycle, not the flies you see today, sets the schedule.

Start by confirming the pest. Fungus gnats are 2 to 3 millimeters long, dark, and weak fliers that stay close to the mix. Tap the tray: gnats wander and hop before they fly. Fruit flies, the usual mix-up, gather around ripe fruit and drains instead, and shore flies have spotted wings and leave dark specks on leaves. The setup that grows seedlings well is also the setup gnats like, warm and damp, so the rest of the station matters too; our indoor seed starting equipment checklist covers the trays and airflow gear, and our notes on keeping a seed starting area from getting too hot cover the warm-room side of the same shelf.

Step one: trap the adults and count them

A yellow sticky trap on a stick in a seed tray, covered with small dark fungus gnats, with seedlings growing around it

Yellow sticky traps catch the egg-laying adults and double as your measuring tool. Push the trap into the tray so the sticky surface sits just above the mix, at the height where the flies wander. A trap laid flat on a shelf catches strays; a trap at mix level catches the generation that matters. Replace a trap when it is crowded or dusty, about once a week during an active infestation.

Here is the trap math for a common home setup, with the assumptions stated. Take a four-tier shelf, two trays per tier: eight trays. At one trap per tray, that is eight traps in place at any time. Replaced weekly across a five-week control run, the shelf uses about 40 trap cards. One trap shared across a whole shelf undercounts badly, because a female lays her eggs in the tray she is standing on, and a clean trap two trays away tells you nothing about the tray beside it. Count each trap when you change it. The weekly count per tray is the number that tells you whether the plan below is working: it should fall week by week, with a possible bump in week four that the calendar section explains. See current listings for yellow sticky traps for fungus gnats on Amazon.

Step two: dry the surface and cover it with sand

A seed tray of young seedlings with a thin pale layer of coarse sand spread over the soil surface, a scoop and bag of sand beside it

Female gnats lay eggs in moist mix, and the larvae need that moist top layer to live. Break both habits at once. Let the top half inch to inch of mix dry between waterings, and water from below when you can, by standing the tray in a shallow tray of water for ten minutes and then draining it. Seedlings with true leaves handle a dry surface well; their roots sit deeper. Newly emerged seedlings are the exception, so keep their mix evenly damp for the first days and lean harder on traps and Bti for those trays.

Once the surface dries, cover it with a quarter to a half inch of coarse horticultural sand or fine gravel. The layer dries fast after each watering, females avoid laying in it, and eggs laid there dry out. Keep the layer in place for the whole control run, and top it up where watering has pushed it aside. Trays of seedlings heading outside soon can skip the sand if the drying and Bti steps are running; the sand earns its keep on trays that stay indoors for weeks.

Step three: water with Bti to reach the larvae

A watering can with a round mosquito dunk tablet soaking in the water, standing beside seed trays on a potting bench

Traps and sand work above ground. The larvae already in the mix need a third step. Bti, Bacillus thuringiensis israelensis, is a bacterium sold as mosquito dunks and bits for standing water. Gnat larvae that eat it stop feeding and die, and it leaves seedlings, people, and pets alone. Break off a piece of dunk, about a quarter of one per gallon, soak it in your watering can for a day, and water the trays with that water. A dunk keeps working in the can for about a month; bits can be soaked the same way and strained. Water every tray with Bti water at each watering for the full five weeks, including trays that look clean, because larvae are easy to miss in a tray with few adults. See current listings for mosquito dunks with Bti on Amazon.

Skip the shortcuts that circulate with this pest. A peroxide drench strong enough to kill larvae can burn fine roots. Cinnamon and sand-only fixes fail when the mix below stays wet. Sprays aimed at the adults kill today’s flies and none of the three stages waiting in the tray.

The life-cycle calendar: why five weeks

At about 70 degrees Fahrenheit, a fungus gnat runs egg to adult in roughly 28 days: eggs hatch in about 4 to 6 days, larvae feed for about 10 to 14 days, pupae rest for about 3 to 6 days, and the adult lives about a week, laying eggs as she goes. Warmer rooms shorten the cycle; a cool room stretches it. Those are published typical ranges for this pest, and they drive the plan.

Week of control What is happening in the tray What you should see
Week 1 Traps go in; adults caught; eggs already in the mix keep hatching Highest trap counts of the run
Weeks 2 to 3 Larvae from those eggs meet Bti water and a dry, sanded surface; few new eggs laid Counts fall week by week
Week 4 Pupae formed before control started finish and emerge as adults, around day 28 A small bump in trap counts is normal
Week 5 That last generation is trapped before it can rebuild numbers; two generations have now passed under control Counts at or near zero for two weekly changes in a row

The arithmetic is the point. Stop at week three, the day the shelf looks clean, and the pupae already in the mix emerge in week four with no traps waiting and a fresh batch of seedlings to lay eggs in. Five weeks of control covers one full 28-day cycle plus the margin for a cool room, and it carries the trays through two generations: the one flying when you started and the one that was eggs and larvae in the mix that day. Judge the result by trap counts, not by whether you saw a fly at breakfast.

A note on timing the next sowing: if gnats turn up on a batch started for spring transplanting, count five weeks forward before you call the shelf clear, and keep new sowings on a separate shelf or under a fine mesh cover until the counts hit zero. Use your local frost dates and regional planting guidance — not your USDA hardiness zone alone — to choose planting dates.

Cleaning up the source

Control holds better when the shelf stops breeding gnats between batches. Empty and wash trays before refilling, and throw out mix from a badly infested tray instead of reusing it for seedlings. Wipe algae off tray rims and the shelf itself; algae feed the larvae too. Check houseplants in the same room, since a potted plant with wet mix is a standing gnat nursery, and give it the same dry-surface and Bti treatment. Bagged mix stored open and damp can arrive with gnats in it; store it sealed and dry, and let the top of the bag dry out if flies appear when you open it.

Common questions

Are fungus gnats killing my seedlings, or is it damping off?

Both thin a tray, and they often arrive together in wet mix. Gnat damage is gradual: seedlings yellow, grow slowly, and wilt while the mix is still damp, and you will see flies and find tiny translucent larvae with black heads in the top layer. Damping off is fast: stems pinch thin at the soil line and seedlings topple within a day or two. The drying step in this plan helps against both, which is one reason to run it even when counts look low.

Can I just repot the seedlings into fresh mix?

You can, and for a small tray of sturdy seedlings it works, but larvae and eggs ride along in the mix clinging to the roots, so repotting alone restarts the problem in a clean tray. If you repot, shake off the old mix, then run traps and Bti water on the new tray for the remaining weeks of the calendar.

How do I keep gnats out of the next batch?

Start with traps already in place on sowing day, water from below once seedlings are up, and let the surface dry between waterings as a habit rather than a cure. Prevention is the same three steps, run lightly, before there is anything to count.

Sources and further reading

Related reading: Indoor seed starting equipment checklist, How to keep an indoor seed starting area from getting too hot, What temperature is best for seed germination.

By the Pot and Plot Team

Leave a Comment