Home / Pest guide

Indoor Herb Pest Control (IPM Guide)

A step-by-step plan for bugs on herbs you eat: prevent, monitor, remove, then treat safely.

Potted basil on a kitchen windowsill with a yellow sticky trap card and a hand lens (AI-generated image)

By the Countertop Harvest team · Last updated

We may earn a commission from links on this page. Full disclosure below.

Short answer: control pests on indoor herbs with integrated pest management (IPM): prevent (inspect and isolate new plants, don't overwater), monitor (sticky cards, weekly leaf checks), remove by hand (water rinses, pruning), then use biological controls such as BTi for fungus gnats. Because you eat herbs, sprays come last, and only products labeled for edible herbs (University of Vermont Extension).

What is IPM, and why it matters for herbs

Integrated pest management means preventing problems, catching them early, and starting with the gentlest fix that works. University of Vermont Extension puts it simply for indoor herbs: since you will most likely eat what you grow, chemical strategies are a last resort.

Identify the pest first

PestWhat you'll seeFirst stepsSource
Fungus gnatsTiny dark flies around the pot; thin white larvae with black heads in the soilLet soil dry; yellow cards laid flat at soil level; BTi soil drenchMSU, Arizona, UConn
Spider mitesFine stippling, bronzed leaves, webbing; 'pepper' on white paperRinse every 3–5 days; avoid hot, dry spots; soap or oil; predatory mitesMSU, MU, UVM
AphidsClusters of soft insects on tips; sticky leavesWash off with water; insecticidal soapArizona, MU
WhitefliesTiny white insects fly up when disturbedYellow sticky cards; insecticidal soap or oilUMD, UC IPM
ThripsSilvery streaks, specks on leavesBlue or yellow sticky cards to detect; rinse; labeled soapUConn, UC IPM
MealybugsWhite cottony masses where leaves join stemsAlcohol swab; soap or oil; discard badly infested plantsArizona
Powdery mildewWhite powdery coating on leavesBetter air circulation; pick off infected leavesUMD

The 5-step IPM plan for indoor herbs

  1. Prevent. Start with healthy plants: inspect new herbs before you bring them home and keep them apart from your other plants for a while (UVM, MU). Let the surface of the soil dry between waterings, since soggy mix favors fungus gnats (MSU, Arizona).
  2. Monitor. Put a yellow sticky card near your herbs and check leaves weekly, especially the undersides. Tap a stem over white paper: moving specks like pepper are likely spider mites (UVM).
  3. Remove by hand. Rinse plants with a forceful spray of water, including leaf undersides, and repeat every 3–5 days (MSU). Prune badly infested stems. Wipe mealybugs off with a swab dipped in rubbing alcohol (Arizona).
  4. Use biological controls. For fungus gnat larvae, drench the soil with BTi (Bacillus thuringiensis israelensis), not caterpillar Bt (MSU). For spider mites, predatory mites are sold for home use (MU).
  5. Spray only as a last resort. On herbs you will eat, chemicals come last (UVM). Choose a product labeled for edible herbs and the pest, such as an insecticidal soap, cover leaf undersides, repeat as the label says, and follow the harvest interval.

Prevention checklist

Monitoring: sticky cards and weekly checks

Sticky cards catch the adult stages of flying pests such as fungus gnats, whiteflies, thrips and winged aphids. They will not catch spider mites, mealybugs or wingless aphids, so you still need to look at the plants (UConn IPM). Yellow cards are best for general monitoring. Blue cards can be more attractive to thrips (UConn IPM, UC IPM). For fungus gnats, lay a card flat just above the soil. For flying pests, stand it just above the leaves. Replace cards when they get covered, and watch whether counts rise or fall.

Monitoring

Yellow sticky cards

General monitoring for gnats, whiteflies and aphids

Shop yellow sticky cards →

Thrips

Blue sticky cards

Can catch more thrips than yellow

Shop blue sticky cards →

Inspection

Hand lens

For spotting mites and thrips

Shop hand lenses →

Step 1: Remove pests by hand

Washing mites off with a forceful spray of water is often practical on small plants, especially if you repeat it every 3–5 days (MSU). Arizona Extension notes that repeated water sprays over several weeks can bring spider mites down to low levels, and that aphids can be washed off. Pick off and bin badly damaged stems. Wipe mealybugs off with rubbing alcohol (Arizona), then rinse the herb before you eat it. If a plant is badly infested, the extension guides suggest discarding it.

Step 2: Biological controls

BTi for fungus gnats. A soil drench with Bacillus thuringiensis israelensis is the most effective treatment for fungus gnats, according to Mississippi State Extension. Caterpillar Bt products won't work on gnat larvae. Products include Gnatrol and Knock-Out Gnats. Summit Mosquito Bits also contain BTi; check that the label covers your use. More in our fungus gnat guide.

Predatory mites for spider mites. Species such as Phytoseiulus persimilis and Amblyseius californicus are sold for release in homes and greenhouses. They can't bite people and they stay on the plants (MU). Insecticidal soaps can harm them, so don't spray soap after releasing them.

Beneficial nematodes (Steinernema) can also be added to the soil to control fungus gnat larvae (MU, Arizona).

Step 3: Edible-safe sprays (last resort)

MSU lists horticultural oil, neem oil and insecticidal soap as some of the most effective treatments available to homeowners for spider mites. Spray thoroughly, especially leaf undersides, two to three times at 5-day intervals. Before using any spray on herbs you plan to eat, check three things on the label: it lists edible herbs or vegetables, it lists your pest, and it gives a harvest interval.

About Lost Coast Plant Therapy: it is sold as a "minimum risk" (EPA 25(b) exempt) spray for soft-bodied insects, mites and powdery mildew. The company says it is usable on edible plants and can be used up to the day of harvest (ingredients page, FAQ). That is the maker's claim, not an extension recommendation, so follow the label. Availability varies by state (state list). See Lost Coast on Amazon →

What not to use on herbs you eat

Smart gardens (AeroGarden, LetPot, Click & Grow)

The same IPM steps apply. Smart gardens keep the growing media moist, which fungus gnats favor (MSU), so use a yellow card at pod level and check leaf undersides weekly. See our AeroGarden Harvest review and LetPot vs AeroGarden for model details.

Related: why is my indoor basil dying?, how to grow basil indoors, how to grow rosemary indoors, and our free 5-day herb course.

Sources

Frequently asked questions

What is the safest way to get rid of bugs on indoor herbs?

Start without chemicals: isolate the plant, rinse pests off with water every few days, prune badly infested stems and use sticky cards. University of Vermont Extension says chemical strategies are a last resort for herbs you will eat.

Can I use insecticidal soap on herbs I eat?

Only if the product label lists edible herbs or vegetables. Follow the label's directions and harvest interval. Soap works only on contact, so cover leaf undersides.

Is neem oil safe on basil?

Some neem products are labeled for edible plants and some for ornamentals only. Use one whose label covers herbs and follow its harvest interval.

What color sticky trap should I use?

Yellow for general monitoring of gnats, whiteflies and aphids. Blue can be more attractive to thrips (UConn IPM, UC IPM).

Do sticky cards catch spider mites?

No. Spider mites, mealybugs and wingless aphids don't fly, so check leaf undersides and use the white-paper tap test (UConn IPM, UVM).

Free: 30-Day Indoor Herb Starter Planner

A printable week-by-week checklist for your first month of growing herbs indoors, sent with our newsletter.