How to Get Rid of Fungus Gnats in Houseplants

If you’re seeing tiny black flies hovering around your pots, you can get rid of fungus gnats by drying the top layer of soil, trapping the adults, and treating the larvae in the potting mix for 3-4 weeks. The fast fix is not a single spray. It’s breaking their life cycle where it actually happens: in moist, organic soil. This guide walks you through quick ID, simple tests to confirm larvae, and an evidence-based plan using watering changes, sticky traps, and proven larvicides like Bti.

What to do first: Fungus gnats usually mean the potting mix is staying too wet. Let the top inch of soil dry, catch adults with yellow sticky cards, and treat larvae in the soil.

  • Check moisture before watering again.
  • Use Bti or a houseplant-safe larval treatment for the soil stage.
  • Keep sticky cards near the soil line to monitor adults.
Close-up of a fungus gnat on a leaf, highlighting its details and natural habitat.

Bottom line:

  • Let the top 1-2 inches of soil dry between waterings (most important step).
  • Trap adults with yellow sticky traps to reduce egg-laying.
  • Kill larvae with Bti drenches (or a cautious peroxide drench) on a weekly schedule.

Quick answer

To eliminate fungus gnats in houseplants, focus on the soil, not the air. Adults are annoying, but larvae in the top 1-2 inches of potting mix are what keep the infestation going.

Use this quick checklist:

  • Confirm it’s fungus gnats: mosquito-like flies near soil, especially after watering.
  • Dry the surface: wait until the top 1-2 inches feel dry before watering again.
  • Trap the flyers: place yellow sticky traps at soil level.
  • Treat larvae weekly for 3-4 weeks:
    • Bti drench (Mosquito Bits or similar) every 5-7 days
    • Optional: 3% hydrogen peroxide diluted (1:6 to 1:8 with water) as a spot treatment
  • Prevent relapse: improve drainage, avoid soggy saucers, quarantine new plants.

Fast reality check: because their life cycle can complete in about 3-4 weeks indoors, you usually need a month of consistent steps to fully break the cycle.

Close-up of a fungus gnat on a leaf, highlighting its details and natural habitat.

Identification

Fungus gnats are easy to mislabel as fruit flies, and that mix-up wastes time. Fruit flies hang around kitchens and fermenting food. Fungus gnats stay close to potting soil, especially when it stays damp.

Entomologists describe adult fungus gnats as tiny, dark, mosquito-like flies (about 1.5-3 mm long) in groups such as Sciaridae and Mycetophilidae. They are weak fliers and often run across the soil surface or pot rim instead of cruising around the room.

What they look like (at a glance)

Adult fungus gnat

  • Size: 1.5-3 mm (about the size of a sesame seed)
  • Color: gray-black body
  • Shape: slender with long legs and long antennae
  • Behavior: pops up from soil when disturbed, gathers at windows/lights

Larva (the damaging stage)

  • Size: up to about 6 mm (around 1/4 inch)
  • Color: clear to whitish body with a distinct black head
  • Location: top 1-2 inches of potting mix
  • Behavior: feeds on fungi and decaying matter, can chew tender roots

According to the University of Wisconsin Horticulture Extension, the larval stage is the one associated with root feeding and plant stress, especially in seedlings and cuttings.

Two simple tests to confirm fungus gnat larvae

Here’s a quick, low-effort “yes or no” approach:

  1. Yellow sticky trap test (adults)
  • Place a trap right at soil level for 24-72 hours.
  • If you catch tiny mosquito-like flies, you’re likely dealing with fungus gnats.
  • For trap options and placement tips, see InsectoGuide’s Best Fly Paper and Sticky Traps.
  1. Potato slice test (larvae)
  • Cut raw potato into 1/4-1/2 inch slices.
  • Lay slices cut-side down on the soil.
  • Check in 3-4 days for clear larvae with black heads on the underside.

