Skip to content
A plain yellow card on a stick and two pieces of raw potato set on the mix of a potted houseplant.

Turf & trees

How to Get Rid of Fungus Gnats in Soil: 13 Methods Ranked by Evidence

Dry the top 1 to 2 inches and drench with Bti or S. feltiae nematodes weekly for 3 weeks. Thirteen remedies ranked by published trials, with a day-by-day schedule.

Illustration A plain yellow card on a stick and two pieces of raw potato set on the mix of a potted houseplant.

In this guide

How to get rid of fungus gnats in soil: kill the larvae, not the flies. Let the top 1 to 2 inches dry, drench with Bti (Mosquito Bits, Gnatrol) or Steinernema feltiae nematodes weekly for 3 weeks, and check larvae with raw potato chunks.

Most advice on how to get rid of fungus gnats in soil ranks remedies by one person’s houseplants. This page ranks them by what published trials found: Bti cut larval survival to 8 percent against 84 percent in water in a 1985 lab test (Osborne et al., Journal of Economic Entomology), while sand and diatomaceous earth top layers did nothing in Kansas State trials. The weekly schedule further down is timed to the gnat’s 17 to 28 day generation, so the last drench lands after the last egg laid before treatment has hatched.

Gnats usually arrive in the mix. UC IPM says almost any organic mix that “becomes wet prior to use or has been stored on soil or uncovered” can be infested (UC IPM floriculture guidelines), which is why an old bag is the first suspect in whether potting soil goes bad; yard dirt in a pot stays soggy for the reasons in garden soil vs potting soil, and soggy mix is what larvae need.

Why do fungus gnats keep coming back?

Because the flies you swat are the last 7 to 10 days of a 3 to 4 week life. At 75°F, UC IPM puts egg hatch at about 3 days, larval feeding at about 10 days and pupation at about 4 days, so a new generation appears in about 17 days (UC IPM Pest Notes 7448). Kansas State’s Raymond Cloyd gives 20 to 28 days, with each female laying 100 to 200 eggs into cracks in the mix surface (K-State MF-2937). Cold stretches it: UC IPM’s grower guidelines put a generation at 21 days at 72°F and 40 days at 61°F (UC IPM floriculture).

StageUC IPM, 75°FUConn, 72°FK-State (Cloyd)Where it isWhat kills it
EggAbout 3 days4 to 6 days100 to 200 per femaleCracks in the top of the mixDrying the surface (eggs fail to hatch)
Larva (4 instars)About 10 daysAbout 14 daysUp to 0.24 in longTop 1 to 2 in of mixBti, S. feltiae, predatory mites, drying
PupaAbout 4 days4 to 5 daysNot statedIn the mixNothing in this table reliably (S. feltiae partly)
AdultNot statedNot statedLives 7 to 10 daysOn the mix, leaves, windowsSticky cards, pyrethrins (temporary)
Egg to eggAbout 17 days3 to 4 weeks20 to 28 days
Sources: UC IPM Pest Notes 7448; UConn Extension, Biological Control of Fungus Gnats (rev. 2019); Cloyd, K-State MF-2937 (2010). Full rows in our dataset (CSV).
Days in each fungus gnat life stage
  1. Egg3
  2. Larva10
  3. Pupa4

Source: UC IPM Pest Notes 7448; UConn Extension, Biological Control of Fungus Gnats (2019). UConn ranges 4 to 6 and 4 to 5 days plotted at midpoints Egg to egg: about 17 days (UC IPM), 3 to 4 weeks (UConn), 20 to 28 days (K-State MF-2937).

Show the numbers
UC IPM, 75°FUConn, 72°F (midpoint)
Egg35
Larva1014
Pupa44.50

Two consequences follow from those numbers. Killing adults alone fails, because every egg and pupa already in the pot keeps maturing for up to 3 weeks. And no larvicide touches eggs or pupae, so one drench only clears the larvae present that day; Cloyd adds that Bti works better on first and second instars than on third and fourth (MF-2937, p. 3).

