How to Get Rid of Gnats in Houseplants (For Good)

Tiny dark fungus gnats resting on damp potting soil and the rim of a houseplant pot

Table of Contents

Treat the soil and trap the adults at the same time. Let the top 1 to 2 inches of soil dry before you water. Once a week for three weeks, water with Mosquito Bits soaked at 4 tablespoons per gallon for 30 minutes. Place yellow sticky traps near the soil surface, and keep going for 4 to 6 weeks, until new adults stop appearing.

You water your plant. A cloud of tiny flies shoots up. Those are fungus gnats, and they breed in the soil, not in the air.

The adults are the part you notice, but the larvae hidden in the soil are what keep the problem coming back. Getting rid of gnats in houseplants comes down to knowing which treatments actually reach those larvae, which ones only look busy, and how long to keep going.

What Are Fungus Gnats and Why They Show Up

Adult fungus gnat beside a fruit fly, showing the gnat's slender dark body and the fly's tan body and red eyes

Fungus gnats look like tiny mosquitoes. Fruit flies are stockier, tan, with red eyes.

Fungus gnats are small, dark, mosquito-like flies. Adults are about 1/8 inch long with gray or see-through wings. Look closely, and you’ll spot a distinct Y-shaped vein pattern on the wings.

They are often confused with fruit flies, but the behavior is different. Fruit flies hover around food and drains. Fungus gnats hover around your plant’s soil. That’s your clearest tell. If the bugs you’re seeing are clustered on leaves and stems instead of the soil surface, you’re probably looking at aphids, not fungus gnats.

They get into your home in three main ways:

  • A new plant from a nursery or garden center that already has eggs in the soil
  • A bag of contaminated potting mix (open bags at stores can hold eggs for months)
  • An open window or door during warmer months

In Austin, gnats show up hardest the moment summer humidity climbs. If your plants spent the season outside, check the soil closely before bringing them back in for winter.

Fungus Gnat Larvae: The Real Problem Under the Soil

Close-up of fungus gnat larvae in moist potting soil around plant roots.

Adult gnats don’t bite, don’t sting, and don’t directly harm your plants. The damage comes from what they leave behind: eggs that hatch into larvae.

Fungus gnat larvae are tiny, clear or whitish worms with a shiny black head. They grow up to 1/4 inch long. They live in the top 2 to 3 inches of moist soil, and that’s where they do their damage.

What do they eat?

  • Fungi and decaying organic matter in the soil
  • Plant roots, root hairs, and sometimes the base of stems
  • The fungi found in rich, peat-heavy potting mixes

Most plants can handle a small larval population. But seedlings, African violets, poinsettias, and geraniums are especially at risk because their root systems are thin and close to the surface.

Signs your plant has a larval problem:

  • Leaves turning yellow with no obvious cause
  • Wilting even after watering
  • Slow or stopped growth
  • Visible tiny worms on the soil surface when you water

How to confirm larvae are present: press a few thin slices of raw potato into the top inch of soil. Leave them for 3 to 4 days, then flip them over.

If larvae are present, they will have come up to feed on the potato. This method also works to track whether your treatment is reducing the population.

The Life Cycle You Must Understand Before You Treat

Diagram of the fungus gnat life cycle from egg to larva, pupa and adult, taking 3 to 4 weeks

All four stages share the same pot at once, so one treatment never reaches them all.

The fungus gnat life cycle has four stages: egg, larva, pupa, and adult. The whole cycle takes 3 to 4 weeks, and a single female can lay up to 200 eggs in damp soil. Those are the figures from Colorado State University Extension.

Larvae do most of their feeding in the soil, and pupae form near the soil surface. Because of overlapping generations, your plant hosts eggs, larvae, pupae, and adults all at the same time.

Here’s the point that matters: if you only kill adult gnats, new adults keep emerging from larvae already in the soil. You need to hit both stages at once, or you stay stuck in a loop.

Fungus Gnats Treatment: Kill the Larvae First

Start with the larvae. Pick one of these treatments, pair it with sticky traps, and keep the soil on the dry side.

TreatmentWhat it targetsHow oftenBest for
Drying the soilEggs and larvae in the top layerEvery wateringPlants that tolerate dry soil
Bti drenchLarvae onlyWeeklyYour main larval treatment
Hydrogen peroxide drenchLarvae it reachesOccasionallyA backup when you have no Bti
Bottom wateringNothing directly, it’s a habitEvery wateringMoisture-loving plants
Beneficial nematodesLarvaeAs the package directsBig pots that stay damp deep down
Yellow sticky trapsAdultsSwap when fullCatching adults and tracking progress

1. Let the Soil Dry Out

Finger testing dry soil in a plant pot to show the let soil dry out method.

