How to Get Rid of Fungus Gnats in Houseplants

Tiny flies in your plant soil? Here is how to get rid of fungus gnats: dry the soil, trap adults, treat larvae with Bti and stop them returning.

BerkeBy Pests6 min read

On this page

Fungus gnats are the tiny dark flies that rise from your plant pots when you water. They are more annoying than dangerous for most healthy plants, but a large population is a sign that the soil stays too wet, and the larvae can damage tender roots and seedlings.

Quick answer

To get rid of fungus gnats, let the top inch or two of potting mix dry out between waterings, catch adults with yellow sticky traps, and treat the larvae in the soil with a Bacillus thuringiensis subsp. israelensis (Bti) product labeled for fungus gnats. Keep it up for several weeks, because traps only catch adults and new eggs keep hatching until the soil cycle is broken.

Is it fungus gnats? Look-alike check

Insect What it looks like Where you see it What it means
Fungus gnat Tiny, dark gray or black, long legs and antennae, weak fluttery flight, mosquito-like shape On and just above the soil surface, near windows Constantly moist potting mix rich in organic matter
Fruit fly Tan body, often red eyes, rounder shape Kitchens, fruit bowls, trash, drains Fermenting food nearby, not your plants
Shore fly Dark, sturdier body, whitish wing spots, stronger flight Greenhouses, algae-covered wet surfaces Algae and very wet conditions
Springtail Tiny, wingless, jumps when disturbed Soil surface, saucers Damp soil; generally harmless to plants
Whitefly Tiny, white wings Flies up from leaf undersides when shaken A sap-feeding pest on the leaves, not in the soil

If the insects fly up from the soil when you water and you see small translucent larvae with shiny black heads in the top layer of mix, you have fungus gnats.

Understanding the life cycle

Knowing the cycle explains why one spray never fixes it.

  • Adults live briefly, do not bite, and do not harm plants directly. Females lay eggs in moist potting mix.
  • Eggs hatch in a few days into larvae.
  • Larvae live in the top few inches of moist mix, feeding on fungi and organic matter, and sometimes on fine roots and seedling stems.
  • Pupae develop in the soil and emerge as adults.

The whole cycle can repeat in a few weeks in warm rooms. As long as the top of the mix stays moist, the cycle continues.

How to get rid of fungus gnats, step by step

  1. Dry out the soil. This is the most important step. Let the top inch or two of mix dry before watering again. Larvae struggle in dry mix, and females prefer to lay eggs in moist soil. For plants that tolerate it, let the mix dry a little deeper.
  2. Empty saucers and cachepots. Standing water keeps the bottom of the pot wet and humid.
  3. Bottom water if it suits the plant. Setting the pot in a tray of water for a short time, then draining it, wets the root zone while keeping the surface drier.
  4. Hang or stick yellow sticky traps just above the soil. They catch adult gnats, reduce egg laying, and show you whether numbers are going down. They do not affect the larvae.
  5. Treat the larvae with Bti. Bti is a naturally occurring bacterium whose toxins affect the larvae of certain flies, including fungus gnats and mosquitoes. Use a product whose label lists fungus gnats or allows use in potted plants, and apply it as directed, usually as a soil drench. It does not kill eggs, pupae or adults, so repeat applications per the label are normal.
  6. Remove debris. Pick up fallen leaves and dead plant material from the soil surface. Avoid leaving organic mulches on top of houseplant pots.
  7. Consider a top layer. Some growers cover the soil with a thin layer of coarse sand or fine gravel so the surface dries quickly. Use this with care: it also makes it harder to judge soil moisture by touch.
  8. Repot badly infested plants into fresh mix if the soil is waterlogged or smells sour. While the roots are out, check them for rot.
  9. Keep going for several weeks. Expect to keep up the drier watering and traps for a few life cycles before the population collapses.

What about hydrogen peroxide, cinnamon and other home remedies?

You will find many home remedies online, including soil drenches with hydrogen peroxide, cinnamon on the surface and potato slices as larval traps. Some may help a little, but evidence is mixed and none replaces drying the soil. Potato slices can be useful as a monitoring tool to see whether larvae are present. If you use any product on the soil, choose one labeled for the purpose and follow the label.

Do I need an insecticide?

Usually not. Drying the soil, traps and Bti handle most household infestations. If you use any other product, make sure it is labeled for fungus gnats on indoor plants and follow the label exactly.

Are fungus gnats harming my plant?

For established, healthy plants, a few gnats are mainly a nuisance. Large larval populations can damage fine roots, and they are a real problem for seedlings, cuttings and young plants. More importantly, gnats point to soil that stays too wet, which is the same condition that leads to root rot.

If the plant is yellowing or wilting as well, check the roots. Our guide to root rot in houseplants explains what to look for, and our overwatering vs underwatering guide helps you reset your watering routine.

If you are unsure whether the flies are gnats, or whether something else is behind the plant's decline, Bofern can help. Photograph the soil surface or the affected leaves in the iPhone app and you get the most likely problem with an honest confidence level, whether it is contagious, and a treatment plan that includes what to buy and what to avoid.

Prevention

  • Water only when the top of the mix is dry, and reduce watering in winter.
  • Use pots with drainage holes and never leave plants standing in water.
  • Choose a well-draining mix. Very peat-heavy, compost-rich mixes stay moist and attract gnats.
  • Store opened bags of potting mix sealed. Gnats can breed in damp, open bags.
  • Inspect new plants and their soil before bringing them in with the others.
  • Do not overpot. A pot far larger than the root ball stays wet for a long time.

When to isolate, repot or give up

Isolate heavily infested pots so adults do not move to nearby plants. Adults fly between pots and lay eggs in any moist mix.

Repot if the mix is permanently soggy, sour-smelling or heavily infested, or if the plant shows root rot. Discard the old mix.

Monitor if you see only a few gnats. Dry the soil out, add a sticky trap and watch the numbers.

Urgency: fungus gnats are usually a monitor problem for mature plants and a faster one for seedlings and cuttings. They become urgent only when they come with root rot symptoms such as wilting in wet soil.

For a broader check of what else might be going on with the plant, see our guide to diagnosing a sick plant.

FAQ

What kills fungus gnats instantly?

Nothing gets rid of an infestation instantly, because eggs, larvae and pupae in the soil keep producing adults. Sticky traps catch adults right away, but lasting control comes from drying the soil and treating larvae with Bti over several weeks.

Why do I have fungus gnats in my house?

Fungus gnats breed in moist potting mix with organic matter. They usually arrive with a new plant or a bag of soil and thrive when plants are watered often or sit in saucers of water.

Do fungus gnats bite humans?

No. Fungus gnats do not bite people or pets. They are a nuisance indoors and can harm seedlings and roots, but they are not a health threat to humans.

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

Expect a few weeks. The life cycle can repeat in a few weeks in warm conditions, so you need to keep the soil drier and continue traps and larval treatment through several cycles before the population collapses.

Will fungus gnats go away on their own?

Rarely, as long as the soil stays moist. If you change watering so the top of the mix dries, the population often falls significantly on its own, and traps plus Bti speed that up.

This guide is general information, not professional advice. Always follow the label of any product you use.

Tags:houseplantspestsfungus gnatswateringorganic control

Get a diagnosis from one photo

Bofern reads the photo, names the likely problem, tells you how sure it is and how urgent it is, and gives you a step-by-step treatment plan.