UC IPM Pest Notes paragraph giving fungus gnat egg, larva and pupa durations at 75 degrees F
Screenshot UC IPM Pest Notes 7448: at 75°F eggs hatch in about 3 days, larvae pupate after about 10 days and adults emerge about 4 days later; a generation takes about 17 days. Source: UC Statewide IPM Program, Pest Notes: Fungus Gnats (Publication 7448), Life Cycle section, accessed November 2026.

Which fungus gnat controls actually work?

Ranked from greenhouse trials down to no trial at all, with Nov. 17, 2026 prices. UC IPM says the larvae and pupae in the mix are the stages worth targeting, so drying the surface ranks first.

Swipe the table sideways to see every column.

RankMethodStage it hitsTime to effectEvidenceCost (Nov. 17, 2026)
1Let the top 1 to 3 in of mix dry between wateringsEggs, young larvaeNext watering cycleExtension consensus; larvae survive best at 52% mix moisture, less in wet or dry mix (MF-2937)$0
2Steinernema feltiae nematode drenchLarvae; some pupaeFewer adults emerging 7 to 14 days after (Jagdale 2004)Greenhouse trials: beat Bti and kinoprene, matched the organophosphate diazinon in poinsettias (Harris 1995)$40 for 5 million (Arbico)
3Bti drench (Mosquito Bits, Gnatrol WDG)Larvae, mainly young instarsLarvae respond within 24 hours (Gnatrol label)Mixed: 8% vs 84% survival in a lab test (Osborne 1985); no effect on 2nd and 3rd instars in another (Cloyd and Dickinson 2006)$10.95 for 8 oz Mosquito Bits; $64.95 for 1 lb Gnatrol WDG
4Repot in fresh pasteurized mixAll stages in the old mixImmediateUC IPM recommends pasteurized mix; bagged media can carry gnats (MF-2937)Price of a bag
5Stratiolaelaps scimitus predatory mitesLarvae (not eggs or pupae)Weeks; best before numbers build55 or more mites per pot controlled sciarids on cyclamen and poinsettia (Chambers 1993); UC IPM doubts it suits single houseplants$21 for 12,500 (Arbico)
6Raw potato chunks, cut side downLarvae (monitor and trap)Check at 48 hoursRecovered 38% of larvae vs 23% for carrot disks (MF-2937); more reliable than sticky cards (Harris 1995)Pennies
7Yellow sticky cardsAdults onlySame dayMonitoring; card counts do not track larvae in the mix (MF-2937)$5.50 for 5 cards (Arbico)
8Pyrethrin spray on the mix surfaceAdultsFast, temporaryUC IPM: only if Bti or nematodes are unavailable; product must list house plantsNot priced
9Coarse glass aggregate top layerEmerging adultsOver weeksReduced adult emergence, depending on layer thickness (reviewed by Cloyd 2015)Not priced
10Hydrogen peroxide, 1 part 3% to 4 parts waterLarvae on contact (claimed)Not measuredNo controlled trial found; recommended by a Cornell county educatorPharmacy bottle
11Cinnamon or chamomile on the mixFungi the larvae eat (claimed)Not measuredNo controlled trial foundPantry
12Sand top layerNone measuredNoneTested: a 0.12 in (3.1 mm) layer did not stop emergence or egg laying (MF-2937)Skip
13Diatomaceous earth top layerNone measuredNoneTested: 3.1 and 6.3 mm layers, dry or moist, failed; the layer cracked (Cloyd et al. 2007)Skip
Ranked by The Green Industry Report from Harris et al. 1995, Jagdale et al. 2004, Osborne et al. 1985, Cloyd and Dickinson 2006, Chambers et al. 1993, Cloyd et al. 2007, Cloyd 2015, MF-2937, UC IPM and Cornell Cooperative Extension Allegany County; prices from Arbico Organics and organicbti.com. Prices are retail listings, not quotes. Dataset (CSV).

