How Do You Get Rid of Fungus Gnats in Houseplants?
Fungus gnats in houseplants — what they are, why wet soil causes them, and the drying, trapping, and BTI plan that actually ends them.
Free to read. Straight answer, short version first, then the detail. No sign-up, no purchase.
Fungus gnats are the tiny black flies that rise out of a pot every time you water it. They are annoying, but they are beatable, and the fix starts with the soil, not with a spray. The gnats breed in wet potting mix, so the first step is to let the top of the soil dry out. Then catch the flying adults with yellow sticky traps and kill the larvae in the soil with a BTI treatment. Do all three together, keep it up for three to four weeks, and the gnats will be gone. Spraying the adults alone never works, because there is always another wave hatching underneath.
What fungus gnats are
Fungus gnats are small, dark, mosquito-like flies, about one sixteenth to one eighth of an inch long, with long legs and bead-like antennae. They hover around houseplants, drift toward windows, and are weak fliers that stay close to the infested plant. The adults are mostly a nuisance: they do not bite people and they do not eat your plants.
The damage comes from the larvae. The females lay eggs in the top few inches of moist soil, and the larvae live there, feeding on fungi and fine root hairs. In small numbers a healthy plant tolerates them. In large numbers, especially in seedlings or small plants, the larvae can damage enough roots to stunt growth, yellow leaves, and even kill the plant. University pest programs note that high larval numbers in moist, organically rich soil can cause significant root damage and plant death in houseplants.
Fungus gnats are not fruit flies. Fruit flies gather around food and drains; fungus gnats gather around pots. Vinegar traps that work for fruit flies do not work well for fungus gnats, so do not waste time on them.
Why they show up
Wet soil is the cause. Fungus gnats thrive where potting mix stays moist and rich in organic matter, and peat-heavy mixes that stay wet are the classic breeding ground. Overwatering feeds the fungi the larvae eat and keeps the surface soft enough for females to lay eggs. As potting mix ages and breaks down it holds more water, which is why an old plant that was fine for years can suddenly develop gnats.
The life cycle is why the problem feels endless. At ordinary room temperatures, egg to adult takes roughly three to four weeks — about seventeen days at 75 degrees. The adults live only about a week, but each female lays eggs in damp soil before she dies. That is why killing the flying adults never ends it: the next generation is already in the soil.
The fix, in order
Work the moisture first. Traps and soil treatments help, but they do not replace drying the surface.
First, let the top one to two inches of soil dry out before you water again. That is the figure university extension services give, and it is the single most important step. Dry soil is less attractive to egg-laying females, and eggs and young larvae need moisture to survive. Water less often, and water only when the top soil is actually dry. For plants that tolerate it, watering from the bottom — standing the pot in a tray of water for fifteen to thirty minutes so the roots drink while the surface stays drier — helps too.
Second, put out yellow sticky traps. Place the cards on stakes just above the soil, or lay small squares flat on the surface. Traps catch the flying adults, which cuts down the number of females laying eggs, and they show you whether the numbers are falling. Replace them when they are covered. Traps alone will not end an infestation — they do nothing to the larvae already in the soil — but they are part of the plan.
Third, treat the larvae with BTI. BTI is Bacillus thuringiensis subspecies israelensis, a naturally occurring bacterium that kills the larvae of mosquitoes, black flies, and fungus gnats. Home BTI products are sold as granules, dunks, or liquids, and they appear in guidance from UC IPM, Wisconsin, Minnesota, and Cornell extension services. Soak the product in water according to the label, then water the plants with it so the treatment reaches the top few inches where the larvae live. Repeat every five to seven days for about four weeks. BTI does not kill eggs, pupae, or adults, and it breaks down quickly in the soil, so repeat treatments are what catch each new hatch. Use only the israelensis subspecies: the Bt products sold for caterpillars will not work on fungus gnats.
Two optional extras can help. A one to two centimeter layer of coarse sand, fine grit, or aquarium gravel on the soil surface makes it harder for females to lay eggs and keeps the surface drier. For a badly infested pot, scrape off the top few inches of soil, throw it away outside, and replace it with fresh mix before adding the grit layer. And if the mix is old, dense, and stays wet for days, repot the plant into fresh, well-draining mix — that removes the breeding ground entirely.
How to tell if a pot is the source
If you are not sure which pot the gnats are coming from, use a potato. Push quarter-inch slices of raw potato into the soil or lay them on the surface, and check them after three to four days. The larvae move to the potato to feed, and you will see them on it. That is the test Colorado State and Wisconsin extension services describe, and it tells you which pots need treatment and which ones do not.
How long it takes
Plan on three to four weeks of consistent habits before the room feels quiet again. Wisconsin extension guidance says it may take three to four weeks of changed watering and a sand or gravel layer to get fungus gnats in check, and a Cornell extension article says the population is noticeably reduced four to five weeks after BTI treatment starts. That is the life cycle working against you: eggs and pupae in the pot on the day you treat become the next round of larvae and adults. Keep the traps up and keep treating until you have gone a full week without seeing a new adult.
Prevention
Once they are gone, keep them gone by fixing the conditions that invited them. Water only when the top soil is dry, and do not water on a fixed schedule. Use a fresh, free-draining mix, and repot plants whose mix has broken down into a dense, wet mass. Let new plants sit apart from the rest of the collection for a week or two before joining it, so any gnats they carry do not spread. And resist the urge to keep every pot constantly moist: most houseplants would rather dry out a little between waterings than sit wet.
Bottom line
Fungus gnats mean the soil is staying too wet. Dry the top one to two inches, trap the adults with yellow sticky cards, and treat the larvae with BTI every five to seven days for about a month. Do all three, give it three to four weeks, and they will be gone.
FAQ
What are fungus gnats?
Tiny black flies, about one sixteenth to one eighth of an inch long, that hover around houseplants. The adults are a nuisance; the larvae live in the top inches of moist soil and feed on fungi and fine roots.
Are fungus gnats harmful to my plants?
In small numbers, a healthy plant usually tolerates them. In large numbers the larvae can damage enough roots to stunt growth, yellow leaves, and kill seedlings or small plants. High numbers in wet soil can cause serious root damage.
How do I know if my plant has fungus gnats?
The flies rise out of the pot when you water it or drift around windows near the plant. To confirm larvae in a pot, push raw potato slices into the soil and check them after three to four days — the larvae move to the potato to feed.
Will yellow sticky traps get rid of fungus gnats?
Not alone. Traps catch the flying adults and cut down egg laying, and they show whether numbers are falling, but they do nothing to the larvae in the soil. Pair them with drying the soil surface and a BTI soil treatment.
What is BTI and is it safe?
BTI is Bacillus thuringiensis subspecies israelensis, a naturally occurring bacterium that kills fly larvae. It is the biological treatment university extension services name most often for fungus gnat larvae in pots. It targets larvae only, not eggs, pupae, or adults, so repeat it every five to seven days for about four weeks. Follow the product label.
How long until fungus gnats are gone?
Three to four weeks of consistent treatment is normal, and the population is usually noticeably reduced four to five weeks after BTI treatment starts. The life cycle takes about three to four weeks, so eggs and pupae in the pot become the next wave. Keep treating until a full week passes with no new adults.
← Grower Q&A File Cabinet · All free guides →
A note for newsletter makers
Referral. Grow Vault Supply's Vault List runs on Buttondown. If you want to run a newsletter of your own, starting one through this referral link gets you $9 off your first month. If you become a paying Buttondown customer, Grow Vault Supply earns a 25% lifetime commission. This is a referral, not a sponsor placement — and it's only for readers who want to run a newsletter; it isn't a recommendation for growers who don't.