Quick “fungus gnat vs lookalikes” cards

  • Fungus gnats

    • Hangout: soil surface, pots, windows
    • Source: moist potting mix
    • Best fix: dry soil surface + larvicide drenches
  • Fruit flies

    • Hangout: fruit bowls, trash, recycling
    • Source: fermenting sugars
    • Best fix: sanitation + kitchen traps
  • Drain flies

Why they happen

Top Pick
SUMMIT CHEMICAL CO 117-6 30OZ Mosquito Bits

Summit · $10-15

Bti bits target fungus gnat larvae in moist potting mix, which is the stage adults keep coming from.

Pros

  • Targets larvae in soil rather than only catching adults.
  • Useful for repeated watering treatments in houseplants.
  • Low-odor option for indoor plant care.
Cons

  • Needs repeat applications as directed.
  • Does not instantly remove adult gnats already flying.

Check Price on Amazon →

Most infestations come down to a simple indoor ecosystem: moisture + organic potting mix = fungal growth, and fungus gnats treat that like a nursery. Even “healthy-looking” plants can host them if the surface stays damp.

Female fungus gnats can lay roughly 50-200 eggs in moist media over a short adult life (often around a week). Eggs can hatch in 3-6 days, and the full cycle can finish in 3-4 weeks in warm indoor conditions. That’s why a few gnats can become a steady cloud near your plants surprisingly fast.

The real attractant is not your plant

It’s the potting mix conditions:

  • Constantly moist top layer (especially in low light)
  • Peat-heavy or compost-rich mixes that stay wet
  • Poor drainage or pots without drainage holes
  • Standing water in saucers
  • Propagation trays and seed-starting setups

The Oklahoma State University Extension notes that moisture management is the foundation of control. In practice, that means changing how the soil dries, not just “killing bugs.”

When fungus gnats actually damage plants

Adults are mostly a nuisance and do not bite. Larvae are the concern.

Larval feeding is usually minor on established, vigorous houseplants, but it can matter a lot for:

  • seedlings and cuttings
  • small pots that stay wet longer
  • plants already stressed by overwatering
  • plants vulnerable to root disease pressure

Think of larvae as tiny grazers. They prefer fungi and decaying material, but if the buffet is dense and constant, they also nibble tender roots and root hairs. That can reduce water uptake and open the door for root rot organisms.

Visual: “risk score” checklist

If you check 3 or more, expect recurring gnats until you change conditions:

  • Soil surface is always dark and damp
  • Pot feels heavy for many days after watering
  • No drainage hole (or it’s blocked)
  • Fungus/mold on soil surface
  • Plant sits in a dim corner with little airflow
  • You water on a schedule instead of by soil feel

How to get rid of fungus gnats

Pick #2
Gideal 20-Pack Dual-Sided Yellow Sticky Traps for Flying Plant Insect Such as Fungus Gnats, Whiteflies, Aphids, Leafminers,Thrips - (6x8 Inches, Included 20pcs Twist Ties)

Gideal · $9.99

Yellow sticky cards help confirm fungus gnat activity and reduce flying adults around houseplants.

Pros

  • Easy visual monitoring near the soil line.
  • Useful for fungus gnats and other small flying plant pests.
  • No spray or odor around indoor plants.
Cons

  • Only catches adults, not larvae in soil.
  • Can look messy once covered with insects.

Check Price on Amazon →

This is the part most people skip: you need an integrated plan that targets both stages, repeatedly, for long enough to outlast the eggs and pupae.

A reliable approach has three lanes:

  1. Make the soil less inviting
  2. Kill larvae in the soil
  3. Catch adults so they can’t keep laying eggs

Step-by-step plan (3-4 weeks)

Week 0 (today)

  1. Put yellow sticky traps at soil level in every suspect pot.
  2. Let the top 1-2 inches dry before watering again.
  3. Empty saucers after watering. No standing water.

Weeks 1-4
4. Apply a larval treatment (Bti is the standard) every 5-7 days.
5. Keep sticky traps up and replace when covered.
6. Adjust soil and containers if drying is still too slow.

