Disclosure: Amazon links on this page are affiliate links, so this site may earn a commission at no extra cost to you. Commissions don’t decide which products are recommended. See the full affiliate disclosure.

Fungus gnats are a common houseplant pest and one of the easiest to actually eliminate — but only if you treat both the larvae in the soil and the adults flying around. Most online "treatments" only handle one or the other. Here's the two-product setup that actually works, drawn from UW Extension and UC IPM.

Summit Mosquito Bits (30 oz)
Best for
Larval control
Mechanism
Bti biological larvicide
Notes
Weekly for 3 weeks
Garsum Yellow Sticky Traps (42-pack)
Best for
Adult monitoring
Mechanism
Adhesive trap
Notes
Replace when full
SF Beneficial Nematodes
Best for
Prevention at potting
Mechanism
Predatory nematode
Notes
Refrigerate; repeat weekly
Food-Grade Diatomaceous Earth
Best for
Soil surface barrier
Mechanism
Mechanical abrasion
Notes
Thin top-dressing
Last verified May 2026. Prices and availability vary.

As an Amazon Associate I earn from qualifying purchases. Picks are editorial; prices and availability vary.

What you're actually treating

Fungus gnats (Bradysia spp.) are small dark flies, about 1/8 inch long, that breed in damp soil. Per UW Extension, the larvae feed on decaying organic matter and fungi in the potting mix, and large populations also damage roots; Colorado State University Extension adds that they usually live in the top 2 to 3 inches. The adults are mostly a nuisance — the larvae do the actual damage.

The lifecycle has two phases that need to be hit separately:

  • Larvae live in the top 2–3 inches of damp soil, per Colorado State. You can't see them, but they're what makes the population sustainable. Kill the larvae and the population can't replace itself.
  • Adults fly around the plants and lay eggs in the soil. You can see them, swat them, and trap them — but every female you don't catch can lay up to 200 eggs, per Colorado State.

If you only treat one phase, the cycle restarts. You have to do both.

The two-product setup

1. Bti larvicide — kills larvae in the soil

The single most effective fungus gnat treatment is Bacillus thuringiensis israelensis (Bti), a soil-dwelling bacterium that produces a protein toxic to fly larvae (including mosquito and fungus gnat larvae) but harmless to mammals, fish, pets, and plants. UW Extension, UC IPM, and MBG all list Bti products as an effective larval control.

