How to Get Rid of Fungus Gnats in Houseplants

Yellow sticky trap catching adult fungus gnats in houseplant soil, with a magnified close-up of a fungus gnat.

If you’re wondering how to get rid of fungus gnats, start with the soil. Let the surface dry as much as your houseplant safely tolerates, use yellow sticky traps to catch adults, and consider a larval treatment such as Bti if flies keep emerging.

The distinction matters: sticky traps catch the gnats you see, but larvae can continue developing in damp potting mix. This guide shows you how to confirm which insects you have, choose a treatment that suits your plant, and tell whether the infestation is actually declining—without promising an overnight fix.

Identify Fungus Gnats and Find the Source

Identify Fungus Gnats and Find the Source

Before trying to get rid of fungus gnats, make sure those tiny flying insects are actually coming from your houseplants. Fungus gnats are small, dark flies that typically gather around moist potting soil. You may notice them crawling across the soil, hovering near plant containers, or flying toward a nearby window.

Advertisements

According to the University of California’s Integrated Pest Management Program (UC IPM), adult fungus gnats are usually about 1/16 to 1/8 inch long, with slender legs, long antennae, and pale, transparent wings. Their delicate, mosquito-like appearance helps distinguish them from other household flies.

Finding adults near a plant is a useful clue, but identifying where they reproduce is more important. Their larvae develop in damp growing media, feeding primarily on fungi and decaying organic matter.

Fungus Gnats vs. Fruit Flies and Drain Flies

Not every tiny fly in your home is a fungus gnat. Fruit flies and drain flies can look similar at first glance, but their appearance and preferred breeding locations provide useful clues.

Insect
Appearance
Where You’ll Usually Find It
Fungus gnats
Slender, dark, mosquito-like flies with long legs and antennae
Around houseplants, moist potting soil, and nearby windows
Fruit flies
Small, often tan flies with rounded bodies; many common species have reddish eyes
Around ripening fruit, fermenting liquids, and food scraps
Drain flies
Small, fuzzy, moth-like flies with broad, hairy wings
Near sinks, showers, and other drains containing organic buildup

The University of Minnesota Extension’s fruit fly identification guide describes their association with fermenting foods and liquids. Its household fly guide explains the fuzzy appearance and drain-associated breeding habits of drain flies.

A simple way to narrow down the source: Watch where the insects repeatedly gather. Flies emerging from or crawling over potting soil suggest fungus gnats, while insects concentrated around fruit or drains may indicate a different problem.

Location alone is not definitive, especially when several types of small flies are present. If you’re unsure, examine them more closely and check the potting soil for larvae. For help distinguishing other common houseplant pests, consult RadiantPlants’ plant pest identification guide.

How to Check Houseplant Soil for Larvae

Fungus gnat larvae are tiny, legless, worm-like creatures with translucent white bodies and distinctive shiny black heads. They often hide in moist potting mix, so you may see adult flies without noticing the larvae.

Advertisements

One practical way to look for larvae is the raw potato monitoring method, recommended by both UC IPM and the University of Minnesota Extension.

Here’s how to check:

  1. Cut a fresh, raw potato into a small, thick slice or chunk.
  2. Place it directly on the potting soil with the freshly cut surface facing down.
  3. Check underneath it periodically over the next few days.
  4. Look for small, pale larvae with dark heads on the potato’s underside or nearby soil.
  5. Remove and discard the potato after checking, particularly if larvae are present.

The potato attracts fungus gnat larvae, making them easier to observe without digging through the plant’s roots.

What if you don’t find any larvae?

A negative potato check doesn’t necessarily mean the pot is free of fungus gnats. Larvae may be elsewhere in the growing medium or present in numbers too low to detect with a single check.

You can also place a yellow sticky card near the soil surface to monitor adults. However, sticky cards capture flying insects, not larvae, so they cannot confirm whether the soil is free of immature fungus gnats.

If several plants are nearby, inspect more than one pot. Pay particular attention to containers with persistently damp soil, poor drainage, or accumulated decaying plant debris.

