How to get rid of fungus gnats – 4 natural methods for healthier houseplants
Discover how to get rid of fungus gnats to keep your houseplants free from pests


Fungus gnats, also known as sciarid flies, are tiny insects that make their homes in warm moist houseplant soil and outdoor compost. When these small pests make their way indoors, the biggest question is how to get rid of fungus gnats and free your houseplants from these annoying bugs.
These bugs cause very little damage to your plants, if any at all, however, as a common houseplant pest they can become a nuisance quickly as they fly around your home. Fungus gnat larvae can cause some damage, however, especially to young, less established plants as they feed on organic matter in the soil, including weak roots.
Here, we look at a multitude of methods of getting rid of fungus gnats, how to spot if you have a fungus gnat infestation, and how to prevent them in the future.
Flies breeding in house plants is quite common and having little black flies buzzing around the home can be very annoying. Fungus gnats love damp soil, so the more you water your plants the more they will be attracted to it.
Fungus gnats can be identified by their miniature size, being only three to four millimeters long, and their yellow abdomens. Often, you can spot fungus gnats on your houseplant soil or drainage tray or fly slowly around your houseplant leaves. These insects are harmless to humans, so do not bite or sting, but can be irritating when flying around your home.
Fungus gnat larvae are slightly larger at six millimeters long and are slender and white, resembling maggots. They live in moist soil and potting compost and can often be seen wriggling around or in a drainage tray after watering.
Luckily, there are a several natural ways to get rid of gnats and their larvae while also preserving your plants.
1. Use sticky traps
These traps are ideal for getting rid of the adult fungus gnats that are flying around your home. Sticky traps are best placed around the infested plants or directly on top of the soil and they are readily available in homeware stores.
You can find sticky traps for houseplants from Amazon.
Making your own homemade bug sprays may also help you to kill any adult fungus gnats.
2. Make an apple cider vinegar trap
To make an apple cider vinegar trap, fill a small, shallow container with an equal amount of water and apple cider vinegar. The liquid should be at least ¼ of an inch deep. Stir in a few drops of liquid dish soap and place the trap near the base of the affected plant or on top of the soil.
You will need to refresh these traps every few days as they attract and kill the adult fungus gnats. These traps work as the gnats are attracted to the smell of the vinegar and the soap prevents the insects from landing safely on the surface, instead, the bugs are pulled in and drowned.
3. Water with a hydrogen peroxide solution
A hydrogen peroxide solution is one of the best ways to get rid of bugs from houseplant soil naturally and is particularly effective against fungus gnat larvae.
Combine one part hydrogen peroxide with six parts water and water your houseplant soil with the mixture, avoiding getting the leaves wet. Allow the soil to dry out completely between watering until the larvae no longer appear out of the soil.
It is important to kill any remaining adult fungus gnats to prevent them from laying any further eggs.
4. Use cinnamon on your houseplant soil
Using cinnamon in your soil is another natural way of preventing fungus gnat infestations. Cinnamon is a natural fungicide, which helps control fungus growth and as a result control gnat infestations.
The smell also repulses gnats and other insects like ants and spider mites, so it discourages them from loitering around your plants and laying their eggs in the soil. If you don't have any cinnamon powder at home, you could always use a cinnamon essential oil, such as this from Amazon, instead.
You may also want to cover the top of your soil with fine sand or small stones to prevent gnats from laying their eggs. This can be an effective deterrent when paired with other prevention methods.
FAQs
Will fungus gnats go away on their own?
Fungus gnats are persistent and will not go away on their own. These pests lay their eggs and multiply quickly, so infestations will continue to grow. The only way to get rid of fungus gnats is to follow a rigorous cleaning program until the infestation has cleared.
What causes fungus gnat infestations?
Fungus gnat infestations are caused by these small pests seeking warmth and moisture. Houseplants that are overwatered or kept in high humidity become a hotbed for soil fungi that attracts fungus gnats and allow them to set up small colonies.
It is important to check your houseplants frequently to help prevent infestations from taking hold. When it comes to long-term prevention, non-pesticidal methods are recommended to prevent harming your plants or other animals in your home.
In addition to the methods we have listed above, you could consider using biological control, such as nematode worms or Steinernema feltiae. This is an effective form of natural pest control, as the worms will seek and destroy the maggots, and they are safe to use around humans and pets.
Sign up to the Homes & Gardens newsletter
Design expertise in your inbox – from inspiring decorating ideas and beautiful celebrity homes to practical gardening advice and shopping round-ups.

Chiana has been at Homes & Gardens for two years and is our resident 'queen' of non-toxic living. She spends most of her time producing content for the Solved section of the website, helping readers get the most out of their homes through clever decluttering, cleaning, and tidying tips. She was named one of Fixr's top home improvement journalists in 2024.
-
This is the single best upright vacuum we've ever tested – and it's on offer with $130 off at Shark for a limited time only
You won't want to miss this one
By Dan Fauzi
-
Nate Berkus says slipcovered sofas are back on trend – and I just found a way to create this designer-approved laid-back look from just $86
This classic style is making a strong comeback, but did you know you don't have to buy a whole new couch to get this Nate-approved look?
By Eleanor Richardson
-
7 habits every good plant parent has, according to houseplant experts – number 3 will surprise you most
Watch your houseplants thrive after you build these tasks into your routine
By Tenielle Jordison
-
My orchid's leaves haven't wrinkled since moving it to this exact spot in my home – it's the easiest hack to keep these flowering houseplants hydrated
Dehydrated orchids can perk up again in the environment of a bathroom
By Tenielle Jordison
-
I regret buying this hard-to-please houseplant – here's why you should avoid it, too, and 3 alternatives to invest in instead
No matter how much I adjust its growing environment, I cannot get pin-stripe calathea to thrive in my home
By Tenielle Jordison
-
I'm doing these 5 things to transition my indoor plants out of winter – experts say this essential spring houseplant care will ensure a thriving indoor jungle
Help your plants recover from any winter damage and support them out of dormancy with these easy and quick tasks
By Tenielle Jordison
-
How to make your own fiddle leaf fig potting mix – a quick DIY to support healthy houseplant growth
Don't forget to include plenty of nutrient-rich ingredients
By Tenielle Jordison
-
My monstera was becoming unmanageable until I followed these 5 steps to train it – now it wows my guests with its impressive, neat structure
Reining your monstera in with a support pole will keep things tidy and benefit its long-term health
By Tenielle Jordison
-
5 bonsai mistakes plant experts say are killing your mini arboretum – and how to never make them again
The art of bonsai takes some time to master, so don't feel disheartened if you end up making one of these common errors
By Tenielle Jordison
-
Can you grow alocasia outdoors? Plant experts reveal how to add this statement houseplant to your yard
In the right climate, alocasia plants can add jungle foliage to your garden landscape
By Tenielle Jordison