Dry soil cuts the survival of fungus gnat eggs and larvae, and it leaves adults fewer damp spots to lay in. Allow the top 1 to 2 inches to dry completely before watering again. This is the single most important step for most houseplants, but it rarely clears an infestation on its own, so pair it with a Bti drench.

This works well for drought-tolerant plants like pothos, snake plants, and ZZ plants.

Ferns, calatheas, and peace lilies don’t like to dry out. For these, let just the top half-inch dry between waterings, water from the bottom, and lean on a Bti drench and sticky traps to do the rest. That’s how I handle my own peace lilies and calathea.

2. BTI Soil Drench (Mosquito Bits)

Mosquito Bits BTI soil treatment beside a glass of water with granules used for gnat control.

This is the most effective treatment I’ve used across all my plants.

Mosquito Bits contain Bacillus thuringiensis israelensis (Bti), a naturally occurring bacterium that is toxic to fungus gnat larvae. It doesn’t pose a risk to people and has minimal toxicity to honey bees. That’s what EPA’s Bti review concluded, and it matters to me because I keep bees in my backyard. Bti does not affect eggs, pupae, or adults, only larvae.

How to use it:

  1. Mix 4 tablespoons of Mosquito Bits into 1 gallon of water.
  2. Let it soak for 30 minutes, then skim off the floating granules.
  3. Stir, then water the soil surface with the treated water.
  4. Repeat once a week for three weeks, and again if gnats come back.

Those steps come straight from the Mosquito Bits label, which also allows use around people and pets.

That weekly rhythm fits the 5 to 7 day spacing the Oklahoma State University Extension recommends, since Bti kills larvae but not eggs or pupae, so a single treatment always misses the next wave. It took about 3 weeks to see a real drop in the number of adults on my sticky traps. By week four, the gnats were gone.

No Mosquito Bits? Gnatrol Home & Garden is another Bti product, sold as granules you stir into water. Its label calls for 1 to 1.5 teaspoons per gallon of water as a soil drench, repeated once a week for at least three weeks.

3. Hydrogen Peroxide Drench

Hydrogen peroxide solution displayed with measuring glasses on a wooden tabletop for soil treatment.

Mix 1 part 3% hydrogen peroxide with 4 parts water. Water your plants with this solution in place of regular water. The soil will fizz briefly as it breaks down into water and oxygen. That’s normal.

Advice on peroxide is split. Some extension services give this same 1-to-4 mix, while others point out that no research shows it works on fungus gnats. Use it as a backup to Bti, not your main treatment, and don’t overuse it, as it can affect beneficial organisms in the soil over time.

4. Bottom Watering

Potted houseplant sitting in a shallow tray showing the bottom watering method.

Place your pot (it must have drainage holes) in a tray of water for 15 to 20 minutes. The soil absorbs moisture from the bottom up, which helps keep the surface drier than watering from the top. Empty the tray once the time is up so the pot doesn’t sit in water.

This is a great long-term habit once you’ve treated the infestation, especially for plants that need regular watering. I switched my peace lilies and a calathea to bottom watering after clearing my last infestation. Keeping that top half-inch dry made a clear difference. Those were always the first pots to attract gnats again, and they stayed clear through the rest of the summer.

5. Beneficial Nematodes

Package of beneficial nematodes next to a glass of water on a wooden surface for pest control use.

Steinernema feltiae are microscopic roundworms that attack and kill fungus gnat larvae in the soil. They work well for moderate-to-heavy infestations and are an option if other treatments haven’t fully cleared the problem.

How to use them:

  1. Apply them as soon as they arrive. They’re alive and don’t keep well.
  2. Water the pots first, because nematodes only work in moist soil.
  3. Mix them with water at the rate on the package and pour it over the soil.
  4. Keep the soil moist afterward, in a room between 60°F and 90°F.

I used them once on a large fiddle leaf fig and a couple of oversized floor planters where the soil stayed damp deep down. It took about two weeks before the sticky traps noticeably slowed down, and closer to three weeks for the pots to clear out. They worked well, but they’re more of a hassle to store and apply than Mosquito Bits.

How to Deal With Adult Gnats

Yellow sticky trap near monstera soil full of tiny fungus gnats beside a vinegar dish holding only a few

Over a week, the sticky trap caught more than two dozen gnats and the vinegar dish caught three.

Yellow sticky traps are the most reliable tool. Place them near the soil surface, not up in the leaves. Adults crawl and hover near the soil, so that’s where traps catch the most.

Check and replace them regularly, and use them to track whether your infestation is shrinking.

An apple cider vinegar trap catches fruit flies far better than fungus gnats, so don’t count on it here. I set a small dish of apple cider vinegar with a drop of dish soap right next to a yellow sticky trap on my monstera for a full week. The sticky trap caught over two dozen gnats. The vinegar dish had three.

