How to Get Rid of Gnats in Houseplants: Complete Guide to Pest Control

A complete guide to getting rid of gnats in houseplants, covering identification, causes, and effective solutions for eliminating fungus gnats.

Share this guide Facebook X Pinterest WhatsApp
Practical guide Beginner-friendly steps
Quick answer

Fungus gnats are small flying insects that lay eggs in moist potting soil. The larvae feed on organic matter and can damage plant roots. The most effective solution is to allow the soil to dry out completely between waterings. Use yellow sticky traps to catch adult gnats. Apply a layer of sand or diatomaceous earth on top of the soil to prevent larvae from emerging. BTI (Bacillus thuringiensis israelensis) is a natural larvicide that kills gnat larvae. Water less frequently and improve drainage. With consistent treatment, gnats can be eliminated within 2-3 weeks.

Gnat Type Fungus gnats (Bradysia spp.)
Larvae Habitat Moist, organic-rich potting soil
Adult Lifespan 7-10 days
Egg to Adult Cycle 3-4 weeks
Larvae Damage Feed on roots, stunt growth
Overwatering #1 cause of fungus gnats
BTI Treatment Bacillus thuringiensis israelensis (natural larvicide)
Prevention Allow soil to dry between waterings
Before you start

What you will need

Yellow sticky traps (for catching adult gnats).
Diatomaceous earth (food grade).
Sand or fine gravel (for top dressing).
BTI products (Mosquito Bits or Gnatrol).
Hydrogen peroxide (3% solution).
Well-draining potting mix.
Watering can with a narrow spout.
Pruning shears for trimming plants.
Pot with drainage holes.
Your progress 0 of 8 steps
1
Step 1

Identify Fungus Gnats

Identifying gnats
Correct identification is the first step to elimination.

Fungus gnats are small, dark flies that look like tiny mosquitoes. They are usually 1/16 to 1/8 inch long. They have long legs, long antennae, and clear or gray wings.

Adult gnats are often seen flying around plants or hovering near the soil surface. They are slow-flying and are easily caught with sticky traps.

The larvae are tiny, white, worm-like creatures with black heads. They live in the top 1-2 inches of soil and feed on organic matter and plant roots.

Fungus gnats are not fruit flies. Fruit flies are attracted to ripe fruits and vegetables. Fungus gnats are attracted to moist soil.

Gnats are a nuisance but also a sign of overwatering. The larvae can damage plant roots, causing stunted growth and yellowing leaves.

2
Step 2

Understand the Causes

Gnat causes
Understanding the causes helps prevent re-infestation.

Overwatering is the number one cause of fungus gnats. The larvae thrive in moist, organic-rich soil. When soil stays wet for extended periods, it creates the perfect environment for gnats to breed.

Poor drainage is another cause. If the pot does not have drainage holes or the soil is compacted, water collects at the bottom, creating a breeding ground.

Using garden soil or non-sterilized potting mix can introduce fungus gnat eggs. Always use fresh, high-quality potting mix.

Gnats can also enter homes through open doors and windows, or on new plants. Always check new plants for pests before bringing them inside.

Fungus gnats are common in winter when plants are watered less frequently but stay wet longer due to lower evaporation.

3
Step 3

Let the Soil Dry Out

Drying out soil
Dry soil breaks the gnat life cycle.

Fungus gnat larvae need moist soil to survive. Allowing the soil to dry out completely kills the larvae and breaks the life cycle.

Stop watering the plant until the top 2-3 inches of soil are completely dry. This may take 1-2 weeks depending on the plant and conditions.

Most houseplants can tolerate dry soil for a short period. Succulents and snake plants are very drought-tolerant and can go longer without water.

For plants that need consistent moisture, use a moisture meter to ensure the soil is not staying wet for too long.

Once the soil is dry, resume watering but reduce the frequency. Water only when the top inch of soil feels dry.

4
Step 4

Use Yellow Sticky Traps

Sticky traps
Sticky traps are an effective and non-toxic control method.

Yellow sticky traps are effective for catching adult gnats. The yellow color attracts the gnats, and they get stuck on the adhesive.

Place sticky traps horizontally on the soil surface or vertically near the plant. Position them close to the soil where gnats are most active.

Sticky traps catch adult gnats and prevent them from laying new eggs. This helps break the life cycle.

Sticky traps also help monitor the infestation. If the traps catch many gnats, the infestation is severe.

Replace traps when they are covered with insects or dust.

5
Step 5

Apply Diatomaceous Earth

Diatomaceous earth
A natural, non-toxic solution for gnat larvae.

Diatomaceous earth is a fine powder made from fossilized algae. It is natural and safe for plants and pets (when using food-grade).

Sprinkle a thin layer of diatomaceous earth on the surface of the soil. The powder is sharp and cuts the exoskeletons of larvae, causing them to dehydrate and die.

Reapply diatomaceous earth after watering because it becomes less effective when wet.

Diatomaceous earth is also effective against other pests like aphids and spider mites.