The form to buy is Summit Mosquito Bits — granular corn cob coated with Bti. Sprinkle the granules on the soil surface, or soak 1 tablespoon per quart of water (4 tablespoons per gallon) for 30 minutes (Summit's directions), skim off the granules, and water with that. Either way the Bti washes into the upper soil where the larvae are.

2. Yellow sticky traps — catch the adults

Adult fungus gnats are attracted to yellow. A sticky trap placed at the soil surface or just above the pot catches the adults before they can lay eggs. MBG and UC IPM both recommend sticky traps as a monitoring and control tool — they show you whether the population is growing or shrinking.

3. Beneficial Nematodes (Steinernema feltiae) — preventive option

Why consider it: Colorado State calls Steinernema feltiae particularly effective against fungus gnat larvae: the nematodes enter the larvae and release a bacterium that kills them. They're live organisms that require refrigeration and are applied as a soil drench. Timing matters: MBG reports the best results from a first application at planting followed by 2 to 3 weekly applications, and says nematodes are ineffective when used to reduce a serious infestation. For an established infestation, use Bti. More expensive and more perishable than Mosquito Bits.

Note: Search specifically for Steinernema feltiae — this is the species that targets fungus gnat larvae. Other nematode species (S. carpocapsae, Heterorhabditis) target different pests. See current options on Amazon.

4. Food-Grade Diatomaceous Earth — soil surface barrier

Why consider it: Diatomaceous earth (DE) is a non-chemical, physical pest control that works by abrasion — the sharp silica particles damage the waxy cuticle of insects, causing dehydration. Applied as a thin top-dressing layer on the soil surface, it reduces adult gnat emergence between Bti applications. It only works dry — watering washes it in and you need to reapply after each watering. Best used as a supplement to Bti, not a primary treatment. See current options on Amazon.

The 3–4 week protocol

This protocol builds on UC IPM's and MBG's recommendations (let the soil surface dry, repeat Bti, trap adults). The three-week Bti schedule follows Summit's directions, and the protocol's length matches the three-to-four-week egg-to-adult cycle that Colorado State reports. Do all of these together:

  1. Let the soil dry between waterings. Colorado State calls this the most important strategy, especially for the top 1 to 2 inches, and MBG says drying the soil as much as the plant tolerates kills larvae. This is the single biggest cultural change.
  2. Add Mosquito Bits to your watering can or sprinkle on soil, weekly for three weeks per Summit's directions, or at every watering. Bti stays toxic to larvae for only about 2 days, per MBG, so it has to be applied repeatedly.
  3. Stick yellow traps in every affected pot. Replace when full.
  4. Bottom-water if possible. Watering from below keeps the soil surface dry and breaks the breeding cycle further.
  5. Inspect and quarantine new plants. New plants can bring fungus gnats into a collection.

After the infestation clears, keep Bti on hand: MBG notes it is best used as prevention.

For deeper background on identification and biology, see our fungus gnats problem guide.

What to skip

A lot of internet fungus gnat advice doesn't work, makes things worse, or only helps as part of a fuller plan:

  • Cinnamon on the soil surface — anecdotal, not supported by any extension service. Doesn't reach the larvae.
  • Hydrogen peroxide as a first-line treatment — Cornell Cooperative Extension gives a drench of 1 part 3% hydrogen peroxide to 4 parts water that attacks the larvae, but UF IFAS's extension Q&A on H2O2 in soil found only one published study on hydrogen peroxide in soil and says its unintended effects are unknown. Treat it as a one-time fallback if Bti fails, as the fungus gnats guide describes, not a routine treatment.
  • Apple cider vinegar traps — work, but slowly, and don't reach larvae at all. Yellow sticky traps catch more.
  • Relying on a sand top-dressing alone — a layer of coarse sand or fine gravel does help: UW Extension suggests ½ to 1 inch to keep the surface drier and less attractive for egg-laying. But UW pairs it with drier watering and notes it may take three to four weeks of both to get gnats in check, so use it alongside Bti, not instead of it.
  • Pyrethroid sprays — kill adults but not larvae, so the population recovers. Same problem as relying on adult control alone.
  • Letting the plant dry out completely — the larvae die, but so does the plant. Colorado State's advice to let the top 1 to 2 inches dry is enough; you don't need to drought-stress the whole pot.

What about neem oil?

Neem oil works as a contact spray on adults and a soil drench against larvae, but it's slower and messier than the Bti + sticky trap combo; Bti is the cleaner, more targeted solution for indoor use.

Neem is more useful for spider mites and broader pest pressure.

Frequently asked

What actually kills fungus gnats fastest?
The two-product combo per UW Extension and UC IPM: Bti larvicide (Summit Mosquito Bits) in the soil to kill larvae, plus yellow sticky traps to catch adults. Treat both together for at least one full life cycle, which Colorado State University Extension puts at three to four weeks. Treating only one phase lets the cycle restart.
Are Mosquito Bits safe for pets and kids?
Yes. Bti (Bacillus thuringiensis israelensis) is a soil-dwelling bacterium with a toxin specific to fly larvae — it's harmless to mammals, fish, plants, and adult insects. Per the EPA, Bti has no toxicity to people and is approved for pest control in organic farming. UW Extension notes Bti can be used without disrupting natural enemies, and Summit's label lists it as harmless to plants, pets, beneficial insects, and fish.
Does hydrogen peroxide kill fungus gnats?
Cornell Cooperative Extension gives a drench of 1 part 3% hydrogen peroxide to 4 parts water, which fizzes as it attacks the larvae. The evidence is thin, though: UF IFAS Extension found only one published study on hydrogen peroxide in soil and says its unintended effects on the soil are unknown. Bti, which UW Extension, UC IPM, and MBG all list as an effective larval control, is the better first choice; keep peroxide as a one-time fallback.
How long do I need to use Mosquito Bits?
Summit's directions are to repeat weekly for three weeks, or to use Bti-treated water as part of your normal watering routine; Colorado State University Extension puts the egg-to-adult cycle at three to four weeks. MBG notes that Bti stays toxic to larvae for only about 2 days and is best used as prevention, so it has to be applied repeatedly during active treatment.
Will fungus gnats kill my plant?
Usually no — fungus gnat larvae primarily feed on fungi and decaying organic matter in the soil. In heavy infestations they can damage tender feeder roots on young plants and seedlings, but established houseplants typically tolerate them. The bigger reason to eliminate them is the nuisance of flies in your home and the warning sign of overly moist soil (which can lead to root rot).