One important thing to remember: traps only catch adults. They do nothing for larvae already in the soil. Treat the soil first, then use traps to mop up the adults.

Can You Spray Something to Kill Gnats Fast?

A spray only knocks down the adults it hits. Nothing you spray on leaves or into the air reaches the larvae in the soil, so the gnats keep coming back unless you treat the soil too.

For a heavy swarm, a pyrethrin spray labeled for houseplants gives fast but temporary control. Spray the soil surface and the leaves where adults rest, never the air. That’s the approach the UC IPM fungus gnat guide describes, and it warns against fogging indoors. Read the label first, since some tell you to move pets and birds out and cover fish tanks before spraying.

The same limit applies to neem oil or insecticidal soap sprays, and hydrogen peroxide belongs in the soil as a drench, not on the leaves. No spray clears an infestation in a day.

Treatments That Don’t Work Well

  1. Apple cider vinegar traps alone: catch a few adults at best. They don’t touch larvae, so the infestation continues.
  2. Neem oil: messy to spray, it doesn’t reach larvae deep in the soil, and as a neem oil soil drench its results are inconsistent, so it’s not the first tool to reach for against larvae.
  3. Drying the soil once, then going back to old habits: works only while the soil stays dry. Go back to frequent watering before the larvae are gone, and the gnats come back. Keep the top inch dry between waterings until your sticky traps stay empty.
  4. Cinnamon on soil: a natural antifungal treatment that reduces the fungi larvae feed on. It can help slow a light infestation but won’t eliminate one that’s already established. Use it alongside a proper treatment, not as a standalone fix.
  5. Repotting all your plants at once: useful for severe infestations, but fresh mix from a torn or open bag can carry gnats too, so check the bag before you repot.

I’ve tried both. I dusted cinnamon over the soil of a pothos and a philodendron and gave it about two weeks. It cut down the white surface mold a bit and seemed to slow the gnats for a few days, but they were right back once I watered again. I also tried a neem oil drench on a snake plant for two weekly waterings. It left an oily film on the soil, smelled strong indoors, and the sticky trap above it kept filling up anyway.

How to Keep Gnats From Coming Back

Prevention is simpler than treatment. These habits will keep your plants gnat-free long term.

  1. Only water when the top inch of soil is dry, test with your finger, not a calendar
  2. Use pots with drainage holes and empty water from saucers after watering
  3. Remove dead leaves and plant debris from the soil surface regularly
  4. Inspect new plants before bringing them home, check the soil for tiny white larvae, and look for adults hovering near the pot
  5. Store open potting mix in sealed bags: bags left open at garden centers can already contain eggs
  6. Add a thin layer of sand or fine gravel to the soil surface to block adult gnats from laying eggs in the top layer

Your Week-by-Week Gnat Plan

Getting rid of gnats in houseplants is not complicated, but it does require two things working together: treating the larvae in the soil and trapping the adults above it. Most people do one without the other and wonder why the gnats keep coming back.

  • In week one, start the Bti drench, set sticky traps near the soil, and let the top layer dry between waterings.
  • In week two, give the second drench and check a potato slice. Adults on the cards are normal, since Bti doesn’t touch pupae or adults.
  • In week three, give the third drench and swap out full traps.
  • From week four on, keep the watering habit and the traps until no new adults show up, and drench again if they return.

Once the gnats are handled, run the same check over your other houseplants for common indoor pests like aphids or spider mites.

Which method worked for you, or which one completely failed? Drop it in the comments.

Frequently Asked Questions

Can I Put Vinegar Directly on My Plants to Kill Gnats?

No. Straight vinegar is too acidic for soil or roots. Use it only in a shallow trap dish, never poured into the pot.

How Long Does It Take to Get Rid of Gnats for Good?

Usually 4 to 6 weeks. Treat the larvae, keep the topsoil dry between waterings, and run traps until new adults stop showing up.

Why Is My House Suddenly Full of Gnats?

Usually overwatering, a recently repotted plant, or a new plant that arrived from the nursery with eggs already in the soil.

Do I Need to Get Rid of an Infested Plant?

No. Treat the soil and keep monitoring it. Fungus gnats rarely kill an established, healthy plant on their own.

Leave a Reply

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

About the Author

Thatcher is the person friends text when they find a weird bug on their plant at 11pm. He’s been obsessed with insects since childhood and has spent years figuring out how to get rid of the bad ones without nuking everything with chemicals. He’s based in Austin, keeps bees in his backyard, and firmly believes fungus gnats are everyone’s villain origin story.

Table of Contents

Related Posts

What are You Looking For?