Knowing how to get rid of fungus gnats is one of the most searched indoor gardening questions for good reason: these insects appear reliably in any collection of houseplants or indoor food crops, they are genuinely difficult to eliminate once established, and most of the advice circulating about them either addresses only part of the problem or recommends treatments that do not work on the life stage causing the actual damage.
Fungus gnats are not just an annoyance. The adults are harmless to plants, but their larvae feed on roots and organic matter in the soil, and a heavy larval population in a pot of seedlings or a young herb plant can cause significant damage before any visible symptoms appear above the soil surface. Getting rid of them requires treating both the adults and the larvae simultaneously, and it requires breaking the breeding cycle completely rather than just reducing the visible adult population.
Key Takeaways
The Fungus Gnat Life Cycle
Fungus gnats have four life stages and most treatments only affect one or two of them. Adult gnats live for about one week. During that week, each female lays up to 200 eggs in the top inch or two of moist potting soil. Eggs hatch in three to six days into larvae that feed in the soil for approximately two weeks before pupating. Adults emerge from pupae in the soil and the cycle repeats. From egg to reproductive adult takes roughly three to four weeks at typical indoor temperatures.
A single treatment does not end an infestation. Eggs already in the soil when you begin treatment will hatch and produce a new larval generation. Pupae already in the soil are largely unaffected by most treatments. You are not dealing with a single generation but with multiple overlapping cohorts at different life stages simultaneously, which is why infestations persist for weeks after treatment begins even when the treatment is working.
A control program needs to run for at least three to four weeks to interrupt the cycle fully. The goal is to prevent adults from laying new eggs while killing existing larvae, so that each successive generation is smaller than the last until the population collapses. Patience and consistency matter more than the specific products used.
Identifying Fungus Gnats
Fungus gnats are small, dark-bodied flies that look superficially similar to fruit flies but behave differently. They are about one-eighth of an inch long, grey to black, with long legs and long antennae relative to their body size. They fly weakly and tend to run across soil surfaces and lower plant leaves rather than hovering or flying in tight circles the way fruit flies do. When disturbed from a pot, they scatter upward briefly before settling back near the soil.
The key behavioral distinction from fruit flies is location. Fruit flies congregate near fermenting fruit, overripe produce, and compost bins. Fungus gnats congregate near houseplants and potting soil. If the flies you are seeing are clustering around your plants, running across the soil surface, or emerging from pot drainage holes, they are fungus gnats. If they are primarily near your fruit bowl or kitchen drain, they are fruit flies requiring different treatment.
Larvae are rarely seen without actively looking for them. They are small, translucent white, thread-like maggots up to one-quarter inch long with a distinctive black head capsule. To check for larval activity, press a small piece of raw potato cut side down onto the soil surface and leave it for 24 to 48 hours. Larvae are attracted to the potato tissue and will be visible on the cut surface when you lift it. This is the most reliable method for confirming larval presence and for monitoring whether treatment is working.
Signs of larval damage include unexplained wilting or yellowing in plants that are watered adequately, stunted growth, sudden decline in seedlings, and roots that appear brown, stubby, or damaged when the plant is carefully unpotted. Young seedlings and recently rooted cuttings are the most vulnerable because their root systems are small relative to the larval population they may be hosting.
Why Overwatering Causes Fungus Gnats
The connection between overwatering and fungus gnats is direct and well established. Female fungus gnats seek out moist organic material to lay their eggs because their larvae require moisture to survive and feed. Dry soil kills eggs and young larvae quickly. Soil that is consistently moist in the top two to three inches provides ideal conditions for continuous reproduction.
Most indoor plant problems involve overwatering rather than underwatering, and fungus gnats are one of the clearest diagnostic signs that a watering habit needs adjustment. Pots without adequate drainage holes, pots left sitting in standing water in saucers, and the common habit of watering on a fixed schedule regardless of actual soil moisture all contribute to the persistently moist soil conditions that fungus gnats require.
Peat-heavy potting mixes hold more moisture than mixes with higher perlite or coarse sand content, which is why gnats are more common in standard potting soil than in well-amended, fast-draining mixes. Adding perlite at a ratio of roughly one part perlite to three parts potting mix improves drainage and reduces the time the top layer of soil stays moist after watering, which directly reduces gnat reproduction rates.
Understanding this connection also explains why fungus gnats are most common in winter. Indoor plants need significantly less water in winter due to reduced light levels and slower growth, but many growers continue watering at the same frequency as summer. The result is chronically overwatered soil sitting in low-light conditions, which is optimal for fungus gnat reproduction and poor for the plants they are infesting.
How to Get Rid of FUngus Gnats – Let the Soil Dry
Allowing the soil to dry significantly between waterings is not just one component of fungus gnat control, it is the foundation that every other treatment depends on. Treatments applied to soil that remains moist will achieve partial results at best, because the conditions driving reproduction remain in place. A grower who applies every recommended product but continues overwatering will continue to have fungus gnats.
For most houseplants, allow the top two inches of soil to dry completely before watering again. For drought-tolerant plants like succulents, cacti, and many herbs, allow the soil to dry even further, checking two to three inches deep before adding water. The finger test is reliable: insert a finger into the soil to the second knuckle. If it feels dry at that depth, water. If it feels damp or cool, wait.
During an active infestation, push this further than you normally would. Allow the soil to dry as much as the plant can tolerate without stress, typically until the top third of the soil is dry, before watering. This drydown period kills eggs and young larvae, which have minimal tolerance for dry conditions. A single thorough drydown will not eliminate all larvae, but it will noticeably reduce the population and is the essential complement to every other treatment.
Water deeply and infrequently rather than lightly and often. Deep watering that saturates the soil and drains fully through the pot is healthier for plant roots and dries more predictably than frequent shallow watering that keeps the top inch of soil perpetually damp. After watering, empty saucers within 30 minutes so pots do not reabsorb standing water.
Yellow Sticky Traps: Monitoring and Adult Reduction
Yellow sticky traps placed just above soil level are the standard tool for monitoring fungus gnat adult populations and reducing the number of females laying eggs. Adults are attracted to the color yellow, fly toward the traps, and become stuck on the adhesive surface.
Traps do not eliminate an infestation on their own because they only catch adults, and adult gnats represent a small fraction of the total population at any given time. However, they serve two valuable functions: they tell you whether your control efforts are working by showing whether the adult count is decreasing week over week, and they reduce the number of eggs being laid by removing egg-laying females from the population before they complete their reproductive cycle.
Place traps horizontally just above the soil surface where adults spend most of their time rather than vertically at plant height. Stake them directly into the pot or lay them flat on the soil surface. Replace traps when they are covered in insects or when the adhesive loses effectiveness, typically every one to two weeks. Keep a count of adults caught per trap per week as a simple monitoring tool. A declining count indicates the breeding cycle is being interrupted. A stable or increasing count indicates that reproduction is continuing and the soil treatment component of the program needs adjustment.
Traps are particularly useful in situations with multiple pots, where they help identify which pots have the heaviest infestations and need the most attention.
Bright yellow color attract flying insects, and high quality glue keeps them from escaping. Specially designed for flying plant pests. Great for outdoor or indoor plant, especially potted plants.
Bacillus Thuringiensis var. Israelensis: The Most Effective Larval Treatment
Bacillus thuringiensis var. israelensis, sold under the brand name Gnatrol and in several other formulations, is a naturally occurring soil bacterium that produces proteins toxic to the larvae of fungus gnats and mosquitoes but harmless to plants, humans, pets, earthworms, and beneficial soil organisms. It is the most effective and most broadly recommended biological treatment for fungus gnat larvae and is approved for use in organic production.
Bti is applied as a soil drench: mix the product according to label directions and water it into the soil in place of a regular watering. The bacteria must come into contact with feeding larvae to be effective, so thorough soil saturation is important. Apply when the soil has dried to the point where the plant is ready for watering, so the drench is absorbed fully rather than running off the surface of already-moist soil.
Apply Bti as a soil drench every seven to ten days for three to four weeks. Each application kills larvae present in the soil at the time of treatment but has no persistent activity against eggs or pupae that hatch after the bacteria are consumed or degrade. The repeated application schedule is designed to address each successive larval generation as it hatches, progressively reducing the total population with each cycle.
Bti is available at most garden centers in granular form that can be mixed with water, or as a concentrate. Mosquito Bits, widely available at hardware stores, is a granular Bti formulation that works well as a soil drench when mixed with water at the rate of one tablespoon per gallon and used as a regular watering until the infestation clears.
Active ingredient of the product is a strain of the bacterium bacillus thuringiensis, which is a leading insecticide used worldwide; approved for organic gardening
Beneficial Nematodes: The Soil-Level Alternative
Beneficial nematodes, specifically Steinernema feltiae, are microscopic roundworms that actively hunt and parasitize fungus gnat larvae in the soil. They are applied as a soil drench in the same manner as Bti and are equally harmless to plants, humans, and pets. They are a strong option for growers who prefer a single comprehensive biological treatment or who want an alternative to Bti.
Nematodes require moist soil to move through the growing medium and locate larvae, which means they are applied differently from Bti: rather than allowing the soil to dry before application, the soil should be lightly moist at the time of application. Water the plant lightly the day before applying nematodes if the soil is very dry.
Follow the application rate on the product label carefully. Nematodes are living organisms with a limited shelf life. Purchase from a reputable supplier, check the expiration date, store refrigerated until use, and apply as soon as possible after purchase. Unlike Bti, nematodes establish in the soil and continue hunting larvae between applications, though reapplication every two to three weeks is still recommended during an active infestation.
Steinernema feltiae is cold-tolerant compared to other nematode species and performs well at the cooler temperatures typical of indoor growing environments, which makes it the correct species to specify when purchasing for this application.
Slow-Release Nematodes - Biological Pest Control for Fungus Gnats, Thrips, & Whiteflies (280g, Treats Up to 50 Planters)
Hydrogen Peroxide Drench: Fast-Acting but Use with Care
A three percent hydrogen peroxide solution diluted with water kills fungus gnat larvae on contact and can provide rapid knockdown of a heavy larval population. Mix one part three percent hydrogen peroxide, the standard drugstore concentration, with four parts water and apply as a soil drench until it runs from the drainage holes. The solution will fizz as it contacts organic matter in the soil, which is normal and harmless to plants.
The hydrogen peroxide drench kills larvae present in the soil at the time of treatment but, like Bti, has no persistent activity. It does not kill eggs or pupae. It also breaks down quickly in the soil, which means it does not accumulate or cause long-term effects on soil microbiology. Limit use to two to three applications spaced five to seven days apart during a heavy infestation, then transition to Bti or nematodes for ongoing cycle interruption.
This treatment is a useful tool for situations where an infestation has reached a level that is causing visible plant damage and a rapid reduction in larval population is needed before transitioning to a longer biological control program. It is not a standalone solution and should not be used as a substitute for addressing the underlying moisture conditions that sustain the infestation.
Treating Multiple Pots and Preventing Reinfestation
Fungus gnats move freely between pots. Treating only the most heavily infested plants while leaving other pots untreated allows the population to sustain itself and recolonize treated pots. All pots in the same room should be assessed and treated if any adult activity is present.
Quarantine new plants before bringing them into an existing collection. New plants purchased from nurseries or received as gifts frequently carry fungus gnat eggs or larvae in their potting soil. Keep new plants isolated for two to four weeks, monitoring for adult emergence and treating the soil with a Bti drench as a precaution before introducing them to your other plants.
Top-dressing pots with a half-inch layer of coarse sand or fine gravel after an infestation clears creates an inhospitable surface layer that deters egg-laying females. The sand dries quickly after watering and does not retain the moisture that fungus gnats require to lay eggs successfully. This is a simple, inexpensive preventive measure that substantially reduces reinfestation rates, particularly in collections where slightly moist potting soil is unavoidable for plant health.
Repotting heavily infested plants into fresh potting mix is worth considering when larval damage to roots is suspected or when the existing potting mix is old, heavily decomposed, or very peat-heavy. Gently remove as much of the old soil as possible from the root ball, trim any visibly damaged roots, and repot into a fresh mix with higher perlite content. Follow up with a Bti drench to address any larvae that transferred with the root ball.
Frequently Asked Questions About How to Get Rid of Fungus Gnats
How long does it take to get rid of fungus gnats completely?
A consistent treatment program combining soil drydown, yellow sticky traps, and Bti or beneficial nematode drenches applied every seven to ten days typically eliminates a fungus gnat infestation within three to four weeks. The timeline reflects the three to four week life cycle of the insect. Infestations that persist beyond four weeks of consistent treatment usually indicate that the watering habit has not been adjusted sufficiently or that some pots in the collection are being left untreated.
Are fungus gnats harmful to humans or pets?
Adult fungus gnats do not bite, sting, or transmit disease to humans or pets. They are an annoyance but pose no health risk. Larvae remain in the soil and do not affect humans or pets. The concern is entirely about plant health, particularly the root damage larvae cause in seedlings and young plants.
Can fungus gnats live in dry soil?
Fungus gnat eggs and young larvae cannot survive in dry soil. Females will not lay eggs in soil that is dry at the surface. This is why allowing soil to dry between waterings is the most effective single control measure. Soil that dries completely in the top two inches between waterings will not sustain a fungus gnat population regardless of how many adults are present in the room.
Do fungus gnats come from the bag of potting soil?
Yes, sometimes. Commercially bagged potting mixes can harbor fungus gnat eggs or larvae, particularly peat-heavy mixes that have been stored in warm conditions. Opening a new bag of potting soil and finding gnats is not uncommon. Pasteurizing potting mix before use by spreading it on a baking sheet and heating at 180 to 200 degrees F for 30 minutes kills any eggs or larvae present. Storing opened bags of potting mix in sealed containers prevents subsequent colonization.
Will fungus gnats go away on their own if I stop watering?
Severely restricting water will reduce and eventually eliminate a fungus gnat population by removing the moisture eggs and larvae need to survive, but doing so long enough to starve out a full infestation typically harms the plants involved. A more practical approach is to water correctly for the plant’s needs, allowing appropriate drydown between waterings, while simultaneously using Bti drenches to kill larvae in the soil. This addresses the infestation without stressing the plants.
Fungus gnats are one of those indoor gardening problems that respond directly to good plant care rather than to an escalating series of chemical interventions. The growers who deal with them most effectively are almost always the ones who water less often than they instinctively want to, who drain saucers promptly, and who catch new infestations early through regular plant inspection. Add a round of Bti drenches when adults appear and the problem resolves within a few weeks. Skip the watering adjustment and the gnats return regardless of what else you apply.
For more on troubleshooting indoor growing problems, see our guide to indoor gardening for beginners and our overview of the best windowsill plants for a productive kitchen garden.





