Updated November 2026

To remove gnats from indoor plants, you need to attack both the adult flies and the larvae living in the soil. Most of the time the problem is fungus gnats, and they breed in moist potting mix. Dry the top layer of soil, trap the adults, and treat the larvae, and you should see the numbers drop within a week or two.

Confirm You Have Fungus Gnats

Fungus gnats are small, dark, and slow. They look like tiny mosquitoes and tend to hover around the soil surface or walk along the rim of the pot. Fruit flies move faster and mostly hang around the kitchen, so they are a different problem. To confirm, press a piece of sticky yellow tape into the soil surface overnight. If you find small black flies stuck to it, you have fungus gnats. For a deeper look at the cause, see Fungus Gnats in Indoor Plants: A Step-by-Step Fix That Works.

Shopping for one? See our guide: 4 Best Indoor House Plants Stands for Small Spaces and Sunny Windows.

Step One: Stop Feeding the Larvae

Gnat larvae feed on organic matter and fungi in wet soil. Your first job is to make the top two inches of soil dry out between waterings. Water only when the top inch feels dry to the touch, and empty the saucer under each pot within 30 minutes of watering. Overwatering is the most common reason gnats keep coming back, so adjusting your schedule often solves much of the problem on its own.

Step Two: Trap the Adults and Treat the Soil

Once the top layer is drying, you can break the life cycle. Work through these steps:

  1. Place yellow sticky traps on sticks or pins just above the soil line, one per pot or per cluster of pots.
  2. Mix a bowl of apple cider vinegar, a drop of dish soap, and water, and set it near the plants to catch adults.
  3. Water the soil with a biological larvicide containing Bacillus thuringiensis israelensis (often labeled BTi), which targets gnat larvae and is generally considered safe for pets and people when used as directed.
  4. Keep the traps in place for at least two to three weeks, since eggs laid before treatment will keep hatching.

Check Your Root Ball

If larvae are numerous, look at the roots. Tip the plant out of its pot and inspect the root ball for small, translucent, worm-like larvae with black heads. Rinse the roots gently and repot in fresh, sterile mix if the damage is heavy.

Step Three: Repot and Prevent Reinfestation

Fresh potting mix is the cleanest reset. Choose a mix with good drainage, such as one containing perlite or pumice, and avoid soil that stays soggy or smells sour. Clean the pot before reuse, and make sure the drainage holes are clear. Improving airflow around the plant helps too. Growers often report that a small fan running a few hours a day keeps the top layer of soil drier and makes adult flies less active.

  • Yellow sticky traps: These catch adult gnats as they fly and give you a clear count of how the population is changing. View on Amazon
  • BTi mosquito dunks or soil larvicide granules: These target the larvae in the root zone, where adult traps cannot reach. View on Amazon
  • Perlite or pumice for potting mix: Adding these to your mix improves drainage so the top layer dries faster. View on Amazon

Common Mistakes

  • Watering on a fixed schedule instead of checking soil moisture first.
  • Leaving standing water in saucers or decorative cache pots.
  • Using compost-heavy or peat-heavy mixes that stay wet for long periods.
  • Stopping treatment as soon as the adults disappear, before the larvae have cleared.
  • Ignoring nearby plants, since gnats move between pots and will reinfest treated ones.

For a broader plan covering the rest of your houseplant routine, the guide How to Take Care of Indoor Plants: A Step-by-Step Guide for Beginners covers watering and light habits that prevent many pest problems.

FAQ

Are gnats harmful to indoor plants?

Adult gnats do not damage plants, but their larvae feed on fine roots and can stunt growth or cause wilting in seedlings and young plants. Treating the larvae protects the root system.

How long does it take to get rid of gnats?

Most infestations improve within one to two weeks of drying the soil and using traps. Full control often takes three to four weeks because the life cycle takes time to complete.

Can I use insecticide on indoor plant gnats?

Many general insecticides are not labeled for indoor use on edible or pet-accessible plants, so read labels carefully. Physical and biological controls such as traps and BTi are usually a safer first choice. If you have pets, children, or a serious infestation, consult a local extension office or a licensed pest professional before using chemical products.

Conclusion

To remove gnats from indoor plants, dry the soil, trap the adults, and treat the larvae consistently for several weeks. Repotting into fresh, well-draining mix finishes the job for heavily infested plants. Once the population is under control, keep watering habits steady to stop them from coming back.

Claire Whitaker

About Claire Whitaker

Claire Whitaker is part of our editorial team and reviews and edits our plant care Q&A guides, checking product details against manufacturer specifications and owner feedback.