How to Get Rid of Fungus Gnats in Microgreens (And Prevent Them)

If you're growing microgreens indoors, especially in an apartment or home, one of the biggest concerns you'll likely face is pests. And the most common culprit? Fungus gnats.

Here's the good news: fungus gnats don't mean failure. They're actually a sign that growing conditions need some adjustment. Understanding what attracts them and how to prevent them gives you complete control over your indoor growing space.

If you're brand new to growing, start with our Beginner's Guide to Growing Microgreens or grab the $3.99 printable Beginner's Guide PDF.


Quick Answer: How Do You Get Rid of Fungus Gnats in Microgreens?

The fastest way to get rid of fungus gnats in microgreens is to dry out the top layer of your growing medium between waterings, since fungus gnats need consistently moist soil or coco coir to lay eggs and complete their life cycle. Reduce watering frequency, increase airflow with a small fan, set up yellow sticky traps to catch adult flies, and remove any heavily infested trays immediately. For active infestations, drench the medium with a mix of 1 part 3% hydrogen peroxide to 4 parts water, or use beneficial nematodes (Steinernema feltiae) or BTI (Bacillus thuringiensis israelensis). The best long-term prevention is a grow tent, controlled airflow, isolating houseplants away from your microgreens, and avoiding overwatering. Most home growers can eliminate fungus gnats within 2 to 3 weeks by breaking the life cycle.


Understanding Fungus Gnats: The Real Problem

Fungus gnats are small, dark flies (about 2 to 3mm long) that resemble tiny mosquitoes. While the adult flies are mostly just annoying as they buzz around your growing area, the real damage comes from their larvae.

Group of fungus gnats at the soil line of a microgreen tray showing infestation

According to agricultural research from Colorado State University, larvae of fungus gnats feed below the soil or medium surface on roots, and when densities of larvae are high, feeding injury can lead to stunted growth and increased susceptibility to microbial infection, especially in seedlings and younger plants.

This is particularly problematic for microgreens because:

  • Microgreens are harvested as very young seedlings
  • Their root systems are delicate and developing
  • Larval feeding can cause drooping, slow growth, and stressed trays
  • Damaged roots make plants vulnerable to soil-borne diseases like damping off

The Fungus Gnat Life Cycle

Understanding their biology helps you break their reproductive cycle:

Research shows that adults can live up to 10 days and lay up to 200 to 300 eggs at a time in the moist top layer of soil or grow medium. These eggs typically hatch within 4 days and the complete life cycle takes about 3 to 4 weeks.

Here's what that means for you:

  • Eggs (4 to 6 days): Laid in the top ½ inch of moist growing medium
  • Larvae (about 2 to 3 weeks): Live in the top 2 inches of medium, feeding on fungi, organic matter (seed shells, plants), and roots
  • Pupae (about 4 days): Transform near the surface
  • Adults (7 to 10 days): Emerge, mate, and lay more eggs

A single female can produce 100 to 300 eggs, which explains why small infestations can explode quickly if conditions remain favorable.

Prevention: Your First Line of Defense

The best strategy against fungus gnats is preventing them from establishing in the first place. Here are science-backed prevention methods. For a broader look at common microgreen problems, see our top microgreen growing mistakes guide.

1. Control Moisture (Most Important)

Fungus gnats grow well in consistently wet growing conditions. They're attracted to moist soil and damp organic matter where they lay their eggs.

The most effective control method? With soil or coco coir, allow the growing medium to dry between watering, especially the top 1 to 2 inches. Allowing the surface to dry will kill eggs and larvae.

With reusable silicone grow mediums, do not over water the trays. If the medium is showing signs of being flooded from the bottom tray, you need to water less.

Practical application for microgreens:

  • Use bottom watering whenever possible with trays, such as our 10x20 trays or 7x14 OTG Microgreen Tray Kit
  • Allow the surface layer to dry slightly between waterings with soil and coco coir
  • Avoid keeping mediums sitting in standing water for extended periods
  • Water only when necessary. Overwatering invites gnats

Whether you're growing on soil, coco coir, or our reusable silicone grow medium, moisture management is critical.

Microgreens growing in trays on table with proper airflow setup for pest prevention

2. Choose Your Growing Medium Wisely

Use well-draining media and avoid compost-heavy mixes for indoor growing. Fresh, sterile mediums reduce the chances of fungus gnats arriving with your supplies. Starting with quality, food-safe seed also matters. See our blog on microgreen seed quality for what to look for in suppliers.

Interestingly, even hydroponic setups using grow mats can develop fungus gnat issues if there's plant decay or excessive moisture in trays. The key is starting clean and maintaining good drainage. For full cleaning protocols, see our cleaning and sanitization guide.

3. Airflow Makes a Huge Difference

Good air circulation helps growing mediums dry evenly and creates an environment that's less appealing to fungus gnats.

