How to Get Rid of Fungus Gnats in Houseplants

To get rid of fungus gnats in houseplants, let the top inch or two of potting mix dry between waterings, catch the adults on yellow sticky cards, and treat the larvae in the soil. Keep all three going for 3 to 4 weeks. Gnats go from egg to adult in about that time, so a few days of effort only removes the flies you can see, while the next batch is still growing in the pot.

Key points

  • To get rid of fungus gnats in houseplants, let the top 1 to 2 inches of potting mix dry between waterings, catch adults on yellow sticky cards, and treat the larvae in the soil with Bti or beneficial nematodes.
  • Keep all three going for 3 to 4 weeks, since gnats take about that long to go from egg to adult.
  • A raw potato piece on the soil shows which pots have larvae.
  • Vinegar traps do not work for fungus gnats.
  • Repot any pot that is still breeding gnats in fresh, pasteurized potting mix.

Make sure they are fungus gnats

Fungus gnats are small, dark, delicate flies with long legs and antennae. The UC Statewide IPM Program puts adults at about 1/16 to 1/8 inch long. They run across the soil surface and fly up when you water or move the pot. Their larvae live in the potting mix: pale, legless, with a shiny black head, and about 1/4 inch long when grown.

Other tiny flies show up indoors in winter too, and the fix is different for each.

Fly What it looks like Where you see it
Fungus gnat Slender, dark, long legs and antennae, about 1/16 to 1/8 inch On and around damp potting mix, near windows close to plants
Fruit fly About 1/8 inch, stouter body, usually red eyes Around ripe fruit and drains
Drain fly Small and fuzzy Sinks, tubs, and shower drains
Shore fly About 1/8 inch, sturdier, short antennae, reddish eyes, light spots on the wings Wet pots with algae on the surface; larvae feed on algae, not roots

Sources: UC IPM, Texas A&M AgriLife Extension, and Purdue Extension. If you are still not sure, our common houseplant pests guide compares gnats with the other insects that turn up on indoor plants.

The adults are mostly a nuisance. UC IPM notes that larvae in large numbers can chew roots, which mainly hurts seedlings and young plants.

Why one treatment is not enough

All life stages live in the same pots at once. University of Wisconsin-Madison Extension says a female can lay up to 200 eggs in moist potting mix, and the cycle repeats all winter indoors.

Stage How long it lasts
Egg About 3 days at 75 F (UC IPM); 3 to 6 days (UW-Madison)
Larva in the soil About 10 days at 75 F (UC IPM); 1 to 2 weeks (UW-Madison)
Pupa to adult About 4 days later at 75 F (UC IPM)
Egg to adult About 17 days at 75 F (UC IPM); 3 to 4 weeks at 65 to 75 F (Colorado State)

Sticky cards catch adults but never reach the larvae. Soil treatments hit larvae but not the adults already flying. That is why the plan below runs both at the same time and keeps going for about three weeks.

Step 1: Let the top of the mix dry out

Fungus gnats breed in potting mix that stays wet. Colorado State Extension says the larvae live in the top 2 to 3 inches of mix and suggests letting the top 1 to 2 inches dry before you water again. UW-Madison gives the top inch as the minimum. A drier surface makes the pot less attractive for egg laying.

Push a finger into the mix before each watering instead of watering on a schedule. Pots dry more slowly in a cool room with short days, so check them before every watering. Our guide to how often to water houseplants in winter walks through the finger test, and signs of overwatering covers what soggy roots look like. Empty saucers after watering so pots do not sit in water.

Step 2: Catch adults on yellow sticky cards

Adult fungus gnats are drawn to yellow. Put a small yellow sticky card in or right next to each pot. The University of Arizona Extension suggests checking cards every 2 to 3 days. Counting what you catch tells you which pots are the worst and whether numbers are falling.

Skip vinegar or fruit traps. UW-Madison notes that vinegar traps do not work for fungus gnats.

Step 3: Find and treat the larvae

To find which pots are breeding gnats, press a piece of raw potato cut side down onto the mix (UC IPM). Larvae move to it to feed. Lift it after 3 to 4 days and look on the underside for small, pale larvae with black heads (UW-Madison).

