How to Get Rid of Fungus Gnats on Indoor Plants for Good

Indoor houseplants in pots with a yellow sticky trap for fungus gnats

Tiny black flies hovering around your houseplants are usually fungus gnats. The adults are annoying but harmless. The real problem is underground: their larvae live in damp potting mix and feed on fungi, decaying matter and, when numbers build up, fine root hairs. Seedlings and small plants suffer first. The good news is that you do not need to throw the plant away. Break the life cycle in three places at once — catch the adults, dry out the larvae’s home, and protect the soil surface — and most infestations collapse within two to three weeks.

What You Will Need

  • Yellow sticky traps on sticks, one per affected pot
  • A soil moisture meter, or a plain wooden skewer
  • Coarse sand, fine gravel or horticultural grit, enough for a 1 cm (about ½ inch) layer per pot
  • Fresh, free-draining potting mix, only if the current mix stays soggy
  • A watering can with a narrow spout for controlled, bottom or edge watering

Step 1: Confirm It Is Fungus Gnats

Fungus gnats are 2–4 mm long, dark, and weak fliers. They drift up when you tap the pot and tend to run across the soil surface before taking off. Place a slice of raw potato, cut side down, on the mix overnight. If you find tiny white worms with shiny black heads under it the next morning, those are fungus gnat larvae. This check matters because the treatment is different from the one for other indoor pests. If you are also seeing webbing, sticky leaves or clusters of insects on stems, read our guide to homemade bug sprays for indoor plants as well, and do not confuse gnats with the very different problem covered in our article on how to get rid of soil mites.

Step 2: Catch the Adults Before They Lay More Eggs

Each female can lay well over a hundred eggs in moist mix, so removing adults is not cosmetic — it stops the next generation. Push one yellow sticky trap into each affected pot, with the sticky card just above the soil surface where the flies wander before flying. Check the traps after 24 hours. A heavy catch confirms which pots are breeding sites, so you can focus your effort there instead of treating every plant in the room.

Replace a trap when it is covered or after about a week. Keep traps in place for at least three full weeks after you last see a flying adult, because eggs and larvae already in the mix will keep emerging for a while. Vacuum up any clouds of adults you disturb while working — it sounds excessive, but every adult removed is a batch of eggs that never gets laid.

Step 3: Dry the Top of the Mix

Larvae need the top few centimetres of mix to stay moist. If that layer dries out, most eggs and young larvae die. For the next two to three weeks, let the top 2–3 cm (about 1 inch) of potting mix dry completely between waterings. Use your moisture meter or push a wooden skewer into the mix: water only when the skewer comes out mostly dry at that depth.

Water from the bottom where you can

Set the pot in a saucer of water for 15–20 minutes so the roots drink from below, then tip away any water left standing. This keeps the surface — the only part the gnats care about — much drier while the root zone still gets moisture. Empty every saucer and drip tray after watering. A plant sitting in standing water is an open invitation to start the whole cycle again.

Do not let the plant wilt repeatedly to punish the gnats. Drought-stressed roots are exactly what hungry larvae damage most. The aim is a dry surface and a lightly moist root zone, not a bone-dry pot.

Step 4: Cover the Soil Surface

Once the surface has dried, add a 1 cm layer of coarse sand, fine gravel or horticultural grit over the mix. This dry, gritty blanket does two jobs: adult gnats avoid laying eggs through it because it dries within minutes of watering, and emerging adults struggle to push through it. Leave a small gap around the stem so air can reach the crown of the plant.

For seedlings in small pots, where a grit layer is awkward, a sticky trap plus strict surface drying is usually enough. Move seed trays away from mature infested plants until the problem is cleared, because seedlings have the fewest roots to spare.

Step 5: Deal With a Badly Infested Pot

If one pot is producing most of the flies after a week of traps and drying, repot it. Tip the plant out over a bin, shake and crumble away as much old mix from the roots as you can without tearing them, and trim any black, mushy roots with clean scissors. Repot into fresh, free-draining potting mix in a clean pot with drainage holes, water it in once from the top, then switch to bottom watering and add a fresh sticky trap.

Bag and throw away the old mix with household waste. Do not add it to indoor compost or reuse it for another houseplant, or you will simply move the larvae with it. Wipe the outside of the pot and the shelf it stood on, where spilled damp mix often hides.

Step 6: Keep Them From Coming Back

Fix the watering habit that started it

Almost every fungus gnat outbreak traces back to mix that never dries at the surface: watering on a fixed schedule instead of by feel, pots without drainage holes, or decorative outer pots holding hidden water. Check the mix before every watering, empty outer pots 30 minutes after watering, and choose a free-draining mix for plants that prefer it on the drier side.

Quarantine new plants

New houseplants are the most common way gnats arrive. Keep a new plant separate from the rest of your collection for the first two weeks, with its own sticky trap in the pot. If the trap stays clean and the surface check shows no larvae, it can join the others. Two quiet weeks now are far easier than treating a whole shelf later.

A Simple 3-Week Plan

  • Day 1: Confirm the pest with the potato test, fit sticky traps, and remove standing water everywhere.
  • Days 2–7: Bottom water only, let the top 2–3 cm dry between waterings, and replace full traps.
  • Week 2: Add the grit or sand layer, and repot any pot that is still producing most of the flies.
  • Week 3: Keep traps up for a full week after the last adult you see. If flies are still emerging in numbers, repeat the drying cycle and check for a hidden wet pot nearby.

Fungus gnats feel relentless because several generations overlap in the same pot. You are not failing if you still see a few flies in week one — those were already on their way. Judge your progress by the trap counts: fewer adults each week means the cycle is breaking. Stay consistent with dry surfaces, working traps and no standing water, and your plants should be fly-free, with healthier roots, within about three weeks.

More in Pest & Disease Control →
Browse the full Pest & Disease Control hub — it starts with the guides readers love most.
Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *