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 11, 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
about 1/8 inch; slender, black, long legs and antennae
Breed in
the top 1–2 inches of moist potting mix
Life cycle
about 3–4 weeks at room temperature
Harm
adults don't bite; larvae can damage roots of seedlings and cuttings
Best tools
dry soil, yellow sticky cards, Bti soil drench

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 about 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 100–300 eggs in moist, organic soil. Per UC IPM, at about 75 °F eggs hatch in about 3 days and larvae feed for around 10 days before pupating in the soil. Adults emerge a few days later and live about a week. The whole cycle takes three to four weeks, 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 in the top inch or two 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.

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. 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 soil bacterium that kills fly larvae and nothing else. Utah State and UC IPM both recommend it for fungus gnats in houseplants. It's sold as granules or "mosquito bits" and as liquid larvicides.

  • 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.
  • Use it every time you water for 3–4 weeks.
  • Bti breaks down fast in light and needs to contact the larvae, so repeat applications matter.

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) and predatory mites (Stratiolaelaps scimitus, sold as Hypoaspis) are effective, especially for big plant collections and greenhouses.
  • Hydrogen peroxide drench (3% diluted 1:4) kills some larvae on contact. Helpful, but not a substitute for drying the soil.
  • Insecticides: pyrethrin sprays kill adults in the air but don't solve the soil problem. Colorado State notes pyrethrins are relatively low-toxicity; follow the label.

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.
  • 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 and dry; consider baking small batches (30 minutes at 180 °F) for seed-starting.
  • 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).

Real-world tips from plant owners

Houseplant forums agree on a few points: drying the soil out alone is often enough for a light problem; sticky cards turn yellow-black in a week if you have a real infestation; and Bti water is what finally ended stubborn cases where everything else failed. The most common mistake is stopping too early when the adults disappear, then seeing them again two weeks later.

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, lay yellow sticky cards flat on the soil to catch adults, and water with a Bti product (Bacillus thuringiensis israelensis) to kill larvae. Keep it up for three to four weeks to break the life cycle.
How do I get rid of gnats in plants without killing the plant?
Bti is a bacterium that only affects fly larvae and is safe for houseplants, people and pets. Combined with drying out the soil and sticky cards, it clears most infestations without harsh chemicals. 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. Healthy mature houseplants usually tolerate them.
Why do I have fungus gnats in the house in winter?
Indoor plants dry more slowly in winter's low light, so the soil stays wet longer. Gnats can breed year-round indoors. A new bag of potting mix can also bring them in.
Does hydrogen peroxide kill fungus gnats?
A diluted drench of 3% hydrogen peroxide (about 1 part to 4 parts water) is a popular home remedy that kills some larvae on contact, but extension sources rate it below Bti and drying out the soil. Use it as a supplement, not the main plan.
Do cinnamon or sand on top of the soil work?
A 1/2-inch layer of coarse sand or fine gravel helps: the surface dries fast and females avoid laying eggs there. Cinnamon is a mild antifungal with little evidence against gnats.

Sources and real-world experience

This article draws on real stories from forums and reviews, not generic advice. We quote what worked and what didn't.

  1. UC IPM: Fungus Gnats
  2. UC IPM Pest Notes: Fungus Gnats (PDF)
  3. Colorado State University Extension: Fungus Gnats as Houseplant and Indoor Pests
  4. Utah State University Extension: Fungus Gnats
  5. Colorado State University Agricultural Biology: Fungus gnats
Nothing working? When it is time to call an exterminator