Do Fungus Gnats Bite or Harm Plants?

Adult fungus gnats do not bite people or damage plants. Their larvae mainly feed on fungi and decaying organic matter in potting soil, but large populations can damage roots and stunt growth, especially in seedlings and young plants. According to UC IPM’s fungus gnat guidance, serious damage is less common than the nuisance caused by flying adults.

Once you’ve identified the insects and their likely breeding source, you can choose a treatment that addresses the infestation rather than simply catching the visible flies.

How to Get Rid of Fungus Gnats: 5 Steps

How to Get Rid of Fungus Gnats: 5 Steps

The most effective way to get rid of fungus gnats is to tackle both the flying adults and the larvae developing in potting soil. Start by identifying infested plants, reducing excess moisture, and using yellow sticky traps. If the infestation persists, a targeted larval treatment may help break the breeding cycle.

According to the University of California’s Integrated Pest Management Program (UC IPM), managing moisture and targeting immature fungus gnats are more effective long-term strategies than simply killing visible adults.

Step 1 — Locate Infested Houseplants

Begin by checking plants where you’ve noticed small flies hovering near the soil or gathering around nearby windows.

Pay particular attention to pots with consistently damp soil, poor drainage, or decaying leaves on the surface. These conditions can support the fungi and organic matter that fungus gnat larvae feed on.

To narrow down the source:

  1. Inspect the soil surface of each nearby houseplant.
  2. Check whether the potting mix remains unusually wet between waterings.
  3. Look for adults crawling across the soil or flying up when the pot is disturbed.
  4. Examine drainage saucers for standing water.
  5. If separation is practical, keep suspected plants apart without moving infested pots into previously unaffected growing areas. As UC IPM advises, moving infested containers can allow emerging adults to spread to other pots.

If several pots appear affected, address them together rather than assuming the plant with the most visible flies is the only source.

The University of Maryland Extension’s fungus gnat guidance recommends identifying the breeding source before beginning control.

Step 2 — Reduce Excess Soil Moisture

Keeping potting soil constantly wet creates favorable conditions for fungus gnats. Allowing the soil surface to dry appropriately between waterings makes it less attractive for egg-laying and larval development.

Check the potting mix before watering instead of following a rigid schedule. For many houseplants, letting approximately the top inch dry can help, but the appropriate depth depends on the species, pot size, and growing conditions.

Not every houseplant should dry out to the same degree.

Plant moisture needs
Recommended approach
Plants that tolerate drying, such as many desert cacti and succulents
Allow the potting mix to dry according to the plant’s normal care requirements before watering again.
Plants that prefer consistent moisture, such as many ferns
Allow some surface drying when the species tolerates it, but maintain adequate root-zone moisture. Rely more on drainage, monitoring, and appropriate larval control if necessary.

The University of Minnesota Extension’s cactus and succulent care guide explains why these drought-adapted plants require a different watering approach from many moisture-loving houseplants. Its spring houseplant care guidance also recommends checking soil moisture and avoiding soggy conditions rather than following a rigid watering schedule.

Regardless of the plant type, use containers with adequate drainage, empty water that collects in saucers, and remove decaying plant debris from the soil surface.

Avoid deliberately dehydrating a plant to eliminate fungus gnats. The goal is to correct excessive moisture, not create drought stress.

Step 3 — Capture Adult Gnats With Sticky Traps

Yellow sticky traps help reduce the number of adult fungus gnats flying around your houseplants.

Position a trap close to the soil surface or among the plant’s lower leaves, where adults are frequently active. Small traps with stakes are convenient for individual containers.

Check them regularly and replace them when they become covered with insects, dusty, or no longer sticky.

These traps serve two useful purposes:

  • Adult control: They capture some flying gnats, including females that might otherwise reproduce.
  • Monitoring: They help you see whether adult activity is increasing or decreasing over time.

However, sticky traps cannot reach larvae living inside the potting mix. Even if you catch dozens of adults, more may emerge from the soil.

The University of Minnesota Extension’s indoor pest management guide confirms that sticky traps are useful for monitoring and capturing adults but should not be the only management method.

