Fungus gnats in houseplants are tiny, dark flies that breed in damp potting mix. The adults are annoying but do not bite. The real work happens below the surface, where their larvae feed on fungi and decaying matter in the soil, and sometimes on roots. The fix is simple: dry the soil out, trap the adults, and treat the larvae.
This guide explains what causes fungus gnats in houseplants, how to tell them apart from other small flies, and seven easy ways to get rid of them for good. It also covers how long it takes and how to keep them from coming back.
If you have fungus gnats on houseplants right now, start with the quick answer below. Struggling with soggy soil as well? Our guide to the signs of overwatering plants shows how to spot the root cause.
Quick Answer: How to Get Rid of Fungus Gnats in Houseplants
Here is the short version of how to get rid of fungus gnats in houseplants:
- Let the top inch of soil dry out between waterings.
- Put yellow sticky traps near the soil to catch adults.
- Water with a Bti product (like mosquito bits) to kill the larvae.
- Water from the bottom so the surface stays dry.
- Add a thin layer of coarse sand or fine gravel on top.
- Try beneficial nematodes for stubborn cases.
- Repot in fresh potting mix if the infestation is heavy.
Not sure how often to water? Use our indoor watering schedule so you never guess.
What Are Fungus Gnats in Houseplants?
Fungus gnats are small, slender, black or dark brown flies, roughly the size of a fruit fly or a bit smaller. They often run across the soil or flutter weakly around windows and lamps. They are most noticeable when you water a plant and a few take off. Most trouble with fungus gnats on your plants begins in the soil, not on the leaves.
Are fungus gnats in houseplants harmful? To people, no. Virginia Cooperative Extension says adults do not bite. To plants, the answer depends on the plant. Mature houseplants usually shrug them off, but UW-Madison Extension notes that heavy larval numbers can damage roots. Seedlings and young plants are most at risk.
Want healthier plants overall? Browse our indoor plants for beginners for tough, forgiving choices.
Fungus Gnats vs. Fruit Flies
Spotting fungus gnats in indoor plants is easy once you know what to look for. Many people mistake them for fruit flies. This table shows the difference.
| Feature | Fungus gnats | Fruit flies |
|---|---|---|
| Where you see them | Around houseplants and soil | Around ripe fruit, trash, and drains |
| Look | Slim, dark, mosquito-like | Tan or brown, rounder body |
| Flight | Slow and weak | Quicker |
| What they eat | Fungi and decaying matter in soil | Ripe or rotting fruit |
| Vinegar trap | Does not catch them | Catches them |
UW-Madison Extension points out that vinegar traps do not work for monitoring fungus gnats. If a vinegar trap catches the flies, you likely have fruit flies instead.
Why You Have Fungus Gnats in Houseplants
Fungus gnats in houseplants almost always come down to moisture. The adults look for damp potting mix rich in organic matter, and females lay their eggs there. Common causes include:
- Overwatering or poor drainage. Virginia Cooperative Extension says wet soil promotes the fungi and decay that larvae feed on.
- Pots that never dry. Winter growth slows, so plants drink less and soil stays wet longer.
- New plants or soil. A plant from the nursery can bring gnats inside. UW-Madison Extension says fungus gnats on houseplants often show up in fall, when plants that spent summer outdoors come back indoors.
- Organic debris. Dead leaves or old mulch on the soil surface gives larvae food.
- Saucers of standing water. Soggy pots invite gnats.
Watering by feel? Learn how often garden plants should be watered and apply the same soil check to your pots.
The Fungus Gnat Life Cycle
Knowing the life cycle explains why one treatment is rarely enough.
| Stage | What happens |
|---|---|
| Eggs | Laid in damp soil, hatch in about 4 to 7 days |
| Larvae | Whitish, legless, with a black head. Live in the top 2 to 3 cm of soil |
| Pupae | Transform into adults in the soil |
| Adults | Live only about 5 to 10 days, and the females lay eggs right away |
The whole cycle takes roughly three to five weeks, depending on temperature. Colorado State University Extension says a female can lay 75 to 200 eggs. This is why gnats seem to explode. To control fungus gnats in houseplants, you have to break the cycle at more than one stage.
7 Easy Ways to Get Rid of Fungus Gnats in Houseplants
1. Let the Soil Dry Out
This is the most important fix for fungus gnats in houseplants. Fungus gnat larvae need moist soil. Water only when the top inch is dry. Virginia Cooperative Extension suggests letting the top half inch dry out, and a bit more is fine for most plants. Skip this step for moisture-loving plants, and just keep the surface from staying soggy.
2. Use Yellow Sticky Traps
Yellow sticky cards catch the adults before they lay eggs. Place them flat on the soil or on small sticks near the plant. UC IPM suggests cutting traps into small squares and attaching them to sticks. Traps are the easiest way to monitor fungus gnats on houseplants. They do not stop larvae, but they show you how bad the problem is, and replacing them regularly keeps them working.
3. Treat the Soil With Bti
Bacillus thuringiensis israelensis, or Bti, is a natural bacterium that kills fungus gnat larvae. You can find it in products like mosquito bits and mosquito dunks. UW-Madison Extension says Bti does not affect eggs, pupae, or adults, so repeat treatments are needed. Mix it with water and use it to water the plant so the Bti reaches the larvae. Bti is a favorite for fungus gnats in potted plants because it is simple to use. Always follow the label.
4. Water From the Bottom
North Carolina State Extension suggests watering from the bottom when possible, so the soil surface stays dry where gnats lay eggs. Set the pot in a tray of water for 20 to 30 minutes, then let it drain well.
5. Add a Dry Top Layer
Some gardeners cover the soil with a thin layer of coarse sand or fine gravel. Evidence for this method is limited, but it can keep the surface drier and make it harder for females to lay eggs. Use it along with the other fixes, not alone.
6. Try Beneficial Nematodes
Beneficial nematodes (Steinernema feltiae) are tiny living organisms that attack fungus gnat larvae. UC IPM lists them as a biological control, and Purdue Extension says they do not injure plants. They come in a pack that you mix with water and pour on the soil. They need to be fresh, so check the instructions and order from a reputable seller.
7. Repot With Fresh Mix
Repotting is the reset button for fungus gnats in houseplants. For a heavy infestation, repot the plant in fresh, well-draining potting mix and a clean pot with drainage holes. Remove as much old soil as you can, and check the roots for rot. Throw the old mix away, outside.
As a last resort, Virginia Cooperative Extension says a labeled houseplant insecticide drench can be used for severe cases, but it must go together with fixing the overwatering. Follow the label, and keep pets and children away.
Ready for a stronger setup? Our container vegetable gardening guide explains drainage, pots, and potting mix in detail.
How Long Does It Take to Get Rid of Fungus Gnats in Houseplants?
Fungus gnats in houseplants usually clear up with consistent care, so plan on three to four weeks. Adults live only a few days, but eggs and larvae in the soil keep new adults coming. Keep the soil drier, keep traps out, and repeat any Bti or nematode treatment as the label directs. If you still see gnats after a month, check for soggy spots, poor drainage, or a plant you missed.
How to Prevent Fungus Gnats in Houseplants
Once you clear them, keep them away:
- Check before you water. Press a finger into the soil first.
- Use pots with drainage holes and empty saucers after watering.
- Inspect new plants. Keep them apart from your collection for a week or two.
- Store potting mix tightly sealed.
- Remove dead leaves and debris from the soil surface.
- Do not bury kitchen scraps in houseplant pots. If you compost, learn how to make compost at home in a bin instead.
- Start seedlings in fresh mix. Seedlings are the most vulnerable. See how to start seeds indoors the right way.
What Does Not Work
Not every tip for fungus gnats in houseplants that you read online is helpful.
- Vinegar traps do not catch fungus gnats.
- Only spraying adults will not help, because larvae keep producing new ones.
- Watering more often “to flush them out” makes the problem worse.
Is a DIY Fix Enough for Fungus Gnats in Houseplants?
For most households, yes. Drying the soil and using sticky traps solves many cases. Add Bti or nematodes for stubborn ones.
Still, be realistic. Heavy infestations on seedlings, or in a greenhouse with many plants, can take longer. Results depend on your watering habits, your potting mix, and the plants themselves, so nothing guarantees quick success. If fungus gnats in houseplants keep returning, the cause is nearly always soil that stays too wet.
Plant looking limp too? Check the signs of underwatered plants to make sure you are not overcorrecting.
Conclusion
Fungus gnats in houseplants are a sign of damp soil, not a sign that you are a bad plant parent. Let the top layer dry, trap the adults, treat the larvae with Bti or nematodes, and be patient for a few weeks. With better watering habits, you will keep your plants gnat-free. If you remember one thing about fungus gnats in houseplants, remember the soil.
For more beginner-friendly plant care, read our simple tips for healthy plants.
Ready to give your plants a fresh start? Pick one pot, fix the watering, and set one sticky trap today.
Frequently Asked Questions
What causes fungus gnats in houseplants?
Fungus gnats appear when potting soil stays damp. Females lay eggs in moist soil with organic matter, and the larvae feed on fungi and decaying material. Overwatering, poor drainage, slow winter growth, and new plants from the store are the most common causes of an infestation.
Are fungus gnats harmful to plants or people?
They do not bite people. For plants, adults are harmless, but larvae can damage roots when numbers are high. Mature houseplants usually tolerate a few, while seedlings and young plants are more vulnerable. Treat the problem early, especially on small or delicate plants.
How do I get rid of fungus gnats in houseplants fast?
Let the top inch of soil dry out, set yellow sticky traps near the pot, and water with a Bti product to kill larvae. Repeat over three to four weeks. Water from the bottom and fix drainage so the soil does not stay wet.
Does mosquito bits kill fungus gnats?
Mosquito bits contain Bti, a bacterium that kills fungus gnat larvae in the soil. It does not kill eggs, pupae, or adults, so repeat the treatment as the label says and keep sticky traps out to catch the adults. Bti is considered low risk for people and pets when used as directed.
How long do fungus gnats live?
Adults live about five to ten days, but the full life cycle takes roughly three to five weeks depending on temperature. That is why gnats can return after a week if larvae are still in the soil. Keep treating for several weeks.
Can I repot to get rid of fungus gnats in houseplants?
Repotting in fresh, well-draining mix helps in heavy cases, since it removes larvae and eggs. But if you keep overwatering, gnats will return. Repot into a clean pot, and combine it with drier soil, empty saucers, and sticky traps for the best results.
Get a plant care checklist every Sunday. Join the Almanac newsletter on the Fernwood homepage and get one simple email a week.