If you’ve noticed tiny black flies hovering around your houseplants, you’re probably dealing with fungus gnats. They look pretty gross, but they’re more annoying than dangerous. The real issue isn’t the flies themselves, it’s the damp soil they love. Once you fix that, the problem usually fades faster than you expect. Here’s how to get rid of these nuisances for good.
Let the top layer of soil dry out properly.
Fungus gnats lay their eggs in moist compost, especially in the top couple of centimetres. If the surface never fully dries, they have the perfect nursery. Constantly damp soil is an open invitation. Start by spacing out your watering slightly. Stick your finger into the top of the soil and only water when it feels dry at least an inch down. Most houseplants tolerate this far better than people think. Drying that top layer alone can break the breeding cycle.
Bottom-water instead of pouring from the top.
When you water from above, the surface stays damp longer, and that’s exactly what gnats want. Bottom-watering keeps the top layer drier while still hydrating the roots. Place the pot in a tray of water and let it soak up moisture from below for about 20 to 30 minutes. Then remove it and let excess water drain away. This simple change often reduces gnat numbers within a couple of weeks.
@gardening.with.ish 🪰🌿Get rid of those flies on your houseplants with my top 3 tips to get rid of fungus gnats flies off your indoor plants. I’ll go through the most common cause of those flies too 🪰#houseplants #planttips #fungusgnats #plantcare #lifehacks ♬ original sound – Gardening with Ish 🇬🇧
Remove any decaying plant matter.
Dead leaves sitting on the soil aren’t just untidy; they create a soft, moist environment that larvae love. Even small bits of organic debris can feed them. Clear away fallen leaves, old petals, and anything mouldy on the surface. Keeping the top of the pot clean makes it much less appealing for egg-laying adults.
Use yellow sticky traps to catch the adults.
Those bright yellow sticky cards aren’t pretty, but they work. Adult fungus gnats are attracted to yellow and get stuck quickly. This doesn’t solve the root problem on its own, but it reduces the number of adults laying new eggs. Place one or two traps near the affected plant. Within days, you’ll see how many you’re actually dealing with. It’s oddly satisfying and gives you a clear sign that numbers are dropping.
Add a layer of sand or gravel on top.
Covering the soil surface with a thin layer of horticultural sand or fine gravel makes it harder for gnats to lay eggs. It also dries out faster than compost. The layer doesn’t need to be thick, just enough to create a barrier. This works especially well alongside reduced watering, as it physically blocks access to the moist soil beneath.
Treat the soil with biological control.
If the problem is stubborn, beneficial nematodes are very effective. These microscopic organisms target fungus gnat larvae in the soil but are harmless to plants and pets. You mix them with water and apply to the compost. They actively seek out and destroy the larvae, interrupting the life cycle at its source. Within a couple of weeks, the population usually collapses.
Try a diluted hydrogen peroxide flush.
A mild solution of hydrogen peroxide mixed with water can kill larvae on contact. It bubbles when it hits organic matter, which helps it penetrate the top layer of soil. Use a weak mix, roughly one part 3 percent hydrogen peroxide to four parts water. Water the plant once with this solution and allow it to drain. It’s a short-term fix but can dramatically reduce numbers quickly.
Repot if the infestation is heavy.
If the soil is very compacted, mouldy, or permanently wet, it might be easier to start fresh. Gently remove the plant, shake off as much old compost as possible, and repot into fresh, well-draining soil. Make sure the new pot has proper drainage holes. Often, gnats appear because soil stays soggy for too long. Improving drainage prevents the issue from returning.
Improve air circulation around plants.
Still, humid air keeps compost damp longer. A small fan or better spacing between pots can help the surface dry more quickly after watering. Even opening a window regularly can reduce excess moisture in the room. Fungus gnats thrive in stagnant, humid conditions. Moving air makes life harder for them.
@j.l.perrone Replying to @suejrichards5 got questions about fungus gnats? Let me know what you want to know! #fungusgnats #houseplantflies #sciaridfly #biologicalcontrol ♬ original sound – Jane Perrone
Avoid overfeeding with liquid fertiliser.
Excess nutrients in damp soil encourage microbial growth, which larvae feed on. Over-fertilised compost can become a buffet for developing gnats, so stick to recommended feeding amounts and avoid fertilising when the plant isn’t actively growing. Healthy roots and balanced soil reduce the organic matter that attracts larvae.
Check new plants before bringing them home.
Fungus gnats often arrive with new purchases. Garden centres and supermarkets frequently overwater stock, creating ideal breeding conditions. Inspect the soil surface before buying. If you see tiny flies lifting off when the pot is disturbed, it’s best to leave it behind or quarantine it at home until you’re sure it’s clear.
Be patient and consistent.
Fungus gnats have a short life cycle, usually around three to four weeks. If you disrupt that cycle at multiple points, the population will decline steadily. The key is consistency rather than panic. Reduce moisture, trap adults, target larvae, and maintain better watering habits. Within a month, most infestations are under control, and your plants can go back to being the only thing growing in their pots.