Photo by: Tomasz Klejdysz / Shutterstock

Are there swarms of tiny mosquito-like insects buzzing around your home that have more interest in your houseplants than landing on you? Chances are you have an infestation of fungus gnats, insects that are harmless to people but pose a threat to a wide variety of indoor plants. Once these pesky invaders make their way into your home, they can be tough to get under control. Here’s advice on preventing fungus gnats and getting rid of them for good.

On this page: What Are Fungus Gnats? | Get Rid of Fungus Gnats | Prevent Fungus Gnats | Recognize the Presence of Fungus Gnats | Identify Damage | Plants Susceptible | Frequently Asked Questions

On this page:


Fungus gnats (Bradysia species) are flying insects with long, slender legs, similar to mosquitoes, but their overall size is much smaller, so they are sometimes mistaken for fruit flies.

Unlike whiteflies and aphids, which feed on the sap in a plant’s leaves, fungus gnats are attracted to the soil your plant is growing in. The females commonly lay their eggs under the surface of the soil, and once the larvae emerge, they begin feasting on fungi and decaying organic material. They also like to snack on plant roots and root hairs, which can cause substantial damage to seedlings and young plants that don’t have fully developed root systems.


Getting rid of fungus gnats is often a two-pronged approach. If you treat the soil to kill the larvae, it will have no effect on the adult gnats, allowing the females to continue to lay eggs. Since the larvae do most of the damage, you should target your efforts at eradicating them first. The adults are a bit harder to get under control because they can move from plant to plant.

Try a biological control.

There are a number of effective biological control agents you can use to eliminate fungus gnat larvae in the soil. One of the easiest to use is a product called Mosquito Bits. Essentially little corn cob granules coated with a biological insecticide called Bacillus thuringiensis israelensis (or Bti), the bits can be sprinkled on the soil surface or mixed with potting soil prior to planting to kill fungus gnat and other fly larvae. You can also soak them in water (4T Mosquito Bits to 1 gallon of water for 30 mins, then strain) and then apply the treated water to the soil. They do not have a long residual effect, so repeat applications are commonly needed for stubborn infestations.

Beneficial nematodes are another way to attack gnat larvae and can live longer in the soil. Look for a product containing Steinernema feltiae, a naturally occurring insect-parasitic nematode that actively searches for fungus gnat larvae and releases a bacterium that kills them.

For more information on biological controls for fungus gnats, see this guidance from the University of California Integrated Pest Management Program.

Photo by: MarcOliver_Artworks / Shutterstock.

Set a trap.

To reduce swarms of adult fungus gnats buzzing around your plants, an effective method is to use yellow sticky traps to attract and catch them. The gnats are drawn to the color yellow and get stuck on the trap after landing on its adhesive coating. When the trap is full, simply throw it away and replace it with another one. Not only is this an easy method of getting rid of adult fungus gnats, it’s also a good way to monitor for their presence. These pesticide-free traps will capture other flying plant pests as well, including whiteflies, thrips, and aphids.


If you’re an avid houseplant collector, it’s likely that you will have at least one encounter with fungus gnats. But there’s no need to panic. It’s pretty easy to prevent their spread and keep them from going after other plants in your home.

  1. Don't overwater. The simplest and most effective way to prevent fungus gnat problems is to allow the top 1 to 2 inches of soil to dry out between waterings. The dry soil will not only be less appealing to egg-laying females, it will also decrease the odds of survival for any eggs or larvae that have already taken residence. Another strategy is to water from the bottom up using slow-drip watering globes designed for potted plants. Bottom watering will hydrate the roots of your plants while keeping the top of the soil dry.
  2. Choose the right potting soil. Look for a fast-draining indoor potting mix low in the organic matter that fungus gnat larvae love, such as compost, bark fines, and peat. If necessary, add non-organic materials like perlite or vermiculite to the mix to help improve drainage, especially if you tend to overwater.
  3. Add a top layer of sand or gravel. Because fungus gnats lay their eggs in the top inch of soil, adding a layer of sand, gravel or decorative stone to the surface will help keep it dry and discourage reproduction. Basically, this creates a barrier to the food source and the females will look for breeding grounds elsewhere.
  4. Repot often. As your potting soil ages and degrades, it tends to retain more moisture, making it more attractive to adult gnats. Repotting with fresh soil every so often will not only discourage gnats, it will also improve plant health by restoring depleted nutrients. Once you open a bag of potting mix, be sure to store any unused soil in a sealed container to prevent a fungus gnat infestation.
  5. Inspect plants regularly. Fungus gnats can be sneaky invaders and may escape notice if you aren’t on the lookout for them. Regularly check your houseplants for infestations, especially if you bring a new plant into your home. If you disturb the foliage and stir up a swarm of tiny black insects, they are likely to be fungus gnats.
  6. Isolate new plants for two weeks. Also check houseplants for fungus gnats before you bring them home from the nursery. Even if you don’t see adult gnats flying around, the larvae may still be present in the soil. To be safe, keep new plants away from the other plants in your collection for at least a two weeks. The same goes for any houseplants that you move indoors in the fall after a summer spent outdoors.

  7. Quarantine infected plants. If you discover an infested houseplant, put it in quarantine away from other plants by isolating it in another room until you get the problem under control. Fungus gnat adults are weak fliers and typically won’t stray very far from an infested plant.


