How to get rid of fungus gnats – for healthier houseplants

Learn how to get rid of fungus gnats to keep your houseplants free from pesky pests

A close up of a fungus gnat on a branch
(Image credit: Alamy)

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, these common houseplant pests 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. 

How to get rid of fungus gnats  

A collection of houseplants indoors on the floor, shelving unit, and a stool

(Image credit: Unsplash)

'Flies breeding in house plants is quite common and having little black flies buzzing around the home can be very annoying. Fungus gnats or sciarid flies love damp soil so the more you water your plants the more they will be attracted.’ explains John Stewart from eco-friendly pest control company Green Protect explains. Luckily, there are a few 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. 

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. 

How to know if you have fungus gnats 

A close up of houseplant leaves indoors on a table

(Image credit: Unsplash)

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. 

How to prevent fungus gnats 

A collection of houseplants indoors on a table

(Image credit: Unsplash)

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. 

‘Make sure you do not over-saturate your houseplant soil when watering,’ says Rachel Crow, garden editor for Homes & Gardens. ‘Let the top two inches of soil dry out completely before watering again to prevent moist soil and soil fungus.’ 

‘There are simple water level indicators or monitors that can be bought from garden centers to ensure that plants are not over or under-watered,’ adds John. 

‘You may want to cover the top of your soil with fine sand or small stones to prevent gnats from laying their eggs,’ Rachel continues. This can be an effective deterrent when paired with other prevention methods. Using cinnamon in your soil is also a creative way of preventing fungus gnat infestations. Cinnamon is a natural fungicide, which helps control fungus growth and control gnat infestations. 

Finally, consider using biological control. 'If the flies are established the larvae can be killed with biological control using nematode worms Steinernema feltiae,’ explains John. ‘The worms will seek and destroy the maggots, and they are safe to use around humans and pets.’

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.  

Chiana Dickson
Content Editor

Chiana has been at Homes & Gardens for two years, having started her journey in interior journalism as part of the graduate program. 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 – many of which she tests and reviews herself in her home in Lancaster to ensure they will consistently deliver for her readers and dabbles in the latest design trends. She also has a first-class degree in Literature from Lancaster University.