Even a small fan (browse our Amazon storefront for the ones we use) pointed toward your growing area can make a significant difference. The moving air:

  • Speeds up surface drying
  • Reduces humidity around trays
  • Strengthens stem development
  • Makes conditions less favorable for egg-laying

4. Use Yellow Sticky Traps as Early Warning

Sticky traps (available on our Amazon storefront) placed near your growing trays catch adult gnats before they can lay eggs. While traps alone won't eliminate an infestation, they're excellent for:

  • Early detection of fungus gnats
  • Monitoring population levels
  • Catching adults before reproduction
  • Reducing egg-laying adults

There are even decorative plug-in sticky traps that look nice in living spaces while serving this purpose. We like to have one plugged in, even if we aren't having any pest issues.

5. Remove Problem Trays Quickly

If you notice one tray showing signs of fungus gnats (you'll see more adults flying around it compared to other trays), don't try to "save" it.

Removing the affected tray immediately prevents the issue from spreading to your entire grow. Remember: microgreens have a quick growth cycle (7 to 14 days for most varieties). Starting fresh is often faster than trying to salvage a compromised tray.

6. Check and Isolate Houseplants

In homes and apartments, fungus gnats often originate from houseplants, not your microgreon setup. Studies show that fungus gnats can come in on plants or in the soil of any plant brought home from a nursery, garden center, or box store, where plants are watered over the top and soil is always moist.

Best practices:

  • Inspect new plants before bringing them indoors
  • Quarantine new houseplants away from your microgreens for 2 weeks
  • Treat or remove heavily infested houseplants
  • Consider reducing indoor plant collections if gnats become persistent

As experienced growers note, eliminating houseplants near your growing area can sometimes be the most effective long-term solution. Trust us, we have a lot of houseplants and they are usually what cause outbreaks for us.

10x20 microgreen trays growing in indoor grow tent on grow rack for pest prevention

The Grow Tent Advantage

One of the most effective tools for preventing pests in indoor microgreen production is a grow tent (browse our Amazon storefront for the setups we recommend).

A grow tent creates a sealed, controlled environment that:

  • Limits access points for flying insects
  • Controls humidity levels more precisely
  • Improves airflow management
  • Isolates your grow from the rest of your living space
  • Gives you environmental control over temperature and conditions

This is especially valuable in apartments and homes where you're sharing space with houseplants, open windows, and other potential pest sources. Pair your grow tent with proper ventilation using a small fan or inline fan system for optimal results. For a full walkthrough of building a proper indoor setup, see our professional grow rack setup guide.

If Fungus Gnats Do Show Up

Even with the best prevention, you might occasionally deal with fungus gnats. Here's how to respond:

Immediate Actions:

  1. Reduce watering frequency: Let the top layer of your growing medium dry out
  2. Pour out water: Remove water if medium is flooded
  3. Increase airflow: Run fans to speed surface drying
  4. Set up sticky traps: Catch as many adults as possible
  5. Remove heavily affected trays: Don't let them become breeding grounds
  6. Break the life cycle: Focus on preventing eggs from hatching

Additional Tools:

Research on greenhouse pest management shows several biological control options:

  • Beneficial nematodes (Steinernema feltiae): These microscopic organisms parasitize fungus gnat larvae in the soil
  • BTI (Bacillus thuringiensis israelensis): A naturally occurring bacteria that kills fungus gnat larvae. The United States EPA reports that it has no toxicity to humans
  • Hydrogen peroxide solution: Mix one part 3% hydrogen peroxide with four parts water to drench affected soil or coco coir

For persistent problems in larger setups, you might consider a bug zapper near your growing area to catch flying adults, or a dehumidifier to reduce overall moisture in your growing space. Both are available on our Amazon storefront.

For an organic pest spray you can make at home, see our DIY organic pest and disease control spray recipe.

Why Fungus Gnats Can Actually Spread Disease

Beyond direct root damage, research published in PubMed Central has shown that fungus gnat larvae can ingest and transmit certain soil-borne plant pathogens including Pythium species, potentially introducing them into young healthy plants during the feeding process.

This is another reason why prevention and quick action matter. Pythium and similar pathogens cause damping-off disease, which can devastate young seedlings even faster than the gnats themselves. For more on damping off, see our complete damping off prevention guide.

Fun Fact: Fungus Gnats Outdoors

Here's an interesting perspective: fungus gnat larval stages feed on organic matter and fungi, and they play a helpful role outdoors by breaking down organic matter.

In natural ecosystems, fungus gnats are beneficial decomposers. It's only when we bring them indoors into our controlled growing environments that they become unwanted guests. They're not "bad" insects. They're just in the wrong place.

Frequently Asked Questions About Fungus Gnats in Microgreens

What are fungus gnats and how do I identify them?

Fungus gnats are small, dark flies about 2 to 3mm long that resemble tiny mosquitoes. You'll typically see adults hovering near the surface of your microgreen trays, around houseplants, or near damp areas. The damage actually comes from their larvae (tiny, translucent worms with black heads) which live in the top 2 inches of moist growing medium and feed on roots, fungi, and organic matter.

How do I get rid of fungus gnats in microgreens fast?

The fastest approach is to break the life cycle by drying out the top layer of your growing medium between waterings, increasing airflow with a small fan, and setting up yellow sticky traps to catch adult flies. For active infestations, drench the medium with a 1:4 mix of 3% hydrogen peroxide and water (kills larvae on contact), or apply beneficial nematodes (Steinernema feltiae) or BTI. Most home growers can eliminate fungus gnats within 2 to 3 weeks by hitting all life stages at once.

Can fungus gnats kill my microgreens?

Heavy fungus gnat infestations can cause significant damage to microgreens. Larvae feed on the delicate root systems of young seedlings, leading to stunted growth, drooping, and increased vulnerability to soil-borne diseases like Pythium and damping off. While a few gnats won't ruin a tray, large populations can wipe out a crop, especially at the dense seeding rates used for microgreens.

Where do fungus gnats come from?

Fungus gnats typically come from existing houseplants in your home (especially plants from nurseries or big box stores), contaminated bags of soil or coco coir, open windows during warmer months, or compost piles brought indoors. New houseplants are the single most common source. Quarantine new plants away from your microgreens for 2 weeks before integrating them into your space.

Does hydrogen peroxide kill fungus gnat larvae?

Yes. A solution of 1 part 3% hydrogen peroxide to 4 parts water poured over your growing medium kills fungus gnat larvae on contact. The hydrogen peroxide breaks down into water and oxygen quickly, making it safe for plants and food-safe for microgreens. Repeat treatments may be needed since new eggs hatch over time, so combine with airflow and drying to break the full life cycle.

Do yellow sticky traps work for fungus gnats?

Yes, but only for adults. Yellow sticky traps catch flying adult fungus gnats before they can lay more eggs, which reduces future generations. However, sticky traps don't address larvae already living in your growing medium. Use sticky traps as part of an overall strategy that includes drying out the medium, treating larvae with hydrogen peroxide or beneficial nematodes, and reducing the moisture that attracts them in the first place.

Can I grow microgreens in an apartment without fungus gnats?

Yes. Apartment growers can absolutely produce microgreens without pest problems by managing the conditions fungus gnats need: excess moisture, poor airflow, and access from infested houseplants. The most reliable apartment setup is a small grow tent with a fan for airflow, paired with bottom watering and yellow sticky traps as ongoing monitoring. We've grown for years in apartment-sized spaces this way.

How long does it take to get rid of fungus gnats?

The complete fungus gnat life cycle is 3 to 4 weeks (egg to adult), so a full eradication typically takes 2 to 4 weeks of consistent effort. The key is treating all life stages simultaneously: sticky traps for adults, hydrogen peroxide or beneficial nematodes for larvae, and drying the medium to prevent new egg hatching. Skipping any one step extends the timeline significantly.

Are fungus gnats dangerous to humans?

No. Fungus gnats don't bite, sting, carry diseases, or harm humans in any way. They're purely a plant pest. Adult gnats are mostly just annoying when they fly around your face or kitchen. The concern is entirely about the damage their larvae do to plant roots and the risk of transmitting plant pathogens like Pythium.

Do fungus gnats lay eggs in reusable silicone grow mediums?

Fungus gnats prefer organic, moist material to lay eggs in (soil, coco coir, decaying plant matter), so the inert silicone surface itself isn't an ideal egg-laying site. However, if the reusable silicone grow medium is sitting in standing water or has decaying root matter on top, fungus gnats can still establish. The best prevention with silicone is proper bottom watering (don't flood the reservoir), cleaning between grows, and removing root debris promptly after harvest.

The Bottom Line: You Can Grow Pest-Free Indoors

Growing microgreens indoors, even in an apartment or home, is absolutely achievable without constant pest problems. The key is understanding that fungus gnats are attracted to specific conditions:

Excess moisture: Control watering
Poor airflow: Add ventilation
Organic matter: Keep growing areas clean
Warm, humid environments: Consider a grow tent

By managing these factors, you create an environment where microgreens grow well but pests don't.

If you're nervous about bugs, start small. Grow just a few trays in a contained space. Build your confidence with clean growing practices before scaling up.

Want to learn more about growing microgreens successfully indoors? Check out our Microgreen Masterclass for comprehensive techniques, or explore our complete selection of growing supplies designed for clean, efficient indoor cultivation. For a deeper dive into all things microgreen education, start with our best microgreen growing advice and resources hub.

Have you dealt with fungus gnats in your microgreen setup? Share your prevention strategies in the comments below!

Happy growing! 🌱

-CJ & Mandi


Related Blogs You Might Enjoy


Sources Cited

This blog references peer-reviewed research and agricultural extension publications including:


Updated: May 23, 2026
All content is property of On The Grow®, LLC

Leave a comment

Please note, comments must be approved before they are published