How to Get Rid of Fungus Gnats in Your Indoor Grow
To get rid of fungus gnats, let the top inch of soil dry out between waterings, catch the adults with yellow sticky traps, and treat the larvae in the soil with a labeled Bti product. Doing all three at once breaks their life cycle. This guide shows you how to confirm what you're dealing with, why they showed up, and how to keep them from coming back.
This guide is for adults 21+ in places where growing at home is legal. Laws differ by state and city and can change, so check your state and local rules before you start.
First, make sure they're fungus gnats
Fungus gnats are the most common small fly you'll see around indoor pots. According to University of California IPM and University of Wisconsin–Madison Extension, here's what to look for:
- Adults: dark gray to black, delicate flies about 1/16 to 1/8 inch long. They look like tiny mosquitoes, with long legs and antennae longer than their heads.
- Larvae: small, legless, worm-like maggots that are whitish or almost clear, with a shiny black head. Grown larvae reach about 1/4 inch. In heavy infestations you may see slime trails on the soil.
Fungus gnats vs other small flies
| Fly | What you'll notice | Where they hang out |
|---|---|---|
| Fungus gnat | Slim, dark, mosquito-like, long antennae | On and just above moist potting soil |
| Fruit fly | Often mistaken for fungus gnats, but a different insect | Often around ripe fruit or kitchen scraps rather than pots |
| Shore fly | Sturdier body, short bristle-like antennae | Can also turn up around wet pots, so check the body and antennae |
One handy clue from UW–Madison Extension: vinegar traps that work for fruit flies don't work for monitoring fungus gnats. If flies ignore your vinegar trap but crowd your pots, gnats are the likely answer.
Why they showed up in your grow
Fungus gnats are drawn to moist potting mix with plenty of organic matter. Females lay their eggs in damp soil, and UW–Madison Extension says a single female can lay up to 200. The larvae then feed in the top layer on fungi, decaying organic matter and sometimes fine roots.
They multiply fast. UC IPM says that at about 75°F, a full generation from egg to adult takes roughly 17 days, and it goes faster when it's warmer. Most of that time is spent as larvae and pupae in the soil, which is why swatting adults never solves the problem.
Winter grows are a common setup for gnats. Plants drink less in cool weather, so the soil stays wet longer, and if you've been raising humidity (see our humidity guide), the topsoil may never dry out at all.
Are they hurting your plants? Adults don't bite and don't damage plants. Large numbers of larvae can damage roots and slow growth, especially in seedlings and young plants. UC IPM also notes that wilting is more often caused by watering problems or root rot than by the gnats themselves, so check your watering habits too.
The layered plan at a glance
Each step hits a different part of the life cycle. Doing them together is what works.
| Step | What it targets | Why it matters |
|---|---|---|
| Let topsoil dry | Eggs and larvae | Dry soil is a poor place to lay eggs and for larvae to survive. |
| Yellow sticky traps | Flying adults | Catches egg-laying adults and shows you whether numbers are going down. |
| Bti soil treatment | Larvae only | Kills the larvae feeding in the soil. |
| Prevention | Next generation | Stops a new wave from moving in. |
Step 1: Let the topsoil dry out
This is the most important step, and it's free. UW–Madison Extension calls changing the growing conditions the most important part of control.
- Let the top inch dry before you water again. Push a finger into the soil; if it's still damp an inch down, wait.
- Try bottom watering where it makes sense. Setting the pot in a tray of water lets the roots drink while the surface stays drier. Pour off any water left in the tray after a while so the pot isn't sitting in it.
- Add a dry top layer. UW–Madison Extension suggests a 1/2 to 1 inch layer of coarse sand or fine gravel on top of the soil.
- Improve drainage next time you pot up. UC IPM suggests mixes with more perlite or sand drain faster.
Lift your pot right after watering and again a few days later. Learning the difference in weight is the easiest way to know when it really needs water.
Step 2: Trap and monitor the adults
Yellow sticky traps catch adults before they lay more eggs, and just as important, they show you whether your plan is working. UC IPM suggests cutting traps into small squares and mounting them on sticks just above the soil. Check them every few days. Fewer new gnats each week means you're winning.
To check for larvae, UW–Madison Extension suggests setting a few slices of raw potato on the soil and looking underneath after 3 to 4 days. Larvae gather on the cut side. Swap the slices out every few days.
Some links below are affiliate links. If you buy through them we may earn a small commission at no extra cost to you.
Keep traps away from the tops of your plants, where leaves can touch the glue.
Step 3: Treat the larvae with Bti
Bti stands for Bacillus thuringiensis subspecies israelensis, a bacterium that targets the larvae of certain flies, including fungus gnats. Both UC IPM and UW–Madison Extension list it as a go-to option for larvae, and name products such as Mosquito Bits and Gnatrol as examples.
A few things to know before you use it:
- It only kills larvae. UW–Madison Extension notes Bti doesn't affect eggs, pupae or adults.
- It doesn't last long. UC IPM says indoor applications need repeating, about every five days; UW–Madison suggests several applications 5 to 7 days apart. Your product label gives the exact interval.
- Use the label amount. Don't guess at doses. Read and follow the directions on the package, and make sure your use is listed on the label.
Another option: beneficial nematodes
UC IPM notes that the beneficial nematode Steinernema feltiae can be very effective against fungus gnat larvae. They're living organisms, usually mail-ordered, and need moist soil and temperatures between about 60 and 90°F to work.
Read the label, and skip the home remedies
UC IPM says chemical insecticides are rarely warranted for fungus gnats around the home, and that the larvae are the stage to target. If you do use any pest product, use only one labeled for your situation, and read and follow every word of the label.
You'll find plenty of homemade mixes online for gnats. Don't use unlabeled home remedies on plants you plan to consume. You don't know what's in them at what strength, what residue they leave, or what they do to roots. The steps above are safer and work better anyway.
How to keep them from coming back
- Keep potting mix sealed. UC IPM suggests storing soil in closed containers off the ground. An open, damp bag in a garage is a gnat nursery.
- Start clean. Pasteurized, bagged potting mix is less likely to arrive with gnats. Avoid half-finished compost in your mix.
- Clean up debris. Pick up dead leaves and spilled soil around your pots and tent floor.
- Don't spread them. Don't move infested plants into fresh pots or next to clean ones.
- Water by need, not by schedule. This one habit prevents most outbreaks.
Our troubleshooting page covers other common problems once gnats are under control.
Common beginner mistakes
- Only trapping adults. The larvae in the soil keep producing new ones.
- One Bti dose and done. It needs repeat treatments to catch new larvae as eggs hatch.
- Watering on a fixed schedule whether the soil needs it or not.
- Mistaking gnats for root problems, or root problems for gnats. Check your watering first.
- Reaching for a strong spray before trying the simple steps.
Frequently asked questions
What kills fungus gnats in soil?
Bti products, such as Mosquito Bits and Gnatrol, target fungus gnat larvae in the soil, according to UC IPM and UW-Madison Extension. Bti does not kill eggs, pupae or adults, so use repeat applications and follow the label. Letting the topsoil dry out also helps.
Are fungus gnats harmful to my plants?
The adults do not bite or damage plants. Large numbers of larvae can damage roots and slow the growth of seedlings and young plants. Wilting is more often caused by watering problems or root rot than by the gnats themselves.
How long does it take to get rid of fungus gnats?
Expect a few weeks. A generation takes roughly 17 days at about 75 degrees Fahrenheit, according to UC IPM, so you need to keep drying the soil, trapping and treating long enough to break more than one cycle.
How do I tell fungus gnats from fruit flies?
Fungus gnats are slim, dark and mosquito-like, and they stay around moist potting soil. Fruit flies are more often found around ripe fruit or kitchen scraps. UW-Madison Extension notes that vinegar traps for fruit flies do not work for monitoring fungus gnats.
Does letting the soil dry out really work?
It is the most important step. Fungus gnats lay eggs in moist soil, and their larvae need it to survive. Letting the top inch dry between waterings makes your pots much less inviting, especially combined with traps and Bti.
Keep reading
Sources
This article is for general information and education only. It is not legal advice. Growing laws vary by state and city and change often; confirm the rules where you live. For adults 21+ only.
BeginnersGrowGuide.com is a participant in the Amazon Services LLC Associates Program and may earn from qualifying purchases and other affiliate links, at no extra cost to you.