Home / Tools

Pest-Repelling Plant Finder

Choose a pest to see which plants help against it — and how well they actually work — plus the other natural controls worth using alongside them.

Which pest are you dealing with?

Aphids

Attacks: Almost everything — especially roses, beans, brassicas, lettuce and new shoots

Signs: Clusters of tiny green, black or grey insects on shoot tips and leaf undersides; sticky honeydew; curled leaves

Plants that help

Sweet alyssum Attracts predators

Flowers feed hoverflies, whose larvae eat large numbers of aphids.

Some research support

Low edging along vegetable beds · Full sun to part shade

Dill Attracts predators

Umbrella-shaped flowers attract hoverflies, lacewings and parasitic wasps.

Some research support

Among cabbages and lettuce · Full sun

Yarrow Attracts predators

Flat flower heads draw in ladybirds and parasitic wasps.

Some research support

Borders and wildflower strips · Full sun

Nasturtium Trap crop

Aphids often colonise nasturtiums first; pull or hose off infested plants.

Some research support

A few feet from the crop you want to protect · Full sun to part shade

Alliums (chives, garlic, onions) Deterrent

Strong sulphur scent is said to mask nearby crops.

Traditional gardener advice

Between carrots, lettuce and roses · Full sun · Toxic to cats and dogs

Mint Deterrent

Aromatic oils may discourage aphids — keep it in a pot.

Traditional gardener advice

Containers only — it spreads · Full sun to part shade

Petunia Deterrent

Sticky stems trap small insects.

Traditional gardener advice

Bed edges, hanging baskets · Full sun

Other natural controls

  • Blast colonies off with a jet of water
  • Squash small colonies by hand
  • Insecticidal soap on bad infestations
  • Avoid excess nitrogen fertiliser, which produces soft, aphid-prone growth

How pest-repelling plants work

Plants help against pests in three different ways, and the finder labels each one:

  • Attracts predators. Small open flowers such as sweet alyssum, dill and yarrow feed hoverflies, lacewings and parasitic wasps, whose young eat aphids and caterpillars. This is the best-supported approach.
  • Trap crop. A plant the pest prefers draws it away from your crop, so you can remove the pests in one place.
  • Deterrent. Strong scents are thought to mask the crop or put pests off. Many of these pairings come from generations of gardener experience rather than trials, and the effect of a living plant is usually smaller than that of its extracted oil.

Use plants as one layer alongside barriers, hand-picking and healthy soil. For more detail on each plant, read 15 plants that repel bugs, and use the companion planting chart to check what grows well together.

Pest-repelling plants chart

PestPlants that helpOther natural controls
Aphids Sweet alyssum (attracts predators), Dill (attracts predators), Yarrow (attracts predators), Nasturtium (trap crop), Alliums (chives, garlic, onions) (deterrent), Mint (deterrent), Petunia (deterrent) Blast colonies off with a jet of water; Squash small colonies by hand; Insecticidal soap on bad infestations; Avoid excess nitrogen fertiliser, which produces soft, aphid-prone growth
Cabbage worms & cabbage moths Nasturtium (trap crop), Dill (attracts predators), Sweet alyssum (attracts predators), Rosemary (deterrent), Sage (deterrent), Thyme (deterrent) Cover crops with fine insect mesh from planting; Check leaf undersides and pick off eggs and caterpillars; Bt (Bacillus thuringiensis) spray targets caterpillars only
Carrot fly (carrot rust fly) Alliums (chives, garlic, onions) (deterrent), Rosemary (deterrent), Sage (deterrent) A 2 ft (60 cm) mesh barrier around the bed — the flies fly low; Sow thinly to avoid thinning, which releases scent; Sow after the first spring generation (late May to June in many areas)
Flea beetles Radish (trap crop), Catnip (deterrent), Mint (deterrent) Cover seedlings with row cover until they are well grown; Keep seedlings watered — stressed plants suffer more; Sticky traps at plant height
Whiteflies French marigold (deterrent), Thyme (deterrent), Nasturtium (trap crop) Yellow sticky traps; Hose off leaf undersides; Insecticidal soap; in greenhouses, the parasitic wasp Encarsia formosa
Japanese beetles Alliums (chives, garlic, onions) (deterrent), Chrysanthemum (deterrent) Knock beetles into soapy water early in the morning; Avoid pheromone traps near your plants — they attract more beetles; Treat lawns for grubs (milky spore or beneficial nematodes)
Tomato hornworms Dill (attracts predators), Basil (deterrent), Petunia (deterrent), French marigold (deterrent) Hand-pick at dusk — look for droppings below damaged leaves; Bt spray on young caterpillars; Till the soil in autumn to expose pupae
Slugs & snails Rosemary (deterrent), Sage (deterrent) Go out with a torch after rain and remove them; Beer traps sunk to soil level; Copper tape on pots and raised beds; Iron phosphate pellets (safer for pets and wildlife than metaldehyde); Water in the morning, not the evening
Squash bugs & cucumber beetles Blue Hubbard squash (trap crop), Nasturtium (deterrent), French marigold (deterrent) Row cover until flowering, then remove it for pollinators; Crush egg clusters on leaf undersides; Lay a board by plants overnight and destroy bugs underneath in the morning
Root-knot nematodes French marigold (deterrent) Rotate crops — avoid planting susceptible crops in the same spot; Choose resistant varieties ("N" on tomato labels); Solarise infested beds under clear plastic in summer
Mosquitoes Lavender (deterrent), Catnip (deterrent), Lemongrass (deterrent), Basil (deterrent), Lemon balm (deterrent), Mint (deterrent) Empty standing water weekly (saucers, buckets, gutters); A fan on the patio — mosquitoes are weak fliers; Proven repellents such as DEET, picaridin or oil of lemon eucalyptus on skin
House flies Basil (deterrent), Lavender (deterrent), Catnip (deterrent) Keep bins sealed and compost covered; Fly screens on doors and windows
Ants Mint (deterrent), Chrysanthemum (deterrent) Control the aphids the ants are farming; A band of sticky barrier around tree trunks; Boiling water on nests in paving (away from plant roots)
Thrips Basil (deterrent), Sweet alyssum (attracts predators) Blue sticky traps; Hose down plants in dry weather; Insecticidal soap or neem on ornamentals (not near ponds — neem is toxic to fish)

Frequently asked questions

What plants keep aphids away?

The most reliable plants for aphids are the ones that feed their predators: sweet alyssum, dill and yarrow bring in hoverflies, lacewings and parasitic wasps. Nasturtiums work as a trap crop that aphids often colonise first. Strong-smelling alliums and mint are traditional deterrents with less evidence behind them.

What plant repels slugs?

No plant reliably repels slugs. Aromatic, tough-leaved herbs like rosemary and sage are rarely eaten and are often used as borders, but evening hand-picking, beer traps and copper barriers do far more.

What is a trap crop?

A trap crop is a plant a pest prefers to your main crop — such as radishes for flea beetles or Blue Hubbard squash for squash bugs. The pests gather on it, and you remove or treat the trap plants instead of the whole bed.

Do marigolds really keep pests away?

French marigolds have the best evidence of any “repellent” flower: grown densely for a season, they reduce root-knot nematodes in the soil, and trials have shown they can reduce whiteflies on nearby greenhouse tomatoes. As a general bug repellent elsewhere, the evidence is weaker.

Which pest-repelling plants are toxic to pets?

Alliums (onions, garlic, chives), chrysanthemums and lemongrass are toxic to cats and dogs. Several other aromatic herbs can upset pets if eaten in quantity, so check the ASPCA toxic plant list before planting where animals graze.