Pests, beneficial insects and companions

How do I get rid of fungus gnats?

Quick answer

Get rid of fungus gnats by drying out the top inch of potting mix, where their larvae live. Water less often and from below, catch adults on yellow sticky cards, and drench pots with a Bti product (sold as mosquito bits or dunks) to kill the larvae. Keep it up for three to four weeks to break the cycle.

On this page
  1. What fungus gnats are, and whether they hurt plants
  2. Step by step
  3. The real cause: wet potting mix
  4. How to clear an infestation
  5. Home remedies: what helps and what doesn't
  6. Protecting seedlings this winter
  7. People also ask

What fungus gnats are, and whether they hurt plants

Fungus gnats are the tiny, dark, weak-flying insects that hover over houseplants and seed trays and walk across the soil surface. Adults are about 1/8 inch (3 mm) long, with long legs and long antennae. They look a lot like mosquitoes but don't bite.

The adults are only a nuisance. The larvae are the real issue. They are tiny, clear to white worms with shiny black heads, living in the top inch or two (2.5 to 5 cm) of moist potting mix. They feed mostly on fungi and decaying organic matter. When numbers are high, they also chew fine roots and the stems of seedlings, which can stunt young plants. Fungus gnats can also carry the spores of root-rot organisms that cause damping-off in seedlings.

To check for larvae, push a slice of raw potato into the soil surface. After two or three days, lift it and look underneath for the little worms.

Step by step

  1. Confirm the larvaePress a slice of raw potato into the soil surface and check underneath after two or three days for tiny worms with black heads.
  2. Dry the top inchWater only when the top inch of mix is dry, and empty saucers after watering.
  3. Switch to bottom wateringSet pots in a tray of water for 20 to 30 minutes, then let them drain fully.
  4. Drench with BtiUse water treated with a Bti mosquito product, as the label directs, every time you water for three to four weeks.
  5. Trap the adultsPlace yellow sticky cards just above the soil to catch egg-laying females and track progress.
  6. Top-dress with sandAdd half an inch of coarse sand or grit to keep the surface dry and discourage new eggs.

The real cause: wet potting mix

Fungus gnats are a moisture problem first and an insect problem second. They lay eggs in damp, rich mix where fungi grow, and the cycle from egg to adult takes about three to four weeks at room temperature. A pot that never dries at the surface is a nursery.

Common triggers:

  • Watering on a schedule instead of when the plant needs it.
  • Pots without drainage holes, or saucers left full of water.
  • Large pots with small plants, so the mix stays wet for days.
  • Peat-heavy or bark-rich mixes and fresh, unfinished compost that stay soggy.
  • Low winter light, when plants use much less water.

That last one is why gnats boom in late fall. Plants come indoors, growth slows, and we keep watering as if it were July.

Free: Chapter 1 + the Leaf First-Aid Chart

Diagnose yellow, purple, spotted or curling leaves in 60 seconds, and read the chapter that explains who really feeds your plants.

By requesting the kit you agree to receive emails from Grow Like a God. No spam; unsubscribe in one click. Privacy policy.

How to clear an infestation

Work on both stages at the same time: adults and larvae.

TargetMethodHow
LarvaeLet the surface dryWait until the top inch is dry before watering. Water from below by setting the pot in a tray for 20 to 30 minutes, then drain.
LarvaeBti drenchProducts with Bacillus thuringiensis subsp. israelensis (sold for mosquitoes) kill gnat larvae. Soak granules or a crumbled dunk in water as the label directs and use that water for a few weeks.
LarvaeBeneficial nematodes or predatory mitesSoil-dwelling nematodes (Steinernema feltiae) or the soil mite Stratiolaelaps hunt larvae. Good for greenhouses and big plant collections.
AdultsYellow sticky cardsLay or stake cards just above the soil. They catch egg-laying females and show you progress.
EggsTop dressingHalf an inch (1 cm) of coarse sand or fine grit on top keeps the surface dry and makes egg-laying harder.

Bti is a natural soil bacterium, specific to the larvae of flies such as mosquitoes and gnats, and safe around people and pets when used as labeled. Repeat treatments for at least three weeks, since eggs keep hatching.

You'll know it's working when the sticky cards catch fewer gnats each week and the potato slice comes up clean. If adults are still flying after a month, look for a pot you missed: one soggy pot in a corner can keep reinfesting the whole collection. Check under sinks and around floor drains too, since some small flies there look similar.