Nematodes rank above Bti on trial results, not convenience. In the 1995 poinsettia trial, Harris, Oetting and Gardner found S. feltiae cut larvae more than Bti did, and the 2006 lab test found Bti drenches did nothing to second and third instars (Cloyd and Dickinson). Bti still earns its place: UC IPM names Mosquito Bits and Gnatrol as the most convenient home option.

The bottom of the table corrects popular advice. A Learning with Experts home test called diatomaceous earth very effective; in controlled Kansas State trials, the layer swelled and cracked, leaving fissures where larvae pupated and females laid eggs (Cloyd et al. 2007). Sand failed the same way at 3.1 mm.

Kansas State MF-2937 text saying a sand layer on potting mix did not stop fungus gnats
Screenshot K-State MF-2937, p. 2: a 3.1 mm (0.012 inch) sand layer did not prevent adult emergence or egg laying, and larvae survived best in growing media at 52 percent moisture. Source: Kansas State University, Cloyd, Fungus Gnat Management in Greenhouses and Nurseries, MF-2937 (2010), p. 2, accessed November 2026.

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

Plan on 3 to 4 weeks. Gnatrol WDG’s label calls for three weekly drenches at the heavy rate when eggs, larvae, pupae and adults are all present (Gnatrol WDG label, EPA Reg. No. 73049-56), and the current Mosquito Bits specimen label says to repeat weekly for three weeks (Summit specimen label). The table shows why that span works for a 17 to 28 day cycle.

DayDo thisWhy this day
0Empty saucers; set 1 raw potato chunk per pot and 1 yellow card per group of pots; first Bti or nematode drench; stop watering until the top 1 to 2 in is dryKills larvae present now; dry surface stops new eggs hatching
2Lift the potato chunks; count larvae underneath; replace with fresh chunks48 hours recovers more larvae than 24 (MF-2937)
7Second drench; swap and count the cardEggs laid on day 0 hatched by day 3 to 6 and are now young larvae
9Potato checkShould show fewer larvae than day 2
14Third drench; card countAdults that emerged from day 0 pupae (4 to 5 days) laid eggs that are now larvae
21Fourth drench only if the potato or card still shows gnatsCovers the slow end of a 28 day generation; at 61°F a generation takes 40 days (UC IPM), so keep going in a cold room
28Stop after two potato checks in a row show 0 larvaeNo larvae means no new pupae; any pupae left emerge within 4 to 5 days
Timing built by The Green Industry Report from stage lengths in UC IPM, UConn and MF-2937, and repeat intervals on the Gnatrol WDG and Mosquito Bits labels. UC IPM notes Bti does not persist indoors and may need repeating at about 5 day intervals.

Read the count, not the calendar. Cloyd notes there is no published threshold linking card counts to larvae or to plant damage (MF-2937, p. 3), so a falling card count proves only that fewer adults are flying. Zero larvae under two rounds of potato is the stop signal.

Where to start with gnats in a pot
  1. 1Do the flies have long antennae and stay near pots and the mix surface?

    Yes

    NoProbably not fungus gnats. Short bristle-like antennae near algae point to shore flies (UC IPM); flies at the fruit bowl or drain need a different fix.

  2. 2Do raw potato chunks show larvae after 48 hours?

    Yes

    NoAdults only: no larvae in this pot yet. Dry the top 1 to 2 in, set yellow cards, and check other pots, wet mulch and open bags of mix.

  3. 3Is it a seed tray, cuttings or seedlings?

    YesAct now: replace or heat-treat the mix (180°F for 30 minutes) and drench with Bti or S. feltiae; larvae can carry Pythium (Braun 2012).

    NoGo to the next question

  4. 4Can the plant tolerate the top 1 to 2 in drying between waterings?

    YesDry the surface plus 3 weekly Bti or nematode drenches, checking with potato on days 2, 9 and 16.

    NoKeep watering as the plant needs, and rely on S. feltiae or Bti drenches weekly for 3 to 4 weeks; consider repotting into fresh pasteurized mix.

