The short answer
To get rid of fungus gnats, let the top layer of your potting mix dry out between waterings, catch the adult flies with yellow sticky traps, and treat the soil to kill the larvae. Expect it to take a few weeks, because the life cycle continues as long as there are eggs and larvae in the pot.
What fungus gnats are
Fungus gnats are small, dark, slender flies, usually about 2 to 4 millimeters long, that hover around plants and windows. Adults don’t harm plants much. The problem is the larvae, which are tiny, translucent worms with dark heads that live in the top inch or two of moist soil. They feed mostly on fungi and decaying organic matter, but heavy numbers can also nibble fine roots, which matters most for seedlings, cuttings and weak plants.
They show up because the soil stays wet. Often they arrive in a bag of potting mix or on a new plant, then multiply once they find damp conditions.
Step 1: let the soil dry
This is the most effective change you can make. Larvae need moisture near the surface, so:
- Water only when the top inch or two of soil is dry, as long as that suits the plant. Our guide on how to tell if houseplant soil is dry can help you judge.
- Empty saucers so the pot isn’t sitting in water.
- Make sure the pot has drainage. Houseplants in pots without drainage holes are more prone to staying wet.
- Consider bottom watering for plants that tolerate it, since it keeps the surface drier. See how to bottom water houseplants.
For plants that really can’t dry out much, it’s worth thinking about whether the soil mix is too dense and holding too much water.
Step 2: trap the adults
Yellow sticky traps, placed flat on the soil or upright in the pot, catch flying adults. This reduces egg-laying and gives you a way to see whether things are improving. Traps on their own rarely solve the problem, but they’re a handy part of the plan.
A saucer with a little apple cider vinegar and a drop of dish soap is a common home trap that some people find useful for adults.
Step 3: deal with the larvae
Several approaches are used:
- Biological control with BTI. Bacillus thuringiensis israelensis (often sold as mosquito bits or in gnat-specific products) is mixed into water and used to water the soil. It targets fly larvae. Follow the label directions.
- A dry top layer. A thin layer of coarse sand or fine grit on the soil surface can make it harder for adults to lay eggs and for the surface to stay damp, though results vary.
- A diluted hydrogen peroxide drench. Some growers use a diluted 3% solution mixed with water, but there’s a risk of stressing roots, so it’s worth testing on a single plant first and following a trusted source for ratios.
- Repotting. For a severe case, replacing the top layer of soil or repotting into fresh mix can remove many larvae. Fresh mix can also contain gnats, so use a bag that’s been stored dry.
How long it takes
Fungus gnats go from egg to adult in about three to four weeks under typical indoor conditions, so plan to keep up your routine for at least that long. If you still see adults after a month, recheck watering habits and whether nearby plants are also affected.
Keeping them away
- Don’t water on a fixed schedule regardless of soil condition.
- Keep new plants apart from your collection for a while. Our piece on how to quarantine new houseplants covers what to look for.
- Store opened potting mix in a closed container.
- Check leaves and stems too: if you also see other insects, read our overview of common houseplant pests and how to get rid of them.
Fungus gnats are annoying but are usually one of the easier houseplant pests to beat once soil moisture is under control.