How to Get Rid of Fungus Gnats in Herb Pots (Safe for Edible Plants)

How to get rid of fungus gnats in herb pots: dry out the soil, trap the adults and treat the larvae with methods that suit plants you eat.

Herb seedling in moist compost, where fungus gnats lay their eggs
Photo: Christine / Unsplash

QUICK ANSWER

Fungus gnats breed in compost that stays wet. So let the top 2–3 cm (about 1 in) dry out before you water. Water from the bottom if you can. Put yellow sticky traps beside the pots to catch the adults. For a stubborn problem, use a product with Bti (Bacillus thuringiensis israelensis). It treats the larvae in the soil. Stay consistent and most cases clear within a few weeks. Here is how to get rid of fungus gnats step by step, with methods that suit plants you eat.

Fungus gnats are the tiny dark flies that rise from a pot when you water it. Oregon State University Extension describes them as very small flies, about 1.5–3 mm (1/16–1/8 in) long. The adults are mostly a nuisance, but their larvae live in the compost and can damage seedlings and fine roots.

We based this article on published advice from university extension services and the other sources listed at the end. It is not a record of our own trial.

Why herb pots get fungus gnats

The larvae live in about the top centimetre of compost. They need moisture to survive. In winter, in low light or in pots without drainage, herb pots stay wet for days. That is exactly what fungus gnats need. New bags of potting mix can bring them in too.

Why it takes a few weeks: the fungus gnat life cycle

The University of California IPM program gives this timeline at about 24°C (75°F). Eggs hatch in around 3 days. Larvae feed for about 10 days. Adults appear roughly 4 days later. So a full generation takes about 17 days, and warmer rooms speed it up.

That is why one treatment rarely works. Eggs and larvae already in the compost keep hatching for two to three weeks after you start. So keep the compost drier and keep trapping adults for at least that long.

Step 1: Confirm what you have

  • Adults: place a yellow sticky trap near the leaves. Fungus gnats are slow, dark flies that hover around the compost.
  • Larvae: Wisconsin Horticulture suggests laying a slice of raw potato on the compost. After 3–4 days, look underneath for tiny white maggots.
  • Fruit-fly vinegar traps do not work for fungus gnats, so do not rely on them.

Step 2: Let the compost dry out

This is the single most important step. Extension services consistently recommend letting the top layer of compost dry between waterings, which breaks the life cycle.

  • Push a finger into the compost; water only when the top 2–3 cm feel dry.
  • Water from the bottom. Stand the pot in a tray of water for 15–30 minutes. Then lift it out and let it drain.
  • Never leave water standing in the saucer.
  • If a pot stays wet for days, repot into fresh, free-draining potting mix.

Step 3: Trap the adults

Small yellow sticky traps, stuck into the compost on a stake, catch adult gnats before they lay more eggs. Replace them when they fill up. Traps alone will not end an infestation, but together with drier compost they speed things up.

Step 4: Treat the larvae if needed

For a problem that will not go away, try a product with Bti (Bacillus thuringiensis subsp. israelensis). It is a biological control for fungus gnat larvae in soil. Oklahoma State University Extension notes that Bti does not affect eggs, pupae or adult gnats. So keep using traps and drier watering alongside it.

Warning

Herbs are food. Before you use any product on them, read the label. Check that it is approved for edible crops, and follow the instructions exactly.

Bti and beneficial nematodes

Bti (Bacillus thuringiensis subsp. israelensis) is sold for fungus gnat larvae in products such as Mosquito Bits and Gnatrol. UC IPM notes that it does not last long indoors, so it may need reapplying about every five days. Always check the label covers edible plants.

Beneficial nematodes are another option. UC IPM names Steinernema feltiae as the most effective species against fungus gnat larvae. You water them into the compost. They can give longer-lasting control. That suits a shelf of several herb pots better than a single plant.

A dry top layer of sand or grit

Some growers cover the compost with a 1 cm (½ in) layer of coarse sand or fine grit. The surface stays dry, so adults find it harder to lay eggs. It helps alongside drier watering, but it is not a cure on its own.

What about hydrogen peroxide?

You will often see 3% hydrogen peroxide suggested online, mixed about 1 part to 4 parts water and poured over the compost. It breaks down into water and oxygen, so it leaves nothing on the leaves. Extension services give it far less support than Bti, and a strong mix can harm fine roots.

If you want to try it, use the diluted mix on one pot first. Then check the herb over the next few days before treating the rest.

How long does it take?

The fungus gnat life cycle runs over a few weeks. So expect to see adults for a while after you change how you water. If the numbers on the sticky traps keep falling, it is working.

Fungus gnat plan

  • Yellow sticky traps beside each affected pot
  • Top 2–3 cm of compost dry before watering
  • Bottom watering where possible
  • Empty saucers after watering
  • Bti product approved for edibles, if needed

When this may not work

Does the compost never dry out? Maybe the pot has no drainage holes, or the herb sits in a dark spot and uses very little water. Then the gnats will keep coming back. Fix the pot and the light first.

How to get rid of fungus gnats: FAQs

Are fungus gnats harmful to herbs?

The adult flies are a nuisance, not a danger. The larvae live in wet compost and mostly eat organic matter. In large numbers, though, they can damage the roots of seedlings and young plants.

Does cinnamon get rid of fungus gnats?

The evidence is mostly anecdotal. Letting the compost dry between waterings, yellow sticky traps and larvae treatments are more reliable places to start.

Is BTi safe to use on herbs I eat?

BTi products target fly larvae and are widely used on indoor plants. Check that the label covers edible plants and follow its directions exactly.

How do I stop fungus gnats coming back?

Water only when the top of the potting mix is dry. Empty saucers after watering. Use pots with drainage holes. Keep opened bags of compost sealed. Check new plants for gnats before they go next to your herbs. Clearing fungus gnats completely usually takes a few weeks, because eggs already in the compost keep hatching.

Should I throw away a herb with fungus gnats?

Usually no. Drier compost and sticky traps clear most cases. Repot into fresh potting mix only if the compost stays soggy for days or smells sour.

Are herbs with fungus gnats safe to eat?

Yes. The gnats live in the compost, not in the leaves. Rinse the leaves as you normally would. If you used a product, follow its label for any wait before harvest.

Save this guide for later

How to get rid of fungus gnats in herb pots in 4 easy steps
Pin this image to save the guide on Pinterest.

Related guides

Sources

Featured image: Christine / Unsplash

Similar Posts

Leave a Reply

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