Room for Green

Plant Care

How to Get Rid of Fungus Gnats in Houseplants: What Works and What Takes Time

A healthy pothos in a terracotta pot on a light wood table, a thin layer of coarse sand on the soil and a yellow sticky card standing in the pot, window light behind.

Fungus gnats follow wet soil, and every extension source starts there. Here is the life cycle that explains why one treatment never works, how deep to let the soil dry, and where the sources split on Bti, nematodes and sprays.

Adults do not bite, and they do not eat your plants. They hover over the soil, drift toward a television or computer monitor at night (Lee County's observation), and make a calm room feel unclean. The trouble starts below the surface, where their larvae feed, and every extension source I read begins there too: with wet soil.

The sources are Wisconsin (revised November 2026), Colorado State (reviewed August 2025), two North Carolina county offices (2024 and 2025), UC IPM's pest note (2013) and North Dakota State (2021). They agree on the cause and split on almost every remedy. This guide names no brands, only what the sources say. Where they are silent, the text says so, and past that line the judgment is mine.

What you are looking at

Adults are delicate, dark brown or black flies about 1/8 inch long, says Wisconsin, with a rounded Y-shaped set of veins near the wing tips. Colorado State describes the same Y and adds long legs and antennae. Larvae are pale and wormlike with a black head, and Wisconsin says mature ones reach about 1/4 inch.

Two lookalikes matter. Wisconsin says fungus gnats are often confused with fruit flies, and that the vinegar traps used to monitor fruit flies do not work for monitoring fungus gnats. UC IPM adds shore flies, which have short, bristle-like antennae, while a fungus gnat's antennae are longer than its head.

Yellow sticky card pushed into the soil of a houseplant with a few tiny dark specks stuck to it

Why they come: wet soil is the nest

Colorado State calls moisture changes in the growing medium the primary reason fungus gnats are abundant in homes. Adults are highly attracted to moist media, it says, and media with a lot of peat moss are particularly attractive to adult females. Aging medium holds more water. Shorter, cooler days cut a plant's water use, so soil stays wet unless watering is adjusted.

Wisconsin puts it flatly: fungus gnats are "commonly associated with overwatered houseplants." UC IPM adds a second source, incompletely composted organic matter in the potting mix, and says excess manure or blood meal fertilizers can create breeding sites.

They also arrive. North Dakota State says they can enter the home when a new plant is purchased, and Colorado State, Wisconsin and North Dakota State all say plants kept outdoors in summer commonly come back colonized. Wisconsin notes that infestations are often worse in fall for that reason.

Houseplant on a saucer with water pooled around the pot, the soil dark and wet

The life cycle explains why one treatment fails

The numbers vary by source, which is useful in itself. UC IPM measures a generation at about 17 days at 75°F: eggs hatch in about 3 days, larvae take about 10 days to become pupae, and adults emerge about 4 days later. Colorado State says larvae are fully grown in two to three weeks and egg to adult takes three to four weeks at typical room temperatures of 65 to 75°F. Wisconsin agrees on three to four weeks, and Lee County says about four.

Adults live only about a week, seven to ten days says Colorado State, yet a female can lay up to 200 eggs (Lee County says 100 to 300). Indoor generations overlap, as Wisconsin and Lee County both note, so every stage can be present at once. Colorado State says adult-targeting insecticides do not directly affect larvae in the medium, and Wisconsin says Bti does not affect eggs, pupae or adults. That is my explanation for why Wisconsin expects three to four weeks of modified watering and sand or gravel to bring a problem under control.

Step one: dry the top, then keep it dry

Wisconsin calls reducing moisture "the single most important step." How dry is the part where the sources drift apart. Wisconsin and Beaufort County say the top inch. Colorado State says especially the top 1 to 2 inches, and North Dakota State the top two inches. UC IPM asks only that the surface dry between waterings.

There is a catch. Beaufort County says the top-inch rule suits most houseplants except moisture-loving varieties. Lee County says to let the soil dry, but not to the point where plants will wilt, and to add an extra day or more between waterings. For a fern that wants steady moisture, none of the pages gives a clean answer.

Two mechanical fixes help. Wisconsin and Beaufort County say to water from the bottom, so roots stay moist while the surface stays dry. Wisconsin also says to cover the soil with a half-inch to one-inch layer of coarse sand or fine gravel, which keeps the surface drier and makes it less attractive for egg-laying. UC IPM suggests mixing perlite or sand into the potting mix to improve drainage, and Beaufort County and Lee County both say to keep saucers from holding water.

Pot standing in a shallow dish of water, the soil surface topped with a thin layer of coarse sand

Traps: monitor first, kill second

Traps: monitor first, kill second

Yellow sticky cards catch adults. Beaufort County says that reduces the eggs laid in the soil, and North Dakota State uses them as a gauge: if more adults stick to the cards, more control measures may be required. UC IPM says to cut the cards into squares and set them in pots on skewers or sticks. Colorado State says to place them under the plant canopy or at the container edges.

The potato test finds larvae, not adults. Colorado State says to insert quarter-inch slices or wedges of potato into the medium. UC IPM says to set raw chunks cut side down in the soil and replace them every few days. Wisconsin says to check a slice on the soil surface after three or four days, and North Dakota State after a couple of days. Numerous larvae with black heads mean it may be time to treat that plant.

Wisconsin also mentions insect light traps that use UV light to draw adults onto a sticky card. The trap not to build is the vinegar trap. Those are for fruit flies, and Wisconsin says they do not work for fungus gnats.

Bti, nematodes and sprays: the sources split

Bti is a bacterium that kills fly larvae. Beaufort County says it is commonly found in mosquito dunks and can be mixed with water and applied to the soil. Wisconsin says it must be applied with enough water to filter through the soil to the larvae. UC IPM says Bti does not reproduce or persist indoors, so repeated applications at about five-day intervals may be needed, and North Dakota State agrees that multiple applications may be necessary.

On whether you can buy it, the sources disagree. UC IPM says gnat products with Bti are available at many retail nurseries. Colorado State, reviewed in 2025, says formulations sold for fungus gnat control are generally unavailable through retail outlets, and that the gnat-specific product is used in commercial greenhouses and large interiors. Check what your local store actually stocks (my advice).

Nematodes split them again. Colorado State calls the species Steinernema feltiae particularly effective, with larvae dying within three to four days. UC IPM says they can give relatively long-term control but must be mail-ordered, are live and perishable, and need immediate use. Lee County says beneficial nematodes can be used on outdoor landscaped areas only, while Beaufort County lists them as a biological control.

On sprays the sources lean the same way. UC IPM says insecticides are rarely warranted in and around homes. Wisconsin says chemical control is often not warranted unless the infestation is severe, and Lee County calls them usually unnecessary indoors because cultural changes often solve the problem. Colorado State is the exception in tone: use them if problems persist several weeks after watering practices have been adjusted. Wisconsin adds that spraying the air is ineffective.

Repotting and new plants

When the soil itself has become the problem, repot. Colorado State says to repot when the medium has broken down. Beaufort County says to move a persistently infested plant into fresh, well-draining soil, discard the old soil and sterilize the pot before reuse. UC IPM says to use pasteurized potting mix, not to move infested plants to new areas, and notes that severely infested plants may be discarded.

Prevention is dull and cheap. Gnats come in on new plants and on plants returning from summer outdoors, say Wisconsin and North Dakota State. I would keep new and returning plants apart from the rest for a few weeks, with a yellow card in each pot (my suggestion, not a source's).

Do fungus gnats hurt my plants?

Rarely, says Wisconsin: root damage is rare in home settings. North Dakota State calls the larvae the real problem, and Lee County lists sudden wilting, poor growth, yellowing and early leaf drop as symptoms. UC IPM says wilting usually comes from water problems or root decay rather than larvae.

Do vinegar traps work?

Not for fungus gnats. Wisconsin says the vinegar traps used to monitor fruit flies do not work for monitoring them.

How long until they are gone?

Wisconsin expects three to four weeks of modified watering and sand or gravel. UC IPM puts a generation at about 17 days, which is why a week of effort shows little.

What to do this week

Put a yellow card in each infested pot and a potato slice on the soil. Let the top two inches dry (the stricter of the sources) in everything that tolerates it, and write down the number of gnats on each card every Friday for four weeks.

The open question is how dry is dry enough. Every page says to dry the top, and Beaufort County and Lee County warn about moisture-loving plants and wilting. A gnat problem and a thirsty fern want opposite things, and no source says which to give up. My guess is to water the fern from the bottom and trust the sand layer, but that is a guess, not a finding.

Sources

The pages linked below are in English.

Also available in:EspañolPortuguês (Brasil)

← All guides