Skip to content

Fungus Gnats: How to Kill Them in Houseplants

How to get rid of fungus gnats in houseplants. Yellow sticky traps, a nematode drench, watering from below and a grit top dressing that keeps them away.

Last updated: 19 October 2026

Yellow sticky trap covered in fungus gnat flies sticking up from a UK houseplant in a bright window Pests & Problems
Fungus gnats are tiny dark flies that breed in damp houseplant compost. They're annoying rather than dangerous. To clear them, put yellow sticky traps above the compost to catch the adults, water a nematode drench (Steinernema feltiae) into the pots to kill the grubs, and water from below so the top few centimetres of compost dry out. Keep it up for about four weeks and the cycle is broken.
How longAbout four weeks to clear
Best fixNematodes plus yellow traps
Worst timeAutumn and winter, heating on
PreventionWater from below, dry top compost

Key takeaways

  • Fungus gnats breed in damp compost, so the real fix is drier compost on top
  • Yellow sticky traps just above the compost catch the flying adults
  • A nematode drench (Steinernema feltiae) kills the grubs in the compost
  • Water from below until they're gone, so the top layer stays dry
  • Home-made drenches like hydrogen peroxide or cinnamon aren't legal pesticides in the UK
  • Keep going for about four weeks to break the breeding cycle

Fungus gnats are the little dark flies that zip up out of the pot when you water. They won’t kill your plants, but they breed fast in damp compost and drift around your face in the evening. Good news: they’re easy to clear once you know what they want.

The plan is simple. Catch the adults on yellow sticky traps, kill the grubs with a nematode drench, and let the top of the compost dry out so they can’t lay eggs. Stick with it for about four weeks and you’ll break the cycle. For fruit flies, whitefly and other houseplant visitors, see our guide on how to get rid of houseplant flies.

Fungus gnats caught on a yellow sticky trap in a houseplant pot A yellow sticky trap full of adult fungus gnats. It’s the easiest way to see how many you’ve got.

What are fungus gnats?

Fungus gnats (also called sciarid flies) are small, dark grey flies about 2-4mm long. They look like tiny mosquitoes with long legs, but they don’t bite. They fly weakly and tend to walk over the compost or hover around the pot.

The real trouble is underground. The grubs are see-through white with a shiny black head. They live in the top few centimetres of damp compost, eating fungi, rotting bits and fine roots.

They go from egg to adult in a few weeks when the house is warm. The females lay their eggs in damp compost, which is why gnats and overwatering go hand in hand. Dry the top of the compost and you stop them in their tracks.

When fungus gnats are worst in UK homes

Autumn and winter are the busy season. The heating goes on, plants grow more slowly and drink less, and the compost stays wet for longer. Lots of people first notice gnats in November.

Spring brings new plants home from the garden centre, and some carry eggs or grubs in their compost. Repotting with compost from an open bag can bring them in too.

Summer is usually quieter. Windows are open and plants dry out faster. Bathrooms and dim rooms where compost stays damp can still have trouble.

When the heating comes back on in autumn, it’s a good time to pop sticky traps back in your pots.

Fungus gnats or another houseplant fly?

A few small flies turn up around houseplants. Here’s how to tell them apart.

FlyWhat it looks likeWhere you’ll see it
Fungus gnatTiny, grey-black, long legsFlying up from the compost when you water
Fruit flyTan with red eyesAround the fruit bowl, not your plants
WhiteflyTiny and whiteFlutters up from under the leaves
Shore flyBlack and a bit stouterAround green algae on soggy compost

Not sure? Put a yellow sticky trap above the pot for a day. Small black flies with long legs are fungus gnats.

Close-up macro of fungus gnat larvae in compost with adult fly visible showing lifecycle stages UK houseplant Fungus gnat grubs (white with black heads) and an adult. The grubs in the top of the compost do the damage.

How to kill fungus gnats fast

Tackle the adults and the grubs at the same time. Here’s the three-step plan.

Step 1: Yellow sticky traps for the adults

  1. Push a few sticky traps into each affected pot, just above the compost.
  2. Swap them when they’re full.
  3. Keep them in for about four weeks, even after you stop seeing flies.

