A real close-up of an adult fungus gnat on a flower
Adult fungus gnats look delicate and mosquito-like, but the important control point is usually the damp growing medium. Photo: Martin Cooper / Wikimedia Commons upload, CC BY 2.0; cropped.

If tiny flies lift from a plant shelf, the adults are only the visible clue. The lasting fix is to find the damp potting mix where larvae can develop, then combine drying, cleanup, monitoring, and targeted larval control when the problem continues.

How do you get rid of fungus gnats in houseplants?

Fungus gnats show up around houseplants when the growing medium stays moist enough to support fungi, algae, decaying organic matter, and larvae. Yellow sticky traps catch adult flies and help you monitor pressure, but traps alone rarely stop the cycle. You need to correct the damp potting mix, remove decaying debris, and target larvae when the infestation continues.

UC IPM describes fungus gnats as small nuisance flies that commonly infest potted plants. Their larvae feed mainly on fungi and organic matter in soil, but they can also chew roots. Colorado State University Extension says adults do not bite or feed, while larvae develop in houseplant growing media and feed on algae, fungi, and plant roots. The adult flies irritate you; the larvae and wet mix tell you what to fix.

First checkDamp soil and adult flight
Adult toolYellow sticky traps
Larvae toolDrying plus Bti when needed
Main causeWet organic potting mix
Four illustrated fungus gnat control steps: confirm adults near damp soil, dry the surface and remove debris, check larvae with a potato slice, then combine traps and labeled soil treatment
Visual learning ยท Pest controlTraps catch adults; soil controls the cycle

Confirm the breeding pot, correct damp conditions, check for larvae, and keep monitoring while the next generation declines.

  1. Confirm the source.
  2. Dry the surface.
  3. Check larvae.
  4. Break the cycle.

Make sure the flies are fungus gnats

Fungus gnats are small, dark, delicate flies that often hover near potting mix, rest on soil, crawl around the pot rim, or fly weakly when you water. University of Minnesota Extension describes them as slender dark flies with long legs and antennae, often found indoors with houseplants and overwatered soil. Colorado State also notes their mosquito-like appearance.

Do not assume every tiny fly is a fungus gnat. Fruit flies gather around overripe produce, bottles, and kitchen waste. Drain flies stay near sinks and drains. Fungus gnats stay close to houseplant soil and windows near plants. If leaves feel tacky or furniture below the plant is sticky, use the sticky houseplant leaves pest diagnosis because honeydew points to sap-feeding pests, not fungus gnats. If the adults appear across several rooms, inspect every moist source, not only the first plant where you noticed them.

Fungus gnatsWeak flyers near damp houseplant soil, pot rims, saucers, and plant shelves.
Fruit fliesGather around ripe fruit, food scraps, bottles, compost pails, and trash.
Drain fliesRest near sink, shower, and floor drains with moist organic buildup.
Shore fliesMore common in greenhouse algae situations than ordinary houseplant shelves.
WhitefliesFly from leaves, not soil, and look pale or white when disturbed.

A sticky trap near the soil line helps confirm where adults are active. Use it as evidence, not as the whole treatment.

Myth vs reality: sticky traps are useful, but they are not a full fungus gnat treatment. They catch adults and show trends; damp mix, decaying debris, and larvae decide whether the next generation keeps appearing.

Find the damp-soil cause before treating

Fungus gnats thrive where potting mix stays moist. UC IPM recommends avoiding overwatering, providing good drainage, letting the surface of container soil dry between waterings, cleaning up standing water, and removing organic debris. Colorado State says overwatering increases fungi and fungus gnat development.

Check the setup that keeps the surface wet. A decorative cachepot may hold runoff around the nursery pot. A pot without drainage may trap water below the root zone. A dense peat-heavy or compost-heavy mix may stay wet in low light. Fallen leaves on the soil surface can feed decay. A large pot around a small root ball can keep unused mix damp for too long.

On a shelf with several plants, the breeding pot is not always the one with the most flies above it. Put traps near different pots, lift each container after watering, and find the pot that stays damp longest before treating everything at once.

