How to get rid of fungus gnats – the best ways to keep this destructive garden pest at bay
Keep fungus gnats (aka sciarid flies) away from your plants with these expert-approved tips...


If you've been anxiously trying to figure out how to get rid of fungus gnats, you're not alone: while many are considered to be harmless, there are some species that have been deemed garden plant pests, thanks to their unfortunate habit of breeding in damp compost.
Now, while there are some plants that repel pests, the pesky fungus gnat tends to be drawn to seedlings and cuttings – not to mention our most treasured house plants, too.
'In the open garden fungus gnats are not a problem and part of a well balanced biodiverse garden ecosystem,' say experts at the Royal Horticultural Society (RHS) reassuringly. '[They] are really only of concern if they are causing damage to seedlings or cuttings; established plants are not harmed.'
That caveat in place, then, let's dive on in...
Just as (metaphorically speaking) there's more than one way to skin a cat, so, too, is there more than one way to banish fungus gnats from your garden or greenhouse.
1. Remove excess water
It's a good idea to brush up on the biggest garden watering mistakes if you find yourself repeatedly plagued by fungus gnats, as overwatering is often the root cause of an infestation.
'Fungus gnats love damp conditions and wet soil so it's really important to let your soil dry before re-watering your plant, and to ensure your soil is well-draining,' says Morris Hankinson, director of Hopes Grove Nurseries.

Morris Hankinson is the founder and managing director of Hopes Grove Nurseries Ltd, the UK’s only specialist grower-retailer of hedging plants. He established the thriving business in 1992, shortly after graduating with a Commercial Horticulture Degree from Writtle College, Essex.
'Of course, you still need to be watering your plants enough to keep them healthy and thriving!' he adds.
2. Add grit
Not sure how to get rid of fungus gnats? Grit could prove the answer, promises Morris.
'If fungus gnats manage to get into your plant's soil, they lay eggs which can be tricky to get rid of (and they then turn into fungus gnats who lay eggs and it becomes a continuous cycle),' he says.
'By adding a layer of grit or mixing it into your compost/soil, you can effectively create a barrier that prevents the fungus gnats from infiltrating the soil and laying eggs.'
3. Set out bowls of vinegar
Forget learning how to get rid of fungus gnats; make an effort to keep them away from the get-go!
'Where possible, try and keep fungus gnats away from your plants so they don't get the chance to lay eggs in your soil,' says Morris. 'Try leaving a bowl of vinegar out near your plants, as fungus gnats are attracted to the scent so will fall into the bowl rather than your plant pot.'
4. Try yellow stickers
One of the most famous ways to get rid of fungus gnats is the yellow sticker trap. As small insects are attracted by bright yellow colours, they'll be drawn to something like Amazon's Blooven 60 PCS Fruit Fly Traps in no time.
Then, once they land, the sticky surface trap them and they won't be able to escape. However, the RHS warns that 'these traps can catch large numbers of non-target insects, including predators'. From the end of July 2024 glue traps for rodents have been banned, so do use this method for flies with caution.
5. Re-pot your plants
If none of the above has worked, it's time to set to work rehoming all of the plants in your container garden ideas.
'In worst case scenarios where your fungus gnat infestation is out of control, you may need to re-pot your plants,' says Morris.
'If you set to work doing so, be very careful that you remove all fungus gnats (and larvae) before re-potting as you will encounter the same issue again if not.'
FAQs
What kills fungus gnats in houseplants?
If you have fungus gnats in your houseplants, it's a good idea to learn how to use nematodes.
'Nematodes are an effective form of biological pest control and both professional and home gardeners have been applying them to safeguard their plants from pests and fungus gnats for decades. But many people don’t know that nematodes can be applied to houseplants, too,' says Matt Martin of Nemasys Beneficial Nematodes.
'To apply nematodes to your houseplants, add the required amount of product with water into a watering can and mix well, then water your houseplants as normal,' he continues.
'If the whole packet isn’t needed, it can be safely stored in the fridge and applied a few days later – just make sure they are covered with the protective film and sleeve to prevent spillage. Use the remaining nematodes as soon as possible, as they will lose their effectiveness after being opened for a few days.'
The RHS warns, however, that 'nematodes can potentially affect other insects and the predators can feed on invertebrates other than sciarid fly larvae'.
Do sticky traps work for fungus gnats?
You will have likely heard that sticky traps work for fungus traps, particularly these yellow stickers from Amazon. The rumours are true; the yellow colour attracts the pests, which are held securely by the odourless special glue, making them easy to dispose of.
'Adult fungus gnats can be controlled using sticky traps,' says Matt Martin of Nemasys Beneficial Nematodes. 'They do not live for very long but can reproduce very quickly, however, so controlling the larvae is the most efficient approach.'
And just like that, you know how to get rid of fungus gnats safely and efficiently. Just be sure to only do so if they really are causing a problem, as even these pesky flies can prove beneficial to your garden's ecosystem if given the chance.
Get the Ideal Home Newsletter
Sign up to our newsletter for style and decor inspiration, house makeovers, project advice and more.

Kayleigh Dray became Ideal Home’s Acting Content Editor in the spring of 2023, and is very excited to get to work. She joins the team after a decade-long career working as a journalist and editor across a number of leading lifestyle brands, both in-house and as a freelancer.
-
Mid-century modern meets Japandi in this 1960s extended home
The calm, colourful interiors connect seamlessly with their woodland garden
By Alexandra Pratt
-
5 IKEA BESTA hacks that will transform your basic storage cabinets into stylish pieces with a high-end look
Not sure what to do with your BESTA storage cabinets? These hacks will give you plenty of inspiration to work with
By Sara Hesikova
-
This secret gardening ingredient could be the key to stronger rose plants – and even more flowers
Is mycorrhizal fungi worth it? We spoke to the experts to find out...
By Sophie King
-
Debenhams just made me do a double-take with this bargain designer-look outdoor sofa
This is the last place I thought I'd find my dream outdoor sofa
By Rebecca Knight
-
Aldi is selling a robot lawn mower for under £200 - it's one of the cheapest on the market
I never thought I'd see 'Aldi' and 'robot mower' in the same sentence...
By Kezia Reynolds
-
I tried Gozney's new Tread pizza oven – it's ultra-thin pizza stone means it heats up seriously fast
The much-awaited portable oven from the brand has arrived. But is it any good? I tested it to find out
By Molly Cleary
-
George Home’s sold-out striped parasol is finally back in stock - but this elegant design is expected to sell out again fast
I can't get enough of its whimsical design, too
By Kezia Reynolds
-
Aldi’s cult Kamado BBQ is returning to stores and it's £100 cheaper than before
This budget BBQ is only a fraction of the price of this celebrity favourite
By Kezia Reynolds
-
Shoppers can’t get enough of The Range’s lemon tree, but I’ve found an even cheaper bestseller at B&Q - it’s perfect for a Mediterranean look
Welcome the summer with this glorious fruit tree
By Kezia Reynolds
-
I'm a stylist with an eye for expensive-looking high street finds – these 6 garden furniture pieces at Dunelm are on my radar
These pieces all look more than their price tag
By Laurie Davidson
-
The 6 outdoor lights from Habitat that I'm choosing between to make my outdoor space look more expensive this summer
I couldn’t believe some of the prices
By Ellis Cochrane