Traps won’t fix things alone, but every adult caught is one less laying eggs.

Step 2: Nematode drench for the grubs

  1. Buy Steinernema feltiae nematodes from a garden centre or biological control supplier.
  2. Mix them with water as the pack says.
  3. Water them into every affected pot so the compost is well soaked.
  4. Only use them when the compost is above 10C.
  5. Keep the compost moist for about a week so the nematodes can move.

Nematodes are tiny worms that hunt down the grubs in the compost. They’re harmless to people, pets and plants.

Step 3: Let the top of the compost dry

Start watering from below straight away (see below). Once the top layer dries, the adults stop laying. Home-made drenches like hydrogen peroxide, and Bt products, aren’t authorised pesticides for home use in the UK, so leave them out.

A houseplant topped with grit and a yellow sticky trap to stop fungus gnats A layer of grit on top of the compost and a yellow sticky trap tackle the grubs and the adults together.

How to stop fungus gnats coming back

It all comes down to keeping the top of the compost dry.

Water from below

This is the biggest change you can make. Stand the pot in a tray of water for 15-30 minutes, let it soak up through the drainage holes, then tip away what’s left. The top of the compost stays dry and gnats can’t lay there.

If a plant really needs watering from the top, use a long-spouted can and pour at compost level. When you repot, our guide on how to repot houseplants has more watering tips.

Add a grit top dressing

Spread a 2cm layer of horticultural grit, fine sand or small pebbles over the compost. The adults can’t get through to the damp compost to lay eggs, and it looks tidy too. Dried moss looks nice but doesn’t work as well.

Houseplant in terracotta pot with 2cm horticultural grit top dressing preventing fungus gnat egg laying UK home A 2cm layer of grit on top. The adults can’t reach the damp compost below to lay their eggs.

Think about your compost

Some peat-free composts hold a lot of water and stay damp for a long time. If gnats keep coming back, try a free-draining mix:

  • Most houseplants: John Innes No. 2 or No. 3 with some perlite mixed in
  • Orchids: Bark-based orchid compost
  • Succulents: Cactus compost with extra sharp sand

Keep new plants apart

New plants can bring gnats home with them. Keep new arrivals in a separate room for a few weeks with a sticky trap in the pot. Only move them in with the others once the trap stays empty for a week.

Keep compost bags sealed

An open bag of compost in a warm room is a gnat nursery. Fold the top over tightly, store it in a shed or garage if you can, and use up older bags first.

Fungus gnats on seedlings and cuttings

Seedlings and cuttings have tiny roots, so a few grubs can do real harm. Give them a little extra care.

To keep gnats away:

  • Use fresh seed compost from a sealed bag
  • Water from below
  • Check under propagator lids every day
  • Put a yellow sticky trap in as soon as seedlings come up
  • If you sow indoors in winter, a nematode drench before sowing helps

If gnats turn up:

  • Nematodes are fine to use on seedlings
  • Water from below so the surface stays dry
  • Pot seedlings on once they have true leaves

Our guide on how to propagate houseplants has more on raising cuttings indoors.

Houseplant seedlings with yellow sticky traps protecting against fungus gnats in propagation tray UK Sticky traps in a seed tray give you early warning if gnats move in.

Common fungus gnat mistakes

A few popular tricks don’t help much.

Vinegar traps. They catch fruit flies, not fungus gnats. Use yellow sticky traps instead.

Letting the plant dry out completely. It kills the grubs but can kill the plant too. Watering from below keeps the plant happy and the surface dry.

Soap or home-made sprays. They aren’t authorised pesticides in the UK, and the problem is the grubs in the compost, not the adults.

Insecticide sprays indoors. You don’t need them. Traps, nematodes and drier compost do the job.

Cinnamon or hydrogen peroxide. These aren’t legal treatments in the UK, so give them a miss.

Leaving sand on for ever. Sand can pack down over time and hold water. Refresh it every few months.

How to know they’ve gone