Visual: “Do this, not that”

  • Do: bottom water when possible
    Not that: top-water daily “just a little”

  • Do: use airy mix (perlite, bark, pumice)
    Not that: dense, peat-only media that stays wet

  • Do: trap adults at soil level
    Not that: spray the room air (it doesn’t touch larvae)

Lane 1: Fix the environment (the long-term solution)

Moisture is the lever that controls everything.

Try these changes:

  • Finger test: water only when the top 1-2 inches feel dry.
  • Bottom watering: set the pot in a tray for 20-30 minutes, then dump excess.
  • Increase airflow/light: a brighter spot and gentle airflow dries the surface faster.
  • Check drainage: confirm water runs freely out the bottom.
  • Repot if needed: if the mix is compacted or stays wet for a week, repot into a better-draining blend.

If you want a trap roundup for adult flyers (useful while you fix watering), InsectoGuide’s Best Fly Traps for Indoor and Outdoor Use covers options and where each works best.

Indoor scene showing a houseplant affected by fungus gnats with gardening tools nearby.

Larvae control

Pick #3
Garden Safe Brand Houseplant & Garden Insect Killer2, 32 Fluid Ounces, Kills 100+ Listed Insects on Contact, For Use in Homes, Home Gardens & Home Greenhouses Up to Day of Harvest

Garden Safe · $10.00-15.00

A houseplant-safe insect spray can help with active plant pest pressure when sticky cards and soil drying are not enough.

Pros

  • Ready-to-use format for indoor plant leaves and stems.
  • Better fit for houseplants than broad household bug sprays.
  • Can support a broader gnat-control plan.
Cons

  • May not solve larvae if soil stays wet.
  • Always test delicate plants and follow label directions.

Check Price on Amazon →

If you only trap adults, you’ll still see new gnats emerging from the soil for weeks. Larvae are the multiplying stage, and they’re protected inside the potting mix. That’s why drenches (treatments applied with water) work better than most sprays.

Option A: Bti drenches (best balance for most homes)

Bacillus thuringiensis subsp. israelensis (Bti) is a biological larvicide used for certain fly larvae. It’s widely recommended in horticulture guidance for fungus gnats because it targets larvae when they feed.

Practical use (common home method):

  • Soak Mosquito Bits granules in water for 12-24 hours to make a “Bti tea.”
  • Use that water to drench the pot when it needs watering.
  • Repeat every 5-7 days for 3-4 weeks.

Why repeat? Eggs hatch in waves, and you need to catch each new batch of larvae.

Safety note: Always follow the product label. For general pesticide safety principles indoors, the EPA’s pesticide safety guidance is a solid reference for storage, ventilation, and keeping products away from kids and pets.

Option B: Hydrogen peroxide drench (use carefully)

A common home remedy is 3% hydrogen peroxide diluted in water. It can kill larvae on contact in the soil, and you’ll often see fizzing as it reacts with organic material.

A conservative, plant-friendlier range:

  • Mix 1 part 3% hydrogen peroxide with 6-8 parts water (1:6 to 1:8).
  • Apply when the top layer is already somewhat dry.
  • Drench until water drains out the bottom.
  • Repeat every 4-7 days for 2-3 rounds while watching plant response.

Avoid stronger mixes unless you’re confident your plant tolerates it. Tender roots can be sensitive, especially in seedlings.

Option C: Physical removal (fast reset for severe cases)

If a pot is heavily infested or the soil is staying wet no matter what you do:

  • Remove and discard the top 1-2 inches of potting mix.
  • Replace with fresh potting mix.
  • Then add a surface barrier (below) and fix watering.

Do not compost the removed soil indoors. Bag it and discard it outside.

Surface barriers (helpful, but not magic)

A dry, gritty top layer makes egg-laying harder. Good options:

  • 1/2 to 1 inch of coarse horticultural sand
  • fine gravel

Avoid fine play sand that compacts and stays wet.

Visual: Larvae-treatment chooser

  • Best all-around: Bti drenches weekly
  • Quick knockdown: peroxide drench (cautious dilution)
  • Worst infestations: partial soil replacement + Bti schedule

