Houseplant with yellow sticky trap catching fungus gnats in potting soil

How to Get Rid of Fungus Gnats: A Proven Step-by-Step Plan

Here’s the quick answer on how to get rid of fungus gnats: let the top 1 to 2 inches of soil dry out between waterings, catch the flying adults with yellow sticky traps, and kill the larvae in the soil with Bti (the bacteria in mosquito bits and dunks) or beneficial nematodes. Keep it up for about 3 to 4 weeks, which covers a full life cycle, and remove standing water and rotting plant debris so they don’t come back.

The key is treating both stages. Adults are the annoying flies you see, but the larvae living in moist potting soil are what keep the infestation going. This guide explains how to identify fungus gnats, why they show up, which treatments work best, which home remedies are worth trying, and how to keep your houseplants gnat-free.

What Are Fungus Gnats?

Fungus gnats are tiny, dark, mosquito-like flies, mostly in the genus Bradysia, that breed in moist potting soil and organic matter. They’re one of the most common houseplant pests.

  • Adults: about 1/8 inch long, gray to black, with long legs, long antennae, and clear or smoky wings. They’re weak fliers and tend to walk on the soil or hover near plants.
  • Larvae: tiny, clear to white worms with shiny black heads, living in the top couple of inches of soil.
  • Harm to people and pets: none. They don’t bite, sting, or spread disease to people.
  • Harm to plants: larvae feed mainly on fungi and decaying organic matter, but large numbers can chew root hairs, which can stunt seedlings, cuttings, and young plants.

Fungus Gnats vs Fruit Flies and Other Small Flies

PestLooks LikeWhere You’ll See ItBreeds In
Fungus gnatSlender, dark, long legs, mosquito-likeAround houseplants and windowsMoist potting soil
Fruit flyTan body, often red eyes, rounderKitchen, fruit bowl, trashRipe or rotting fruit, sugary spills
Drain flyFuzzy, moth-like, heart-shaped wingsBathrooms, sinks, showersGunk inside drains
Shore flyStocky, dark, short antennae, light wing spotsGreenhouses, very wet growing areasAlgae on wet surfaces

Correct identification matters. Fruit fly traps and drain cleaning won’t fix a fungus gnat problem, and soil treatments won’t fix fruit flies.

Fungus Gnat Life Cycle

Fungus gnats go through four stages: egg, larva, pupa, and adult. Females lay tiny eggs in moist soil, larvae feed for a couple of weeks, pupate in the soil, and emerge as adults that start the cycle again. According to Colorado State University Extension, at typical room temperatures of about 65 to 75°F the full life cycle can take three to four weeks, with continuous breeding year-round on indoor plants.

That timing is why one treatment rarely works. You need to keep going for at least one full cycle to catch the eggs that hatch after your first round.

Why You Have Fungus Gnats

  • Overwatering: constantly wet soil is the number one cause.
  • New plants or bagged potting mix that already contain eggs or larvae.
  • Poor drainage: pots without holes, compacted soil, or water sitting in saucers.
  • Organic-rich soil: peat, compost, and bark break down and feed the larvae.
  • Decaying debris: fallen leaves and dead roots on the soil surface.
  • Low light and cool rooms, where soil stays wet for days.
  • Open doors and windows, especially in warm months.

How to Confirm You Have Fungus Gnats

  • Tap the pot. If small dark flies rise from the soil, you likely have fungus gnats.
  • Use a potato slice test. Push a chunk or slice of raw potato into the soil surface. After a few days, lift it and look for tiny white larvae on the underside.
  • Set a yellow sticky card at soil level and check what it catches over a few days.
  • Check plant health. Heavy infestations may cause wilting, yellowing, or slow growth, especially in seedlings.

How to Get Rid of Fungus Gnats: Step-by-Step

Step 1: Let the Soil Dry Out

Larvae need moist soil to survive. Let the top 1 to 2 inches of soil dry before watering again. Push a finger into the soil to check. Then:

  • Empty saucers and cachepots after watering so roots don’t sit in water.
  • Try bottom watering: set the pot in a tray of water for 15 to 30 minutes so the roots drink while the surface stays drier.
  • Water less often in winter, when plants grow slowly.
  • Leave moisture-loving plants slightly moist, but avoid soggy soil.

Step 2: Trap the Adults With Yellow Sticky Traps

Adults are attracted to yellow. Place sticky cards flat or upright at soil level, or on stakes in the pot. Every female you catch is one that can’t lay more eggs. Replace traps when they’re full, and keep them away from pets and curtains.

Step 3: Kill the Larvae With Bti