Source: UC IPM Pest Notes 7448; K-State MF-2937; Braun et al. 2012

How much Bti or how many nematodes per pot?

Use the rate printed on your container; the label is the law, and two Mosquito Bits labels give different directions. The EPA-stamped 2016 label (EPA Reg. No. 6218-86) lists a sprinkle-and-water rate by pot size; the specimen label now on Summit’s site lists only the soak method.

Product (active ingredient)Rate on label or in trialsRepeatSource
Mosquito Bits, granules on the surface (Bti strain SUM-6218, 2.86%)1 to 2 tsp per pot 6 in or smaller; 1 tbsp per larger pot; 1 tbsp (0.5 oz) per sq ft; water inIf gnats reappear within 3 weeksEPA-accepted label, Nov. 9, 2016
Mosquito Bits, soaked in water2 tbsp per 0.5 gal, wait 5 minutes (2016); or 4 tbsp per gal, soak 30 minutes, skim (specimen)Weekly for 3 weeks (specimen)2016 label; Summit specimen
Gnatrol WDG (Bti, EPA Reg. No. 73049-56), indoor ornamentalsLight: 3.2 to 6.4 oz per 100 gal (0.9 to 1.8 g per gal). Heavy: 13 to 26 oz per 100 gal (3.7 to 7.4 g per gal)3 weekly drenches for existing infestationsValent label, 2012
Steinernema feltiae (NemAttack and others)125,000 to 250,000 per sq m in trials, about 11,600 to 23,200 per sq ft of mix surface2 applications 7 to 10 days apart (Arbico)Jagdale 2004; Arbico
Stratiolaelaps scimitus55 or more per pot in trials; 5 to 10 per sq ft general, 30 or more heavy (Arbico)Weekly until gnats subside (Arbico)Chambers 1993; Arbico
Gram conversions: 1 oz = 28.35 g, divided by 100 gal. Nematode conversion: 1 sq m = 10.76 sq ft.
Gnatrol WDG label directions for indoor ornamentals with light and heavy drench rates and three weekly applications
Screenshot Gnatrol WDG label, indoor plantscape directions: for existing infestations, 3 weekly drenches at the heavy rate of 13 to 26 oz per 100 gallons; larvae respond within 24 hours. Source: Valent BioSciences, Gnatrol WDG Biological Larvicide label, 2012, Application Directions, accessed November 2026.

Nematode packs are sized for lawns: Arbico lists 5 million S. feltiae for 1,600 sq ft, about 3,100 per sq ft (Arbico, Nov. 17, 2026). The pot trials used 4 to 7 times that density. A 6 in pot has about 0.2 sq ft of surface, so one 5 million pack covers about 215 to 430 sq ft of mix at trial rates, or over 1,000 such pots. S. feltiae infects at 46 to 86°F (MF-2937).

Mosquito Bits needed for your pots
Tablespoons of granules
18.0
Ounces (1 tbsp = 0.5 oz on the label)
9.0
8 oz containers to buy
2
Product cost in dollars at $10.95 per 8 oz (Arbico, Nov. 17, 2026)
12.32

Default: 6 pots over 6 in, 3 weekly treatments = 18 tbsp (9 oz), two 8 oz containers, about $12.32 of product. Rates from the EPA-accepted Mosquito Bits label (EPA Reg. No. 6218-86, 2016); follow the label on your container.

PotsSizeTreatmentsMosquito Bits usedCost at $10.95 per 8 oz
6Over 6 in (1 tbsp each)318 tbsp, 9 oz (two 8 oz containers)$12.32
106 in or smaller (2 tsp each)320 tbsp, 10 oz (two containers)$13.69
3Over 6 in13 tbsp, 1.5 oz$2.05
Worked from the 2016 label rate (EPA Reg. No. 6218-86: 1 tbsp = 0.5 oz) and the Arbico price of $10.95 per 8 oz (16 tbsp), Nov. 17, 2026.

