The short answer
- Confirm it is fungus gnats: weak-flying dark flies near the pots, and tiny translucent larvae with black heads in the mix.
- Let the surface dry as far as the plant tolerates, and empty saucers and cachepots. Do not dry out seedling roots or moisture-loving plants to fight gnats.
- Use yellow sticky cards to monitor the adults. They catch flies but will not clear larvae from the soil on their own.
- If gnats persist, target the larvae with a Bti product labeled for that use or suitable beneficial nematodes. Repot when old mix has broken down or drains poorly.
- Allow several weeks for improvement. Keep monitoring while eggs, larvae and adults already present complete their life cycle.

Is it fungus gnats? How to confirm what you have
Colorado State University Extension describes adult fungus gnats as delicate black flies about 1/8 inch long, with long legs and antennae, that look a little like mosquitoes. They are weak fliers that move in short, erratic hops, usually close to the plant they came from, though they also collect around window frames. They walk across the surface of the potting mix and fly up when you water or disturb the pot. The adults do not bite people or feed on plants.
The larvae are the stage that matters. Colorado State and University of Wisconsin entomologists describe them as slender, whitish or translucent maggots with a black head, up to about 1/4 inch long, living mostly in the top 2 to 3 inches of the mix.
Try the potato test. I recommend Colorado State's method for finding larvae: push a few 1/4-inch slices or wedges of raw potato into the surface of the mix. Larvae move to the potato and start feeding within a few days, so turn the slices over and look on the underside. Finding larvae tells you which pots are breeding gnats, not just which ones the adults are resting on. Remove the potato pieces once you have checked them; this is a monitoring test, not a treatment.
Rule out look-alikes. University of Minnesota Extension notes that fungus gnats are often mistaken for fruit flies, but are a different insect. Illinois Extension separates them from drain flies: drain flies are larger, with wings that extend away from the body, and they breed in the debris that collects in floor drains. Fungus gnats are much smaller and carry their narrow wings along the body line. If you have gnats but no houseplants, Iowa State Extension lists slow drains, refrigerator drain pans, and damp cracks with decaying organic matter as other breeding sites.
Find the source pot. University of Maryland Extension suggests covering a suspect plant or drain with screen or cheesecloth for several days and checking for flies. A hand lens and the tapping and trapping tricks in how to catch a pest in the act help too.
Why fungus gnats show up in winter
Colorado State Extension says fungus gnat problems are most noticeable in late fall and winter, and it gives three reasons. Plants that summered outdoors often come back inside carrying gnats. People spend more time indoors and notice them. Most of all, shorter days and cooler rooms slow plant growth and water use, so a mix watered on the summer schedule stays wet, which is what egg-laying females look for. Peat-heavy mixes, and old mixes that have broken down and hold more water, are especially attractive.
The flies tell you more than they cost you. Maryland Extension says fungus gnats do not significantly damage indoor plants, and Iowa State Extension says the larvae harm a houseplant only when they are present in very large numbers. Minnesota Extension adds that even when severe infestations damage roots, other factors such as root rot from overwatering are likely at work. So if a plant with gnats is wilting or yellowing, treat the gnats as a moisture warning and check the roots: the yellow leaves guide explains how wet mix suffocates roots and how to tell rotted roots from healthy ones.
The life cycle explains why one treatment rarely ends it. Colorado State says a female can lay up to 200 eggs during her 7- to 10-day life, and at room temperatures of 65 to 75 °F the cycle from egg to adult takes three to four weeks, so every stage can be in the pot at once.
Let the potting mix dry and water less
My first recommendation is to stop keeping the mix constantly wet. For established houseplants that tolerate it, I recommend Colorado State Extension's target of letting the top 1 to 2 inches dry between waterings. That makes the surface less suitable for egg laying and larval survival. For plants that need more consistent moisture, follow Minnesota Extension's plant-specific limit instead: allow only the drying the plant can tolerate, then use a targeted larval treatment if needed. Never sacrifice healthy roots just to dry out gnats.

How to do it:
- Water by feel, not by the calendar. Feel below the surface and compare the moisture with that species' watering needs; the same drying depth does not suit every pot. Plants indoors in winter need far less water; the guide to watering and feeding houseplants in winter covers the seasonal change.
- Empty standing water. I recommend letting the pot drain fully, then emptying the saucer or cachepot and clearing out plant debris. Iowa State notes that larvae can survive in drainage trays under pots.
- Check for hidden water. A nursery pot inside a decorative cachepot, a pot with no drainage hole, or a pot far larger than its root ball can all keep the mix wet; the yellow leaves guide lists the common ways pots hold hidden water.
- Move air over wet pots. Illinois Extension horticulture educator Kelly Allsup suggests a fan to dry the surface of overly wet mix, which also discourages the weak-flying adults.
- Clear out decay. Colorado State recommends removing pots full of decaying plant matter, such as rotted bulbs and roots, which feed the larvae.
Give it time. Allsup notes that three to four weeks are needed to bring a fungus gnat population down sharply, which matches the length of one generation.
Yellow sticky cards: for monitoring, not a cure
Adult fungus gnats are drawn to yellow. A small yellow sticky card on a stick, pushed into the pot at the edge or tucked under the leaves, catches them. Maryland Extension recommends sticky cards for monitoring fungus gnats and other small flying pests, and Colorado State notes that catching egg-laying females can reduce the next generation.
I recommend them as a gauge rather than a treatment. Illinois Extension says sticky cards probably will not eliminate fungus gnats by themselves, and Iowa State Extension points out that they kill only adults, while the larvae keep developing in the mix. Count the catch each week: if new flies keep appearing after a few weeks of drier watering, the larvae need attention.

