How to Kill Fungus Gnats Without Killing Your Plants
Some fungus gnat remedies are gentle. Others can burn leaves or harm roots. Here’s how each one rates for plant safety, plus what to do for seedlings vs mature herbs.
QUICK ANSWER
To kill fungus gnats without killing plants, target the larvae, not the plant. Let the top 2.5–5 cm (1–2 in) of compost dry. Then drench with Bti or Steinernema feltiae nematodes, and catch adults on yellow sticky traps.
Skip dish soap and vinegar sprays. Use hydrogen peroxide only with care, and never on seedlings.
You want to kill fungus gnats without killing plants, and some popular fixes make that harder. A few home remedies can burn leaves or upset roots. The gentlest options target the larvae in the compost and leave the plant alone.
Adult gnats don’t damage plants, says the RHS. The larvae mostly eat dead roots and fungi. They can feed on seedling roots and soft cuttings, though.
Below, each remedy is rated for risk to your plant. For the step-by-step clean-out plan, see our guide to fungus gnats in herb pots.
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.
Fungus gnat remedies ranked by risk to your plant
This table sums up what extension services and the RHS say. “Risk” means risk to the plant, not to the gnats.
| Method | Risk to plant | How to use it safely |
|---|---|---|
| Let the top of the compost dry | Low, if you stop before wilting | Let the top 2.5–5 cm (1–2 in) dry. Water again before leaves droop. |
| Bti drench (Gnatrol, Mosquito Bits) | Very low | Water it in so it reaches the larvae. Repeat about every 5 days. |
| Nematodes (Steinernema feltiae) | Very low | Drench onto moist compost at 16–32°C (60–90°F). |
| Yellow sticky traps | None | Cut into small squares on a skewer. They catch adults only. |
| Sand or grit layer | Low | Use 1–2.5 cm (½–1 in) of coarse sand. Check the compost below isn’t staying wet. |
| Fresh compost or repotting | Medium (roots get disturbed) | Save it for old, soggy mix. Throw the old compost away. |
| Hydrogen peroxide drench | Medium; little extension support | If you try it, mix 1 part 3% peroxide with 4 parts water. Not for seedlings. |
| Dish soap spray | Medium to high for leaves | Don’t use it. Pick a labelled insecticidal soap instead. |
| Vinegar spray | High | Don’t spray it on plants. Vinegar traps don’t catch fungus gnats either. |
| Cinnamon | Low | No extension source we used recommends it. Don’t rely on it. |
Gentle ways to kill fungus gnats without killing plants
Let the compost dry, not the plant
Wet compost is where gnats lay eggs. Colorado State University calls drying it the most important step, especially the top 2.5–5 cm (1–2 in).
The RHS adds a limit. Dry the compost only if it doesn’t harm the plant. So stop when the surface is dry, not when leaves go limp. Our guide on how often to water herbs shows how to check.
Bti: kills larvae, leaves roots alone
Bti is a bacterium that kills fungus gnat larvae in the compost. It doesn’t touch eggs, pupae or adults, says the University of Wisconsin. That’s why one dose isn’t enough.
UC IPM says indoor pots may need repeat doses about every 5 days. Water it in well so it reaches the larvae.
Nematodes: a live drench
Steinernema feltiae are tiny worms that hunt gnat larvae. Larvae die within 3–4 days, says Colorado State. They work best on moist compost between 16°C and 32°C (60°F and 90°F).
Sticky traps and a sand layer
Yellow sticky traps never touch the roots. They only catch adults, though, so pair them with a larva control.
A 1–2.5 cm (½–1 in) layer of coarse sand keeps the surface drier, says the University of Wisconsin. Not everyone agrees it helps. A University of Washington garden librarian warns it can crust over and slow drainage.
Remedies that can hurt your plant
Hydrogen peroxide
Peroxide is a strong oxidiser that kills many organisms, not just gnats. An extension volunteer who suggests 1 part 3% peroxide to 4 parts water says he wouldn’t use it on seedlings.
It gets far less extension support than Bti. If you try it, treat one pot first. Then watch the plant for a few days before you treat the rest.
Dish soap and vinegar
Dish soap is a detergent, not a true soap. UF/IFAS says detergents strip the waxy layer on leaves, even when diluted. The result is often dry, crispy leaves.
Vinegar causes leaf burn, says the same source. Never spray any soap on a plant that’s dry, or above 32°C (90°F).
Warning
Soap sprays only hit adults. Colorado State notes they don’t affect larvae in the compost, so they rarely fix the problem on their own.
Repotting and cinnamon
Fresh compost does remove eggs and larvae, says the RHS. But repotting means pulling at roots. Colorado State suggests it when old mix has broken down and holds too much water. Use fresh bagged mix, not garden soil (see potting mix vs garden soil).
Cinnamon is a popular online tip. It won’t hurt most plants. But none of the extension or RHS pages we used lists it as a control.
Seedlings vs mature herbs
Seedlings are where gnats do real harm. UC IPM says larvae can damage roots and stunt growth in seedlings and young plants. The RHS says established plants are unlikely to be damaged.
For seedlings and cuttings
- Use Bti or nematodes. Both target larvae, not roots.
- Put sticky trap squares near the trays.
- Skip peroxide drenches.
- Don’t let tiny seedlings dry to wilting. Dry only the surface.
For mature herbs
- Let the top 2.5–5 cm (1–2 in) dry between waterings.
- Add a sand layer if the surface stays damp.
- Repot only if the compost is old and soggy.
Plant-safe gnat checklist
- Check for larvae with a ¼ in (6 mm) potato slice. Look under it after 3–4 days.
- Dry the top of the compost, not the whole pot.
- Use Bti or nematodes for larvae.
- Hang yellow sticky traps for adults.
- Keep dish soap, vinegar and peroxide away from seedlings.
- Give it 3–4 weeks. One gnat generation takes about 17 days at 24°C (75°F).
When this may not work
Gentle methods are slow. The University of Wisconsin says it can take 3–4 weeks of changed watering to get gnats under control. If numbers are still high after that, the compost may be staying too wet. Check drainage holes and empty saucers.
If a plant wilts while the compost is damp, gnats are rarely the cause. UC IPM says wilting more often comes from water problems or root rot. Ask your local extension service or garden centre to look at the roots.
Bti and nematodes are low risk, but follow the label. Keep any spray, including insecticidal soap, away from pets and children until it dries.
Kill fungus gnats without killing plants: FAQs
How do I kill fungus gnats without killing my plant?
Target the larvae, not the plant. Let the top 2.5–5 cm (1–2 in) of compost dry, then use a Bti or nematode drench. Add yellow sticky traps for adults.
Will hydrogen peroxide kill my plant?
It can be risky, and it has far less extension support than Bti. If you use it, dilute 1 part 3% peroxide in 4 parts water, test one pot first and keep it off seedlings.
Is dish soap safe for plants with fungus gnats?
No. UF/IFAS says detergents strip leaf wax and can leave crispy leaves. A labelled insecticidal soap is gentler, but it only kills adults.
Do fungus gnats kill plants?
Rarely. The RHS says adults don’t damage plants and established plants are unlikely to be harmed. Seedlings and cuttings are at most risk.
Save this guide for later

Related guides
- Fungus gnats in herb pots: 4 steps
- How often to water herbs indoors
- Potting mix vs garden soil
- Grow microgreens at home
- Basil leaves turning yellow
Sources
- RHS: Fungus gnats (sciarid flies)
- UC IPM: Fungus gnats
- Colorado State University Extension: Fungus gnats as houseplant and indoor pests
- University of Wisconsin-Madison Extension: Fungus gnats on houseplants
- UF/IFAS Gardening Solutions: Soaps, detergents and pest management
- Ask Extension: Hydrogen peroxide for fungus gnats
- University of Washington Elisabeth C. Miller Library: Managing fungus gnats indoors
Featured image: Markus Spiske / Unsplash
