Skip to content

How to Get Rid of Fungus Gnats on Houseplants (For Good)

Fungus gnats crawling around your houseplants? Learn the 4-step plan that actually kills them, plus how to keep them from coming back.

Plant Care Base · · 12 min read
Close-up of houseplant soil with tiny fungus gnats flying around the base of the plant

I was working at my desk when I saw one of those tiny flying bugs land on my monitor. Then another. Then I looked at my pothos and realized there were twelve of them crawling around the soil surface. Within three days, they were in every plant in the apartment. Within a week, I was swatting at them every time I walked past the windowsill. I had fungus gnats, and I had no idea how bad it was going to get before I figured out how to actually stop them.

Here’s the thing I wish someone had told me from the start: fungus gnats are never just a pest problem. They’re a watering problem. Adult gnats are almost impossible to miss, and they’re annoying, but they don’t cause the real damage. The larvae in the soil do, and the larvae only exist because the soil is wet enough for them to thrive. If you’ve been watering too often (which almost everyone with fungus gnats has), the gnats are the symptom, not the cause.

This guide walks through the exact 4-step plan that cleared my apartment of fungus gnats in about two weeks, and how to keep them from coming back. It’s not expensive and it’s not hard. It just takes a little patience and some behavior changes.

What Fungus Gnats Actually Are

Fungus gnats are tiny, dark, mosquito-shaped flies, usually about 2-3mm long. They’re weak fliers, which is why you see them hopping around soil surfaces and walking on leaves more than actually flying. The adults live for about a week. What matters is that during that week, a single female lays up to 200 eggs in the top layer of damp soil.

Those eggs hatch into thread-thin, white larvae with shiny black heads. The larvae eat organic matter in the soil, including fungal threads, decaying roots, and (on young or stressed plants) living root hairs. After 10-14 days they pupate, then emerge as new adults, and the cycle starts over.

The whole life cycle is about 3-4 weeks under normal indoor conditions. That’s why an infestation goes from “I saw one” to “they’re everywhere” in about a week. Once eggs and larvae and adults are all present in overlapping generations, you’re dealing with an exponential curve.

The good news: the cycle is also their weakness. Break it at any stage and the population crashes within a few weeks.

Why You Got Them in the First Place

Fungus gnats don’t just show up for no reason. They need three things: damp soil (for egg-laying), organic matter in the soil (for the larvae to eat), and a door or window to get in (or they hitched a ride in on a new plant’s soil).

The most common entry points:

  • A new plant you bought. Nursery soil is almost always pre-loaded with fungus gnat eggs. The plant looks fine for the first week, then suddenly there are adults everywhere.
  • A bag of potting soil you just opened. Same problem. Commercial potting mixes sit in warehouses where gnats breed, and the eggs come home with you.
  • Compost or organic amendments mixed into your soil.
  • An open window in summer that let adults fly in.

But here’s the real trigger: they only become a problem when your soil stays wet enough to breed in. If you were watering appropriately and letting the top of the soil dry between waterings, any eggs that arrived would mostly die before hatching. The fact that you have an infestation means your soil has been consistently damp enough to support multiple generations, which almost always means you’ve been overwatering.

I’m not saying this to shame you. I’m saying it because the plan below won’t work long-term unless you fix the moisture issue too. Otherwise they’ll be back within a month of “clearing” the infestation. If you’re not sure whether you’ve been overwatering, our guide on overwatering vs underwatering covers the signs.

The 4-Step Plan That Actually Works

This is the combination that cleared my apartment in about 14 days. Do all four at once. Skipping one of these is why most people’s DIY fungus gnat plans don’t work.

Step 1: Let the Top of the Soil Dry Out

This is the single most important step, and it’s the one most people skip because their plants “look thirsty.” Fungus gnat larvae live in the top 1-2 inches of soil. They need moisture at that level to survive. If you let that layer dry out completely between waterings, you’re killing larvae faster than they can reproduce.

For most houseplants, this means waiting until the top 2 inches of soil are fully dry before watering again. Stick your finger in. If you feel any moisture, wait another day. This is temporarily harsher than what the plant might prefer, but mature houseplants can handle a slightly drier stretch for two weeks while you’re killing off the infestation.

Exception: calatheas, ferns, and other moisture-lovers that genuinely can’t go fully dry. For those, see Step 3 (BTI soil drench) and Step 4 (bottom watering) more aggressively, and do less of Step 1.