If the pot smells sour, stays wet for days, or the plant wilts while wet, fungus gnats may be a symptom of a bigger root-zone problem. Use the houseplant root rot diagnosis before you keep watering or repot without evidence. For setup decisions, compare the pot and mix with the houseplant soil and drainage guide.

Break the cycle in the right order

Fungus gnat control works best when you handle adults, larvae, and breeding conditions together. Adults live above the soil and lay eggs into suitable moist media. Larvae stay in the growing medium. If you only catch adults, more adults can emerge. If you only treat soil but keep the mix wet, the conditions remain attractive.

1. Confirm the sourcePlace yellow sticky traps near suspect pots and inspect other fly sources.
2. Remove breeding materialTake dead leaves, old flowers, and decaying debris off the soil surface.
3. Correct wateringLet the surface dry between waterings when the plant can tolerate it.
4. Improve drainageEmpty saucers, lift nursery pots from cachepots, and fix slow-draining mix.
5. Monitor larvaeUse potato pieces or careful soil checks when adults keep appearing.
6. Treat larvae if neededUse Bti or another labeled soil treatment according to directions.

Start with the low-risk steps. Drying the surface and removing decay often lower the population without stressing the plant. Keep traps in place while you change watering so you can see whether adult numbers drop.

Check larvae when adult traps keep filling

UC IPM and Colorado State both describe potato pieces as a way to monitor larvae. Place a chunk or slice of raw potato cut-side down on the potting mix. After a few days, lift it and check the underside for small translucent larvae with dark head capsules. Replace the potato before it decays.

Larvae often stay near the top of moist growing media because that is where fungi and organic matter are available. If the plant is healthy and adult numbers are low, you may not need to dig through the root ball. If adult traps keep filling and the pot remains wet, inspect moisture, pot size, drainage, and larvae together.

Seedlings, fresh cuttings, stressed plants, and plants with damaged roots deserve more caution. UC IPM says larvae can chew roots, and University of Minnesota notes that fungus gnats usually do not harm plants but rare severe infestations can damage roots.

Use sticky traps, Bti, and labeled products wisely

Yellow sticky traps catch adults and show whether numbers are rising or falling. Place traps near the soil surface rather than high above the plant. Replace them when covered with insects, dust, or potting mix. Keep them away from curious children and pets because the adhesive is messy.

Bti, short for Bacillus thuringiensis subspecies israelensis, targets larvae when applied to the growing medium according to product directions. UC IPM says Bti products such as Mosquito Bits and Gnatrol can be convenient for home gardeners, but Bti does not reproduce or persist indoors, so infestations need repeated applications until control is achieved. Colorado State also describes Bti as a larval drench option.

Use any pesticide, soil drench, or biological control according to its current label. Do not apply products to edible herbs, seedling trays, pet-accessible pots, or enclosed rooms unless the label allows that use. UC IPM notes that other insecticides may be labeled for adults and larvae, but they are rarely warranted for fungus gnats in homes.

Repot only when the potting mix is part of the problem

Repotting is useful when the growing medium has failed, not because you saw one adult fly. Consider repotting when the mix smells sour, stays wet for many days, contains decaying debris you cannot remove, has no drainage path, or comes with root symptoms. If fuzzy white growth is the main clue, compare it with the white mold on houseplant soil guide before you disturb the root ball. Fresh mix and a draining pot can remove larvae habitat and restore air around roots, but unnecessary repotting can stress a plant already reacting to low light or a recent move.

If you repot, keep the plant contained while you work. Discard the old wet mix rather than reusing it. Wash the pot if you plan to reuse it. Choose a pot close to the root ball, because extra unused mix can stay damp. Use a clean commercial potting mix that fits the plant, then water according to the plant's needs instead of soaking the new pot every few days.

Do not add a thick decorative layer just to hide the soil. A surface layer can make it harder to read moisture and may trap water below it. If you use any topdressing, keep the root-zone moisture check honest and remove decaying leaves before they break down.

Expect control to take more than one round