This page is general information, not pesticide advice. Read and follow the label on the product you buy; directions differ between label versions, and products labeled for house plants are the only ones to use indoors.

Does hydrogen peroxide kill fungus gnats?

It may kill larvae it touches, but we found no controlled trial of it against Bradysia in the literature indexed by Europe PMC as of November 2026. The usual recipe, 1 part 3 percent peroxide to 4 parts water, comes from extension columns such as Cornell Cooperative Extension Allegany County, not from a study, and the drugstore bottle carries no pesticide directions. Treat it as untested and keep counting larvae with potato.

Cinnamon and chamomile are in the same place: no trial found. Dryer sheets repelled adults in a lab test but killed none (Cloyd 2015), and vinegar traps catch adults only. Gnats in a room with no plants can come from wet mulch, compost or plumbing leaks, all breeding sites on UC IPM’s list, and outdoor beds are covered in whether mulch attracts bugs.

When do fungus gnat larvae actually hurt plants?

Mostly in seedlings, cuttings and young plants. UC IPM says adults do not bite or damage plants and that wilting is more often caused by overwatering or root rot than by larvae (UC IPM). Larvae can carry Pythium: one strain reached seedlings in 65 percent of petri-dish tests but under 6 percent in potting mix plug cells (Braun, Sanderson and Wraight 2012).

So act at the first larva under a potato chunk in a seed tray, and treat a mature pothos as a nuisance problem. For trays, start clean: heat the mix to 180°F for 30 minutes as described in how to sterilize soil, and keep the surface draining with the coarse grit covered in what perlite does for soil. Tiny white crawlers that are not larvae are more likely mites or springtails (soil mites has the key), and white fuzz on the surface is usually saprophytic mold, covered in white fungus in soil.

Prevention is drainage. Purdue’s target of 20 to 25 percent air space after watering, covered in what well-drained means for soil and pots, keeps the mix from sitting at the 52 percent moisture where Cloyd found larvae survive best. When repotting, pick a bag whose panel lists peat, coir or bark plus perlite, the check laid out in potting soil vs potting mix, and keep it sealed and off the ground.

How we compiled this

On Nov. 17, 2026 we read 21 primary documents: 5 extension publications (UC IPM home and grower pages, K-State MF-2937, UConn, Cornell Allegany County), the abstracts of 7 peer-reviewed studies, Cloyd’s 2015 review in full, 3 product labels (two Mosquito Bits versions and Gnatrol WDG) and 5 retailer price pages. We ran no gnat trials. Evidence ranks reflect study design (greenhouse or lab trial, extension advice, no trial found); prices are retail listings that day.

Frequently asked questions

Will gnats go away if soil dries out?

Partly. Cloyd (K-State MF-2937) says letting the top 1 to 3 inches dry makes the surface less attractive to egg-laying females and eggs laid there fail to hatch. Larvae deeper in the pot and pupae survive, so pair drying with Bti or nematodes for 3 weeks.

What kills fungus gnats but not plants?

Bti (Mosquito Bits, Gnatrol WDG) and Steinernema feltiae nematodes. UC IPM calls both essentially nontoxic to people, and the Gnatrol label says it is not known to be phytotoxic to ornamentals, though it advises testing a few plants first.

Can you permanently get rid of fungus gnats?

In a pot, yes, until wet organic mix brings them back. Stop when two potato checks 48 hours apart show no larvae, then keep the top 1 to 2 inches drying between waterings and store mix sealed and off the ground (UC IPM).

How long does a fungus gnat infestation last?

Without treatment it does not end: generations overlap every 17 to 28 days (UC IPM; K-State). With weekly drenches and drier mix, expect adults to fade in 3 to 4 weeks, the span the Gnatrol label sets for existing infestations.