Step 2: Sticky Traps for the Adults

Yellow sticky traps. The bright yellow attracts adult gnats, they land on the glue, they can’t escape. You’re not trying to kill every adult this way. You’re trying to interrupt the breeding cycle by catching females before they can lay their next batch of eggs.

Buy a pack of 20-30 yellow sticky traps online. They’re cheap, maybe $8 for a pack. Place one in or near every plant that has gnats. If you have a lot of plants grouped together, you need multiple traps per grouping. The adults are weak fliers and won’t travel far.

Within 48 hours you should see dozens of gnats stuck to each trap. That’s the visible feedback that tells you the plan is working.

Pro tip: replace the traps every 5-7 days. They get less sticky as dust and dead bugs accumulate.

Step 3: Hydrogen Peroxide or BTI Soil Drench

This kills the larvae in the soil, which is where your real problem lives. You have two options:

Option A: Hydrogen peroxide drench. Mix 1 part 3% hydrogen peroxide (the regular drugstore kind) with 4 parts water. Water your plants with this solution as you would with regular water. You’ll hear it fizz as it hits the soil, that’s the peroxide breaking down and killing larvae on contact. It decomposes into water and oxygen within a few hours, so it’s safe for the plants. Do this ONCE when you start the plan, then switch to normal watering.

Option B: BTI (Mosquito Bits). Bacillus thuringiensis israelensis is a naturally occurring bacteria that specifically targets fungus gnat larvae (and mosquito larvae) without harming anything else. You can buy it as “Mosquito Bits” at most garden stores. Soak a handful in a gallon of water for a few hours, then use that water on your plants. Reapply weekly for 3-4 weeks.

BTI is more effective long-term and safer for sensitive plants. Hydrogen peroxide is faster but only kills what it touches. If you have a bad infestation or a lot of plants, use both: peroxide drench first for immediate kill, then BTI weekly for 3 weeks to break the cycle.

Step 4: Top-Dress With a Dry Barrier

This blocks new eggs from being laid in the soil and prevents any surviving larvae from emerging. Choose one:

  • Sand or small gravel, 1/4 inch layer on top of the soil
  • Decorative pebbles, same thing
  • Diatomaceous earth, which also kills adults that walk on it (but it loses effectiveness when wet, so reapply after watering)

The sand/gravel approach is easier and works for me. Fungus gnats can’t lay eggs through a dry, gritty layer, and the top surface of the soil stays dry even after watering.

Combined with Steps 1-3, the top dressing is what breaks the cycle for good. You’re killing adults, killing larvae, and preventing new eggs. Within 2-3 weeks, the population collapses.

A Real Timeline: What to Expect

Here’s what happened in my apartment when I actually did all four steps. This should set expectations so you don’t panic or give up too early.

  • Day 1: Hydrogen peroxide drench, sticky traps placed, top dressing added. Immediate visible reduction of adults but still seeing some.
  • Day 2-3: Sticky traps catching dozens. Adults noticeably fewer around the soil surface. Still some flying around.
  • Day 4-7: Adult population dropping. Soil drying out. You might see a brief “new hatch” wave around day 5 as the last eggs hatch into larvae.
  • Day 7-14: Larvae dying off from dry soil + BTI. Adults nearly gone. Almost no new gnats caught by traps.
  • Day 14-21: Clean. No new gnats. This is when you remove the sticky traps and resume normal (but correct) watering habits.

If you’re still seeing adults after day 14, you missed something. Usually it’s either a plant you forgot to treat, or you didn’t let the soil dry out enough. Go back and repeat the 4 steps.

Common Mistakes That Keep Gnats Alive

Only using sticky traps. Traps catch adults but do nothing about the larvae and eggs in the soil. You’ll catch a lot of gnats and feel productive, but new ones keep hatching. Sticky traps alone will not clear an infestation.

Only doing the peroxide drench once and then watering normally. If you go back to watering on the same overwatering schedule that caused the gnats, the eggs in nearby soil will hatch and you’re back to square one within a week.

Treating only “the bad plants.” Fungus gnats spread between plants in the same room. If you see them on one plant, assume every plant in that room has eggs in the soil. Treat all of them.

Misting leaves. I mentioned this in the calathea curling guide too: misting raises humidity for five minutes and does nothing useful. It also keeps the soil surface damp, which is exactly what gnats want.