Step 4 — Address Fungus Gnat Larvae

Controlling larvae is especially important when fungus gnats continue appearing despite improved watering habits and sticky traps.

Larvae develop inside moist growing media, so adult traps cannot eliminate them.

For persistent infestations, two research-supported biological options are:

  • Bacillus thuringiensis subsp. israelensis (Bti): A biological control agent that targets susceptible fungus gnat larvae. It does not kill adults, eggs, or pupae.
  • Steinernema feltiae: Beneficial nematodes that can attack fungus gnat larvae when growing conditions are suitable.

The University of Wisconsin–Madison Extension’s fungus gnat guide supports Bti for larval control, while UC IPM also recognizes Steinernema feltiae as an effective biological option under suitable conditions.

Choose only products specifically labeled for the intended use, and follow their directions and precautions. Results depend on the treatment, application conditions, and infestation level.

For a severely infested plant with persistently waterlogged or deteriorated potting mix, repotting into fresh, suitable growing media may also be worth considering. However, unnecessary repotting can disturb roots, so it should not be the automatic first response to a few adult gnats.

Step 5 — Monitor Activity and Prevent Another Generation

Don’t assume the infestation is over just because fewer flies are visible.

Fungus gnats develop through four stages: egg, larva, pupa, and adult. Different stages can be present in the same pot simultaneously, allowing new adults to emerge after treatment has begun.

Wisconsin Extension reports that development from egg to adult can take approximately three to four weeks under favorable conditions, although timing varies with environmental conditions.

During the following weeks:

  • Check sticky traps to see whether adult catches are declining.
  • Continue inspecting the potting mix and adjusting watering to the plant’s needs.
  • Check nearby pots that may also be supporting fungus gnats.
  • Remove fallen leaves and other decaying material from the soil surface.
  • Reassess the breeding source if adult numbers stop declining or begin increasing again.

A consistent downward trend in adult activity, together with improved soil conditions and fewer larvae detected during inspections, is more reassuring than a single day without visible flies.

The key is consistency. Addressing moist breeding conditions while controlling adults and larvae gives you a better chance of interrupting the fungus gnat life cycle without compromising your houseplants’ health.

Which Fungus Gnat Treatments Work Best?

Which Fungus Gnat Treatments Work Best?

The best fungus gnat treatment depends on what’s keeping the infestation going. For most houseplants, correcting overly wet soil is the first priority. Yellow sticky traps help capture flying adults, while biological treatments such as Bti or beneficial nematodes can address larvae when additional control is needed.

The University of California’s Integrated Pest Management Program (UC IPM) recommends combining moisture management with appropriate biological or physical controls rather than relying on insecticides alone.

Here’s how the main options compare:

Method
Primary Target
Main Limitation
Moisture management
Damp breeding conditions
Must respect the plant’s watering needs
Yellow sticky traps
Flying adults
Do not control larvae
Bti
Susceptible larvae
Does not affect eggs, pupae, or adults
Beneficial nematodes
Larvae
Need suitable moisture and temperature
Fresh potting mix
Infested or deteriorated growing media
Repotting can disturb and stress roots
Household remedies
Variable or uncertain
Effectiveness and plant tolerance are not consistently established

Moisture Management and Sticky Traps

For a mild infestation, improving watering habits and using sticky traps may be enough to bring fungus gnats under control.

Moisture management addresses the conditions that allow larvae to thrive. Allowing the soil surface to dry appropriately between waterings makes the environment less favorable for fungus gnat development.

Yellow sticky traps serve a different purpose: they capture adults and help monitor their activity. They can reduce the number of visible flies, but they won’t eliminate larvae already living in the soil.

The University of Wisconsin–Madison Extension’s guide to fungus gnats on houseplants identifies changes to growing conditions as the most important management measure.

For plants that tolerate moderate drying, correcting excessive moisture may significantly reduce the problem without additional treatments. Moisture-loving plants require a more careful approach because allowing their roots to become excessively dry can cause stress.