Why do I suddenly have fungus gnats?

Usually a new bag of mix, a new plant or overwatering. UC IPM says organic mix that got wet before use or was stored uncovered can be infested, and a generation takes about 17 days at 75°F, so the swarm appears 2 to 3 weeks after the cause.

What kills fungus gnats instantly?

Nothing that ends the problem. A pyrethrin spray labeled for house plants knocks down adults fast but UC IPM calls the effect temporary; the larvae in the top 1 to 2 inches of mix keep emerging.

Sources

  1. UC Statewide IPM Program (Bethke and Dreistadt), Pest Notes: Fungus Gnats, Publication 7448, Current web edition. Accessed November 2026.
  2. UC Statewide IPM Program, Fungus Gnats, Floriculture and Ornamental Nurseries Pest Management Guidelines, Current web edition. Accessed November 2026.
  3. Kansas State University (R.A. Cloyd), Fungus Gnat Management in Greenhouses and Nurseries, MF-2937, September 2010. Accessed November 2026.
  4. UConn Extension (L. Pundt), Biological Control of Fungus Gnats, 2007, revised 2019. Accessed November 2026.
  5. Cloyd, R.A., Insects 6:325 to 332, Ecology of Fungus Gnats (Bradysia spp.) in Greenhouse Production Systems, 2015. Accessed November 2026.
  6. Osborne, Boucias and Lindquist, Journal of Economic Entomology 78:922 to 925, Activity of Bacillus thuringiensis var. israelensis on Bradysia coprophila, 1985. Accessed November 2026.
  7. Cloyd and Dickinson, Pest Management Science 62:171 to 177, Effect of Bti and neonicotinoid insecticides on the fungus gnat Bradysia sp. nr. coprophila, 2006. Accessed November 2026.
  8. Harris, Oetting and Gardner, Biological Control 5:412 to 418, Use of entomopathogenic nematodes and a new monitoring technique for control of fungus gnats, 1995. Accessed November 2026.
  9. Jagdale, Casey, Grewal and Lindquist, Biological Control 29:296 to 305, Application rate and timing, potting medium, and host plant effects on the efficacy of Steinernema feltiae, 2004. Accessed November 2026.
  10. Chambers, Wright and Lind, Biocontrol Science and Technology 3:285 to 293, Biological control of glasshouse sciarid flies with the predatory mite Hypoaspis miles, 1993. Accessed November 2026.
  11. Cloyd, Dickinson and Kemp, Journal of Economic Entomology 100:1353 to 1359, Effect of diatomaceous earth and Trichoderma harzianum T-22 on the fungus gnat, 2007. Accessed November 2026.
  12. Braun, Sanderson and Wraight, Phytopathology 102:283 to 289, Larval Bradysia impatiens potential for vectoring Pythium root rot pathogens, 2012. Accessed November 2026.
  13. U.S. EPA, Pesticide Product Label System, Mosquito Bits, EPA Reg. No. 6218-86, Accepted Nov. 9, 2016. Accessed November 2026.
  14. Summit Chemical, Mosquito Bits specimen label, Posted January 2021. Accessed November 2026.
  15. Valent BioSciences (via CDMS), Gnatrol WDG Biological Larvicide label, EPA Reg. No. 73049-56, 2012. Accessed November 2026.
  16. Cornell Cooperative Extension Allegany County (C. Acosta), A Spooky Houseplant Pest: Fungus Gnats, Undated. Accessed November 2026.
  17. Arbico Organics, Mosquito Bits; NemAttack S. feltiae; Stratiolaelaps scimitus; Aphid/Whitefly Yellow Sticky Traps (product pages), Prices checked Nov. 17, 2026. Accessed November 2026.
  18. Organic BTI, Gnatrol WDG 1 lb product page, Price checked Nov. 17, 2026. Accessed November 2026.