Giving up at day 10. The life cycle is 3-4 weeks. You have to give the plan 2-3 weeks to fully work. If you stop after a week because “it’s not working,” you’ve just done incomplete treatment and the survivors will repopulate.

How to Prevent Them From Coming Back

Once the infestation is cleared, prevention is about two things: stop overwatering, and inspect new plants carefully.

Water less often and more deeply. Let the top 1-2 inches of soil dry between waterings for most plants. When you do water, water thoroughly until it drains out the bottom. Shallow, frequent watering is what creates the permanent damp layer that gnats love.

Check new plants before bringing them home. Inspect the soil surface for adult gnats or small flying bugs. Tap the pot to agitate the soil and see if anything flies out. If you can, isolate new plants for 2 weeks before putting them near your collection.

Quarantine soil bags. If you buy a big bag of potting mix, either use it up within a few weeks or store it in a sealed container. Old, damp potting mix in an open bag is a gnat breeding facility.

Bottom water for a few weeks after clearing. Bottom watering (sitting the pot in a tray of water for 15-20 minutes) keeps the soil surface dry, which makes it harder for any new gnats to establish. It’s also better for the roots.

When Fungus Gnats Are a Sign of a Bigger Problem

If you’ve done the 4-step plan correctly and the gnats come back within a month, something else is going on. Usually one of these:

  • Root rot is keeping the lower soil permanently wet even when the top is dry. Check the roots. If they’re mushy and brown, you have a bigger issue than gnats.
  • The pot has no drainage or the drainage hole is blocked. Water sits at the bottom permanently. Repot into something with actual drainage.
  • The soil mix is too dense. Cheap peat-heavy potting mix holds water for too long. Repot with a chunkier mix with perlite and orchid bark.
  • You have a leaking pot or saucer that’s keeping the soil damp.

Fix the underlying cause and the gnats won’t come back. Symptoms like fungus gnats, drooping Pothos, and persistent brown leaf tips are all pointing at the same root cause for many houseplant owners: too much water in the soil too often.

The Bottom Line

Fungus gnats are beatable, but you have to hit them at every stage of their life cycle at once. Sticky traps alone don’t work. Peroxide alone doesn’t work. Drying out the soil alone works slowly. Combine all four (drying, sticky traps, soil drench, top dressing) and they’re gone in 2-3 weeks.

More importantly, once they’re gone, stay gone. Fungus gnats are a warning that you’ve been watering too often. Take the warning seriously. Check your watering habits, make sure your pots drain properly, and inspect new plants before bringing them home.

According to the University of California Statewide Integrated Pest Management Program, fungus gnats are “the most common insect pest of houseplants,” and nearly every case traces back to overly wet soil. If you remember one thing from this article, let it be this: fix the water, and the gnats fix themselves.

For a broader look at watering mistakes that cause pest and disease problems, our guide on overwatering vs underwatering covers what every houseplant owner should know.

Frequently Asked Questions

What actually kills fungus gnats in houseplants?
The fastest-working combination is a soil drench of hydrogen peroxide (1 part 3% H2O2 to 4 parts water) to kill larvae, plus yellow sticky traps to catch adults, plus letting the top 1-2 inches of soil dry out completely between waterings. BTI (Mosquito Bits) is the other heavy hitter for long-term larval control. Use all four together and they're gone in about two weeks.
Do fungus gnats kill plants?
Adult gnats are annoying but harmless. The larvae living in the soil can damage roots, especially on seedlings and young plants. For mature houseplants, the real danger is chronic overwatering (which is what attracted the gnats in the first place), not the gnats themselves.
Why do my houseplants keep getting fungus gnats?
Fungus gnats need consistently damp soil to breed. If they keep coming back, you're almost certainly watering too often. Let the top inch or two of soil dry out between waterings, and check whether the pot has proper drainage. Fix the moisture problem and the gnats go away on their own.
Will fungus gnats go away on their own?
Technically yes, if you stop overwatering and let the soil dry out. The life cycle is about 3-4 weeks, so if you cut off their breeding conditions, a generation or two dies out and the population collapses. But it's faster to combine drying out with sticky traps and a soil drench.

Don't miss our guides

Weekly plant care newsletter.

Tags

#fungus gnats #pest control #houseplant pests #soil pests #troubleshooting

Share this article

Related Articles