Bti and Beneficial Nematodes

When fungus gnats persist despite improved moisture management, biological controls offer a way to target larvae developing in the potting mix.

Bacillus thuringiensis subsp. israelensis (Bti) is a naturally occurring bacterium used in biological insecticides. It controls susceptible fly larvae, including fungus gnats, but does not eliminate eggs, pupae, or adults.

Because different life stages can coexist in the same container, one treatment may not address the entire population. Wisconsin Extension notes that repeated Bti treatments may be necessary as additional larvae hatch.

Steinernema feltiae is a species of beneficial nematode that infects susceptible fungus gnat larvae. Unlike sticky traps, these microscopic organisms act within the growing medium.

Their effectiveness depends on conditions such as moisture, temperature, and the type of growing medium. UC IPM identifies S. feltiae as a biological control option under suitable conditions.

Research also shows why one biological treatment should not automatically be labeled superior to another. A 2021 peer-reviewed study published in Insects found that Bti reduced emergence of Lycoriella fungus gnats more effectively than S. feltiae in its experimental oyster mushroom production system.

However, those results involved mushroom-growing substrates and a different fungus gnat production context. They should not be treated as proof that Bti always outperforms nematodes in household potting mixes.

Which should you choose? Bti and beneficial nematodes are both evidence-supported options, but neither is universally necessary or guaranteed to work in every situation. For small household infestations, correcting growing conditions may be sufficient.

For Bti pesticide products, use a formulation labeled for the intended indoor houseplant use and follow its directions and precautions. The U.S. Environmental Protection Agency’s pesticide-label guidance explains the legally enforceable requirements for registered pesticide products. Beneficial nematodes are pest-control organisms exempt from federal pesticide registration under EPA guidance on biopesticides; follow the supplier’s instructions for their use and handling.

When Repotting Makes Sense

Repotting can help when the existing potting mix remains persistently waterlogged, has deteriorated, or continues supporting a significant fungus gnat infestation despite appropriate care.

Replacing problematic growing media removes much of the material where larvae develop and can improve growing conditions when the replacement mix is better suited to the plant.

The University of Minnesota Extension’s guide to managing insects on indoor plants includes repotting with fresh potting mix as an option for soil-associated pests.

Still, repotting has trade-offs. Removing old media can damage delicate roots, particularly in plants already weakened by poor growing conditions.

Iowa State University Extension specifically cautions that removing soil from around the roots can disrupt the plant.

Consider repotting when the growing medium itself is part of the problem, not simply because you’ve spotted a few adult gnats.

For an otherwise healthy plant with a minor infestation, adjusting moisture and monitoring activity is usually a less disruptive starting point.

Home Remedies With Limited Evidence

Home remedies such as hydrogen peroxide, cinnamon, vinegar traps, and surface coverings frequently appear in advice about how to get rid of fungus gnats. However, their popularity doesn’t necessarily mean they offer reliable control.

Hydrogen peroxide: Household peroxide solutions are sometimes promoted as treatments for larvae, but the Extension guidance reviewed for this article does not establish a consistently effective, plant-safe household protocol across common houseplants. Without reliable guidance for a specific plant and treatment, they shouldn’t replace better-supported methods.

Cinnamon: Cinnamon is often suggested because of its potential antifungal properties. However, reducing fungal growth is not the same as demonstrating effective fungus gnat control. The Extension guidance reviewed for this article does not establish ordinary ground cinnamon as a dependable larval treatment.

Vinegar traps: These are commonly associated with fruit fly control, but fungus gnats have different habits. The University of Wisconsin–Madison Extension notes that vinegar traps used for fruit flies do not work for monitoring fungus gnats. Yellow sticky traps are the more appropriate choice.

Sand or gravel coverings: A surface layer of coarse material may make the soil less favorable for egg-laying, and Wisconsin Extension describes this as an optional management technique. However, Iowa State University Extension considers these coverings unnecessary when proper watering resolves the underlying problem.

The practical takeaway is simple: choose treatments based on the actual source of the infestation. A method that captures adults won’t necessarily control larvae, and a home remedy that sounds promising may not have convincing evidence behind it.