You’re clear when, for a whole week:

  1. The sticky traps catch nothing new
  2. You see no grubs when you gently scratch the compost
  3. Nothing flies up when you water or touch the pot

Keep watering from below and leave the grit on for another few weeks, just to be sure. After that, good watering habits should keep them away.

Beneficial Steinernema feltiae nematode drench being applied to a fungus gnat infested houseplant with watering can UK Watering in a Steinernema feltiae nematode drench to clear the grubs.

Houseplants that get fungus gnats most

Plants that like damp compost get gnats most often.

Spider plants: Rarely bothered. They cope with drier compost.

Peace lilies: Quite prone, as they like damp compost. Water them from below.

Orchids: Bark compost doesn’t suit gnats much. If they appear, let the bark dry a little more between waterings.

Succulents: Shouldn’t get them at all. If they do, you’re watering too much.

Monstera and philodendron: Often affected, as big pots stay damp deep down. Nematodes work well here.

Ferns: Very prone because they like moist compost. Use a grit top dressing and raise humidity with a pebble tray rather than soggy compost.

African violets: Prone because they like steady moisture. Water from below.

For rooms where damp compost is hard to avoid, our guide to best low-light houseplants can help you pick tougher plants.

Your four-week fungus gnat plan

WhenWhat to doWhat you should see
Day 1Traps in every affected pot, start watering from belowAdults appear on traps
Day 3Nematode drench in all potsGrubs start dying off
Week 1Swap traps, check numbersFewer adults than day 1
Week 2Swap traps againTraps nearly empty
Week 3Keep traps inVery few adults
Week 4Remove traps once empty for a weekAll clear
After thatWater from below, keep new plants apartGnat-free

The RHS guide to sciarid flies is handy if you’d like to read more.

Frequently asked questions

What kills fungus gnat larvae quickly?

A nematode drench is the quickest legal way. Buy Steinernema feltiae nematodes, mix them with water as the pack says and drench the compost while it’s above 10C. Home-made drenches like hydrogen peroxide aren’t authorised pesticides in the UK, so skip them. Pair the nematodes with sticky traps and watering from below.

Do yellow sticky traps work for fungus gnats?

Yes, they catch the flying adults very well. Put a few just above the compost in each affected pot. They won’t clear the grubs in the compost on their own, but they cut down egg-laying and show you how bad things are. Swap them when they fill up and keep going until they stay empty for a week.

How do nematodes kill fungus gnats?

They’re tiny worms that hunt the grubs in the compost. You mix them with water and pour them on, and they find and kill the larvae. Use them when the compost is above 10C and keep it moist for about a week afterwards so they can move around.

Why do I keep getting fungus gnats?

Usually the compost is staying too wet. Other culprits are an open bag of compost in the house and new plants bringing gnats in with them. Water from below, keep compost bags sealed and somewhere cool, and keep new plants apart for a few weeks before they join the others.

Are fungus gnats harmful to houseplants?

Not much to healthy, grown-up plants. The grubs nibble fine roots, which a mature plant barely notices. Seedlings, cuttings and plants that are already struggling can suffer, though. The flying adults don’t harm plants, but they keep laying eggs, so deal with them anyway.

Can I use cinnamon on fungus gnats?

No, cinnamon isn’t a legal treatment. Home-made remedies aren’t authorised pesticides in the UK. Use nematodes for the grubs, yellow sticky traps for the adults, and water from below with a grit top dressing to stop egg-laying.

How do I stop fungus gnats coming back?

Keep the top of the compost dry. Water from below, add a 2cm layer of grit on top, keep new plants apart for a few weeks, and keep compost bags sealed, ideally in a shed. Gnats can’t breed in dry compost.

fungus gnats sciarid flies houseplant pests indoor plants bradysia nematodes sticky traps

By Garden UK Editorial Team

Our team produces practical UK gardening guidance from source research, contributor records and established horticultural practice. Editorial standards are overseen by Matt W.

About our editorial team · How we work

Stay in the garden

Seasonal tips, straight to your inbox

One email a month. What to plant, what to prune, what to watch out for. No spam.

Unsubscribe any time. We never share your email. See our privacy policy.