How to get rid of soil gnats?

Article for :Beginner and plant killerExperienced plant lover

Sciarid fungus gnat

Article summary

Have you noticed tiny black flies buzzing around your favorite Monstera deliciosa? Is your Syngonium podophyllum pot hosting some curious little green creatures? Your houseplants are likely under attack by fungus gnats. Don't panic—we'll explain how to get rid of soil gnats.

How can you identify soil gnats in houseplants?

A close-up of the culprit – Photo by Simon Thévenin / Wikipedia
A close-up of the culprit – Photo by Simon Thévenin / Wikipedia
Soil gnats, also known as soil flies, are black or gray insects that measure between three and four millimeters. They have long legs and translucent wings.

The fungus gnat lives for only about ten days. But it reproduces rapidly. During its short lifespan, a female can lay 150 eggs. These eggs hatch into translucent larvae about five millimeters long.

The scientific name for the fungus gnat is Sciaridae. This term encompasses dozens of insect species belonging to the Sciaridae family.

Potting soil gnats are attracted to warm, humid environments where they can lay their eggs. This is why gnats are often found at the base of houseplants and larvae in their substrates.

Are fungus gnats a pest?

The larvae pose a threat to your plants – Photo by Jake McCumber /iNaturalist
The larvae pose a threat to your plants – Photo by Jake McCumber /iNaturalist
In nature, certain species of fungus gnats play a role in plant reproduction and propagation. Adult insects act as pollinators. However, their presence can also be problematic.

Adult male soil gnats pose no danger to your indoor plants. It is the females, which lay eggs, and the larvae that cause concern. The larvae feed by eating the roots of plants. They also burrow tunnels into bulbs and stems. This affects the plant, causing it to stop growing, wilt, and eventually die.

How can you prevent soil flies from appearing?

Blocking access to the potting soil is a drastic but effective solution – Photo by Didgeman / Needpix
Blocking access to the potting soil is a drastic but effective solution – Photo by Didgeman / Needpix
Fungus gnats thrive in moist conditions. Be sure to empty any standing water from saucers and planters to keep them away from your indoor plants.

Also remove plant debris (dead leaves, wilted flowers, dry stems) that sometimes clogs the potting soil. As it decomposes, it attracts fungus gnats.

Finally, you can prevent fungus gnats from laying eggs in the substrate by making it inaccessible. Cover the substrate surface with clay pellets or gravel.

Are you reading this article too late, and have soil flies already invaded your houseplants? Here's how to get rid of them.

Five Effective Solutions for Getting Rid of Potting Soil Midges

The yellow sticky trap—it's ugly, but it works – Photo by Maja Dumat / Flickr
The yellow sticky trap—it's ugly, but it works – Photo by Maja Dumat / Flickr
Cinnamon, cloves, apple cider, vinegar, diatomaceous earth… There are many natural remedies online for getting rid of soil gnats. The effectiveness of these tips is far from universally agreed upon, and their results are hit or miss. When your plants are infested, try one of these solutions instead.

If your plant isn't (too) sensitive to drought, stop watering it for a few days, until the substrate dries out to a depth of at least five centimeters. The larvae won't survive in a dehydrated environment and will die quickly. This natural solution works for cacti, succulents, and hardy species, such as inch plant (Tradescantia zebrina), chinese money plant (Pilea peperomioides), or zZ plant (Zamioculcas zamiifolia). However, it's riskier for varieties that need to keep their potting mix moist.

Fungus gnats are very sensitive to cold. They thrive in our heated homes, when the temperature ranges between 21 and 25 °C. If a midge infestation occurs between September and May, move your plants outside to the garden or onto a windowsill (provided the outdoor temperature is above the hardiness limit). After a day or two, the cold should kill the larvae.

You can also set up sticky traps at the base of the plants to catch soil flies before they lay eggs. Some gardeners make their own traps by coating cardboard with glue, honey, and corn syrup. But you can also buy adhesive traps online. They come in a distinctive color, but apparently yellow is the color that fungus gnats prefer.

Biological control and nematodes are an unbeatable weapon against infestations. These microscopic white worms are the natural predators of fungus gnats. For about ten euros, you can buy a powder containing millions of nematodes. Simply mix it with your watering solution and let nature take its course. Nematodes are highly effective against fruit fly infestations, but the commercially available ones pose no danger to houseplants or pets.



Not ready to invite worms into your home to eat the larvae? Then your best option is repotting the plant. Take your plant out of its pot, remove the old substrate from the roots, and repot it in a clean, well-drained pot filled with brand-new (and gnats-free) substrate. Not sure which substrate to use? Download the Monstera app. Our care guides explain which substrates to choose so your plants can thrive.

Potting soil gnats fly and move from one plant to another. For the treatment to be effective, you must apply it to your entire plant collection. Otherwise, you'll just be shifting the problem around.

Can you use soapy water to get rid of soil gnats?

While effective against fungus gnats, soapy water can be harmful to your plants – Photo by Cottonbro Studio / Pexels
While effective against fungus gnats, soapy water can be harmful to your plants – Photo by Cottonbro Studio / Pexels
Some people recommend spraying a mixture of water and soap (black soap or dish soap) on the plant and the substrate to eliminate fungus gnats.

While soapy water is effective at killing fungus gnat larvae, it is not without risk to plants. Some products, particularly dish soap, contain substances that are harmful to plants when released into the potting mix.

When free of chemical additives, black soap and Marseille soap are less harmful. However, they interfere with the absorption of nutrients by the plant and the microorganisms found in the potting soil.

Are matches effective against pot flies?

Sticking matches into a pot looks ugly and doesn't work / AI-generated photo
Sticking matches into a pot looks ugly and doesn't work / AI-generated photo
Rumor has it that planting matches—with the flammable end first—in the potting soil can eradicate fungus gnats. The reason: the sulfur coating on the tip of the match is said to repel the gnats.

No studies have (yet) looked into this. But it's highly likely that the amount of sulfur is too small to have any effect on the fungus gnats. Matches do not protect your houseplants from soil midge infestations. Nor will they eliminate larvae already present in the soil.
By Servane Nemetz
on 05-03-2025 at 2:48 PM
Monstera
Monstera - Plant guide!
Open

Download the app!

  • Weather-adapted reminders
  • New care guides added regularly
  • Photo identification

App Store 4.2 Play Store 4.4