The short answer: Fungus gnats breed in moist organic potting mix; cut surface moisture, remove or treat the top 1-2 inches of soil, and use sticky traps plus a biological larvicide on a 7-14 day schedule to break the life cycle.
Identify the Infestation
Fungus gnats are small, mosquito-like flies about 1/8 inch (3-4 mm) long that hover around pots, drain tiles, and propagation trays. Adults are weak fliers and often rest on soil or the rim of a pot; larvae are translucent white with a black head and live in the top 1-2 inches of potting mix where they feed on fungi, decaying roots, and organic matter.
To confirm an infestation, scoop away the top 1 inch of soil from a suspect pot and inspect it under bright light: larvae look like tiny white maggots 2-5 mm long. For a quick trap test, place a 4-6 inch yellow sticky trap 3-6 inches above the soil; catching 5 or more adults in 24-48 hours indicates a growing population that should be treated.
Another simple test is the emergence bag: cover the pot with a clear plastic bag or container for 1 hour and look for adults active inside. Heavy emergence within that hour suggests pupae are present just below the surface. For drains, drop a 1-inch cube of bread into the drain lip and inspect for adults each day for 2 days—adults attracted to the organic bait point to a drain source.
Understand the lifecycle so you can time treatments. At room temperature eggs hatch in about 4-6 days, larvae feed for 10-14 days across three instars, and pupae last 3-7 days; a full generation is roughly 2-4 weeks. Targeting larvae with soil drenches and interrupting adult mating with traps on a 7-14 day cadence will reduce populations each generation.
Use a hand lens or smartphone macro lens to inspect roots and the surface. Look for thin white threads of fungal growth and small root nubs chewed or brown; these signs mean larvae are feeding and a soil treatment or repotting is warranted within 48-72 hours to prevent further damage.
Where they come from
Sizes, cycles, and trap numbers that confirm gnats.
Bag-test one hour
Cover the pot with a clear bag for 1 hour; heavy activity inside means pupae just under the surface.
Treat every 7 to 14 days
Drench larvae plus trap adults on a 7 to 14 day cadence and repot within 48 to 72 hours if roots chew.

Stop and Prevent Fungus Gnats
Start by changing how you water. Allow the top 1-2 inches of potting mix to dry between waterings; for a 4-6 inch pot in average indoor light this usually means watering every 7-10 days, while a 10-12 inch pot commonly needs water every 10-14 days. Use a moisture meter set to read percent or stick a finger 2 inches into the soil—if it feels dry at that depth, delay watering.
Remove infested surface soil with deliberate steps. For mild infestations, scrape away and discard the top 1 inch of soil and replace with 1 inch of clean builder’s sand or fine grit to create a dry, egg-unfriendly barrier. For heavier infestations, repot: remove the plant from its pot, gently shake off loose old soil, trim rotten roots by 1-2 inches with sterile shears, and repot in fresh mix, replacing at least 50% of the original soil around the root ball.
When repotting, follow this 6-step sequence: 1) water the plant lightly 24 hours before to ease root removal, 2) work over a tarp to contain soil, 3) shake off old mix until most loose soil is gone, 4) trim only obviously rotten roots and cut back any dead top growth by up to 25%, 5) place the plant in a pot 1-2 inches larger than the root ball with fresh mix, and 6) water to settle the new mix but allow the top 1 inch to dry before the next watering. Using a pot 1-2 inches larger than the root ball avoids creating wet pockets around roots.
For a precise repotting mix, measure by volume: 60% peat-free potting mix, 30% perlite or pumice, and 10% horticultural grit or coarse sand. This blend reduces water retention while keeping enough moisture for roots. If your region has hard water, pre-soak perlite for 24 hours and drain to remove dust, then dry before mixing to avoid compaction.
Apply barriers and traps: position 2-3 yellow sticky traps 3-6 inches above the soil surface or at canopy height for grouped pots; replace traps when two-thirds covered or every 2-4 weeks. For propagation trays and cuttings, spread a 1/4 inch layer of coarse sand or 6 mm grit over the soil, or use a breathable dome that allows air but reduces humidity; these measures reduce egg-laying by adults and cut larval habitat.
Use biological larvicides for active larvae. Bacillus thuringiensis israelensis (BTI) in granule or concentrate form targets larvae when applied as a soil drench. A practical home rate is roughly 1 teaspoon (about 5 g) of BTI granules per 6-inch pot mixed into 1 cup (240 ml) of water, applied until the surface is moistened and repeated every 7-10 days for 2-3 applications. For concentrates, follow label directions; typical repeat intervals are every 7-14 days until larvae counts drop.
Beneficial nematodes (Steinernema feltiae) are another option: mix as directed on the package (commonly 10-20 million nematodes per 1 gallon of water for multiple pots) and apply as a drench, keeping soil moist for 48 hours after application to aid nematode movement. Repeat nematode applications every 10-14 days for 2-3 treatments, and store nematodes refrigerated until use to preserve viability.
Sanitize propagation materials and practice quarantine. Scrub reused pots and soak them in a 10% bleach solution (1 part household bleach to 9 parts water) for 10 minutes, then rinse and air-dry for at least 24 hours. Quarantine new plants for 10-14 days on a separate shelf and inspect weekly; discard or solar-sterilize suspect potting mix in black plastic for 4-6 weeks in full sun, turning the pile weekly to reach sustained temperatures above 120°F (49°C) where possible.
Check drainage and container choices: use pots with multiple 1/4 inch drainage holes and avoid placing a compacted solid layer at the bottom. If you use self-watering pots, flush the reservoir weekly and allow the top 1 inch of soil to dry between fills. For hanging baskets, reduce irrigation volume by about 20% and increase airflow to speed surface drying.
Give measures time and monitor results. Expect adult numbers to fall within 7-14 days after combined actions (drying, traps, and larvicides) and to reach low levels after 2-4 weeks with consistent follow-through. Continue traps and moisture checks for at least two consecutive generations—about 4-8 weeks total—until you record zero adults for two consecutive weeks before relaxing controls.

Frequently Asked Questions
Further reading: Why Do Container Plants Dry Out Every Afternoon? · Six Humidity-Loving Plants for Bathrooms
Sources: UMN Extension