Then treat the pots that have larvae:

  • Bti. Products made with Bacillus thuringiensis israelensis kill fungus gnat larvae in the soil. UC IPM notes repeat applications about 5 days apart may be needed. Use a product labeled for this use and follow the label for amounts.
  • Beneficial nematodes. Steinernema feltiae nematodes attack the larvae. UC IPM says they work between 60 and 90 F, so they suit a heated home.
  • A sand or gravel top layer. UW-Madison suggests covering the mix with 1/2 to 1 inch of coarse sand or fine gravel. It keeps the surface drier and less inviting for egg laying.

Hydrogen peroxide drenches come up often online. An Ask Extension expert in Minnesota suggested trying milder controls first and not using peroxide on seedlings, so start with drying the soil, cards, and Bti.

Fungus gnat control methods compared

Method What it targets Timing
Drying the top 1 to 2 inches of mix Eggs and young larvae; makes pots less attractive Every watering, for 3 to 4 weeks
Yellow sticky cards Adults Check every 2 to 3 days
Raw potato piece Detects larvae Check after 3 to 4 days
Sand or fine gravel layer Egg laying at the surface Add once, leave in place
Bti soil treatment Larvae Repeat about 5 days apart as the label directs
Beneficial nematodes Larvae Works at 60 to 90 F
Repotting in fresh mix A pot that keeps breeding gnats Once, after the 3 weeks if needed

UC IPM says insecticide sprays are rarely needed for fungus gnats in a home. Colorado State says one may be worth considering only if gnats persist several weeks after you have fixed your watering. Any spray must be labeled for houseplants, and short-lasting sprays such as soaps, oils, neem, and pyrethrins need repeats every couple of days.

3 week fungus gnat checklist

Week 1:

  • Put a yellow sticky card in every pot near where you see gnats.
  • Set a raw potato piece on each suspect pot and check it after 3 to 4 days.
  • Water only after the top 1 to 2 inches feel dry. Empty saucers.
  • Start Bti or nematodes on every pot that has larvae or sends up gnats.

Week 2:

  • Check and count cards every 2 to 3 days. Replace full ones.
  • Repeat the Bti treatment as the label directs.
  • Add a sand or gravel layer to the worst pots.

Week 3:

  • Keep the drying routine and keep checking cards.
  • Compare card counts with week 1. Falling numbers mean it is working.
  • Repot any pot that is still breeding gnats or whose mix stays wet for days.

How to keep fungus gnats from coming back

Old potting mix breaks down and holds more water, according to Colorado State, so repot plants whose mix has turned dense and soggy. UC IPM recommends fresh, pasteurized potting mix, not garden soil, and says not to add compost that is not fully finished. Our potting mix vs garden soil guide explains the difference, and the potting mix calculator tells you how much to buy for the pots you are refilling. Keep opened bags of mix closed between uses.

Pots that stay wet for a long time are also at risk of root rot. If roots look brown and mushy when you repot, see root rot prevention and treatment. UC IPM notes that throwing out a badly infested plant is sometimes the simplest way to protect the rest.

Frequently asked questions

How long does it take to get rid of fungus gnats?

Plan on 3 to 4 weeks. That covers a full egg to adult cycle, so gnats that hatch after you start also get caught or treated.

Can fungus gnats hurt my plants?

Adults do not harm plants. Larvae feed in the soil, and large numbers can damage roots, mainly on seedlings and young plants (UC IPM).

Do vinegar traps work on fungus gnats?

No. UW-Madison Extension says vinegar traps do not work for fungus gnats. Use yellow sticky cards for adults and treat the soil for larvae.

Why do I have fungus gnats in winter?

Indoor plants dry out more slowly in winter, so the mix stays wet longer. Fungus gnats breed year round indoors (Colorado State), and damp mix gives them a steady place to lay eggs.

Should I throw out the soil?

Not always. Most pots recover with drier watering and a larval treatment. Repot in fresh, pasteurized mix if a pot is still breeding gnats after three weeks or the old mix stays soggy.