Fungus gnat larvae. Photo by: Henrik Larsson / Shutterstock

Fungus gnats don’t move around much and prefer to hang out on the foliage or soil surface of potted plants. Because they are so small, you often won’t notice them flitting about until you water your plant or disturb the leaves. They also are at­tracted to light, so you may see them flying near windows.

The larvae of fungus gnats are more difficult to spot with the naked eye. Often the first sign of these tiny, worm-like soil dwellers are slime trails on the soil surface, similar to those of snails and slugs. A simple way to confirm their presence is to insert thin slices of raw potato into the soil surface. Within a few days, the larvae will start feeding on the potato slices and you’ll be able to see them on the undersides when you remove the slices for inspection. You can identify the larvae by their shiny black heads and white, semi-translucent bodies.


Houseplants growing in soil infested with fungus gnat larvae can exhibit a range of symptoms, from wilting or yellowing foliage to stunted growth. Because fungus gnats don’t feed directly on a plant’s leaves, these symptoms are sometimes attributed to other factors, such as over or underwatering, instead of root damage caused by undetected fungus gnat larvae. Both the larvae and adult fungus gnats can also spread plant pathogens that cause “damping off,” a soil-borne fungal disease that will quickly kill seedlings and fragile, young plants.


Any houseplant grown in moist, nutrient-rich soil is a potential target for fungus gnats because the soil provides an abundant food source. Plants grown commercially in greenhouses and nurseries are especially vulnerable, including African violets, geraniums, lilies, begonias, ferns, chrysanthemums, carnations, cyclamen, poinsettias, and many types of foliage plants. If you are growing seedlings indoors, they are also at risk of damage.


Do fungus gnats feed on outdoor plants?

Although fungus gnat larvae can also feed on the roots of plants growing outdoors in containers or in the garden, they usually don’t cause serious damage because natural predators and seasonal weather changes keep them in check.

Are fungus gnats always harmful?

Adult fungus gnats are annoying but completely harmless to people and pets. Of greater concern are the larvae that feed on the roots of the plant and limit its ability to take in nutrients. In small numbers, fungus gnats do little damage to healthy houseplants with well-established, robust root systems.

What brings fungus gnats into the home?

There are a number of ways these unwanted guests can make their way into your home. The most common is by hitchhiking on new houseplants that you add to your collection or on plants you bring in from the outdoors. However, they can also be found in open bags of potting soil and may even fly into your home through open, unscreened doors and windows.

How long do fungus gnats live?

The whole life cycle of a fungus gnat (from egg to adult) takes about 3 to 4 weeks, with the adults living an average of a week. During that brief time, an adult female gnat can lay as many as 200 eggs, which is why a small infestation can get out of hand quickly.

Are fungus gnats a problem year-round?

Fungus gnats love warm indoor temperatures and will continue to breed for generations as long as they have a food source. Although they can be a problem any time of year, they tend to be more noticeable during late fall and winter. Factors contributing to this seasonal surge include infested houseplants brought indoors after spending the summer outside and overwatering, which is more common during the winter months when houseplant growth tends to slow down.

Are there good home remedies for preventing fungus gnats?

Some houseplant growers claim that methods such as watering plants with diluted hydrogen peroxide, sprinkling cinnamon on the soil surface, and creating traps using apple cider vinegar and dish soap are successful at eradicating fungus gnats and their larvae. However, the evidence that they work is primarily anecdotal. By far the easiest and best home remedy for ending your fungus gnat problem is to get rid of excess moisture and decaying matter in the soil of your houseplants.


How to prevent, identify, and manage garden pests, plant diseases, and weeds.

Learn how to keep your garden healthy from Joe Lamp'l, one of the country's most recognized and trusted gardeners in this self-paced online course. Lifetime access, $47

Get more information and enroll today!


JOIN 100,000 GARDEN LOVERSSign up for weekly gardening inspiration and design tips

Get plant information, gardening solutions, design inspiration and more in our weekly newsletter.

* Required Fields
We will never sell or distribute your email to any other parties or organizations.

More about the newsletter

Follow Us Garden Design Magazine Facebook Garden Design Magazine Twitter Garden Design Magazine Pinterest Garden Design Magazine Instagram Garden Design Magazine Youtube