top of page

Fungus Gnats in Houseplants: How to Get Rid of Them

Writer: Tom Findlay
Tom Findlay
Oct 30
4 min read

Updated: 5 days ago

Tiny dark flies drifting around your houseplants are usually fungus gnats. They are annoying rather than dangerous to you, and they point to one thing: potting mix that stays damp for too long.


This guide explains why they appear, how to break their cycle, and how to keep them away. If you are still learning how much to water, start with our beginner watering guide.


Why fungus gnats appear


Adult gnats lay eggs in damp potting mix. The larvae feed on fungi and fine roots near the surface. Constantly wet soil, pots with poor drainage and heavy, peaty mixes all make life easy for them.


New plants and bags of potting mix that were kept damp can also bring them in. It is worth looking over any new arrival, such as the plants in our top indoor plants for small spaces list, before it joins the rest.


Step 1: let the potting mix dry out


Hand pressing a fingertip into the top of the potting mix in a green glazed pot beside a leafy plant, checking whether the surface is dry

The most effective fix is to water less often. Let the top layer of potting mix dry before you water again, and check by pressing a finger into the soil. Plants that like to dry out between drinks, such as the snake plant and the ZZ plant, handle this well.


Always empty any water left standing in the saucer. Soggy pots are the main reason gnats keep coming back.


Step 2: trap the adults


Yellow sticky traps catch adult gnats and show you whether the numbers are falling. Place them just above the soil. Traps do not remove the larvae, so use them alongside drier potting mix rather than instead of it.


Step 3: water from below and improve drainage


Potted pothos in a terracotta pot standing on a saucer of water for bottom watering, on a bright windowsill

Bottom watering keeps the surface dry, which makes it harder for gnats to lay eggs. Stand the pot in a dish of water until the potting mix has taken up what it needs, then let it drain fully.


Check that the pot has drainage holes. If the potting mix is dense and stays wet, repotting into a fresher, airier mix can help. Our repotting guide walks through it step by step.


Step 4: keep them from coming back


  • Water only when the plant needs it, and pour off excess water.

  • Use a fresh, well-draining mix when you repot.

  • Give plants enough light so they use water steadily, see our grow lights guide if your room is dim.

  • Be careful with plants that like steady moisture, such as the peace lily, and avoid letting them sit in water.

  • Keep an eye on cuttings rooting in potting mix, as in our pothos propagation guide.


When it is not fungus gnats


Yellowing leaves can come from overwatering, which is also what gnats like. Our yellow leaves checklist helps you work out what else may be going on.


For more habits that keep a small indoor garden healthy, read our indoor gardening tips for apartment dwellers.


Common mistakes beginners make


Repotting to get rid of the gnats


Moving the plant into fresh mix does not remove the larvae already living in the old soil and roots, and it can stress the plant. Fix the moisture first, then repot only if the mix has broken down.


Wetting only the top of the soil


Gnats breed in the damp layer where the eggs were laid. Water that soaks only the surface keeps that layer wet. Let the top inch of soil dry out fully before each watering.


Forgetting the saucer


A saucer that stays full gives gnats a safe place to breed at the surface of the mix. Empty it within a few minutes of every watering. Tip the saucer out, rinse it, and dry it before you put the pot back on it.


Equipment mentioned in this guide

The supplies below are mentioned in this guide.

Frequently Asked Questions


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


Most people see fewer gnats within one to two weeks of letting the soil dry out. Eggs and larvae take longer to clear, so keep the routine going for about a month.


Are fungus gnats harmful to houseplants?


Adults are mostly a nuisance. The larvae feed on fine roots and can weaken young or seedling plants, which is why it helps to act early.


Do sticky traps alone get rid of fungus gnats?


Not on their own. Traps catch the flying adults and show you how many there are, but the larvae live in the soil. Drying the top layer of the mix is what breaks the cycle.


Keep reading: Houseplant Care Index


About the author. Hi, I'm Tom, creator and curator of Urban Roots Guide. I'm lucky to have a garden, but not everyone does, so I bring my passion for plants indoors and share what I learn about houseplants, hydroponics and growing in small spaces. I'm not an expert, just someone who loves spending time in nature and wants to help more of us bring greenery home. Read more about me

bottom of page