How to kill fungus gnat larvae in the soil
If gnats persist after several weeks of better watering, treat the larvae where they live.
Bti. Bacillus thuringiensis subspecies israelensis (Bti, also called the H-14 strain) is a naturally occurring soil bacterium that kills fungus gnat larvae. I recommend a Bti soil drench only when the current product label permits fungus-gnat control on the indoor plants you are treating, as Maryland Extension describes. Confirm that the active ingredient is the israelensis subspecies and follow the label's rate, application method and repeat-treatment directions. A Bt product for caterpillars is not interchangeable, and a mosquito-only label is not permission to drench houseplant pots. Availability varies; check the actual label before buying.
Beneficial nematodes. For plants whose mix cannot dry much, I recommend considering Steinernema feltiae, the nematode species Colorado State Extension identifies for fungus-gnat larvae. Follow the supplier's storage, temperature and moisture directions. Do not combine a treatment that needs moist mix with deliberate drying that would undermine it.
Repot into fresh mix. Iowa State, Minnesota and Illinois Extension all suggest repotting into fresh potting soil, in a clean container, to remove the eggs and larvae in the old mix. Colorado State recommends repotting whenever the mix has broken down and holds too much water. I recommend repotting when the mix has broken down or drains poorly, rather than disturbing healthy roots just because a few adults are flying. If you repot, follow the steps for repotting a houseplant, choose a pot only slightly larger than the root ball, and discard the infested mix rather than transferring it to other indoor pots.
What doesn't work, or isn't worth the risk
Sprays aimed at the flies. I recommend skipping routine adult-fly sprays. Iowa State Extension prioritizes removing breeding conditions in homes, and Colorado State explains that sprays aimed at adults leave larvae in the mix. A short-lived knockdown is little help if the next generation keeps emerging. Correct the watering first; if needed, choose a treatment specifically directed at larvae and labeled for the site.
Systemic insecticides. Colorado State notes that imidacloprid applied to the soil kills fungus gnat larvae, and it is sold in some houseplant products. I do not recommend it as the default for a nuisance pest when watering changes and targeted larval controls are available. Illinois Extension cautions that many systemic insecticides are toxic to bees, which matters for flowering plants that go back outdoors, and that they are not usually labeled for food crops such as indoor citrus or herbs.
Treating the flies and ignoring the water. Colorado State calls drying the mix the most important strategy, and the other sources agree: as long as the mix stays wet, new larvae keep hatching. Traps, drenches and repotting work far better once watering is under control.
Fungus gnats on seedlings
Seedlings are the exception to "harmless." Iowa State Extension says that in high numbers the larvae can feed on the roots of seedlings and young plants and stunt their growth. University of Wisconsin entomologist PJ Liesch notes that larvae mainly damage seedlings and cuttings that have not yet callused, and that their feeding wounds can let root rot organisms in. Seedling trays and the trays beneath them are also, as Iowa State points out, places where larvae survive.
The same rules apply, with a gentler hand. Seedlings cannot go as dry as an established houseplant, so let only the surface dry while keeping the roots moist, water from below, and keep air moving; the seed-starting guide covers watering seedlings without encouraging damping off, and the February guide has a daily seedling routine. Wisconsin's fact sheet also warns against overfertilizing, which feeds the fungi and algae that larvae eat.
Where algae grows on constantly wet mix, the flies may be shore flies instead. Wisconsin's greenhouse fact sheet says the two are often confused, and describes shore flies as sturdier than fungus gnats, more like fruit flies, strong fliers with five light spots on dark wings, feeding on algae. Its advice for both is the same: avoid overwatering.
How to keep fungus gnats from coming back
- Check new plants before you buy. I recommend inspecting the potting mix and looking for flies around the pot as well as pests on the leaves.
- Isolate new and returning plants. I recommend keeping them separate while you check for pests; the indoor move guide explains how to quarantine houseplants.
- Cut back watering as the days shorten. Colorado State ties the winter peak to plants using less water in fall and winter while watering stays the same.
- Use fresh potting mix, and repot when old mix breaks down and stays soggy.
- Keep saucers, trays and the floor around pots clean of standing water and plant debris.
If the leaves are yellowing or stippled and the mix is not staying wet, gnats are probably not the main problem. The yellow leaves guide explains how to find the pest behind leaf damage.
Sources and further reading
- University of Maryland Extension: Fungus gnats — drying the soil, sticky traps for monitoring, finding the source, and Bti soil drenches labeled for indoor plants.
- Colorado State University Extension: Fungus gnats as houseplant and indoor pests (fact sheet 5.584) — identification, life cycle, the winter peak, the potato test, drying the top 1 to 2 inches, nematodes, Bti, and insecticide limits.
- Iowa State University Extension: Fungus gnat — breeding sites, damage to seedlings, sticky cards, repotting, and why insecticides are ineffective in homes.
- University of Minnesota Extension: Houseplant pests — fruit fly look-alikes, root rot as the usual cause of decline, drying to suit the plant, and repotting.
- Illinois Extension: Houseplant pests and how to manage them — the limits of sticky traps, and cautions about systemic insecticides.
- Illinois Extension: Take care of nuisance pests around the house — fungus gnats versus drain flies, saucers and standing water, and fresh potting soil.
- Illinois Extension: Gnats in the kitchen — fans to dry the surface, and three to four weeks to reduce a population.
- University of Wisconsin–Madison: Fungus gnats and shore flies in greenhouses — larval damage to seedlings and cuttings, shore flies, and overfertilizing.


