Tiny Flies in My Houseplant Soil: How to Get Rid of Fungus Gnats for Good

Those tiny black flies hovering around your plants are fungus gnats, and they're there because your soil is staying too wet. The adults are annoying but harmless; the real problem is their larvae, which live in damp soil and feed on organic matter and sometimes fine roots. The fix is a one-two punch: dry out the conditions that attract them, and break their breeding cycle. Do both and they're gone in two to three weeks.

How to tell it's fungus gnats (and not fruit flies)

If they lift off the soil when you water, it's fungus gnats.

Why you have them

Fungus gnat larvae need consistently moist organic soil to survive. If gnats have moved in, it almost always means the top layer of your soil never dries out — usually from watering too often. They also hitchhike in on new plants and can come in bags of potting soil.

The step-by-step elimination plan

Step 1: Let the top of the soil dry out

Larvae die in dry soil. Water only when the top 1–2 inches are fully dry — for most houseplants this is correct care anyway. This single change collapses most infestations.

Step 2: Trap the adults with yellow sticky traps

Adults live about a week and lay up to 200 eggs. Yellow sticky traps placed at soil level catch them before they lay. [AFFILIATE: yellow sticky traps] Expect the traps to fill fast the first few days — that's the plan working. Replace them as they fill.

Step 3: Kill the larvae in the soil

Two effective, plant-safe options:

Step 4: Cut off their food and shelter

Step 5: Quarantine and prevent

How long does it take?

You'll see fewer adults within days of putting traps out, but the full cycle — egg, larva, pupa, adult — takes 3–4 weeks, so keep the traps and BTI going for a month to catch every generation. If you still have gnats after that, some pot is staying wet; find it.

FAQ

Do fungus gnats damage plants? Adults don't. Larvae mostly eat fungus and decaying matter, but in heavy infestations they nibble fine roots, which can stunt seedlings and weaken small plants. Mature houseplants usually shrug them off — the gnats are more of a nuisance to you than a threat to the plant.

Can fungus gnats live in my drains or elsewhere in the house? Drain flies are a different insect. Fungus gnats need moist soil or similar organic material, so your pots (or a bag of soil) are essentially always the source.

Does cinnamon on the soil work? Cinnamon has mild antifungal properties that reduce the larvae's food supply, so it can help a little — but it won't clear an infestation alone. Use it alongside drying out, traps, and BTI, not instead of them.

Related: How to Tell If a Plant Is Overwatered vs Underwatered · Why Are My Pothos Leaves Turning Yellow?