If tiny dark flies seem to appear every time you water a plant, you may be dealing with fungus gnats. They're frustrating, but understanding where they're coming from makes them much easier to control.
The adults flying around your plants are only one stage of the infestation. Fungus gnats spend most of their life cycle in or around moist growing media, which is why swatting the adults rarely makes the problem disappear for long.
First, are they actually fungus gnats?
Fungus gnats are small, delicate flies commonly found around houseplants and moist potting mix. Adults are dark, have long legs and antennae, and may look a little like tiny mosquitoes.
You may notice them walking across the soil, flying up when a plant is disturbed, or gathering near windows and other sources of light.
Signs you're probably dealing with fungus gnats
- Tiny dark flies are concentrated around your houseplants
- Adults frequently crawl or fly near the surface of the potting mix
- More appear after watering or disturbing the soil
- Yellow sticky traps placed near the plants begin catching small dark flies
- The potting mix tends to stay moist for long periods
Fungus gnats vs. fruit flies
These two tiny flies are easy to confuse, but where they're gathering can give you an important clue.
Fungus gnats are associated with moist growing media and organic matter around plants. Fruit flies are more commonly associated with fermenting fruits, vegetables, beverages, drains, and other food-related materials.
If most of the activity is happening around your pots rather than your fruit bowl or kitchen waste, fungus gnats become the more likely suspect.
Don't diagnose them by size alone. Pay attention to where the flies keep returning. Their favorite hangout can tell you more than “tiny annoying fly” ever will.
Why do fungus gnats keep coming back?
Because the adults you're seeing aren't the whole population.
Adult females lay eggs in moist organic material. The larvae develop in the growing medium, feeding primarily on fungi and decaying organic matter before eventually becoming adults. Those new adults can then lay another generation of eggs.
The Life Cycle
The part happening inside the pot matters most.
Adult females lay tiny eggs in moist growing media.
Larvae live in the growing medium and feed on fungi, decaying material, and sometimes plant roots.
The developing gnats pupate in the growing medium before becoming adults.
Adults emerge, fly around the plants, mate, and begin the cycle again.
Under favorable indoor conditions, this cycle can happen quickly. That's why an infestation may seem to return just when you thought you had finally killed the last flying gnat.
Effective control means interrupting that cycle — not simply eliminating the adults you happen to see.
How to get rid of fungus gnats
The best approach is to attack the problem from more than one direction. Make the potting mix less inviting to fungus gnats, catch adults before they can continue laying eggs, and target the larvae developing below the surface.
You don't necessarily need to throw away your plants or replace every bit of soil. Start with the conditions that allowed the population to grow in the first place.
1. Let the soil surface dry between waterings
Moist growing media is one of the biggest reasons fungus gnats thrive around houseplants. Adult females are attracted to moist organic material for laying eggs, and the larvae develop in that damp environment.
Allowing the surface of the potting mix to dry between waterings makes it less favorable for eggs and larvae and less attractive to adults looking for a place to lay the next generation.
Check the moisture problem
- Does the soil stay wet for many days after watering?
- Does the pot have working drainage holes?
- Is water sitting in the saucer or decorative outer pot?
- Has the potting mix become old, dense, or slow to drain?
- Are you watering on a schedule instead of checking the soil?
“Let the soil dry” does not mean every houseplant should be allowed to become bone-dry from top to bottom. Different plants tolerate different moisture levels. The goal is to avoid keeping the growing medium unnecessarily wet and to let the surface dry when the plant's care needs allow it. Not sure how dry your plant should get? Read our houseplant watering guide →
What if the soil never seems to dry?
That deserves attention even after the gnats are gone. A pot that stays wet for unusually long periods may have poor drainage, an oversized container, compacted or degraded potting mix, or simply be receiving water more often than the plant can use it.
Fixing that underlying moisture problem helps with fungus gnats and usually creates a healthier root environment for the plant.
2. Use yellow sticky traps for the adults
Yellow sticky traps are useful because adult fungus gnats are attracted to them. Place traps close to the growing medium or around affected plants to catch and monitor the flying adults.
Seeing fewer gnats on the traps over time can also help you tell whether your treatment plan is working.
Sticky traps only target the adult stage. Eggs, larvae, and pupae can still be developing in the potting mix, so traps alone may reduce the number of flying gnats without completely ending the infestation.
3. Target the larvae with Bti
If fungus gnats keep emerging, targeting the larvae can help break the life cycle.
Bacillus thuringiensis subspecies israelensis, usually shortened to Bti, is a biological insecticide that can control fungus gnat larvae when an appropriate product is applied to the growing medium according to its label.
Bti targets susceptible fly larvae rather than the adult gnats buzzing around the room. That makes it useful alongside sticky traps: one method addresses larvae while the other catches adults.
When using Bti
- Choose a product labeled for the intended use
- Follow the product's mixing and application directions
- Apply it to the growing medium as directed
- Expect that repeat applications may be needed
- Don't stop treatment just because the adult population suddenly drops
Why might Bti need to be repeated?
Bti doesn't provide permanent control in potting media. Meanwhile, an infestation can contain several life stages at the same time.
That means one treatment may affect susceptible larvae without eliminating eggs, pupae, or adults that are already present. Following the product label for repeat applications gives you a better chance of interrupting newly developing generations.
4. Beneficial nematodes are another option
Beneficial nematodes can also be used to target fungus gnat larvae in the growing medium. One species used for fungus gnat control is Steinernema feltiae.
These microscopic organisms seek out susceptible insect larvae in moist growing media. They can be especially useful when you have a larger plant collection or want another biological-control option.
As with Bti, use a product intended for the job and follow its storage, mixing, application, and moisture instructions carefully.
5. Do you need to repot a plant with fungus gnats?
Not automatically.
Finding fungus gnats does not mean you need to immediately remove every plant from its pot and replace all of the soil. If the plant is otherwise healthy and the growing medium drains appropriately, moisture management and treatments aimed at the fungus gnat life cycle may be enough.
Repotting becomes more worth considering when the potting mix itself is part of the problem.
Consider fresh potting mix if...
- The mix remains soggy for unusually long periods
- The soil has become compacted or drains poorly
- The container doesn't have adequate drainage
- The plant already needs repotting for other reasons
- You cannot correct the moisture problem with normal watering adjustments
If you do repot, use clean containers and fresh, appropriate potting mix. Don't solve a moisture problem by moving the plant into another setup that stays just as wet.
What about all the fungus gnat remedies online?
Search for fungus gnat advice and you'll find an impressive collection of household remedies. Some may affect individual gnats or change conditions temporarily, but that doesn't necessarily make them a reliable way to eliminate an infestation.
The important question is whether your approach interrupts the fungus gnat life cycle while also keeping the plant healthy.
Reality Check
What does each method actually do?
Useful for catching and monitoring adults, but they don't eliminate larvae developing in the potting mix.
Makes the growing medium less favorable to fungus gnats when the plant can safely tolerate that drying.
Targets susceptible fungus gnat larvae and may require repeat applications according to the product label.
Certain species can biologically control fungus gnat larvae in the growing medium.
Satisfying? Absolutely. A complete control strategy? Unfortunately not.
Don't assume a popular hack addresses every life stage or is automatically appropriate for your plant.
What about cinnamon?
Cinnamon is one of the most frequently suggested fungus gnat remedies online, but it shouldn't be the foundation of your control plan.
Fungus gnat larvae feed heavily on fungi and decaying organic matter, which may help explain why fungus-related home remedies became popular. But sprinkling kitchen cinnamon over a pot does not replace moisture management or a control method known to target fungus gnat larvae.
What about hydrogen peroxide?
Hydrogen peroxide soil drenches are another common internet suggestion. Rather than experimenting with homemade concentrations around plant roots, start with methods that have clearer guidance for fungus gnat control, such as correcting excess moisture and using appropriately labeled biological controls.
You don't need the most dramatic fungus gnat hack. You need to make the pot less inviting, reduce the adults, and interrupt the next generation developing in the growing medium.
The Root & Room fungus gnat plan
If you're overwhelmed by all the possible treatments, start here.
Step by step
- Check your watering and drainage. Stop keeping the growing medium wetter than the plant actually needs.
- Let the soil surface dry appropriately. How much drying is safe depends on the plant you're growing.
- Add yellow sticky traps. Place them near affected pots to catch and monitor adults.
- Target the larvae if needed. Use an appropriately labeled Bti product or another supported biological control according to its directions.
- Keep going through the life cycle. Don't assume the infestation is over the moment you stop seeing adults.
- Fix persistent soil problems. If the potting mix remains chronically wet or drains poorly, address the container or growing medium itself.
How long does it take to get rid of fungus gnats?
Don't expect every gnat to disappear overnight.
An infestation can contain eggs, larvae, pupae, and adults at the same time. Even after you begin treatment, adults may continue emerging from stages that were already developing in the potting mix.
What you want to see is a downward trend: fewer adults on sticky traps, fewer gnats appearing around the pots, and growing media that is no longer staying unnecessarily wet.
Can fungus gnats hurt your plants?
Adult fungus gnats are primarily a nuisance. The larvae mostly feed on fungi and decaying organic material, but they can also feed on roots.
Established houseplants may tolerate modest populations without obvious injury, while seedlings, cuttings, young plants, and stressed plants can be more vulnerable to root damage from large larval populations.
How do you keep fungus gnats from coming back?
Prevention mostly comes down to making your pots less attractive as breeding sites.
For future plants
- Check soil moisture before watering instead of relying only on a schedule
- Use containers with appropriate drainage
- Don't leave pots standing in excess drainage water
- Pay attention when potting mix begins staying wet much longer than usual
- Inspect new plants before placing them among the rest of your collection
- Use sticky traps when you need an easy way to monitor adult activity
And no, fungus gnats don't mean you're bad at houseplants
Fungus gnats are incredibly common around indoor plants. Their presence is useful information about the environment in the pot, not a reason to give up on keeping plants altogether.
Once you understand that the flying adults are only one part of the life cycle, the problem becomes much less mysterious. Focus on moisture, monitor the adults, target the larvae when necessary, and give the process enough time to work.
Sources & further reading
Root & Room uses reliable horticultural references alongside practical plant-care guidance.
- University of California Integrated Pest Management — Fungus Gnats
- Colorado State University Extension — Fungus Gnats as Houseplant and Indoor Pests
- University of Minnesota Extension — Insects on Indoor Plants
- Colorado State University Extension — Managing Houseplant Pests
Plant SOS
Break the cycle, not just the adults.
Start with moisture, monitor the adults, and target the larvae when needed. Fungus gnats can be persistent, but once you understand their life cycle, getting them under control becomes much more manageable.
Back to Plant SOS →