• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Longbourn Farm
  • Home
  • Recipes
  • Gardening
  • Farm
  • Family
menu icon
go to homepage
  • Home
  • Recipes
  • Gardening
  • Farm
  • Family
    • Facebook
    • Instagram
    • Pinterest
    • YouTube
  • search icon
    Homepage link
    • Home
    • Recipes
    • Gardening
    • Farm
    • Family
    • Facebook
    • Instagram
    • Pinterest
    • YouTube
  • ×
    Home » Animal and Land » Gardening

    How to Get Rid of Gnats on Indoor Herbs (Food-Safe Methods)

    Published: Jan 27, 2023 · Modified: Jun 16, 2026 by Melissa Griffiths · This post may contain affiliate links · 4 Comments

    FacebookPinterest
    Pinterest Hidden ImagePinterest Hidden ImagePinterest Hidden ImagePinterest Hidden Image

    Those little gnats hovering around your indoor plants can be a real nuisance. But if you have an indoor herb garden, one you have spent time and effort nurturing, you don't want these small pests to ruin the fruits of your labor. It usually starts with one or two flying near the kitchen sink, but within a week, a full-blown infestation can leave your garden looking sad and your family completely frustrated.

    Learning how to get rid of gnats on indoor herbs requires a careful, strategic approach. Because you are eventually going to eat these herbs, you cannot spray them with harsh bug killers or toxic chemicals. The secret to conquering indoor fungus gnats is a safe approach: trapping the flying adults to stop the breeding and safely treating the soil to destroy the larvae hiding beneath the surface.

    how to get rid of indoor gnats image.

    WANT TO SAVE THIS RECIPE?

    Enter your email below and we'll send it straight to your inbox. Plus you’ll get great new recipes from us every week!

    Please enable JavaScript in your browser to complete this form.
    Loading
    Jump to:
    • What Are Fungus Gnats?
    • What Causes a Fungus Gnat Infestation?
    • Signs of a Fungus Gnat Infestation
    • How to Get Rid of Gnats on Indoor Herbs
    • How to Avoid Problems With Fungus Gnats
    • Frequently Asked Questions
    • More Garden and Herb Post from the Farm 
    • More How-To Techniques

    Some people are lucky enough never have to deal with gnats. But if you live in a warm area with a lot of moisture, gnat infestations are more common than you think. While they are less damaging to your herbs than other pests, like aphids, they can still cause problems. 

    Aside from feasting on organic material like your herb plant roots - fungus gnat larvae can spread disease, causing stress to your house plants and inhibiting their growth.

    The good news is that there are many all-natural ways to eliminate gnats on your indoor herbs. But first, let's look at what fungus gnats actually are and how to tell if you have them.

    Table of Contents

    Toggle
    • What Are Fungus Gnats?
    • What Causes a Fungus Gnat Infestation?
    • Signs of a Fungus Gnat Infestation
    • How to Get Rid of Gnats on Indoor Herbs
    • How to Avoid Problems With Fungus Gnats
    • Frequently Asked Questions
    • More Garden and Herb Post from the Farm 
    • More How-To Techniques

    What Are Fungus Gnats?

    These little critters are easily identifiable due to their long legs, antennae, and transparent wings. Gnats are tiny and look like mosquitoes, but they don't bite. Fungus gnats come in many different species, but it is the Sciaridae family of gnats that are a problem for indoor herb gardens.

    Adult fungus gnats are attracted to the warm, humid environment that is an indoor herb garden. Gnats love moist soil and do not discriminate between healthy and unhealthy plants. It also doesn't matter what your herbs are potted in, be it a large planter or a small pot, fungus gnats have no problem setting up camp!

    What makes these pests different from others is the fact they do not usually attack the herb itself, but rather the roots. Fungus gnats will feed on plant roots, root hairs, and other plant material - destroying them in the process and leaving your herb unable to access much-needed nutrients.

    Fungus gnats do not live long, but they can reproduce quickly by laying up to 300 eggs in their life. Gnats will lay their eggs in the wet soil, and before you know it, your herb garden will be dealing with a full-blown fungus gnat infestation!

    What Causes a Fungus Gnat Infestation?

    how to get rid of gnats indoors image.

    Fungus gnat infestations are typically caused by overwatering and/or poor drainage. The warm, wet conditions are ideal for fungus gnats to lay their eggs, providing a home for the harmful larvae to grow.

    In addition, if you use a potting mix that is not properly sterilized, it may contain fungus gnat eggs or larvae. When choosing a potting soil for your herbs, it is always best to go with one labeled ‘sterile’ or ‘pre-sterilized.’

    Signs of a Fungus Gnat Infestation

    While fungus gnats do not typically attack the herb leaves, it is fairly easy to tell if you have an infestation. The most common sign of a fungus gnat infestation is the presence of adult gnats flying around your herbs. Gnats are not great fliers, so they will stick close to the soil surface and dart around swiftly, usually in large numbers.

    You may even see fungus gnat larvae in the soil. Gnat larvae look like small, white worms and will remain near the soil surface. The larvae feed on the plant roots and organic matter, so it is essential to get rid of them as soon as possible.

    Another sign of a fungus gnat infestation can be stunted growth or wilting in the plants. This is because the fungus gnats cause unseen damage within the soil and prevent your herbs from thriving. It can be hard to tell if this deterioration is down to gnats or another issue, but when paired with other signs of an infestation, it is a good indicator.

    How to Get Rid of Gnats on Indoor Herbs

    how to get rid of gnats indoor image.
    1. Repot and Refresh

    If you suspect your herbs may be hosting gnats, the first step is to repot your herbs. By removing the infested soil, you are cutting off the fungus gnats' food supply and disposing of any larvae in the soil. If your herbs have any signs of root rot, they will need to be trimmed before repotting.

    Before repotting your herbs in fresh, sterile soil, always thoroughly wash the plant pot to ensure no fungus gnat eggs are left in the container.

    1. Cover The Soil

    Fungus gnats thrive in moist soil and lay eggs in it. To prevent them from laying their eggs and interrupting the life cycle, add a layer of diatomaceous earth on the soil surface. Diatomaceous earth is a natural mineral powder that is safe for plants. It has a sharp texture that damages the fungus gnat's exoskeleton, thus killing them on contact.

    You must only use food-grade diatomaceous earth when covering the soil of herbs. Remember, DE only works when dry.

    1. Try Mosquito Dunks

    If you have never heard of mosquito dunks before, they are a type of biological insecticide that contains a strain of bacteria called Bacillus thuringiensis (BTI). This bacterium is safe for humans and animals, but it is toxic to fungus gnats.

    To use mosquito dunks for getting rid of fungus gnats, simply place one in a cup of water (or as directed) and add it to the soil. The bacteria will kill off any fungus gnat larvae in the soil, thus preventing them from maturing into adulthood.

    1. Sprinkle With Cinnamon

    I know this seems unlikely, but cinnamon is a great way to get rid of fungus gnats. Sprinkle a thin layer of ground cinnamon on top of the soil surface and use it in combination with other methods for maximum effect.

    Cinnamon has anti-fungal properties, making it an excellent organic way to ward off fungus gnats. Plus, it smells lovely!

    1. Create an Apple Cider Vinegar Trap

    Many of the solutions in this list target larvae, which is vital in getting rid of fungus gnats. For a solution that targets the fungus gnat adults, try creating an equal part apple cider vinegar mix. The apple cider vinegar smells like sweet, ripe fruit to the gnats, drawing them away from your herbs.

    To make this mix, combine equal parts apple cider vinegar and water in a container (ideally a shallow dish or wide-rimmed bowl). Add a drop of standard dish soap and cover it with some plastic wrap. Then poke some small holes in the top and wait for the fungus gnats to be attracted to the mix! The soap will break down the surface tension of the liquid, making it difficult for them to escape.

    1. Use a Hydrogen Peroxide Drench

    You must use food-grade hydrogen peroxide for this remedy and correctly dilute the mixture. Hydrogen peroxide is safe for use on edible plants, as it breaks down into water and oxygen once it is released. This mix isn't potent enough to harm your plants, but it does a great job of killing off fungus gnat larvae and eggs.

    To create the drench, unless otherwise specified, mix one part hydrogen peroxide (3%) with four parts water in a watering can or spray bottle. Use this mixture to water the soil, not the leaves, being sure not to saturate the soil too much.

    1. Utilize Yellow Sticky Traps

    The bold yellow color of sticky traps attracts the fungus gnats, trapping them on the surface. Place a few of these traps around the herbs and monitor the results, replacing them when they're full.

    Yellow sticky cards are relatively inexpensive and are the best way to monitor the population of fungus gnats in your home. Although it is important to note that these traps only catch adult gnats, so you'll still need to use other methods for the larvae and eggs.

    How to Avoid Problems With Fungus Gnats

    how to get rid of gnats indoors image.

    Ideally, we want to do our best to prevent fungus gnats from invading our herbs in the first place. Here are some tips to keep in mind:

    • Make sure the soil is not overly moist - gnats hate dry soil.
    • Ensure good drainage holes are present in the bottom of the pot.
    • Inspect new plants and consider 'quarantining' them.
    • Thoroughly check new bags of soil for signs of gnats prior to using.
    • Water your herbs from the bottom by placing them in a shallow bowl instead of pouring water directly onto the soil surface.
    • Keep your herb garden clean and free of decaying plant matter.
    • Stay on top of maintenance by regularly inspecting your herbs and checking for signs of infestation.

    Frequently Asked Questions

    Can I use neem oil for indoor herbs?

    Use it with caution. Organic neem oil can be effective, but it has a very strong, distinct odor and can leave bitter residue on your edible herbs.

    Are fungus gnats the same thing as fruit flies?

    Fruit flies are brown, have distinct red eyes, and crawl on old food or trash. Fungus gnats are solid black, look like tiny mosquitoes, and spend their entire lives jumping and flying strictly around the dirt of your plants.

    Will dish soap kill gnat larvae in the dirt?

    Do not pour dish soap directly into the plant's soil. While it can kill the bugs, it will also break down the protective waxy coating on your herb's roots, stunting your plant's growth. Stick to a hydrogen peroxide drench instead.

    How long does it take to get rid of an indoor gnat infestation?

    Because a single adult gnat lives for about one week and can lay up to 200 eggs, it generally takes 7 to 10 days of consistent trap use and dry soil cycles to break the infestation cycle.

    Preventing fungus gnats is key to keeping your herbs healthy and thriving. But if an infestation occurs, the above solutions should help you get things back to normal. Remember, the key to success when trying to get rid of fungus gnats is persistence and patience; you'll soon be back to having beautiful and healthy herbs in no time!

    More Garden and Herb Post from the Farm 

    • 13 Best Indoor Hanging Plants Low Light
    • How to Grow a Fiddle Leaf Fig Tree Indoors
    • Do Plants Attract Gnats?
    • DIY Kitchen Window Herb Garden Ideas
    • Herb Harvest and Preservation
    • How to Get Rid of Gnats on Indoor Herbs
    • 8 Best Indoor Herb Plants

    More How-To Techniques

    • DIY Fruit Fly Traps (Gets rid of them fast!)
      DIY Fruit Fly Traps (Gets rid of them fast!)
    • How to Grow Thyme
      How to Grow Thyme
    • How to Grow Parsley
      How to Grow Parsley
    • How to Grow Tomatoes
      How to Grow Tomatoes
    FacebookPinterest

    More Small Scale Gardening Ideas for Busy Farm Families

    • DIY Fruit Fly Traps image.
      DIY Fruit Fly Traps (Gets rid of them fast!)
    • how to grow thyme image.
      How to Grow Thyme
    • how to grow parsley image.
      How to Grow Parsley
    • how to grow tomatoes image.
      How to Grow Tomatoes

    Reader Interactions

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Recipe Rating




    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Primary Sidebar

    Welcome!

    Melissa Griffiths and her husband live on a 12-acre hobby farm in southern Utah with their five incredible children, turkeys, chickens, rabbits, puppies, and fledgling cut flower patch.

    She also enjoys home improvement projects, experimenting in the garden, and collecting colorful eggs from her chickens.
    Read More…

    Latest Recipes

    • A glass baking dish with sliced pieces of crumb-topped coffee cake, some pieces removed and served on white plates with forks, all on a striped cloth and wooden table.
      Easy Cinnamon Applesauce Coffee Cake
    • A black plate filled with white rice topped with chunks of meat in a green sauce, surrounded by forks, green peppers, and containers on a white surface.
      Slow Cooker Pork Chili Verde
    • ingredients for layered pumpkin cake, eggs, pumpkin puree, flour, sugar and spices all in bowls.
      Preserving Guide: How To Preserve Pumpkins
    • Three seasoned salmon fillets in air fryer basket await cooking. Small bowls of spices and a plate with marinade residue are set beside the fryer on a marble countertop.
      How to Make Salmon Fillets in the Air Fryer

    Latest Farm

    • A hummingbird hovers near a red and yellow feeder with a blurred green background.
      Simple Hummingbird Feeder Tips: Setup & Care Guide
    • small chicken coop with chicken roosting and text saying small chicken coop ideas.
      Small Chicken Coop Ideas
    • what is chicken grit.
      Chicken Grit
    • what is a broody hen image.
      How to Stop Broody Hens

    Footer

    ↑ back to top

    About

    • About Us
    • Privacy Policy
    • Terms & Conditions

    Newsletter

    • Sign Up! for emails and updates

    Contact

    • Contact
    • Press
    • Work With Me
    • FAQ

    FTC Disclosure of Material Connection: The way I provide you with free content is through affiliate links and some of the links in the post above may be affiliate links, they will be marked in the post. Regardless, I only recommend products or services I use personally and believe will add value to YOU. Read terms here.

    Copyright © 2024 longbournfarm.com. All rights reserved.