How to Get Rid of Gnats

Those little gnats drifting around your houseplants or sink are almost always fungus gnats, and they breed in damp soil. The adults you see are harmless and short-lived, but they lay eggs in the top layer of wet potting mix, and the larvae feed on roots and fungus down there. Dry the soil out, trap the adults, and keep at it for a couple of weeks, and the swarm is gone.

What you'll need

  • Yellow sticky traps
  • A half inch of sand or fine gravel
  • Apple cider vinegar and dish soap
  • Hydrogen peroxide (3%, optional)

Step 1: Work out which gnat you have

Gnats around plants are fungus gnats, breeding in the soil. Gnats around the sink are drain gnats, breeding in the drain. Gnats hovering over fruit are usually fruit flies. Most of the time it is the plant kind, so that is the focus here.

Step 2: Let the soil dry out

Fungus gnats need moist topsoil to breed, so the main fix is to stop overwatering. Let the top inch or two of soil dry fully between waterings. The larvae cannot survive in dry soil, and this alone breaks most of the cycle.

Step 3: Cap the soil with sand

Spread a half inch of sand or fine gravel over the top of the soil. It dries fast on the surface and blocks the adults from reaching the damp soil to lay eggs. Water from below, or pour carefully so the top layer stays dry.

Step 4: Drench the soil if needed

For a stubborn pot, mix one part 3% hydrogen peroxide with four parts water and use it the next time you water. It fizzes briefly and kills the larvae in the soil, then breaks down into water and oxygen.

Step 5: Trap the adults

Stand yellow sticky traps in the pots or lay them flat on the soil. The adults are drawn to yellow and stick fast. A small bowl of apple cider vinegar with a few drops of dish soap near the plants catches more.

Pro tip Overwatering is the real cause. If you go back to keeping the soil soggy, the gnats come right back, so ease off the watering can for good.

Step 6: Repeat for two to three weeks

The full life cycle runs a few weeks, so keep the soil dry, keep the traps out, and refresh them until you stop seeing adults.

Common mistakes

Keeping the soil wet Soggy topsoil is where they breed. Dry it out or nothing else sticks.
Only killing the adults Sticky traps help, but if the larvae in the soil survive, new gnats keep hatching.

FAQ

Where did the gnats come from?
Usually from a new plant or a fresh bag of potting soil that already had eggs or larvae in it.
How long to get rid of them?
Two to three weeks of drier soil and traps to clear the whole cycle.
Are fungus gnats harmful?
Mostly annoying, but heavy larvae numbers can damage young roots, so it is worth dealing with.
Do I need to repot the plant?
Usually not. Drying the soil, capping it with sand, and a peroxide drench handle most pots without repotting.

← All guides