Skip to main content
Garden & Home Reviews is reader-supported. We earn affiliate commissions from qualifying purchases — how this works.

How to Get Rid of Fungus Gnats

Home/Resources/Houseplants & Indoor Greenery/Getting Rid of Fungus Gnats
Low-angle view of a person's hands wiping the leaves of a large indoor plant beside a bright window, in warm late-afternoon light

Affiliate Disclosure

Some links on this page are affiliate links. As an Amazon Associate, we earn from qualifying purchases — at no extra cost to you. We do not buy, test, or physically handle the products we cover; our rankings come from aggregated owner reviews, ratings and expert consensus. Commissions never change our verdicts. How we rank · full disclosure.

The short answer: attack all four stages at once for a full month. A BTI drench (mosquito bits steeped in your watering can) kills the larvae in the soil, yellow sticky traps remove the egg-laying adults, a half-inch top-dressing of coarse sand or grit stops new eggs reaching damp mix, and letting the top two inches dry between waterings removes the conditions they need. Any one of those alone fails, which is why the problem seems endless.

Fungus gnats are the most common indoor plant pest in America and the most misunderstood. The little black flies drifting around your monstera are not the infestation — they are the visible five percent of it. Every adult you swat has already laid up to a couple of hundred eggs in the top inch of somebody's potting mix, and the flies you kill today were replaced before you started.

We never buy or physically handle the products mentioned here; recommendations elsewhere on the site come from aggregated owner reviews and expert consensus, described in how we rank. The wider care picture is at the houseplants and indoor greenery hub.

Why Single Methods Always Fail

Understand the life cycle and the whole strategy becomes obvious.

StageDuration at ~70°FWhere it isWhat reaches it
Egg2–3 daysTop 0.5 in of damp mixNothing chemical — only dry surface or a physical barrier
Larva~2 weeksTop 1–2 in of mix, deeper if dryBTI drench, hydrogen peroxide, drying, nematodes
Pupa3–4 daysIn the mixVery little — this stage mostly has to be waited out
Adult~1 week, lays 100–200 eggsFlying, resting on soil and windowsSticky traps, vacuum

The whole cycle is about three to four weeks in a warm room, and every stage overlaps. Put out sticky traps alone and you catch adults while thousands of larvae mature underneath. Drench once with peroxide and you kill the larvae present that day while the eggs laid yesterday hatch tomorrow. Let one pot dry perfectly while the fern next to it stays moist and the population simply relocates. This is a life-cycle problem, and only a life-cycle answer ends it.

Overhead view of a person's hands wiping the leaves of a large indoor plant beside a bright window, in soft overcast light

Step 1: BTI Drench — the Part That Actually Works

Bacillus thuringiensis subspecies israelensis, usually written BTI, is a soil bacterium that produces a protein toxic to the larvae of flies and mosquitoes and to essentially nothing else. It is sold in the pond and mosquito aisle as granular "mosquito bits" or as doughnut-shaped "dunks," and it is the single most effective thing you can do about fungus gnats. It is not a synthetic insecticide, it does not persist in the house, and it is safe around pets, children and edible herbs.

The method with granules:

  1. Add roughly 2 to 4 tablespoons of mosquito bits per gallon of water.
  2. Let it steep for at least 30 minutes, stirring once or twice — you are extracting the bacterium off the corn granules, not feeding the granules to the plant.
  3. Strain or simply pour off the liquid, and use it as your normal thorough watering, letting it run out of the drainage hole.
  4. Repeat for three or four consecutive waterings, roughly weekly. This is the step people skip and it is the reason the treatment "did not work" — BTI kills larvae that eat it, and it breaks down within days, so it has to be present each time a new batch of eggs hatches.

You can also scatter dry bits on the soil surface as a top-up between drenches; watering releases the bacterium gradually. Some owners find the granules grow harmless white mold when left damp on the surface — brush it off, or stick to the steeped drench.

Two alternatives are worth knowing. Hydrogen peroxide at one part 3 percent solution to four parts water kills larvae on contact and fizzes off into water and oxygen; it is genuinely useful as a fast knockdown on the day you notice a problem, but it has zero residual effect, so it must be repeated every few days and it will not carry you through a hatch cycle. Beneficial nematodes (Steinernema feltiae) are a living biological control that hunts larvae in the soil and works very well, but they need refrigeration, have a short shelf life and cost several times what a bag of mosquito bits does. For a houseplant collection, BTI is the better default.

Step 2: Sticky Traps for the Adults

Yellow sticky cards do two jobs, and the second one is the more valuable. They intercept adults before they lay — a female caught on a card is a couple of hundred eggs that never happen — and they give you a population count. Put out fresh cards on day one, replace them weekly, and compare. If week three shows a fraction of week one, the drench is working. If the count is flat, something in the room is still breeding freely and you have missed a pot.

Placement matters more than quantity: lay or stake the cards low, an inch or two above the soil surface, because that is where adults spend most of their time. Cards up at leaf height catch a fraction as many. Use at least one per pot in a bad outbreak. They are cheap enough that under-buying is a false economy, and they are the only part of this plan that gives you feedback.

Blue cards are for thrips. Fungus gnats are strongly attracted to yellow.

Three-quarter view of a person's hands wiping the leaves of a large indoor plant beside a bright window, in soft early-morning light

Step 3: Top-Dress to Break the Laying Surface