Adult control

Adults are the visible problem, but they’re also the egg-laying stage. Reducing adults speeds up the win, especially when paired with larval control.

Sticky traps (the workhorse)

Place traps where adults actually move:

  • 1-2 traps at soil level per pot (or per plant cluster)
  • one extra near a window if you’re seeing them there

Replace as they fill. For more options, including sizes and placement ideas, see Best Fly Paper and Sticky Traps.

Vinegar or beer traps (nice add-on)

These can help catch wandering adults:

  • Fill a small cup with apple cider vinegar or beer.
  • Add a drop of dish soap.
  • Place near infested plants.
  • Refresh every couple of days.

They’re not a standalone fix, but they can reduce the “cloud” while the soil treatments do the real work.

Targeted sprays (last resort)

If adults are extreme and you need quick relief, use only products labeled for indoor houseplants, and apply them to surfaces where adults rest (foliage and pot rims), not into the air.

Also consider non-chemical tools for the occasional adult:

  • A quick zap tool can help in the moment. InsectoGuide’s Best Electric Fly Swatters explains what to look for and when they’re actually useful.

Visual: Adult-control “stack”

Use 2-3 together for best results:

  • Sticky traps at soil level
  • Vinegar/beer trap nearby
  • Occasional spot-kill (swatter or labeled spray)
Person inspecting a houseplant for fungus gnats in a casual indoor gardening setting.

Prevention

Once you’ve cleared fungus gnats, prevention is mostly about not recreating their favorite nursery. The good news is that the same steps also improve general indoor plant care.

Quarantine and inspect new plants

New plants are a common way gnats move from one home to another.

A simple routine:

  1. Keep new plants separate for 7-14 days.
  2. Put a yellow sticky trap in the pot right away.
  3. If you catch gnats, treat that plant before it joins the collection.

Store potting mix correctly

Even good potting mix can become a gnat magnet if stored open in a damp area.

Do this:

  • keep bags sealed
  • store off the floor in a dry spot
  • avoid leaving scoops of mix sitting in open bins

Watering habits that prevent relapse

If you only remember one rule, make it this: the surface should dry between waterings.

Helpful habits:

  • water by soil feel, not by calendar
  • use pots with drainage holes
  • dump saucers after watering
  • consider a chunkier mix for plants that stay wet too long

Myth check (so you don’t get pulled off track)

  • Myth: “They’re fruit flies.”
    Fact: fungus gnats breed in soil, fruit flies breed in fermenting food.

  • Myth: “One drench fixes it.”
    Fact: you need 3-4 weeks to cover the full life cycle.

  • Myth: “More water will flush them.”
    Fact: overwatering is usually the reason they’re there.

Visual: Prevention mini-checklist

  • Quarantine new plants + sticky trap
  • Let top 1-2 inches dry
  • Improve drainage and airflow
  • Keep potting mix sealed and dry

Conclusion

Fungus gnats are beatable, but they reward consistency. Drying the top layer of potting mix removes their breeding site, sticky traps reduce egg-laying adults, and weekly Bti drenches (or careful peroxide treatments) knock out larvae over the 3-4 week life cycle.

Next step: set sticky traps today and adjust watering so the soil surface dries. Then pick one larval treatment and stick with it weekly until traps stay mostly clear.

If you’re still seeing small flies indoors, it may be a different pest with a different source. Compare options in Best Fly Traps for Indoor and Outdoor Use or, if they’re clustering near sinks, check Top Drain Fly Treatments and Gel Cleaners.

As an Amazon Associate, I earn from qualifying purchases. Product recommendations are based on real reviews and independent research.

Author

  • Sophia's passion for various insect groups is driven by the incredible diversity and interconnectedness of the insect world. She writes about different insects to inspire others to explore and appreciate the rich tapestry of insect life, fostering a deep respect for their integral role in our ecosystems.

    View all posts

Leave a Comment

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

Scroll to Top