How to Get Rid of Gnats

"Gnats" is a catch-all term for several tiny flying insects... fungus gnats, drain flies, and phorid flies all get lumped together. Figuring out which one you have is the key to getting rid of them, because each type breeds in a completely different place.

Signs of Infestation

Tiny flies around houseplants

Fungus gnats breed in moist potting soil. You'll see them hovering just above the soil surface or crawling on it. They're dark-bodied, about 1/8 inch long, and fly in weak, erratic patterns.

Flies near drains and bathrooms

Drain flies (also called moth flies) have fuzzy, moth-like wings and cluster near sink and shower drains. They're breeding in the organic film inside your pipes.

Swarms near windows

Gnats are attracted to light and often cluster at windows trying to get out. If you see a cloud of tiny flies at a window, follow their trail back to find the breeding source.

Small flies near garbage or compost

Phorid flies (also called humpback flies) breed in decaying organic matter. They run quickly across surfaces before flying and are often found near garbage cans, dirty mop buckets, and compost bins.

Larvae in potting soil

Part the top inch of potting soil and look for tiny, translucent worm-like larvae with black heads. These are fungus gnat larvae feeding on organic matter and root hairs in the soil.

DIY Treatment Methods

1

Let soil dry out (fungus gnats)

$0

Fungus gnats need moist soil to breed. Let the top 1 to 2 inches of potting soil dry completely between waterings. This kills larvae and prevents egg-laying. Most houseplants tolerate this just fine.

2

Sticky yellow traps

$5 to $8 for 20 traps

Place yellow sticky traps near houseplants and on kitchen counters. Gnats are attracted to the yellow color and get stuck. These won't eliminate the breeding source but dramatically reduce the adult population while you address it.

3

BTI mosquito dunks in plant water

$8 to $12 for a pack

Break a piece of mosquito dunk (BTI bacteria) into your watering can and let it soak for 30 minutes. Water your plants with this solution. BTI kills fungus gnat larvae in the soil without harming the plant. Repeat for 2 to 3 waterings.

4

Clean drains with enzyme cleaner

$10 to $20 for drain gel

For drain flies, pour enzyme-based drain gel down affected drains nightly for a week. The enzymes break down the organic film where larvae develop. Follow with a drain brush for best results.

5

Hydrogen peroxide soil drench

$3 to $5 per bottle

Mix 1 part 3% hydrogen peroxide with 4 parts water and pour through affected plant soil. It fizzes on contact with larvae and kills them without harming roots. Let soil dry before the next watering.

Prevention Tips

  • Water houseplants from the bottom (set pots in a tray of water for 30 minutes) to keep the soil surface dry.
  • Use well-draining potting mix with perlite... dense, moisture-retaining soil invites fungus gnats.
  • Clean kitchen drains weekly with hot water and a drain brush.
  • Don't let fruit, vegetables, or compost scraps sit on the counter.
  • Empty and clean mop buckets, pet water bowls, and plant saucers regularly.
  • Cover potting soil with a 1/2-inch layer of sand or perlite to block egg-laying.

When to Call a Professional

Gnats rarely require professional treatment. If you've addressed all moisture sources, treated drains, dried out plant soil, and you're still seeing gnats after 2 to 3 weeks, there may be a hidden moisture source... a slow pipe leak, condensation on HVAC ducts, or standing water in a floor drain you don't use. A plumber might be more useful than an exterminator in that case. For commercial kitchens or restaurants with persistent drain fly problems, professional drain treatment services ($100 to $250) can handle it.

Exterminator Cost

Average professional treatment cost

$100 to $250

Varies by severity, home size, and region

Recommended Products

This guide is for informational purposes. For severe infestations or health concerns, consult a licensed pest control professional.