Pests
How to get rid of fungus gnats in houseplants
The little black flies around your pots are a watering problem before they are a pest problem. Here is what university extension services say works, in what order, and how long it takes.
Disclosure: Best Plant Care App is published by the team that makes LeafBell, our #1 pick. We earn money when you sign up to LeafBell through links on this site. How this affects our rankings.

Quick answer. Fungus gnats breed in potting mix that stays wet. Let the top inch or two dry before you water again, put yellow sticky traps in the pots to catch adults, and treat the soil with Bti if larvae persist. Expect three to four weeks, about one gnat generation, before they are gone.
Small dark flies that lift off the soil when you water, or gather at the window and around a lamp, are almost always fungus gnats. They are a nuisance more than a threat, and the cure is mostly a change in watering. Everything below comes from seven pages published by six university extension and pest-management programs; where they disagree, we say so.
Make sure they are fungus gnats
University of Wisconsin-Madison Extension describes the adults as dark brown or black, about 1/8 inch long, with delicate wings folded over the back, seen around windows and lamps or walking on the potting soil. Colorado State University Extension calls them mosquito-like, with long legs and antennae. The larvae are pale, worm-like maggots with a black head, about 1/4 inch long when mature, and they live in the top 2 to 3 inches of the mix.
Wisconsin notes they are often mistaken for fruit flies, which are a different insect with a different fix. Three quick checks:
- Tap the pot. If gnats are present, they take flight (University of Minnesota Extension).
- Lay a slice of raw potato on the soil and look underneath after three to four days. Larvae come up to feed on it, which also tells you which pots are the source (Wisconsin, Colorado State).
- Not sure whether a plant or a drain is the source? Cover it with screen or cheesecloth and check the next day for flies (University of Maryland Extension). Maryland and Iowa State both note that gnats can also breed in slow drains.
Adults do not bite. UC IPM says they do not damage plants or bite people, and Iowa State calls them harmless apart from the annoyance. The larvae eat mainly fungi and decaying organic matter; Wisconsin says root damage is rare in home settings, and Iowa State and UC IPM say it is seedlings and young plants that suffer when numbers are very high.
Why they showed up: wet soil
Every source names the same cause: potting mix that stays moist. Females lay their eggs in damp soil, and overwatering feeds the fungi the larvae eat. Colorado State adds three things that make it worse: mixes high in peat moss, old mix that has broken down and holds more water, and watering at the summer rate through fall and winter, when plants use less. Wisconsin and Colorado State both say plants that spent the summer outdoors often bring gnats in with them, which is why populations tend to peak in late fall and winter.
The numbers explain why they seem to appear overnight. According to Wisconsin, a female lays up to 200 eggs, the eggs hatch in three to six days, larvae feed for one to two weeks, pupae take four to five days, and adults live about a week. Egg to adult takes three to four weeks, and indoors the generations overlap all year. UC IPM puts a generation at about 17 days at 75°F.
If the soil is staying wet, the plant has probably had other symptoms too; our guide to overwatering vs underwatering lists them.
What works, and on which life stage
No single method reaches every stage, which is why one treatment rarely ends it. Eggs and pupae are untouched by almost everything except dry soil.
| Method | What it hits | How to do it | Who says so |
|---|---|---|---|
| Let the soil dry | Eggs and larvae; makes the pot less attractive for egg-laying | Let the top inch (Wisconsin) or top 1 to 2 inches (Minnesota, Colorado State) dry before watering again | All six; Colorado State calls it the most important step |
| Water from below | Keeps the surface dry | Stand the pot in a tray of water for 15 to 30 minutes, then pour off the excess | Minnesota, Wisconsin |
| Sand or fine gravel on top | Egg-laying | A layer ½ to 1 inch deep over the soil surface | Wisconsin, Minnesota |
| Yellow sticky traps | Adults only | Stake small cards in the pot or lay them at the rim; replace when covered | Wisconsin, Minnesota, Colorado State, UC IPM |
| Bti soil drench | Larvae only | Bacillus thuringiensis israelensis, sold as Mosquito Bits or mosquito dunks; water it in according to the label. UC IPM says repeats at about five-day intervals may be needed | Wisconsin, UC IPM, Minnesota, Maryland |
| Beneficial nematodes | Larvae | Steinernema feltiae applied as a drench; a live mail-order product that works at 60 to 90°F and must be used at once | Colorado State, UC IPM |
| Repot in fresh mix | Removes larvae and soggy, broken-down mix | Use fresh mix and a pot with a drainage hole | Iowa State, Colorado State |
Two points where the sources differ. Iowa State says sticky cards kill only adults and will not solve the problem on their own, so treat them as a way to slow egg-laying and to see whether numbers are falling. And Colorado State's fact sheet, first published in 2003 and reviewed in 2025, says Bti products for fungus gnats are generally not sold at retail, while Wisconsin's page, revised this month, and UC IPM both name Mosquito Bits as a product home growers can use. Wisconsin also points out that Bti does nothing to eggs, pupae or adults, so one dose is not enough.
What to skip
- Insecticide sprays. Iowa State does not recommend insecticides for fungus gnats in houseplants, calling them unnecessary and ineffective. Wisconsin says chemicals are often not warranted and UC IPM says rarely; both allow that a pyrethrin product labeled for houseplants gives temporary relief from adults. Neither wants you spraying or fogging the air.
- Vinegar traps. They catch fruit flies, not fungus gnats (Wisconsin).
- Hydrogen peroxide drenches. A popular online remedy, but none of the seven extension pages we read mentions it, so we cannot point you to a tested rate.
- Predatory mites. Used in greenhouses; UC IPM says they probably will not perform well in individual houseplants.
A four-week plan
Wisconsin says it may take three to four weeks of changed watering plus a sand or gravel layer to get gnats in check. This schedule is ours, built on that figure and the life-cycle numbers above.
| When | What to do | What you will see |
|---|---|---|
| Day 1 | Find the source pots with the tap test and potato slices. Stop watering them until the top inch or two is dry. Put a sticky trap in each pot. Clear dead leaves off the soil and empty saucers. | Plenty of adults on the traps |
| Week 1 | Water only when the soil test says so, from below if you can. If potato slices still show larvae, start Bti with each watering, following the label. | Adults keep appearing: they are hatching from pupae that nothing has touched |
| Weeks 2 to 3 | Keep the drier routine. Replace full traps and potato slices. Add a sand or gravel layer to the worst pots. | Fewer new adults each week |
| Week 4 | Check the traps. If one pot is still producing gnats, repot it in fresh mix; if no pot is, check drains. | Few or none |
Do not let a thirsty plant collapse to starve the gnats. The aim is a dry surface, not a bone-dry root ball.
Reminders and fungus gnats
A watering reminder on a fixed interval is one way pots end up permanently damp, especially in winter, when plants use less water. Treat any reminder as a prompt to check the soil, not an order to water, and lengthen the interval when the soil is still wet on the day. Our guide to how often to water houseplants explains the finger test and why fixed schedules drift.
No app can see your soil, LeafBell included, and LeafBell is a web app without push notifications, so the check is still yours to do. If you are choosing an app for reminders, our comparison of the best plant care apps sets out what each one does and what it costs.
Keeping them from coming back
- Water by soil dryness, and cut back in fall and winter (Colorado State).
- Use pots with drainage holes and do not leave water standing in saucers (Minnesota, Iowa State).
- Inspect plants before bringing them in from a summer outdoors (Wisconsin).
- Replace mix that has broken down and stays wet (Colorado State); our repotting guide covers how.
- Buy pasteurized potting mix and store opened bags closed and off the ground (UC IPM).
Choosing an app? See our full comparison of the best plant care apps.
Frequently asked questions
Do fungus gnats bite or harm people?
No. UC IPM says adult fungus gnats do not damage plants or bite people, and Iowa State Extension calls them completely harmless apart from the annoyance.
Do fungus gnats damage houseplants?
Usually not. The larvae feed mainly on fungi and decaying organic matter. University of Wisconsin-Madison Extension says root damage is rare in home settings; Iowa State and UC IPM say seedlings and young plants are the ones at risk when larvae are very numerous.
How long does it take to get rid of fungus gnats?
Plan on about a month. Wisconsin Extension says it may take three to four weeks of modified watering and a sand or gravel layer to get them in check, which matches the three to four weeks one generation takes from egg to adult.
Do vinegar traps work for fungus gnats?
No. Wisconsin Extension says vinegar traps work for fruit flies but do not work for monitoring fungus gnats. Use yellow sticky traps for the adults and a slice of raw potato on the soil to check for larvae.
Will repotting get rid of fungus gnats?
It can help. Iowa State Extension says repotting with fresh soil can help eliminate the problem, and Colorado State University Extension recommends repotting when the old mix has broken down and stays wet. If the watering habit does not change, they can come back.
Sources
- University of Wisconsin-Madison Extension: Fungus gnats on houseplants (XHT1277, last revised November 12, 2026)
- Colorado State University Extension: Fungus gnats as houseplant and indoor pests (Fact Sheet 5.584, reviewed August 2025)
- UC Statewide IPM Program: Fungus gnats (Pest Notes 7448, updated August 2013)
- University of Minnesota Extension: How to treat pesky fungus gnats in houseplants
- Iowa State University Extension: Fungus gnat (last reviewed April 2025)
- Iowa State University Extension: Fungus gnats in houseplants (February 7, 2023)
- University of Maryland Extension: Fungus gnats indoors (updated March 5, 2021)