Fungus gnat control often takes several weeks because adults, larvae, and pupae are not all in the same stage at the same time. You may catch adults right away, then see a smaller wave after larvae already in the mix finish developing. UC IPM's note that Bti does not persist indoors explains why repeated applications may be needed when larvae are active.

Use the trend, not one trap, to judge progress. Trap counts should drop, new adults should stop appearing after watering, and the pot should dry at a healthier pace. If traps fill again after every watering, the mix is still too wet, larvae remain active, or another pot is breeding gnats. Move traps from plant to plant for a few days to find the source instead of treating your whole shelf at once.

Avoid common fungus gnat mistakes

The first mistake is treating adults and ignoring the soil. Adult traps make the problem look better for a few days, but larvae can keep emerging from damp mix. Keep traps, but correct the breeding site.

The second mistake is drying every plant the same way. A snake plant can tolerate a longer dry-down than a fern, peace lily, or freshly rooted cutting. Let the surface dry when the plant can handle it, then water by plant need. If the plant wilts in a dry pot, water it; fungus gnat control should not become plant neglect.

The third mistake is adding unverified home remedies to every pot. Hydrogen peroxide, cinnamon, vinegar traps, sand layers, and essential oils appear often online, but they are not the source-backed core of control. Vinegar traps tend to fit fruit flies better than fungus gnats. Sand or topdressings may hide the surface without fixing a wet lower mix. Use extension-backed steps first.

Protect plants that are already stressed

Fungus gnats often appear with overwatering, but the plant may already be stressed by low light, root damage, old mix, or a recent move. If leaves are yellowing, use the houseplant yellow leaves diagnosis to separate old foliage, wet roots, dry soil, light, pests, fertilizer, and recent changes. If leaves are falling after you brought the plant home, the new-houseplant leaf drop guide can help you sort adjustment from urgent root stress.

Repot only when the setup calls for it: no drainage, failed sour mix, heavy infestation in broken-down media, or root problems. Repotting every plant with fungus gnats can add stress and spread larvae through reused tools, trays, or loose mix. Clean surfaces after handling infested pots.

Prevent fungus gnats from returning

Prevention is a growing-system habit. Let the potting mix dry at the surface when the plant allows it. Use pots with drainage holes. Empty saucers and cachepots after watering. Remove dead leaves and spent flowers from the soil. Store open potting mix in a closed container so it does not stay damp.

Inspect new plants before placing them near the rest of your collection. UC IPM notes that fungus gnats are common in newly purchased houseplants. Keep a sticky trap near new plants for a short observation period if you have had recurring problems. A few adults caught early are easier to handle than larvae established across several pots.

Review your watering pattern each season. Lower winter light slows water use in many homes, so a summer watering habit can become a fungus gnat habit in winter. Watering less often is not the same as withholding water. You are matching moisture to plant use, pot size, light, and drainage.

Frequently asked questions

Are fungus gnats harmful to people?

No. Extension sources describe adult fungus gnats as nuisance flies. They do not bite people.

Do fungus gnats kill houseplants?

Most houseplants tolerate low numbers. Larvae can damage roots in severe infestations, especially on seedlings, cuttings, and stressed plants.

Do yellow sticky traps get rid of fungus gnats?

Sticky traps catch adults and help you monitor the infestation. They do not remove larvae in the potting mix, so pair traps with moisture correction and larval control when needed.

Should I throw away soil with fungus gnats?

Discard soil that is sour, broken down, waterlogged, or tied to root problems. A mild gnat problem in otherwise good mix may improve with surface drying, debris removal, traps, and larval treatment.

How long does it take to get rid of fungus gnats?

Expect several weeks if larvae are already present, because adults can keep emerging while you correct the soil. Keep monitoring until trap counts stay low and the pot dries at a healthier pace.

Sources

The sources below support the fungus gnat identification, lifecycle, watering, larvae, sticky trap, Bti, prevention, plant-safety, and image-license guidance in this article. Competitor pages were reviewed only to map reader questions, depth, and gaps.