For most houseplants, proper moisture management remains the foundation, with sticky traps and targeted biological controls providing additional help when needed.

How Long Does It Take to Get Rid of Fungus Gnats?

How Long Does It Take to Get Rid of Fungus Gnats?

Getting rid of fungus gnats typically takes several weeks rather than a few days. You may notice fewer flying adults shortly after placing yellow sticky traps and correcting overly wet soil, but eggs, larvae, and pupae can remain hidden in the potting mix and produce new adults after treatment begins.

The exact timeline depends on temperature, growing conditions, and how effectively the breeding source is controlled.

According to the University of California Integrated Pest Management Program (UC IPM), fungus gnats develop through four life stages:

  1. Egg: Females lay eggs in moist potting soil or decomposing organic material.
  2. Larva: Larvae feed and develop within the growing medium, primarily consuming fungi and decaying organic matter.
  3. Pupa: Larvae transform into pupae before emerging as adults.
  4. Adult: Flying gnats emerge, reproduce, and can begin another generation when suitable conditions remain.

UC IPM reports that a generation can develop in approximately 17 days at 75°F, depending on conditions. The University of Wisconsin–Madison Extension describes development from egg to adult taking approximately three to four weeks under favorable conditions.

These figures describe insect development, not guaranteed treatment timelines.

Why do fungus gnats keep appearing after treatment?

Different life stages can exist in the same pot simultaneously. Yellow sticky traps capture adults, while larval treatments such as Bti target susceptible larvae without directly eliminating eggs or pupae. Adults developing from existing pupae may therefore emerge even after treatment has started.

To judge whether your efforts are working, compare the number of adults caught on sticky traps over similar time intervals. A steady decline is encouraging, especially when soil conditions have improved and larval activity is decreasing.

However, fewer adult gnats do not necessarily mean the infestation is eliminated. A single empty trap cannot confirm that immature insects are gone.

Wisconsin Extension notes that modified watering practices may take three to four weeks to bring fungus gnats under control in some situations. If adult activity remains consistently high or begins increasing again, reassess the breeding source rather than assuming that more time alone will solve the problem.

The goal is sustained control: fewer emerging adults, reduced larval activity, and potting soil maintained at an appropriate moisture level for the plant.

Why Fungus Gnats Keep Coming Back

Yellow sticky trap catching adult fungus gnats in houseplant soil, with a magnified close-up of a fungus gnat.

Fungus gnats often return because their breeding conditions haven’t been fully corrected. Even after you’ve caught most of the flying adults, larvae and pupae may still be developing in damp potting soil. Another overlooked container can also support a new generation.

According to the University of California Integrated Pest Management Program (UC IPM), fungus gnats produce overlapping generations, meaning eggs, larvae, pupae, and adults can be present at the same time. This explains why new flies may appear even after treatment has reduced the original population.

Persistent moisture is one of the most common reasons infestations continue. Watering too frequently, poor drainage, and standing water can keep growing media damp enough to support fungus gnat development.

The condition of the potting mix matters, too. Colorado State University Extension’s guide to fungus gnats explains that aging or deteriorating growing media can retain more moisture, making it increasingly attractive to fungus gnats.

This can be especially noticeable during fall and winter. As daylight decreases and plant growth slows, houseplants often use less water. Continuing the same watering schedule can leave their potting mix wetter for longer, even when the amount of water hasn’t changed.

Sometimes, the problem isn’t the plant you’ve been treating.

An overlooked houseplant, a container with decaying plant material, or another damp breeding location may be sustaining the infestation. The University of Maryland Extension’s fungus gnat guidance notes that these insects can also reproduce in drains containing accumulated moist organic debris.

