Get Rid of Fungus Gnats: 4 Step Soil Treatment Timeline
Kelly Smith Trimble brings practical gardening knowledge and experience explaining how plants grow and thrive. Her interests include vegetable growing, seasonal garden care, and the everyday decisions that help gardeners make the most of their outdoor spaces.
Quick answer
Let the top soil dry completely and trap flying adults on yellow sticky cards. Drench moist soil with Bacillus thuringiensis israelensis to kill larvae. Larvae hatch and grow over 17 days at 75 degrees Fahrenheit. Repeat the drenches every 5 days to break their life cycle.
Confirming the Pest: Fungus Gnats Versus Shore Flies
Check the insect’s antennae, flight style, and wings before you treat the plant. Fungus gnats need dry soil to go away. Shore flies need you to clean up algae instead. Dark-winged fungus gnats are small, delicate flies. They measure 1/16 to 1/8 inch long, or about 2 to 8 millimeters. Scientists place them in the Sciaridae family, mostly as Bradysia and Orfelia species. They look like tiny mosquitoes with thin legs. Their antennae have segments and are much longer than their heads. Bradysia gnats have a clear Y-shaped vein on their light gray or clear wings. These weak fliers spend most of their time running on damp soil. They also rest on pot rims. Light attracts them, so you will often find them hovering near indoor windows.
Shore flies (Scatella stagnalis) are frequently confused with fungus gnats in moist environments. Shore flies have stouter bodies resembling miniature fruit flies, possess very short bristle-like antennae, and fly with much greater agility. A close look at their dark wings reveals five distinct pale spots. Shore fly larvae feed exclusively on green algae, whereas fungus gnat larvae target fungi, organic matter, and tender plant roots. Distinguishing between them prevents misdirected treatments.
| Trait | Fungus Gnat (Sciaridae) | Shore Fly (Scatella stagnalis) |
|---|---|---|
| Adult Size | 1/16 to 1/8 inch long | About 1/8 inch long |
| Body Build | Slender, delicate, mosquito-like | Stocky, sturdy, fruit-fly-like |
| Antennae | Long and segmented (longer than head) | Short and bristle-like |
| Wing Pattern | Clear to light gray; Y-shaped vein | Dark wings with 5 pale spots |
| Flight Habit | Weak flier; crawls across media | Strong, active flier |
| Larval Trait | Translucent body with shiny black head | Opaque body; breathing tubes at rear |
| Larval Diet | Soil fungi, decaying matter, root hairs | Algae on surfaces and wet benches |
Recognizing Larval Damage and Root Stress
Adult fungus gnats do not bite people or spread diseases to humans. They also do not eat plant leaves. However, seeing them means a breeding population lives under the soil. The main visual harm from adults comes from tiny dark droppings, called flyspecks, on leaves, flowers, and pots. The true danger to plant health happens in the root zone. There, hundreds of young larvae feed on the roots.
Fungus gnat larvae are thin, whitish, legless worms up to 1/4 inch long with shiny black heads. In very wet soil, large groups of larvae leave shiny slime trails that look like snail tracks. Larvae mainly eat soil fungi and decaying plant matter. When their numbers grow large, they chew root hairs and tunnel into tender roots. Seedlings and young cuttings without hardened callus tissue face the highest risk. Larval feeding stunts plant growth, turns leaves yellow, and can kill young plants.
A plant wilting in moist potting mix is a clear warning sign. Gnat larvae chew roots, which stops the plant from taking in water. This damage looks just like a lack of water. Giving more water to a wilting plant often makes root harm worse. It also helps root rot fungi grow. Learn what overwatering looks like to tell dry soil, soggy rot, and gnat damage apart. Chewed roots also let harmful fungi enter, such as Pythium. This fungus causes damping-off disease in young seedlings.
First Stage: Restrict Moisture and Clear Organic Waste
Drying the top layer of potting mix is the best way to stop gnats. Gnat eggs and young larvae cannot live without steady moisture at the soil surface. Female gnats lay batches of 200 to 300 eggs directly into damp, decaying organic matter. If the top soil dries out, new eggs fail to hatch. This breaks the whole breeding cycle.
Apply these moisture and sanitation steps across all containers:
- Allow topsoil dry-down: Let the top two inches of container mix dry completely before adding water. Avoid universal watering schedules; probe the soil with your finger or a wooden skewer to confirm surface dryness.
- Drainage maintenance: Clear container saucers within 30 minutes of watering so pots do not sit in stagnant puddles. If potting mixes stay waterlogged for days, blend in perlite or coarse sand to increase aeration. This is especially helpful when transitioning newly rooted plants after rooting stem cuttings in water into potting mix.
- Clear organic litter: Remove fallen leaves, moldy plant debris, and moist grass clippings from the soil surface. Hold off on heavy organic amendments like blood meal, fish emulsion, or uncomposted manure, which feed soil fungi.
- Apply surface barriers: Put a 1/2-inch layer of clean sand, fine gravel, or dry pebbles over the potting soil. This layer acts as a physical barrier. It stops female gnats from reaching damp soil to lay eggs.
- Sanitize incoming media: Never use unfinished compost in indoor containers. Commercial media is heat-treated to kill fly larvae and fungal spores. For home mixes, gardeners can solarize moist soil inside clear or black plastic bags (kept no deeper than 8 inches) on an elevated pallet in full sun for 4 to 6 weeks. Store pasteurized mix in tightly sealed plastic bins.
Second Stage: Monitor and Trap Adults and Larvae
Use yellow sticky cards for adults and raw potato slices for larvae. This test shows how bad the infestation is and checks if controls work. Adult gnats are drawn to bright yellow surfaces. Cut yellow sticky cards into small squares. Place them on wooden skewers right at the soil line to catch females before they lay eggs.
In greenhouses, managers place 10 yellow sticky cards per 1,000 square feet just above plant tops. At home, put one small card on each infested pot or plant group. Trapping adult gnats lowers their numbers right away. However, cards alone cannot stop an infestation. They do not kill the young stages growing in the soil.
To monitor and trap soil-dwelling larvae, use raw potato chunks or disks:
- Cut a raw, unpeeled potato into 1/2-inch slices.
- Place the slices cut side down directly on the moist potting mix surface.
- Leave the potato slices undisturbed for 3 to 4 days (about 72 hours). Larvae will crawl up into the cut flesh to feed on the moist starches.
- Lift each potato disk and count the white, black-headed larvae feeding on the bottom.
- Dispose of infested potato slices in an outdoor trash bin to remove those larvae permanently from the container, then replace them with fresh pieces if monitoring is still needed.
Third Stage: Apply Targeted Biological Treatments
Apply natural controls to the soil if high larval numbers threaten plant roots. Use them as part of an integrated pest management plan. These treatments kill weak larvae and pupae in the soil. They do not harm helpful insects, pets, or plant tissue.
The main natural treatment is a helpful bacterium called Bti. Scientists call this microbe Bacillus thuringiensis subspecies israelensis. It is a natural, spore-forming soil bacterium made through fermentation. You can find it in products like Gnatrol and Mosquito Bits. When larvae eat the bacterial proteins, toxins break down their stomach lining. EPA tests show that Bti is completely nontoxic to people and pets. It is also safe for helpful predator bugs.
Many people make the mistake of using garden Bt sprays meant for caterpillars. Caterpillar sprays contain Bacillus thuringiensis subspecies kurstaki. This type has no effect on fly larvae. You must use the israelensis subspecies instead. Bti does not keep reproducing or live permanently in indoor potting soil. Soak the soil with a mixture made by following label directions. Apply it every 5 days for at least two or three cycles.
Helpful roundworms offer another natural soil soak. These worms hunt and kill pests in the soil. Scientists call them entomopathogenic nematodes. This scientific name refers to roundworms that kill insects. One common species is Steinernema feltiae. These tiny worms move through wet soil, enter gnat larvae, and release deadly bacteria. Steinernema feltiae works best when soil temperatures stay between 60 and 90 degrees Fahrenheit. The potting mix must also stay lightly moist. Unlike Bti, nematodes breed inside host larvae. They can provide long-lasting control after a few applications. Nematodes and Bti work well together and can be used in the same plan.
Predatory soil mites (Stratiolaelaps scimitus, formerly known as Hypoaspis miles) live in upper soil layers and hunt gnat eggs, pupae, and small larvae. Commercial greenhouses introduce them at rates of half a dozen to several dozen mites per square foot. However, they perform poorly in single, dry indoor pots and are better suited to humid greenhouse beds. An alternative physical home drench mixes one part 3 percent household hydrogen peroxide with four parts water. This solution bubbles through the soil and kills larvae on contact. It then breaks down into harmless water and oxygen.
Fourth Stage: Targeted Chemical Knockdown for Severe Outbreaks
Reserve chemical sprays for severe outbreaks where adult gnats swarm in intolerable numbers indoors. Chemical applications target adult resting sites to suppress mating quickly while biological drenches work through the soil. Contrast these options against gentler natural pest control solutions before selecting synthetic chemicals.
Natural pyrethrins come from chrysanthemum flowers. Synthetic pyrethroids include chemicals like bifenthrin or permethrin. Both types quickly knock down flying and resting adults. Many pyrethrin products add piperonyl butoxide, or PBO, to boost results. When using these products:
- Target resting sites: Lightly spray the soil surface and container rim where adults congregate. Never fog indoor living spaces aerially or spray gnats in flight.
- Outdoor treatment precaution: Carry infested houseplant pots outdoors to apply pyrethrins or pyrethroids. Keep treated plants outside in a sheltered spot for about 24 hours (one full day) to let chemical residues dry before returning them inside.
- Commercial insect growth regulators: In greenhouses, growers use insect growth regulators like diflubenzuron or cyromazine as soil drenches. Diflubenzuron stops chitin growth when larvae molt. This kills larvae for 30 to 60 days after one drench. Because diflubenzuron is very toxic to water life, only commercial growers may use it under strict rules.
- Federal label compliance: Under the Federal Insecticide, Fungicide, and Rodenticide Act (FIFRA), the pesticide label is legal regulation. Never exceed specified dilution rates or apply products off-label. Commercial pesticide advice from manufacturers may reflect sales interests; rely on university Extension recommendations for unbiased guidance.
Environmental Variables That Alter the Pest Cycle
Ambient temperature determines the speed of the fungus gnat life cycle, dictating how frequently you must reapply biological drenches. Fungus gnats pass through four stages: egg, larva (with four distinct instars), pupa, and adult. At a steady temperature of 75 degrees Fahrenheit, a complete female-to-female generation takes approximately 17 days:
- Egg incubation: Eggs hatch in roughly 3 days.
- Larval development: Larvae feed actively through four growth stages over 10 days.
- Pupal transition: Oblong pupae rest in moist media for 4 days.
- Adult emergence: Adults emerge, mate, live up to 10 days, and lay up to 200 to 300 eggs.
Warmer temperatures (above 75 degrees Fahrenheit) accelerate development, creating rapid overlapping generations where eggs, larvae, pupae, and adults coexist simultaneously in the same pot. In cooler conditions (around 60 degrees Fahrenheit), development slows down. Larval feeding stages can stretch to 14 days or longer, requiring you to space biological drenches further apart and maintain sticky cards longer to intercept slow-developing cohorts.
Outdoor seasonal shifts also change pest pressure. In Mediterranean climates like California’s interior valleys, fungus gnats surge during rainy winter and spring months when natural moisture is abundant, declining during hot, dry summers. In humid coastal zones and climate-controlled indoor rooms, breeding continues all year. Certain cold-hardy species such as Exechia nugatoria survive subfreezing winters by producing noncolligative antifreeze proteins, allowing their bodies to semi-freeze without damaging vital neural tissues.
Illustrative 21-Day Eradication Timeline
The following worked example illustrates a complete 21-day management schedule for an indoor collection of 6 infested potted plants maintained at 72 to 75 degrees Fahrenheit. It combines moisture control, larval extraction, and repeat biological drenches to clear all overlapping stages.
| Day | Action Taken | Target Stage | Observed Milestone |
|---|---|---|---|
| Day 1 | Insert yellow sticky cards; place raw potato disks cut side down; halt watering to start surface dry-down. | Flying adults and active soil larvae | Sticky cards trap active adults; potato disks attract feeding larvae. |
| Day 4 | Inspect potato disks; discard infested slices outdoors; apply first Bti drench mixed per label directions. | First larval generation | Larval count recorded (e.g., 10 to 15 per disk). Bti begins disrupting larval gut walls. |
| Day 9 | Apply second Bti soil drench (5 days after first drench); install fresh yellow sticky cards. | Newly hatched larvae from surviving eggs | Sticky cards capture fewer adults; newly hatched second cohort ingests Bti before reaching pupation. |
| Day 14 | Apply third Bti soil drench (5 days after second drench); place fresh potato disks on media. | Late-hatching stragglers and pupal survivors | Larval feeding stops; root hair recovery begins on affected plants. |
| Day 18 | Inspect potato disks after 72 hours; discard disks; examine yellow cards. | Verification of control | Zero larvae observed on potato disks; yellow sticky cards show zero newly trapped adults. |
| Day 21 | Resume normal watering routine, allowing top 2 inches of soil to dry between waterings. | Long-term cultural prevention | Eradication verified; dry topsoil barrier prevents reinfestation. |
To interpret your progress, check both traps on Day 18. If potato disks show zero larvae and sticky cards capture no new flies, the treatment cycle is complete. If fresh adults appear on cards after Day 21, inspect nearby containers, indoor plumbing drains, or open potting soil bags for secondary breeding sites that may be reinfesting your collection.
Frequently asked questions
Can fungus gnats bite humans or pets?
No, fungus gnats cannot bite humans or pets, and adult gnats do not eat plant foliage. Their presence indoors is strictly an aesthetic nuisance. However, their larvae living in potting mix can chew tender root hairs and stunt young seedlings.
How do you tell fungus gnats apart from shore flies?
Examine their antennae and wings under good light. Fungus gnats have slender bodies and long, segmented antennae that exceed head length. Shore flies are stockier, fly more strongly, have very short bristle-like antennae, and display five pale spots on their dark wings.
Can you use caterpillar Bt spray to kill fungus gnat larvae?
No, standard caterpillar Bt products do not kill fungus gnat larvae. You must use Bacillus thuringiensis subspecies israelensis, known as Bti. Caterpillar sprays use a different strain that only harms moth larvae. In contrast, Bti makes proteins that poison fly larvae.
How long can adult fungus gnats live indoors?
Adult fungus gnats typically live up to 10 days indoors. During that window, a single female can lay 200 to 300 eggs in clusters on moist soil surfaces. Because eggs hatch in about 3 to 4 days, adult elimination alone cannot solve an infestation.
Sources
- Fungus Gnats / Home and Landscape / UC Statewide IPM Program (UC IPM) · ipm.ucanr.edu
- Fungus Gnats and Shore Flies in Greenhouses · Wisconsin Horticulture (hort.extension.wisc.edu)
- Fungus gnat - Wikipedia · en.wikipedia.org
Prepared from these references and checked against them. References retrieved October 12, 2026.
Spotted an error? Tell us what needs correcting.