Bti (Bacillus thuringiensis subspecies israelensis) is a natural soil bacterium that kills fly larvae, including fungus gnat and mosquito larvae. It doesn’t harm plants, people, or pets when used as labeled. You’ll find it in mosquito bits, mosquito dunks, and products like Gnatrol.

  1. Soak mosquito bits in water, or crumble part of a dunk into a watering can, following the label directions.
  2. Let it steep for the time the label lists, often about 30 minutes or longer.
  3. Water the plants with the solution until the soil is evenly moist.
  4. Repeat with each watering, or as the label directs, for several weeks.

Make sure you buy Bti, not regular Bt (kurstaki), which targets caterpillars and won’t control gnats.

Step 4: Add Nematodes or Predatory Mites (Optional)

  • Beneficial nematodes (Steinernema feltiae) are microscopic worms that hunt larvae in the soil. Mix them with water and drench the soil. They’re living organisms, so use them before their expiration date.
  • Predatory soil mites (Stratiolaelaps scimitus, sold as Hypoaspis) and rove beetles (Dalotia coriaria) are used by growers with many plants or greenhouses.

Step 5: Clean Up and Refresh the Soil

  • Remove dead leaves, fallen flowers, and debris from the soil surface.
  • Scrape off and replace the top inch or two of soil in badly infested pots.
  • For severe cases, repot into fresh, well-draining potting mix and a clean pot with drainage holes. Shake off old soil, check the roots, and trim mushy ones.

Step 6: Add a Barrier Top Layer

A 1/2-inch layer of coarse sand, fine gravel, or horticultural grit on top of the soil keeps the surface dry and makes it harder for females to lay eggs. Diatomaceous earth can also be used as a top layer, but it loses effectiveness when wet.

Step 7: Keep It Up for 3 to 4 Weeks

Continue drying, trapping, and treating for at least one full life cycle. If you still see new adults after a month, check for a missed plant, a bag of open potting mix, or another source.

A Simple 4-Week Fungus Gnat Treatment Plan

WeekWhat to DoWhat You Should See
Week 1Set yellow sticky traps, empty saucers, start drying the soil, water with Bti, remove debrisMany adults on traps
Week 2Keep drying the soil, water only with Bti solution, replace full trapsFewer new adults
Week 3Continue Bti and traps; add a sand or grit top layer; repot any badly infested plantTraps catch only a few gnats
Week 4Continue Bti and traps; check soil with a potato slice for larvaeFew or no gnats; no larvae under potato

If gnats are still common after four weeks, look for a plant you missed, an open bag of potting mix, or a pot that stays wet because of poor drainage.

Fungus Gnat Treatments Compared

MethodTargetsHow Well It WorksNotes
Drying the soilEggs and larvaeVery effectiveThe foundation of every plan; free
Yellow sticky trapsAdultsGood for adultsDoesn’t touch larvae; great for monitoring
Bti (mosquito bits or dunks)LarvaeVery effectiveSafe, cheap, widely available
Beneficial nematodesLarvaeVery effectiveLiving product; must be used fresh
Hydrogen peroxide drenchLarvaeMixed resultsPopular home remedy; can stress some plants
Apple cider vinegar trapAdultsMixed resultsWorks better for fruit flies
Sand or grit top layerEgg layingHelpfulBest for prevention
Neem oil soil drenchLarvaeSome helpUse as labeled; smell can be strong
CinnamonSurface fungusLittle evidenceNot a reliable treatment
Insecticide spraysAdultsShort termAdults return if larvae aren’t treated

Home Remedies: Do They Work?

Hydrogen Peroxide

Many gardeners water with a mix of 1 part 3% hydrogen peroxide to 4 parts water to kill larvae near the soil surface. It fizzes and breaks down into water and oxygen. Results are mixed, and research on it is limited. Test it on one plant first, don’t use it on very young seedlings or sensitive plants, and pair it with drying the soil and sticky traps.

Apple Cider Vinegar Traps

A shallow dish of apple cider vinegar with a drop of dish soap is a classic fruit fly trap. Some people catch fungus gnats this way, but yellow sticky traps are usually far more effective for them. Vinegar traps never touch the larvae.

Cinnamon

Sprinkling cinnamon on the soil is a popular tip because it may reduce surface fungus. There’s little evidence it controls fungus gnats on its own. It’s harmless to try, but don’t rely on it.

Dish Soap Sprays

Soapy water sprays can kill some adults on contact, but they don’t reach larvae and can harm sensitive leaves. Sticky traps are simpler.

Supplies Worth Keeping on Hand

  • Yellow sticky traps: small cards or stakes made for houseplants.
  • Bti product: mosquito bits are easier to measure than whole dunks for watering cans.
  • Moisture meter: takes the guesswork out of when to water.
  • Well-draining potting mix: stored in a sealed bin or tote.
  • Perlite, coarse sand, or horticultural grit: for improving drainage and top-dressing pots.
  • Pots with drainage holes and saucers you can empty easily.
  • A small fan: gentle airflow helps the soil surface dry, especially for seedlings.