Use food-grade diatomaceous earth for safety.

6
Step 6

Use BTI (Bacillus thuringiensis israelensis)

BTI treatment
BTI is the most effective biological control for fungus gnats.

BTI (Bacillus thuringiensis israelensis) is a natural bacterium that kills fungus gnat larvae. It is safe for plants, pets, and humans.

BTI is available as Mosquito Bits or Gnatrol. Mosquito Bits can be sprinkled on the soil surface or soaked in water to make a drench.

To make a drench, soak Mosquito Bits in water for 30 minutes. Strain and use the water to water the plant.

Apply BTI every 5-7 days until the infestation is gone. Repeat for 2-3 weeks to break the life cycle.

BTI is also effective against mosquito larvae and is safe for beneficial insects.

7
Step 7

Use Hydrogen Peroxide Drench

Hydrogen peroxide
A quick and effective treatment for fungus gnats.

Hydrogen peroxide (3% solution) can be used as a soil drench to kill gnat larvae and aerate the soil.

Mix 1 part hydrogen peroxide with 4 parts water. Water the plant with this solution until it drains from the bottom.

The hydrogen peroxide releases oxygen in the soil, killing larvae and aerating the root zone.

Do not use hydrogen peroxide too frequently because it can harm beneficial soil microbes. Use it once a week until the infestation is gone.

Hydrogen peroxide is safe for plants when diluted properly.

8
Step 8

Apply Top Dressing

Top dressing
A physical barrier prevents gnats from accessing the soil.

Apply a 1/2 to 1 inch layer of sand, fine gravel, or pebbles on top of the soil. This creates a physical barrier that prevents adult gnats from laying eggs in the soil.

Sand is particularly effective because it dries quickly and makes it difficult for larvae to move.

The top dressing also helps keep the soil surface dry, which discourages gnats.

Make sure the top dressing covers the entire soil surface, including around the stem of the plant.

This method is safe, effective, and long-lasting.

Troubleshooting

Common problems and fixes

Problem Likely cause What to do
Gnats keep coming back. Not treating for long enough or new infested plants brought in. Continue treatment for 3-4 weeks. Check new plants for pests.
Plants are wilting after treatment. The soil may be too dry or hydrogen peroxide was too strong. Water the plant if soil is too dry. Dilute hydrogen peroxide properly.
Sticky traps are not catching gnats. Traps are not close enough to the soil or not fresh. Place traps horizontally on the soil surface. Replace old traps.
Gnats are on all plants. Infestation has spread to multiple plants. Treat all plants in the area simultaneously.
Interactive

Gardener's checklist

Quick knowledge check

Test what you learned

What is the #1 cause of fungus gnats?

Answer: Overwatering

What is BTI?

Answer: A natural larvicide (Bacillus thuringiensis israelensis)

How long should you treat fungus gnats?

Answer: 3-4 weeks

What is the most effective way to prevent fungus gnats?

Answer: Let soil dry between waterings

Frequently asked questions

Common questions

Are fungus gnats harmful to plants?

Fungus gnat larvae feed on organic matter and plant roots. In large numbers, they can damage roots, causing stunted growth, yellowing leaves, and wilting. Adult gnats are more of a nuisance but indicate an overwatering problem.

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

With consistent treatment, fungus gnats can be eliminated in 2-3 weeks. The life cycle is 3-4 weeks, so treatment must continue for at least 3 weeks to break the cycle completely.

Are fungus gnats harmful to humans?

Fungus gnats are not harmful to humans. They do not bite or transmit diseases. They are a nuisance but not a health risk.

Can I use vinegar traps for fungus gnats?

Vinegar traps are effective for fruit flies but not fungus gnats. Fungus gnats are attracted to moist soil, not vinegar. Use yellow sticky traps instead.

How do I prevent fungus gnats?

Prevent fungus gnats by allowing the soil to dry out between waterings, using pots with drainage holes, using well-draining potting mix, and checking new plants for pests.

Final takeaway

Fungus gnats are common pests that can be eliminated with consistent treatment. The most effective solution is to allow the soil to dry out completely between waterings. Use yellow sticky traps to catch adult gnats and monitor the infestation. Apply BTI (Bacillus thuringiensis israelensis), diatomaceous earth, or hydrogen peroxide to kill larvae. Add a top dressing of sand or gravel to prevent adults from laying eggs. Treat all plants in the area and continue treatment for at least 3 weeks to break the life cycle. With proper care and prevention, fungus gnats can be eliminated and your plants can thrive.

Frequently asked questions

How often should a vegetable garden be watered?

Frequency depends on weather, soil and plant size. Check the soil rather than watering on a rigid schedule.

Is compost enough fertilizer?

Compost improves soil and provides nutrients slowly. Heavy-feeding crops may still need additional feeding.

About the author

The Sproutstead Editorial Team

We create clear, practical gardening and homesteading guides designed for real homes and beginner growers.

View author profile →