Skip to main content

How to get rid of fungus gnats: 6 ways to eliminate this pest problem

Tips to get rid of fungus gnats and keep them away

houseplant life span shelf jpg
Mallmo / Shutterstock

As far as common houseplant pests go, fungus gnats aren’t necessarily the worst critters to linger around your plants, but they can be quite the nuisance. Fungus gnats typically bother plants that are already struggling with overwatering or fungal infections. On their own, they're more likely to be a symptom of a larger issue rather than a problem in their own right.

Really, gnats only become problematic when they start to multiply — and once they multiply, they can multiply fast. While it might not live for more than two weeks, an adult fungus gnat can lay up to 300 eggs, making it imperative that you treat an infestation as soon as you notice it.

Recommended Videos

Difficulty

Moderate

Duration

15 minutes

What You Need

  • Sterile, soilless potting mix

  • Yellow sticky traps

  • Mosquito bits

  • Apple cider vinegar

  • Cup

  • Plastic wrap

  • Hydrogen peroxide

  • Neem oil

  • Sand

It’s easy to see just how problematic gnats can become, so how can you eliminate them? We'll go over tips on how to get rid of fungus gnats and prevent these pests from taking over your home, and we'll break down tried-and-true solutions for getting rid of them.

Houseplants on a shelf
Mallmo / Shutterstock

What to do when fungus gnats start attacking your plants

While they’re harmless, fungus gnats can be indicative of a more serious problem. The number-one culprit behind fungus gnats is — drumroll please — overwatering! True to their name, fungus gnats often feed on fungus in the soil that can grow from overwatering and root rot. When you see them hovering around a specific plant, this may be a sign that you need to cut back on watering that plant.

Step 1: Isolate the affected plant from the rest of your collection to prevent the gnats from laying eggs elsewhere.

Step 2: Repot the affected plant into fresh soil, removing as much of the infected potting mix as possible. Replace it with a sterile, soilless mix if you can — organic amendments often attract these flying bugs.

Step 3: When you water your plants, use a method such as bottom watering to ensure you never let your plant sit in water.

houseplant collection
vadim kaipov / Unsplash

Solutions for getting rid of fungus gnats

After doing some damage control for your plants, it’s time to attack the fungus gnats themselves. Luckily, you can easily access solutions for fungus gnats since they’re a pretty common problem. You might even be able to grab remedies from your kitchen or medicine cabinet. Depending on the size of the infestation and what items you have available in your home, here are six solutions you can try.

Sticky bug trap
Valeria Vechterova / Shutterstock

Solution 1: Yellow sticky traps

Yellow sticky traps aren’t the most subtle means of getting rid of fungus gnats, but they are effective. Adult fungus gnats will fly right to them and get stuck. While the traps can become unseemly over time, they will stop the gnats from reproducing. Yellow sticky traps for houseplants are easy to access as well — you can often find them in the pest control area of your local garden center or even make them at home.

Plant fertilized with pellets
encierro / Shutterstock

Solution 2: Mosquito bits

Bacillus thuringiensis, or Bt, is used in a popular product called Mosquito Bits, which, in spite of its name, will also help you get rid of fungus gnats. Bt is essentially a bacteria that kills fungus gnats but is considered safe for humans and pets. Mosquito pellets are very effective, as they systematically kill larvae in the soil.

Step 1: If using Bt in pellet form, sprinkle the pellets directly onto your soil.

Step 2: If preferred, you can also soak the pellets inside your watering can to release the bacteria into the water. Pre-soaking allows the bacteria to travel more quickly to the roots, where the fungus gnats are likely feasting.

Glass bottle labeled vinegar on table
focal point / Shutterstock

Solution 3: Apple cider vinegar

All you need for this one is apple cider vinegar, a clear cup, and plastic wrap.

Step 1: Fill a cup approximately one-third of the way with vinegar.

Step 2: Cover the top of the cup with plastic wrap and poke a small hole in the foil top. Adult gnats will fly into the vinegar through the small hole and eventually drown.

Person watering plants
Teona Swift / Pexels

Solution 4: Hydrogen peroxide

The next time you water a plant infested with fungus gnats, test out a hydrogen peroxide solution. While hydrogen peroxide might not be as effective as other suggestions on this list, it’s worth a shot since it’s probably already in your medicine cabinet! And while you can use a hydrogen peroxide solution as a spray on stems and leaves, it’ll work better in the growing medium because this is where eggs typically hatch.

