You water your plant, and a little cloud of tiny black flies rises from the pot. If that sounds familiar, you have fungus gnats. They’re one of the most common houseplant pests, and the good news is that you can get rid of fungus gnats naturally, without harsh chemicals.

Below, we’ll cover why fungus gnats show up, how to confirm you have them, 12 natural remedies that work, and how to keep them from returning.
What are fungus gnats, and why are they in my houseplants?
Fungus gnats are tiny (about 1/8 inch), dark, mosquito-like flies that live in moist potting soil. They’re weak fliers, so you’ll usually see them hopping across the soil surface or hovering near the pot, not zipping around the room like fruit flies.
The adults are mostly just annoying. The real problem is the larvae: small, clear-white worms with shiny black heads that live in the top inch or two of damp soil. They feed on fungi and decaying organic matter. In heavy infestations, they also chew fine root hairs, which can stunt seedlings and young plants.
The fungus gnat life cycle takes about 3–4 weeks:
- Eggs: An adult female lays up to 200 eggs in moist soil.
- Larvae: The eggs hatch in a few days, and the larvae feed in the soil for about two weeks.
- Pupae: The larvae pupate in the soil for several days.
- Adults: New adults emerge, live about a week, and start the cycle over.
The number one cause is overwatering. Soil that stays wet is the perfect nursery. Other common sources are bags of potting mix that already contain eggs, new plants brought home from a store, and water sitting in saucers.
How to tell if you have fungus gnats: the potato slice test
Seeing small black flies near your plants is the first clue. To confirm the larvae are breeding in a specific pot, try this easy trick:
- Cut a raw potato into a 1/4-inch slice.
- Press it lightly onto the soil surface.
- Wait 24–48 hours, then lift it and look underneath.
If you see tiny, translucent larvae with black heads, that pot is an active breeding site. Test each plant so you know exactly which ones need treatment. It’s also a good way to check whether your treatment is working.
Natural remedies for fungus gnat larvae in the soil
To get rid of fungus gnats for good, start with the larvae. Every adult you see came from the soil, so treating the soil is what ends the infestation.
1. Let the soil dry out
The simplest, free fix. Wait until the top 1–2 inches of soil feel dry before watering again. Larvae need moisture to survive, and adults avoid laying eggs in dry soil. Push your finger into the soil to check instead of watering on a schedule.
2. Water with BTI (Mosquito Bits or Mosquito Dunks)
BTI (Bacillus thuringiensis israelensis) is a naturally occurring soil bacterium that kills fly and mosquito larvae. It doesn’t harm people, pets, plants or beneficial insects. Soak the bits in your watering can for about 30 minutes, then use that water every time you water for 3–4 weeks. It’s the most effective natural fungus gnat treatment available.
3. Use a neem oil soil drench
Mix about 1 teaspoon of cold-pressed neem oil and a drop of mild liquid soap into 1 quart of water. Water the soil with it. Neem disrupts larval development and discourages adults from laying eggs. Repeat every 1–2 weeks as needed.
4. Try a hydrogen peroxide drench
Mix 1 part 3% hydrogen peroxide with 4 parts water and water the soil until it starts to drain. You’ll hear it fizz as it kills larvae on contact. It breaks down into water and oxygen, so it’s gentle on most plants. It works fast but doesn’t last, so pair it with another method.
5. Water with chamomile tea
Brew a few bags of chamomile tea, let it cool completely, and use it to water. Chamomile has mild antifungal properties that reduce the fungi larvae feed on. Think of it as a helpful extra, not a standalone cure.
6. Sprinkle cinnamon on the soil
A light dusting of ground cinnamon on the soil surface works the same way: it’s naturally antifungal and makes the soil less appealing to larvae. Reapply after watering.
7. Repot with fresh soil
For a severe infestation, start over. Remove the plant, gently shake off the old soil, rinse the roots and repot in fresh, well-draining mix with added perlite or bark. Make sure the new pot has drainage holes.
Natural ways to trap adult fungus gnats
Adults only live about a week, but each female can lay up to 200 eggs. Catching them stops the next generation before it starts.
8. Yellow sticky traps
Fungus gnats are drawn to the color yellow. Because they fly low, lay the traps flat on the soil or stick them into the pot at a low angle. Replace them when they’re full. They also show you how bad the problem is and whether it’s improving.
9. Apple cider vinegar trap
Fill a small dish with apple cider vinegar and add a drop of dish soap to break the surface tension. Set it near your plants. The gnats are attracted to the smell and drown. It catches fruit flies even better, so it’s a good two-in-one for the kitchen.
How to prevent fungus gnats
Once your plants are gnat-free, these habits keep them that way:
- Hydrate from the bottom. Set the pot in a tray of water for 15–20 minutes so the roots drink while the soil surface stays dry.
- Top-dress the soil. A 1/2-inch layer of coarse sand, fine gravel or food-grade diatomaceous earth gives adults nowhere to lay eggs.
- Use well-draining soil and pots with drainage holes. Soggy soil is an open invitation.
- Empty saucers after watering so water doesn’t sit under the pot.
- Quarantine new plants for a week or two and check them with the potato slice test before moving them near your collection.
- Clean up fallen leaves and other debris from the soil surface.
Fungus gnat FAQs
Are fungus gnats harmful to plants?
Adult fungus gnats don’t harm plants. The larvae can damage roots in large numbers, especially in seedlings, cuttings and young plants. Healthy mature plants usually tolerate a light infestation.
Are fungus gnats harmful to people or pets?
No. Fungus gnats don’t bite, sting or spread disease. They’re a nuisance, not a health risk.
How long does it take to get rid of fungus gnats?
Plan on 3–4 weeks of consistent treatment. That’s one full life cycle, which gives every egg and pupa in the soil time to hatch and be killed.
What is the fastest natural way to kill fungus gnats?
A hydrogen peroxide soil drench kills larvae on contact, and sticky traps start catching adults right away. For lasting results, follow up with BTI and drier soil.
Why do I have fungus gnats in the winter?
Indoor plants need less water in winter because they grow more slowly and get less light. If you keep watering on your summer schedule, the soil stays wet longer, which is exactly what fungus gnats need.
What’s the difference between fungus gnats and fruit flies?
Fungus gnats are dark, long-legged and hover around plant soil. Fruit flies are tan with red eyes and gather around ripe fruit, trash and drains.
Will fungus gnats go away on their own?
Rarely. As long as the soil stays moist, they keep breeding. If you let the soil dry out between waterings, their numbers will drop, but adding traps and BTI clears them much faster.
Do fungus gnats come from potting soil?
Often, yes. Bagged potting mix can contain eggs or larvae, especially if it was stored open or damp. Keep bags sealed, and freeze or bake new mix before use if gnats have been a problem.
Does cinnamon get rid of fungus gnats?
Cinnamon helps a little. It’s naturally antifungal, so it reduces the fungi larvae feed on, but it won’t clear an infestation by itself. Use it alongside drier soil, sticky traps and BTI.
Is BTI safe for pets and edible plants?
BTI only targets the larvae of flies and mosquitoes and is generally considered safe around people and pets. Check the product label before using it on herbs or vegetables you plan to eat.
Healthy soil, happy plants
Fungus gnats are a sign your soil is staying too wet, and that’s easy to fix. Dry things out, trap the adults, treat the larvae with a natural option like BTI or neem, and give it a full month. Your plants will be gnat-free and healthier for it.
Ready to grow with confidence? Explore Gardenuity’s garden kits and plant care guides for everything you need to keep your indoor and outdoor gardens thriving.