Home remedies: what helps and what doesn't

  • Hydrogen peroxide drench. Many gardeners water with 1 part ordinary 3% peroxide to 4 parts water. It kills larvae it touches and breaks down into water and oxygen. It is not species-specific, so it also knocks back the helpful microbes in the mix. Use it once, not as a habit, and only 3% drugstore strength.
  • Cinnamon. Popular online, but there's no good evidence that a dusting controls larvae.
  • Apple cider vinegar traps. A dish of vinegar with a drop of dish soap catches some adults. It doesn't touch the larvae, so it won't solve the problem alone.
  • Repotting. For a badly infested plant, replacing the top few inches of mix, or the whole mix, gives a quick reset. Don't reuse the old mix for seedlings.

Avoid harsh insecticide drenches. They are overkill for a nuisance insect and kill the life in the potting mix along with the gnats.

Protecting seedlings this winter

Fungus gnats are most damaging in seed trays, where tender stems and roots are easy to chew and damping-off can follow. When you start seeds, use fresh seed-starting mix, never garden soil, and clean trays. Water from below, let the surface dry slightly between waterings, and run a small fan for air movement. A thin layer of dry sand on the surface does double duty against both gnats and damping-off. If seedlings stretch and flop, it's usually light, not gnats; see why seedlings get leggy.

It's November, so most gardeners are bringing plants in now and planning seeds for late winter. Clear gnats from houseplants before the first seed tray goes on the shelf beside them. Our guide on when to start seeds indoors gives the timing by crop.

If you make your own potting mix, use finished compost, not fresh. Mature compost has done its heating and smells like forest soil. Half-finished material keeps decomposing in the pot and draws gnats. For tips on refreshing old mix, see can you reuse potting soil.

Grow Like a God, Max Sidorov
Go deeper

Grow Like a God

In the book: First-Aid Table (stress and care problems) and the seeds chapter

The book covers overwatering, damping-off and seed starting from the soil-life angle, including the seed soaks the author uses for a clean, strong start.

  • 5 laws of living soil, explained in plain words
  • 15 printable guides, including the Leaf First-Aid Chart
  • No chemicals, no digging, no pest sprays
  • 90-day Living Soil Double Guarantee
See what's inside the book

People also ask

Are fungus gnats harmful to people or pets?

No. Adult fungus gnats don't bite, sting or carry human diseases. They are a nuisance indoors. The harm is to plants: large numbers of larvae can chew roots and seedling stems, and they can help spread damping-off organisms in seed trays.

How long does it take to get rid of fungus gnats?

Plan on three to four weeks. That's about one full life cycle at room temperature. Drying the surface and treating larvae stops new adults from forming, but adults already flying and eggs already laid need time to die off or hatch into treated soil.

Why do I have fungus gnats in winter?

In winter, light is low and plants use less water, so potting mix stays wet longer. Plants brought in from outdoors may also carry eggs or larvae. Water less often in winter, check the top inch before watering, and inspect pots before bringing them inside.

Are fungus gnats the same as fruit flies?

No. Fruit flies are tan with red eyes and hang around ripe fruit, drains and compost bins. Fungus gnats are dark, slender and found around potted plants and damp soil. Vinegar traps catch fruit flies well but do little for fungus gnats.

Keep reading

Why are my seedlings leggy or falling over?Seedlings get tall, thin and pale when they don't get enough light, usually made worse by warm temperatures and crowding. Hang lights 2 to 4 inches above them for 12 to 16 hours a day and keep them cooler. Seedlings that suddenly collapse with a dark, pinched stem at the soil line have damping-off, a fungal disease.When should I start seeds indoors?Start seeds indoors by counting back from your average last spring frost date. Onions, leeks and celery go first, about 10 to 12 weeks ahead; peppers and eggplant 8 to 10 weeks; tomatoes 6 to 8; cabbage family and lettuce about 4 to 8; and squash, cucumbers and melons only 3 to 4 weeks before planting out.Can you reuse potting soil?Yes, you can reuse potting soil for several seasons. Remove old roots, break up clumps, and mix in about one part compost or worm castings to three parts old mix, plus a slow organic fertilizer. Skip reuse, or pasteurize first, if the last plant died of a soil-borne disease. Spent mix also makes a good mulch for garden beds.How often should I water my vegetable garden?Most vegetable gardens need about 1 inch (2.5 cm) of water a week, counting rain, given in one or two deep soakings rather than a daily sprinkle. Water when the soil is dry 1 to 2 inches down. Seedlings, young transplants, leafy greens and containers need more frequent, lighter watering.How do I get rid of whiteflies?Get rid of whiteflies by hitting the undersides of the leaves, where they live and breed. Hose or vacuum off adults, hang yellow sticky cards, and spray insecticidal soap or horticultural oil every 5 to 7 days for three weeks. Then stop the cycle: check new transplants, ease off nitrogen, and keep the predators that eat them.

Max Sidorov is the author of Grow Like a God, a 343-page guide to the soil food web built on more than 550 named studies and sources.

Grow Like a God
The complete living-soil system
Get the book