Step 1: Create a mixture of one part 3% hydrogen peroxide and four parts water.

Step 2: Water affected plants with the hydrogen peroxide mixture, soaking the plant to kill larvae lurking in the soil. Don’t worry if the soil starts to fizz, as this is what happens when hydrogen peroxide breaks down.

Neem oil
Mukesh Kumar / Shutterstock

Solution 5: Neem oil

Diluted neem oil is one of the most versatile products for dealing with pests. You can usually find it online or at your local garden center for use on plants. Whether you have scale, thrips, or gnats, it’s definitely convenient to have neem oil lying around to manage pests. Neem oil works by stopping insects from mating and eating, so they eventually die. The drawback with neem oil is that it’s usually a foliage spray, so you probably won’t be able to get it down to the roots where gnats and their larvae attack near rotting roots.

Three small houseplants in unique plant pots
panattar / Shutterstock

Solution 6: Cover the soil with sand

Since fungus gnats lay their eggs in the soil, one way to prevent them from bothering your plants is to stop them from reaching the soil. Adding a layer of sand to the top of the soil will prevent fungus gnats from laying eggs in the soil, and it will trap any existing eggs or larvae from reaching the surface.

While this won't get rid of an existing infestation, placing a layer of sand on the surface of the soil can keep an existing infestation from getting worse and prevent future infestations. Water and liquid fertilizer will still be able to reach the soil through the sand, so your plant won't be harmed by this method.

While not necessarily harmful, fungus gnats can quickly grow out of control and may also indicate an overwatering issue with your houseplants. To prevent fungus gnats, key preventative measures include never letting your soil get waterlogged and avoiding organic matter in your soil.

If you do find your indoor jungle becoming a home to gnats, there are plenty of solutions out there to get rid of them. With a cup of apple cider vinegar or a sprinkle of mosquito bits, you’ll be on your way to getting rid of those pesky fungus gnats once and for all.

Stacey Nguyen
Stacey's work has appeared on sites such as POPSUGAR, HelloGiggles, Buzzfeed, The Balance, TripSavvy, and more. When she's…
Have a gross mealybug infestation on your plants? Try one of these remedies
Use these tips to get rid of mealybugs
Mealybugs clustered on stems

Mealybugs are tiny pests that can become a huge threat if left uncontrolled. These tiny pests can be hard to spot until the infestation gets out of control. So, how can you tell if your garden is infested, and how do you protect your plants? Luckily, mealybugs are easy to identify and treat once you've seen them. Here's everything you need to know about these pests and how to get rid of mealybugs on plants.
What causes mealybugs on plants?

Mealybugs love plants with high nitrogen levels, soft growth, and juice that they love to feed on (citrus crops are particularly susceptible for this reason). Usually, these insects are drawn to plants that are being cared for too much, as opposed to too little. Overwatering or overfertilizing your plants results in a squishy, soft environment where mealybugs can thrive.
Why mealybugs are bad for plants

Read more
How to get rid of thrips on houseplants
Thrip on a plant leaf

Thrips can be one of the most infuriating pests for both indoor and outdoor gardeners. There are more than 6,000 species around the world, and gardeners who find themselves in the midst of an infestation often wonder how to kill thrips—or else, how to get rid of them with organic pest control methods—and if their indoor plants are safe.

Read more
Wondering how to get an anthurium to bloom? Here’s our guide
Anthurium blooms

Common as they may be in flower arrangements, anthuriums are easy to grow as potted plants. Even beyond their striking appearance at your local nursery or grocery store, you can get them to bloom throughout the year. For tips on how to get your anthurium plant to continually flower, keep reading ahead to cultivate the anthurium arrangement of your dreams.

What you need to know about anthuriums
The anthurium genus consists of about 1,000 plants. Along with their glossy, heart-shaped leaves, anthuriums feature striking, long-lasting flower spikes known as inflorescences — these have a large, flat spathe surrounded by a thin, arched, or helix spadix. One of the most common anthuriums, the scherzerianum, or flamingo flower, shows off leathery, lance-shaped leaves and waxy red spathes with an orange spadix. Besides red, you may also find plants with white, orange, yellow, or purple spathes.

Read more