Your guide to household and yard pests Urgent? When to call a pro
What bug is this?
Fruit Flies & Gnats

Fungus Gnats in Houseplants

Fungus gnats breed in wet potting soil. Let the soil dry, trap adults with yellow sticky cards and treat larvae with Bti. A 3-week plan that actually clears them.

harmlessdoes not biteleaves once you fix the cause updated October 15, 2026
Yellow sticky trap in a houseplant pot covered with black fungus gnats; sand on top of the soil
Insect
dark-winged fungus gnats (Sciaridae), mainly Bradysia species
Size
1/16–1/8 inch; slender, black, long legs and antennae
Breed in
the top 1–2 inches of moist potting mix
Life cycle
about 17 days at 75 °F; 3–4 weeks at 65–75 °F
Harm
adults don't bite; larvae can damage roots of seedlings and cuttings
Best tools
dry soil, yellow sticky cards, Bti soil drench, beneficial nematodes

Updated October 15, 2026. We added safety guidance: for each product, how dangerous it is for cats, dogs, kids, pregnancy, fish and birds, how to protect your household, and what to do if someone is exposed.

Fungus gnats are tiny black flies that breed in wet potting soil and fly up around houseplants when you water or move the pot. To get rid of them, let the soil dry out, catch adults on yellow sticky cards, and kill larvae in the soil with a Bti drench, keeping it up for three to four weeks.

How to tell they're fungus gnats

Fungus gnats (family Sciaridae, mostly Bradysia species) are often mistaken for fruit flies. Look for:

  • Size 1/16 to 1/8 inch, slender and dark gray to black.
  • Long legs and long beaded antennae, so they look like tiny mosquitoes.
  • Smoky wings with a Y-shaped vein (visible with a magnifier).
  • Weak fliers. They run across the soil surface, or zigzag around the plant and nearby windows.
  • They don't go to the fruit bowl. Fruit flies are tan with red eyes and are drawn to fermentation.

If they're fuzzy and gray and sit on bathroom walls, they're drain flies. Full comparison: gnats vs fruit flies.

The life cycle (why one round of treatment isn't enough)

Fungus gnat larvae in wet topsoil: translucent worms with shiny black heads
Larvae are up to 1/4 inch long, clear-white with a black head. They live in the top layer of soil.

A female lays up to about 200 eggs in cracks in moist, organic soil (Colorado State). Per UC IPM, at about 75 °F eggs hatch in about 3 days, larvae feed for around 10 days before pupating, and adults emerge about 4 days later, so a generation can turn over in roughly 17 days. In a cooler 65–75 °F home, Colorado State puts egg to adult at three to four weeks. Adults live 7 to 10 days, and generations overlap. Any plan has to cover at least one full cycle, so stopping after a week leaves eggs and pupae to restart the problem.

Larvae are translucent white worms up to 1/4 inch long with a shiny black head. They live mostly in the top 2 to 3 inches of soil and feed on fungi, decaying organic matter and fine root hairs.

Are fungus gnats harmful?

Adults are a nuisance only: they don't bite people or pets and don't spread disease. Larvae are the ones that can do damage. In large numbers they chew root hairs and stems of seedlings, cuttings and young plants, causing wilting, poor growth and sometimes collapse. Established houseplants usually survive, but the gnats keep coming as long as the soil stays wet. UC IPM points out that when a houseplant wilts, overwatering, root rot or poor drainage is a more likely cause than gnats.

How to get rid of fungus gnats: a 3–4 week plan

1. Dry the soil out

This is the most important step and the one people skip. Fungus gnats can't complete their cycle in dry topsoil.

  • Water only when the top 1–2 inches are dry to the touch (stick a finger in).
  • Water from the bottom when possible and empty saucers after 15 minutes.
  • Make sure every pot has a drainage hole.
  • Move plants to a brighter spot in winter so they dry faster.

Most houseplants handle this fine. Ferns, calatheas and other moisture lovers may need repotting into a better-draining mix rather than drying out.

2. Trap the adults

Lay yellow sticky cards flat on the soil or on a stake just above it (UC IPM suggests cutting them into small squares on skewers). Females are drawn to yellow and get stuck before laying eggs. Cards also show you which pots are the problem and whether numbers are falling. Replace them when they're covered.

3. Kill the larvae with Bti

Bacillus thuringiensis subspecies israelensis (Bti) is a bacterium whose toxin kills fly larvae and nothing else. UC IPM recommends it for fungus gnats in houseplants and names retail products such as Mosquito Bits and Gnatrol. Regular Bt sold for caterpillars (subspecies kurstaki) does not work on gnat larvae.

  • Mosquito bits: soak a tablespoon or so in a gallon of water for 30 minutes or overnight, strain, and water plants with it. Or sprinkle bits on the soil surface and water in. A mosquito dunk broken into pieces works the same way.
  • Top-water, don't bottom-water. The larvae live in the top layer; Bti has to soak it.
  • UC IPM says Bti doesn't persist indoors, so repeat about every 5 days (or every watering) for 3–4 weeks.

4. Optional extras

  • Sand or gravel topping: 1/2 inch of coarse sand over the soil dries fast and discourages egg laying.
  • Raw potato test and trap: a 1-inch slice of raw potato face down on the soil draws larvae up within a couple of days. Toss it and replace.
  • Beneficial nematodes (Steinernema feltiae): microscopic worms mixed into water and poured on the soil. Colorado State says they kill larvae within 3 to 4 days; UC IPM says they work best at 60–90 °F in moist soil and can give season-long control after a few applications. They're the most praised fix on houseplant forums. Predatory Hypoaspis mites work in greenhouses but UC IPM says they're a poor choice for individual houseplants.
  • Hydrogen peroxide drench (3% diluted 1:4) kills larvae on contact but has no residual effect and no solid research behind it. Helpful as a knockdown, not a substitute for drying the soil.
  • Insecticides: UC IPM says they're rarely warranted indoors. Short-acting pyrethrin sprays, soaps, oils and neem need reapplying every couple of days and don't reach larvae. If you use any product, follow the label, and UC IPM suggests treating houseplants outdoors and waiting about a day before bringing them back in.

How dangerous are these products

Fungus gnat control is mostly low-risk: Bti and nematodes affect only insect larvae. The things to watch are pets chewing on treated plants or sticky cards, peroxide mixed too strong, and sprays used indoors near fish tanks or birds.

Comparison table

Mosquito bits / dunksActive ingredient: Bacillus thuringiensis israelensis (Bti)
CatsSafe
DogsSafe
a dog eating the bits may get a mild upset stomach
Kids, pregnancy, allergiesSafe
Fish, birds, rodents, reptilesSafe
Beneficial nematodesActive ingredient: Steinernema feltiae
CatsSafe
DogsSafe
Kids, pregnancy, allergiesSafe
Fish, birds, rodents, reptilesSafe
Yellow sticky cardsActive ingredient: none
CatsCaution
can stick to fur and whiskers
DogsCaution
Kids, pregnancy, allergiesSafe
Fish, birds, rodents, reptilesCaution
birds and small reptiles can get stuck
Hydrogen peroxide drenchActive ingredient: 3% hydrogen peroxide, diluted
CatsCaution
don't let pets drink from saucers
DogsCaution
same
Kids, pregnancy, allergiesCaution
keep the bottle away from kids; stronger solutions burn skin
Fish, birds, rodents, reptilesCaution
not into the aquarium
Pyrethrin spraysActive ingredient: pyrethrins
CatsKeep out
spray plants outdoors, bring in after a day
DogsCaution
Kids, pregnancy, allergiesCaution
Fish, birds, rodents, reptilesDanger
extremely toxic to fish; birds out of the room
Insecticidal soap, oils, neemActive ingredient: fatty acid salts, horticultural oil, neem oil
CatsCaution
cats chewing leaves may drool or vomit
DogsSafe
Kids, pregnancy, allergiesSafe
Fish, birds, rodents, reptilesKeep out
toxic to fish; birds sensitive to sprays
Diatomaceous earth toppingActive ingredient: amorphous silica
CatsSafe
food grade only
DogsSafe
Kids, pregnancy, allergiesCaution
don't breathe the dust
Fish, birds, rodents, reptilesCaution
not near bird cages
Safesafe to stayCautionkeep away during applicationKeep outkeep out until dry and aired outDangerserious danger, don't use around them

Notes. Treat plants outdoors when you spray, as UC IPM suggests, and bring them back once dry. Remember that many houseplants (lilies, pothos, dieffenbachia) are themselves toxic to cats and dogs, so a pet chewing a treated plant is a double problem. If a child swallows a product, call Poison Control at 1-800-222-1222; for a pet, your vet or ASPCA Animal Poison Control at (888) 426-4435. Rinse eyes 15 minutes and wash skin with soap and water. See pet-safe pest control.

5. Repot if needed

For heavily infested or waterlogged plants, repot in fresh mix. Remove as much of the old soil as is safe for the roots and throw it out sealed in a bag.

What doesn't work well

  • Vinegar traps. Fungus gnats aren't attracted to fermentation, so they mostly ignore them.
  • Cinnamon on the soil. It's mildly antifungal but there's little evidence it controls gnats.
  • Neem oil alone. Plant owners who drenched with neem for weeks often still had gnats; it's short-acting and doesn't replace Bti or nematodes.
  • Showering or misting plants. It keeps the soil wetter, which helps gnats.
  • Dish soap sprays on the leaves: the larvae are in the soil.
  • Treating only the plants you see gnats on. Check every pot in the room with sticky cards.

Where fungus gnats come from

The usual culprits are bagged potting mix that stayed damp in storage, a new plant from a nursery, or adults flying in from outdoors in summer and fall. Mixes heavy in peat, compost or bark hold more water and fungus. Read where do gnats come from for other sources around the house.

Prevention

  • Store potting mix sealed, off the ground and dry; UC IPM recommends pasteurized mix. Bake small batches (30 minutes at 180 °F) for seed-starting, or solarize bags in the sun for 4 to 6 weeks.
  • Check plants for gnats before bringing them in after a summer outdoors.
  • Quarantine new plants for two weeks with a sticky card in the pot.
  • Water based on soil moisture, not the calendar.
  • Use pots with drainage and a well-draining mix (add perlite).

What people who dealt with it say

Fungus gnats are one of the most discussed pests on r/houseplants, and the long threads converge:

  • Nobody wins with one method. A long-running guide on r/houseplants sums it up: no single control hits adults and larvae at once. The winners combine sticky traps (adults), Bti or nematodes (larvae) and drier soil (eggs).
  • Months of struggle are normal. "Month 3 or 4 of this war" and "50 sticky traps" are typical. The common thread in failures is stopping Bti too early, bottom-watering it, or missing a pot.
  • Nematodes get the loudest praise. Many people who had tried mosquito bits, neem and peroxide say beneficial nematodes ended it in a week or two. A grower with 500–1,000 plants reported being gnat-free for a year and a half using top-watered Bti, with a quarter of a mosquito dunk lasting a month.
  • New potting mix is a common reinfestation source. Several people found gnats in freshly opened bags.
  • Sand works for some. A 2 cm (about 3/4 inch) layer of fine sand is a favorite cheap fix; diatomaceous earth helps only if kept dry (bottom-water), and users warn to wear a mask.
  • Hydrogen peroxide is satisfying but short-lived. People report watching larvae die within 20 minutes, then seeing adults again a few weeks later without follow-up.
  • Plug-in UV sticky traps and carnivorous plants (Cape sundews, butterworts) are popular helpers for adults.

A realistic timeline: a light infestation clears in 2–3 weeks of drier soil and sticky cards; a large collection takes 4–6 weeks of Bti or two nematode applications.

When to get help

Fungus gnats are almost always a DIY problem. Call a pro only if gnats appear in rooms with no plants, which points to water damage, a leak or a moist crawlspace. For gnats everywhere in the house, follow our broader guide to get rid of gnats.

FAQ

How do I get rid of fungus gnats?
Let the top 1–2 inches of soil dry between waterings, put yellow sticky cards at the soil surface to catch adults, and top-water with a Bti product (Bacillus thuringiensis israelensis, sold as Mosquito Bits, mosquito dunks or Gnatrol) to kill larvae. Repeat about every 5 days for three to four weeks to break the life cycle.
How do I get rid of gnats in plants without killing the plant?
Bti and beneficial nematodes (Steinernema feltiae) only affect insect larvae in the soil and are safe for houseplants, people and pets. Combined with drying out the soil and sticky cards, they clear most infestations. Repotting badly infested plants in fresh, dry mix is also safe.
Do fungus gnats hurt plants?
Adults don't. Larvae mostly eat fungi and decaying matter, but in large numbers they chew root hairs and can stunt or kill seedlings, cuttings and young plants. UC IPM notes a wilting houseplant is more often overwatered or rotting than gnat-damaged.
Why do I have fungus gnats in the house in winter?
Indoor plants use less water in winter's low light, so the soil stays wet longer if you keep the same watering schedule. Colorado State says nuisance peaks come in late fall and winter, and plants brought in from a summer outdoors often carry gnats with them.
Does hydrogen peroxide kill fungus gnats?
A drench of 3% hydrogen peroxide diluted about 1 part to 4 parts water kills larvae it touches, and plant owners report watching larvae die within minutes. It has no lasting effect and doesn't kill eggs, and there are no good controlled trials, so use it as a quick knockdown alongside Bti and dry soil, not instead of them.
Do cinnamon, sand or diatomaceous earth on top of the soil work?
Sand helps: a 1/2 to 1 inch layer of coarse sand dries fast and makes egg-laying hard. Diatomaceous earth works only while dry, so bottom-water; when wet it cakes on the surface. Wear a mask applying it. Cinnamon is a mild antifungal with little evidence against gnats.
Why won't my fungus gnats go away?
The usual reasons are stopping after a week when adults disappear, bottom-watering Bti (it must soak the top layer where larvae live), treating only some of the pots, or a new bag of potting mix bringing in a fresh batch. Keep sticky cards on every pot as a scoreboard.

Sources and real-world experience

Built from the expert sources and real discussions below — we read each one. How we research.

  1. UC IPM: Fungus Gnats
  2. Colorado State University Extension: Fungus Gnats as Houseplant and Indoor Pests
  3. Utah State University Extension: Fungus Gnats
  4. Texas A&M AgriLife Extension: Indoor Flies and Their Control
  5. Reddit r/houseplants: No single fungus gnat control method attacks adults and larvae simultaneously
  6. Reddit r/houseplants: At this point it's the fungus gnats or me
  7. Reddit r/houseplants: I am this close to buying a gun and shooting at the fungus gnats
Nothing working? When it is time to call an exterminator