
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.

- 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)

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




























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?
How do I get rid of gnats in plants without killing the plant?
Do fungus gnats hurt plants?
Why do I have fungus gnats in the house in winter?
Does hydrogen peroxide kill fungus gnats?
Do cinnamon, sand or diatomaceous earth on top of the soil work?
Why won't my fungus gnats go away?
Sources and real-world experience
Built from the expert sources and real discussions below — we read each one. How we research.
- UC IPM: Fungus Gnats
- Colorado State University Extension: Fungus Gnats as Houseplant and Indoor Pests
- Utah State University Extension: Fungus Gnats
- Texas A&M AgriLife Extension: Indoor Flies and Their Control
- Reddit r/houseplants: No single fungus gnat control method attacks adults and larvae simultaneously
- Reddit r/houseplants: At this point it's the fungus gnats or me
- Reddit r/houseplants: I am this close to buying a gun and shooting at the fungus gnats