Adults will not lay eggs in dry, inorganic material, and hatchlings cannot travel up through it. Covering the mix with a half-inch layer of a coarse, fast-drying material therefore ends the cycle physically, without killing anything.

The options, roughly in order of how well owners rate them: horticultural sand or coarse builder's sand — cheap and effective, but use coarse grit, because fine play sand packs into a crust that repels water; pumice, perlite or small lava rock — lighter, drains beautifully, and looks tidy; fine gravel or aquarium gravel — heavy but very effective; diatomaceous earth — works while dry and becomes useless the moment it is wet, which is most of the time in a plant pot, so it is a weaker choice than it sounds.

One caution: a top-dressing hides your moisture gauge. With sand on top you cannot judge the mix by looking at it, so switch to the weight test or a wooden skewer pushed to the bottom of the pot. The methods are set out in how often to water houseplants.

Step 4: Fix the Conditions, or They Come Back

A sustained fungus gnat population indoors is a diagnosis, not just a nuisance. It means there is consistently damp organic matter in your pots, which usually means the plants are being watered more often than they need. Letting the top two inches dry properly between waterings kills eggs and young larvae outright and makes the surface unattractive for laying.

Bottom watering helps for the same reason — the reservoir wets the root zone while the surface stays dry — and it is a good interim tactic during treatment for plants that can take it. Also check the things that are damp for reasons unrelated to watering: saucers left with standing water, a decorative cachepot quietly holding an inch of water under the nursery pot, mix that has broken down into a dense, permanently soggy sponge, and dead leaves rotting on the soil surface.

If a plant cannot be dried out — ferns, calatheas, peace lilies, seedling trays — you cannot use drying as a control, and BTI plus a barrier layer becomes the whole plan for that pot. That is fine; it just means being disciplined about the four-week drench schedule.

Two more root causes worth naming. Dense potting mix holds water at the surface for days and is the ideal nursery; a chunkier blend with more perlite and bark drains the top layer fast and is a permanent fix rather than a treatment. The bagged options are compared in best potting mix for houseplants. And too little light is the hidden driver behind almost all of it, because a plant in a dim corner barely transpires, so its soil stays wet for a week no matter how carefully you water — see how much light do houseplants need.

Over-the-shoulder view of a person's hands wiping the leaves of a large indoor plant beside a bright window, in warm late-afternoon light

What Does Not Work

Keeping Them Out

Quarantine anything new. Keep a new plant or a fresh bag of mix away from the collection for two to three weeks with a sticky card next to it — long enough for any hidden generation to reveal itself. Store opened potting mix sealed and dry rather than in a damp garage corner. Water thoroughly but less often, empty saucers within half an hour, and clear dead leaves off the soil surface where they rot and feed larvae. If you propagate in water or start seeds, those permanently wet surfaces are the highest-risk objects in the house and deserve a sticky card of their own year round.

Get all of that right and gnats become an occasional two-week nuisance after a nursery run rather than a permanent feature of the living room. If yellowing leaves came along with the gnats and you are not sure which problem you are actually looking at, work through yellow leaves on houseplants — the two very often share a cause.

More from this hub: Houseplants & Indoor Greenery · how often to water houseplants · how to save an overwatered plant · how we rank.

Straight Answers

Frequently Asked

How long does it take to get rid of fungus gnats?

Three to four weeks if you attack every stage at once, and never if you only kill the adults. The full egg-to-adult cycle runs roughly three to four weeks at normal room temperature, so any single treatment that misses one stage simply lets the next generation restart. Expect adults still flying for one to two weeks after you begin — those are insects that were already larvae in the soil when you started. Sticky trap counts should fall noticeably by week two and reach near zero by week four.

Do fungus gnats damage plants?

The adults do nothing at all beyond being irritating. The larvae are the problem: they feed on fungi and decaying organic matter in the top layer of mix and, in heavy infestations, on fine root hairs and seedling stems. A mature, well-rooted plant usually shrugs it off. Seedlings, cuttings and recently repotted plants can be genuinely set back or killed, because there are few enough roots that losing any matters. A large gnat population is also a reliable signal that the mix is being kept far wetter than that plant wants.

What kills fungus gnat larvae in soil?

Bacillus thuringiensis subspecies israelensis, sold as mosquito bits or dunks, is the standard and the most reliable. It is a naturally occurring bacterium that produces a toxin lethal to fly larvae and harmless to people, pets, birds and plants. Steep the granules in water, then use that water as your normal watering for three to four consecutive waterings so the treated water is present through the whole hatch cycle. Hydrogen peroxide diluted one part 3 percent solution to four parts water kills larvae on contact but does not persist, so it only works on what it touches on the day.

Does letting soil dry out get rid of fungus gnats?

It helps enormously and it is not sufficient alone. Eggs and young larvae live in roughly the top two inches of mix and need moisture, so letting that layer dry properly between waterings kills a large share of them and stops adults from laying. But larvae move deeper as the surface dries, and plants that cannot be dried out — ferns, calatheas, peace lilies, seedlings — get no benefit at all. Drying is the foundation of control, not the whole of it.

Where do fungus gnats come from?

Almost always in the bag or the pot. Bagged potting mix is frequently already carrying eggs or larvae, and a plant bought from a nursery or big-box store arrives with whatever was living in its soil. That is why an outbreak so often begins a week or two after a new plant or a fresh bag of soil comes into the house. A few adults can also fly in through a window or come up a drain, but a self-sustaining population indoors means there is consistently damp organic matter for them to breed in.