If fungus gnats keep appearing, use this quick troubleshooting checklist to find what’s sustaining them:

  1. Flies still appearing? Compare sticky-trap catches over several days. Occasional adults may be emerging from immature stages already present in the soil, while consistently high numbers suggest an ongoing source.
  2. Confirm the insect. Make sure you’re dealing with fungus gnats rather than fruit flies or drain flies. Similar-looking insects may require different control measures.
  3. Check possible breeding sources. Inspect nearby pots, damp growing media, containers with decaying plant material, and other persistently moist locations. Don’t assume the plant with the most visible flies is the only affected one.
  4. Reassess soil moisture. Check whether the potting mix is drying appropriately for the plant. Look for drainage problems or deteriorated media that remain wet longer than expected.
  5. Check for larval activity. Place a raw potato slice cut-side down on the growing medium and inspect its underside after a few days. UC IPM and Colorado State University Extension describe this method as a way to monitor fungus gnat larvae.

Finding larvae confirms that immature fungus gnats are present, but an empty potato slice doesn’t guarantee the soil is free of them.

If adult activity remains high, focus on locating the breeding source rather than repeatedly replacing sticky traps. Persistent infestations usually require correcting favorable growing conditions, addressing larvae when appropriate, and checking whether other containers are contributing to the problem.

The key is to distinguish newly emerging adults from continued breeding. Seeing a few flies after treatment doesn’t automatically mean the approach has failed, but repeated activity without a downward trend is a reason to investigate further.

How to Prevent Fungus Gnats From Returning

Preventing fungus gnats from coming back starts with making your houseplants less inviting to these pests. Consistent watering habits, good drainage, clean growing conditions, and careful inspection of new plants can significantly reduce the risk of another infestation.

The University of California Integrated Pest Management Program (UC IPM) identifies excess moisture and decaying organic material as major factors that encourage fungus gnat populations. Keeping these conditions under control is more reliable than repeatedly treating adult flies.

Build these simple habits into your regular houseplant care:

  1. Water according to each plant’s needs. Check the potting mix before watering rather than following a fixed calendar. Allow the soil surface to dry between waterings as much as the plant can safely tolerate. Moisture-loving plants should never be deliberately dried to the point of stress.
  2. Maintain good drainage. Use pots with drainage holes and a potting mix appropriate for the plant. Empty excess water from saucers and decorative containers so roots aren’t left sitting in water. The University of Minnesota Extension’s indoor plant pest guide explains that overwatering and poor drainage encourage fungus gnats and other plant problems.
  3. Remove decaying plant debris. Clear fallen leaves, dead flowers, and decomposing stems from the soil surface. These materials can support fungal growth and provide organic matter for developing larvae. Keeping containers clean also makes it easier to notice new pest activity.
  4. Inspect new and returning houseplants. Before buying a plant or bringing one indoors after summer, examine its potting soil, container, and surrounding foliage for signs of pests. University of Minnesota Extension recommends keeping newly acquired plants separate from established houseplants for one to two weeks while watching for potential problems. Check the soil surface for small flies during this period.
  5. Choose and store potting mix carefully. Use fresh, commercially prepared potting mix suitable for indoor plants. Avoid using garden soil or potting mix from bags that have remained open outdoors. UC IPM recommends pasteurized potting media and storing it in closed containers off the ground to reduce the chance of infestation before use.

Even after the infestation appears controlled, continue checking your plants during routine watering. An occasional yellow sticky trap can help detect renewed adult activity, particularly around plants that require consistently moist soil.

Prevention doesn’t mean keeping every pot completely dry. It means providing the moisture each plant needs without creating persistently waterlogged conditions where fungus gnats can reproduce.

With appropriate watering, clean containers, and careful inspection of new plants, you can reduce the likelihood of fungus gnats becoming a recurring problem.

Getting rid of fungus gnats takes more than catching the flies hovering around your houseplants. Lasting control starts with addressing the moist soil conditions that support their development and targeting larvae when necessary.

Start by checking your plant’s watering needs, improving drainage, and monitoring adult activity with sticky traps. If the problem persists, consider an appropriate biological treatment without putting your plant under unnecessary stress.

Be patient and watch for steady improvement rather than expecting immediate results. With consistent care and attention to the breeding source, you can bring fungus gnats under control and reduce the chances of another infestation.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *