They appear suddenly, hovering around your plants and flying into your face whenever you sit nearby. You try spraying something. You try yellow sticky traps. You try watering less. They get better for a week, then they're back.
If this sounds familiar, you've probably been fighting fungus gnats the wrong way. Not because you're doing something wrong, but because the treatments most people use fix the symptom and leave the cause completely untouched.
Here's how to actually get rid of them.
What Fungus Gnats Actually Are
Fungus gnats are tiny flies, about 2 to 3mm long, that look a bit like miniature mosquitoes. The ones you're swatting at are the adults, and they're relatively harmless on their own. They don't bite. They don't damage plants directly.
The problem is the larvae.
Adult gnats lay their eggs in the top few centimetres of moist soil. The larvae hatch and feed on the organic material in your potting mix, including fine root hairs and young roots. A mild infestation is annoying but usually manageable. A heavy one can seriously stunt plants, especially seedlings and younger plants.
One adult female can lay up to 200 eggs in her short lifespan. The lifecycle from egg to adult is about three to four weeks, which is why populations explode so quickly.
Why They're So Hard to Get Rid Of
Most people attack the adults. Yellow sticky traps, sprays around the pot, apple cider vinegar traps on the windowsill. These catch adults, but they don't touch the eggs or larvae in the soil.
So even if you catch every adult flying around today, the larvae in the soil are already developing. In three weeks, you have a new batch of adults. And the cycle continues.
Some people use products like diluted hydrogen peroxide watered into the soil, or biological controls like beneficial nematodes or Bacillus thuringiensis israelensis (BTI). These actually work on the larvae and are a real step up from traps alone. But even these are treating the symptom.
The root cause is the soil itself.
Why Wet, Dense Soil Is the Problem
Fungus gnats need two things to breed: moisture and organic material to eat.

Standard potting mix gives them both in abundance. Dense, fine potting mix holds moisture in the top layer of soil for days. That's the perfect breeding environment. The gnats can sense it. They're attracted to moist, warm, organic-rich soil, and standard potting mix is essentially an invitation.
If your soil dries out quickly on top, gnats can't establish themselves. The eggs dry out and don't hatch. The lifecycle breaks before it gets started.
This is the actual fix.
How Changing the Soil Stops Gnats
A chunky potting mix, one with larger pieces of bark or other coarse material, dries out much faster on the surface than dense, fine potting mix.

Here's why this matters. After you water, water runs down through the larger gaps in the mix and drains out the bottom. The surface of the mix dries out within a day or two. No persistent moisture means nowhere for gnats to lay eggs successfully.
You don't need to use special sprays or go hunting for larvae. The conditions for breeding simply don't exist anymore.
Orchiata orchid bark is a good material to add to your potting mix for this reason. It's made from aged New Zealand pine bark and creates large gaps in the mix that water drains through quickly. The top dries out fast. Gnats move on.
You can mix it through your existing potting mix, or use it more heavily in the top third of the pot where gnats prefer to lay eggs. Even if you don't want to repot everything, refreshing the top layer of your pots with chunkier material can break the cycle.
A Plan to Clear an Existing Infestation
If you've already got gnats, a two-step approach works well.
Step one: break the current cycle. Use a BTI product (sold as Gnatrol or similar) or diluted hydrogen peroxide (one part hydrogen peroxide to four parts water) watered into the soil to knock back the existing larvae. Sticky traps help catch the adults that are already flying around. This deals with what's already there.
Step two: change the conditions so it can't restart. Repot or refresh your potting mix to something chunkier that dries out faster. Orchiata bark mixed through your potting mix works well here. Water less often and let the top of the mix dry out fully between waterings.
Without step two, gnats will always come back. With step two, they have nowhere to breed.
The Watering Habit That Attracts Gnats
A lot of people water their houseplants on a schedule. Every Sunday, every three days, whatever the routine is. The problem is that schedule-based watering doesn't account for how fast the soil actually dries out.
In winter, plants dry out much more slowly. In a cool room, even slower. So watering every three days in summer might be fine, but the same schedule in winter leaves the soil permanently damp, which is exactly what gnats love.
Switching to checking before watering makes a significant difference. Stick your finger into the soil a few centimetres. If it's still damp, wait. Only water when the top layer is genuinely dry.
With dense potting mix, this check might tell you the soil is never really dry. That's a sign to change the mix.
Which Plants Are Most at Risk
Fungus gnats can infest any pot with moist soil, but some are more vulnerable than others.
Aroids like monsteras, pothos, philodendrons, and anthuriums often get hit hard because they're usually grown in moisture-retaining mixes and people tend to water them frequently. Seedlings and young plants are especially vulnerable because the larvae attack fine root hairs that young plants need.
Succulents and cacti, with their fast-draining mixes and infrequent watering, rarely have gnat problems. That tells you something.
One More Thing: Don't Skip Drainage Holes
No drainage hole means water pools at the bottom of the pot. Even if the top dries out, the bottom stays wet. Gnats can still breed in the lower layers.
Every pot should have drainage holes and shouldn't be sitting in a saucer full of water. Empty the saucer after watering. This sounds basic but it's often overlooked.
Putting It Together
Fungus gnats are a soil and watering problem, not just a pest problem. Traps and sprays are useful for managing an existing population, but if you want them gone for good, the soil needs to change.
Chunkier potting mix, fast drainage, a top layer that dries out quickly, and watering only when needed. That's the combination that breaks the cycle.
Orchiata orchid bark is available in sizes from 3mm to 25mm, so you can mix in something appropriate for whatever you're growing. It ships free across Australia and holds its structure for years, so you won't be replacing it every season. For most houseplants, the Classic (6 to 9mm) or Power (9 to 12mm) grade works well mixed through standard potting mix.
Fix the soil, and the gnats fix themselves.