Chemical Options

Most homes never need chemical insecticides for fungus gnats. Sprays with pyrethrins can knock down adults quickly, but new adults will keep emerging unless you also treat the larvae and fix overwatering. If you use any pesticide, choose one labeled for indoor plants and fungus gnats, follow the label exactly, and keep it away from children and pets.

Getting Rid of Fungus Gnats in Special Situations

Seed Starting and Seedlings

Seedlings are the most at risk because larvae can damage tender roots. Use sterile seed-starting mix, bottom water, run a small fan for airflow, and use yellow sticky cards and Bti from the start.

Many Houseplants at Once

Treat every plant at the same time. Gnats easily move from pot to pot, so treating one plant often just shifts the problem.

Self-Watering Pots and Terrariums

These stay moist by design. Let the reservoir run dry for a while, add a grit top layer, and use Bti in the water.

Hydroponics and Grow Tents

Algae and wet media attract gnats. Cover exposed media, clean surfaces, use sticky traps, and use Bti products labeled for that use.

Fungus Gnats Without Plants

If you see gnats but have no plants, look for other moist organic sources: a leaking pipe, a damp crawl space, a compost bin, wet pet food, or rotting firewood.

Signs Fungus Gnats Are Hurting Your Plant

  • Sudden wilting even though the soil is wet
  • Yellowing lower leaves and slow growth
  • Seedlings that collapse at the soil line
  • Cuttings that fail to root
  • Brown, damaged root hairs when you check the roots

These signs can also come from root rot caused by overwatering, which often goes hand in hand with fungus gnats. Fixing your watering helps both problems.

How to Prevent Fungus Gnats

  • Water only when the top inch or two is dry, and empty saucers.
  • Use pots with drainage holes and a well-draining mix with perlite or bark.
  • Inspect new plants before bringing them home, and keep them apart for a week or two.
  • Store potting mix in a sealed container, since open bags can become infested.
  • Remove dead leaves and debris from the soil.
  • Keep a yellow sticky card in a few pots as an early warning.
  • Add mosquito bits to your watering routine if your plants are prone to gnats.

Frequently Asked Questions

What kills fungus gnats instantly?

Sticky traps and contact sprays can kill adults quickly, but nothing ends an infestation instantly. You need to kill larvae in the soil with Bti or nematodes and dry the soil to stop new adults.

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

Usually about 3 to 4 weeks of consistent treatment, which covers one full life cycle.

Are fungus gnats harmful to humans or pets?

No. They don’t bite or carry diseases to people or pets. They’re mainly a nuisance and a risk to seedlings.

Do fungus gnats come from overwatering?

Overwatering is the main reason they thrive. Eggs and larvae often arrive in new plants or potting mix, then multiply in wet soil.

Will fungus gnats go away on their own?

Rarely, as long as the soil stays moist. Drying the soil is the single biggest step toward ending them.

Do mosquito dunks really work for fungus gnats?

Yes. Mosquito dunks and bits contain Bti, which kills fungus gnat larvae in the soil when added to watering water.

Should I repot a plant with fungus gnats?

Repotting into fresh, dry, well-draining mix helps with heavy infestations, but it isn’t always needed. Drying the soil and using Bti often work without repotting.

Can fungus gnats live in my bed or carpet?

No. They need moist organic matter to breed, so they stay near plant soil, drains, or other damp spots.

Does hydrogen peroxide kill fungus gnats?

A diluted hydrogen peroxide drench can kill some larvae it touches, but results vary and it may stress sensitive plants. Bti is a more reliable larvae treatment.

Why do I have fungus gnats in winter?

Indoor plants dry out more slowly in winter because of lower light and slower growth, so soil stays wet longer. Water less often in the colder months.

Do yellow sticky traps get rid of fungus gnats by themselves?

No. They catch adults and show you how bad the problem is, but larvae in the soil keep producing new gnats. Use traps together with drying the soil and a larvae treatment like Bti.

Can I use regular tap water with mosquito bits?

Yes. Soak the bits in room-temperature tap water as the label directs, then use that water for your plants.

The Bottom Line

Learning how to get rid of fungus gnats comes down to breaking their life cycle. Let the soil dry between waterings, trap adults with yellow sticky cards, and kill larvae with Bti or beneficial nematodes for 3 to 4 weeks. For more research-based guidance, see the UC IPM fungus gnat guide. Then prevent a comeback with good drainage, careful watering, and clean, sealed potting mix.

Similar Posts