How to Get Rid of Fungus Gnats
The little flies around your houseplants and seedlings, and the honest plan that works
Few things test a plant lover's patience like a cloud of tiny flies lifting off the soil every time you water. They are annoying, they multiply fast, and they seem impossible to shake. The good news is that fungus gnats are very beatable once you understand what they are and break their life cycle properly. This is the honest plan, with no miracle cures.
What fungus gnats are
Fungus gnats are small dark flies, about 1/8 inch long, or 2 to 4 mm, that live in damp potting mix. The adults you see flying around are weak fliers and mostly harmless. They do not bite and they do not eat your plants. They are a nuisance, and a sign that conditions are right for them to breed.
The real trouble is below the surface. The adults lay eggs in the top inch of moist mix, and the larvae that hatch are tiny pale grubs with a dark head. They feed on fungi, decaying organic matter and the fine feeder roots of your plants. In a strong, established houseplant this rarely matters. In a tray of seedlings or a young plant with a small root system, the larvae can do real damage and set plants back or kill them.
Why they appear
Fungus gnats want one thing above all, damp mix that stays damp. The most common cause is overwatering, soggy potting mix and poor drainage, which keeps the top layer wet enough to breed in. A rich, peaty, organic potting mix gives the larvae plenty to eat, so it makes things worse.
They also hitch a ride. New plants from the store often arrive with gnats already in the pot, and fresh bags of potting mix can carry eggs or larvae, especially if the bag has been open and damp for a while. Once they are in the house, any pot that stays wet becomes a nursery, and they spread from there.
How to confirm them
Before you treat, make sure fungus gnats are what you have.
- Yellow sticky traps at soil level. Lay or stand a yellow sticky trap right at the soil surface. Fungus gnats are drawn to yellow and will stick to it, which both confirms the problem and starts thinning the adults.
- The raw potato test for larvae. Push a chunk of raw potato cut-side down into the top of the mix and leave it a few days. Lift it and check the underside. Larvae are drawn to it and will gather there if they are present.
- Watch them lift off. Brush the plant or water it and watch. Fungus gnats rise from the soil in a little cloud, then settle back onto the mix and pot.
The control plan
Beating fungus gnats means clearing the adults you can see and the eggs and larvae you cannot, over a full life cycle. Use several of these together for best results.
- Dry out the top inch. This is the single most effective step. Let the top inch of mix dry out between waterings. The larvae and eggs cannot survive in dry mix, and the adults have nowhere to lay. Many light infestations clear on this alone.
- Bottom-water. Water from below by standing the pot in a tray and letting the mix wick moisture up. This keeps the surface drier while the roots still drink, which starves the breeding layer.
- Yellow sticky traps for adults. Keep traps at soil level to knock down the flying adults and stop them laying. They will not fix the soil on their own, but they cut the next generation.
- A BTi drench. BTi is Bacillus thuringiensis israelensis, a naturally occurring soil bacterium sold as mosquito bits or mosquito dunks. Steep the bits or a piece of dunk in your watering water, then water the plants with it. The BTi targets the larvae in the mix and is harmless to plants and pets. Apply it at every watering through a 3 to 4 week cycle so you catch each batch of larvae as it hatches.
- A sand or fine gravel top layer. A half-inch layer of coarse sand or fine gravel over the mix dries fast and gives the adults nowhere to lay, blocking the cycle at the surface.
- A diluted hydrogen peroxide drench, last resort only. Mix 1 part 3% hydrogen peroxide to 4 parts water and drench the soil. It fizzes on contact and kills larvae, but it is harsh on soil life and roots, so use it only as a last resort, not as your routine.
Seedlings are the most at risk, so treat any seed tray showing gnats promptly before the larvae chew through those tiny roots.
Prevention
Once they are gone, keep them gone by removing what they need.
- Water less, and let the surface dry between waterings.
- Use pots with drainage holes and empty the saucers, no standing water.
- Quarantine new plants for a couple of weeks and watch for flies before they join the rest.
- Store potting mix sealed and dry, not in an open bag in a damp corner.
- Use a fast-draining seed mix for seedlings rather than a heavy, water-holding mix.
- Keep a yellow sticky trap on the seed shelf as an early warning.
Catch problems before they spread
The in-app Pest and Plant Doctor tools help you identify what is bothering a plant and walk you through the fix, with reminders to keep the cycle broken.
Open the App →Common questions
What are the tiny flies around my houseplants?
They are almost certainly fungus gnats, small dark flies about 1/8 inch, or 2 to 4 mm, that live in damp potting mix. The adults are a harmless nuisance that drift up when you water or brush a plant. The damage comes from their larvae in the top inch of soil, which feed on fungi, decaying matter and fine roots. If the flies hover around fruit on the counter instead of the soil, those are fruit flies, a different insect.
Why do I keep getting fungus gnats?
They thrive in constantly damp, rich potting mix, so the usual cause is overwatering, soggy mix or poor drainage. They also arrive on new plants and in fresh bags of potting mix, then breed in any pot that stays wet. As long as the top inch of mix stays moist there is somewhere for the next generation to lay eggs, so the flies keep coming back until you let that layer dry out.
Do fungus gnats harm plants?
The adults do not harm plants, they are mostly an annoyance. The larvae can damage fine feeder roots, and this matters most for seedlings and young plants with small root systems, which can be set back or killed. Established houseplants usually shrug off a light infestation, but a heavy one is worth controlling.
How long does it take to get rid of fungus gnats?
Plan on a 3 to 4 week cycle, because that covers the gnat life cycle and clears the eggs and larvae already in the mix, not just the adults you can see. Let the top inch of mix dry between waterings, run yellow sticky traps for the adults, and use a BTi drench at every watering through the cycle. Stopping early lets a fresh generation hatch and the problem returns.
Does cinnamon work on fungus gnats?
Honestly, only a little. Cinnamon has mild antifungal properties, so a dusting on the soil surface can slow the fungi the larvae feed on, but it does not kill the larvae and it will not clear an infestation on its own. Treat it as a minor helper at best. Drying out the top inch of mix, sticky traps and a BTi drench do the real work.
Source: university extension guidance on fungus gnats in houseplants and greenhouses.
See also: Pest Management Guide →
Related guides
See what to plant this month
Pick your region for a month-by-month calendar tuned to your climate.
Find your region →