All plant problems

Small Flies in Houseplant Soil: Fungus Gnats

Last reviewed: October 2026

Quick answer

Small dark flies running on the soil of a houseplant are usually fungus gnats. Their larvae live in the soil, and the problem is most common in houseplants that get too much water. Letting the soil dry between waterings is the main fix.[2][1]

Causes and how to tell them apart

  1. Small dark flies at the pot[1][2]

    How to tell: Adults are delicate, gray to black, about 1/8 inch long, and look like fruit flies. They run on the soil and up the sides of the pot.

  2. Larvae in the soil[1][3]

    How to tell: The young live in the soil and are white, translucent larvae with a shiny black head. Seeing these confirms the soil is the breeding spot.

  3. Constantly wet soil[4][5]

    How to tell: Gnats feed on fungi in soil and are more common where soil stays wet. If the flies keep coming back, check how often you water.

  4. Root damage with yellowing or wilting[3][5]

    How to tell: Adults are mostly a nuisance. If leaves yellow or wilt too, some larvae may be feeding on roots, but overwatering and root rot can cause the same signs.

What to do, step by step

  1. Look for small flies running on the soil while you water to find which plant is breeding them.[2]
  2. Let the soil surface dry as much as possible between waterings, without letting the plant wilt.[6][1]
  3. Do not let plants sit in saucers or outer pots filled with water.[7]
  4. Use yellow sticky traps to catch some adults. They help you see how bad it is but do not stop new flies hatching.[6][7]
  5. If it persists, repot in fresh soil in a clean container after washing the old soil off the roots.[6][2]
  6. Treat with a product made from Bacillus thuringiensis subspecies israelensis in the soil, which works only against larvae. Iowa State says insecticides are not needed.[6][2]

How to prevent it

Not sure what is wrong? Scan your plant.

Scan your plant

Frequently asked questions

Why do I have small flies coming out of my plant soil?

They are likely fungus gnats. Larvae feed on fungus in the soil, and houseplants that get too much water are the most common breeding place.[2]

Do fungus gnats hurt my plants?

Adults are mainly a nuisance. Larvae of some species attack roots, and heavy numbers can cause yellowing and wilting of leaves.[3]

Do I need insecticide for fungus gnats?

Iowa State and WSU do not recommend insecticides for houseplant gnats. Drying the soil and repotting are the advised fixes.[2][3]

Related plant problems

Sources

  1. NC State Extension: Fungus Gnats - a Common Problem of Over-Watered Houseplants
  2. Iowa State University Extension: Fungus Gnats in Houseplants
  3. Washington State University Extension: Fungus gnats
  4. University of Minnesota Extension: Houseplant pests
  5. University of Minnesota Extension: Fungus gnats
  6. University of Minnesota Extension: Insects on indoor plants
  7. Iowa State University Extension: Diagnosing Houseplant Problems Caused by Insect Pests

Plant Doctor is free. If it helped, you can

Buy Apollo a treat

Always confirm with a veterinarian or ASPCA Animal Poison Control (888-426-4435) before assuming safety. This is a household reference, not a substitute for professional guidance in a suspected poisoning.

Sources: the university extension and horticultural society pages listed above. Last reviewed October 2026.