Plants That Repel Garden Pests in California: What the Evidence Actually Supports
No plant projects a force field that drives pests out of your garden, but several genuinely reduce pest damage through mechanisms that hold up to research: masking the scent of your crops, luring pests onto sacrifice plants, feeding the predatory insects that hunt pests, and, in the marigold's special case, suppressing root knot nematodes in soil. The UC Marin Master Gardeners summarize the science shift plainly: these plants "do not chase bugs away. Instead, they help by hiding the smell of the main host plant, making it harder for pests to find it."
That distinction sounds academic until you plant by it. A gardener who believes the folklore version rings a tomato bed with a thin line of marigolds, expects a pest-free summer, and blames herself when the hornworms arrive anyway. A gardener who plants by mechanism puts the same marigolds where they feed hoverflies, adds sweet alyssum for the parasitic wasps, sets a dill plant off in the corner as hornworm bait, and gets a measurably calmer garden. Same plants, different logic, different outcome.
This guide sorts the pest-plant question into what is supported, what is contested, and what is folklore, using UC sources throughout, so you can spend your bed space on the versions that work in a Santa Cruz County garden.
Why Did Scientists Stop Believing in "Repellent" Plants?
The old model was simple: strong-smelling plants like marigolds, peppermint, sage, and thyme were thought to chase insects away with their scent. The Marin Master Gardeners note that scientists have revised that picture. The aromatic compounds are real, but the effect, where one exists, is camouflage rather than repulsion: a bed full of competing volatile chemicals makes it harder for a pest to smell its way to the specific crop it needs.
Why the correction matters: insects are very good at their one job. The UC Master Gardener Program of Contra Costa County's companion planting review puts it memorably: insects "have been around a very, very long time, and they are very adept at finding the plants that they need to survive." The same review reports the field observation every brassica grower recognizes, that cabbage butterflies seem to have no trouble finding cabbage and broccoli even when marigolds are planted alongside, while noting studies where combined plantings did reduce pest activity. Camouflage is a real but leaky effect, strongest in dense, diverse plantings and weakest as a decorative border.
The UC Master Gardeners of Fresno County state the current scientific status of the most famous case: marigolds "produce compounds that may (or may not) repel insects, but which insects and how the compounds work has not been fully studied." That same source is worth quoting on the general problem, because it describes the internet gardening ecosystem this article competes with: much companion planting advice is "anecdotal, based on traditional practices or just plain mythological."
So the useful question is not "which plants repel pests" but "which plant effects are strong enough to plan around." There are three, and the marigold appears in only one of them.
What Can Marigolds Actually Do in a California Garden?
Marigolds carry the biggest reputation and the most misunderstood record, so they get their own accounting. We took apart the repellent claim in Do Marigolds Actually Repel Garden Pests?; the short version is that the above-ground claim is weak and the below-ground claim is real but comes with strict fine print.
Below ground, marigolds are genuinely active against root knot nematodes, the microscopic soil roundworms that stunt tomatoes, carrots, and beans in sandy California soils. UC IPM's Pest Notes on nematodes (UC ANR Publication 7489) lays out the conditions:
- The effect requires a solid planting grown as a cover crop, not companions. UC IPM states the effect is greatest when marigolds grow as a solid planting for an entire season, and that when interplanted among vegetables, nematode control "usually isn't very good."
- Variety matters. French marigold cultivars including Nemagold, Petite Blanc, Queen Sophia, and Tangerine are recommended, while signet marigolds should be avoided because nematodes feed and reproduce on them. The wrong marigold is a nematode nursery.
- The species of nematode matters. Marigolds work poorly against the northern root knot nematode (Meloidogyne hapla), common where winters are cool.
- The benefit is temporary. Populations rebound as soon as susceptible crops return, so the payoff is a cleaner season or two, not eradication.
The practical Santa Cruz translation: if a soil test or classic symptoms (galled roots on pulled plants, stunted patches in sandy beds) point to root knot nematodes, dedicating one infested bed to a solid block of French marigolds for a summer, then tilling them in, is a UC-documented tactic. Scattering marigolds between tomato plants is a decoration. A cheerful one, and marigolds still earn space as beneficial-insect flowers, but that is the next section's mechanism, not this one's.
Which Plants Recruit the Insects That Hunt Your Pests?
Here the evidence is comfortable, and this is where most of your "pest control" bed space should go. Rather than pushing pests away, these plants pull in predators and parasitoids: hoverflies whose larvae eat aphids, lady beetles, lacewings, and the tiny parasitic wasps that keep caterpillar and aphid populations suppressed. The Fresno Master Gardeners list this among companion planting's proven mechanisms, citing habitat plants like artemisia supporting lady beetles, and the value of staggered flower shapes, umbrella-shaped, tubular, and open-faced, so something is always in bloom for beneficials of every mouth size.
A working shortlist assembled from the three UC Master Gardener sources:
- Sweet alyssum, the standard California insectary edging: low, fast, blooms nearly year-round on the coast, and a hoverfly favorite (Contra Costa's list).
- Cosmos, calendula, zinnias, and sunflowers for open landing-pad blooms (Contra Costa; Marin names cosmos and sunflowers among plants providing nectar for lady beetles and hoverflies).
- Borage, yarrow, and phacelia, with Marin crediting yarrow, alyssum, cosmos, and borage as beneficial-insect food and phacelia appearing on Contra Costa's list; borage pulls bumblebees whose buzz pollination improves fruit set.
- Flowering herbs: Contra Costa notes that dill, cilantro, parsley, chives, thyme, oregano, basil, and arugula attract beneficials when allowed to flower. The habit change is the point: stop deadheading the herb bed and let a portion bolt.
Notice marigold and calendula appear on these lists too. The flowers the folklore planted for repellency mostly do earn their keep, just through a different mechanism than advertised, and the mechanism changes the design: beneficial-insect flowers work as generous patches and season-long edgings near the vegetables, not as a defensive ring, and they need to be blooming before pest season peaks. This slots into the county-wide approach in Organic Pest Control in Santa Cruz, and if you keep chickens or ducks, they are the megafauna version of the same recruit-a-predator strategy, covered in Put Your Flock to Work.
One caution for coastal gardens specifically: an insectary border this attractive also feeds bees, so skip all spraying in it, including organic products, and site it a step away from paths if anyone in the household is sting-wary.
Do Trap Crops Really Work, and Which Ones?
Trap cropping flips the repellent idea on its head: instead of hiding the crop, you plant something pests prefer and let it absorb the attack. It is a documented commercial practice, and the home-garden version works if you accept its two rules: the trap must be more attractive than the crop, and you have to actually service it, checking it and destroying the pests it collects, or you have simply built a pest nursery.
Named pairings from the UC Master Gardener sources:
- Nasturtiums near squash: Marin's good-neighbors guide credits nasturtiums with reducing squash bug problems on zucchini. Coastal gardeners already know nasturtiums as aphid magnets, which cuts both ways: as a serviced trap it pulls black aphids off beans and brassicas; ignored, it breeds them.
- Dill as a hornworm trap: Marin lists dill as a trap crop for tomato hornworm, drawing the caterpillars where they are easy to spot and pick. Contra Costa adds the counterweight that dill planted close to carrots attracts their shared pests, so site the dill trap by the tomatoes, not in the carrot bed.
- Ornamental tobacco (nicotiana) for aphids, mites, and whiteflies, per Marin, sticky-leaved and genuinely effective at accumulating small pests.
Run traps like equipment, not decor: inspect twice a week, hand-crush or hose off what accumulates, and pull and bag a trap plant that has tipped from collector to breeder. In a small garden, one or two serviced trap plants near the crops that suffer most is the right dose.
Two neighboring strategies round out the picture. First, some pairings are about avoiding harm rather than adding protection: Contra Costa's review flags allelopathic neighbors, with fennel and sunflowers suppressing growth around them, and notes competition problems like tomatoes near brassicas or corn. Second, companion flowers can support a specific crop's ecosystem; our 12 Best Companion Plants for Strawberries in California works one crop's version in detail.
What Should You Plant for Specific Pests in Santa Cruz County?
Pulling the mechanisms into one county-specific reference, keyed to the pests that actually dominate coastal gardens:
Aphids. The strongest plant-based play is insectary flowers, alyssum, calendula, cosmos, and yarrow, feeding the hoverflies and parasitic wasps that collapse aphid colonies, with a serviced nasturtium trap for the black bean aphids. Marin's guide also passes along two softer claims worth trying without betting the bed: onions planted with peppers deterring aphids, and calendula protecting neighbors from them. Evidence grade: insectary flowers strong, trap nasturtium solid, the deterrence pairings anecdotal.
Tomato hornworm. Dill as a marked trap plant, plus Marin's suggestion that basil interplanted with tomatoes may reduce thrips and improve flavor, an easy claim to accommodate since the basil is dinner regardless. Evidence grade: trap dill moderate, basil pleasant folklore with a UC mention.
Cabbage worms and the brassica complex. This is the folklore's weakest ground; per Contra Costa, the butterflies find your broccoli through the marigolds. Plant the insectary strip anyway, since parasitic wasps are among cabbage worms' real enemies, and rely on row cover and handpicking as the primary controls. Evidence grade: masking weak, beneficial support real.
Root knot nematodes. The full-season solid French marigold planting from UC IPM Publication 7489, correct cultivars only. Evidence grade: documented, conditions apply.
Squash bugs. Nasturtium trap near the zucchini per Marin, serviced. Evidence grade: moderate.
Mosquitoes. A garden question we hear constantly, and the answer is its own article: no plant repels mosquitoes by growing nearby, though several contain compounds that work when processed; see What Plants Repel Mosquitoes in a California Garden?
And the pests plants will not solve. Slugs, snails, gophers, and rats respond to barriers, baits, traps, and habitat work, not neighboring plants. Plant choice helps only in the sense that some plants are not worth eating; the working defenses live in Slug and Snail Control in Foggy Santa Cruz Gardens.
A note on expectations for the fog belt: beneficial insect activity tracks warmth, so coastal insectary borders build their predator population more slowly in a cool June than an inland garden would. Persist. By late summer, an established alyssum-calendula-yarrow edging in Santa Cruz hums like an airport, and the aphid outbreaks that once required intervention start resolving on their own.
How Do You Put This Together in a Real Bed?
A design you can copy for a standard 4-by-8 vegetable bed, using every supported mechanism and no wishful ones:
- Edge one long side with sweet alyssum and calendula, seeded in early spring (or fall, on the coast), so blooms predate aphid season. This is the permanent insectary.
- Let one herb bolt at all times. A flowering cilantro, dill, or parsley rotates through the bed's corner as the umbel station for parasitic wasps, doubling as the hornworm trap when it is dill near tomatoes.
- Place one serviced trap matched to your worst pest: nasturtium spilling from the bed's end if squash bugs or bean aphids are the recurring grief.
- Interplant for diversity, not force fields. Mixing crops rather than planting solid blocks earns the leaky-but-real masking benefit and slows pest spread between plants, which the Fresno review supports through intercropping's shading and diversity effects.
- Reserve the marigold cover-crop play for a bed with confirmed nematode trouble, as a summer rotation, and choose the UC IPM-named cultivars.
- Keep the folklore where it is free. Basil with the tomatoes, onions with the peppers: if a pairing costs nothing and UC sources rate it a maybe, plant it for the kitchen and let any pest benefit be a bonus. Just never substitute a maybe for row cover, handpicking, or the other controls that carry the real load.
The garden this produces looks different from the tidy monoculture rows with a marigold picket fence: flowers woven through vegetables, a corner of deliberately bolted herbs, one slightly ragged sacrificial nasturtium. It also runs noticeably calmer, for reasons the research can actually stand behind.
Frequently Asked Questions
Do any plants actually repel garden pests?
Not in the force-field sense. The UC Marin Master Gardeners note that scientists have found aromatic plants do not chase insects away; at best they mask the scent of nearby crops so pests have trouble locating them. The plant effects with solid support work differently: flowers that feed pest-eating beneficial insects, trap crops that lure pests away, and solid plantings of French marigolds that suppress root knot nematodes in soil.
Do marigolds around tomatoes keep pests away?
Mostly no. The UC Master Gardeners of Fresno County note marigold compounds "may (or may not) repel insects" and remain poorly studied, and Contra Costa Master Gardeners observe cabbage butterflies finding crops despite marigold borders. The documented marigold effect is underground: UC IPM Publication 7489 supports solid, season-long plantings of French marigold cultivars like Nemagold or Queen Sophia against root knot nematodes. Interplanted marigolds still help by feeding hoverflies.
What should I plant to get rid of aphids?
Plant for the aphids' enemies. Sweet alyssum, calendula, cosmos, yarrow, and flowering herbs such as dill and cilantro feed the hoverflies, lady beetles, and parasitic wasps that collapse aphid colonies; UC Master Gardener sources in Marin, Contra Costa, and Fresno counties all support this insectary approach. A nasturtium planted nearby works as a trap for black aphids if you check it and destroy what it collects.
What is a trap crop and do trap crops work in home gardens?
A trap crop is a plant pests prefer over your vegetables, positioned to absorb the attack. UC Marin Master Gardeners name nasturtiums for squash bugs on zucchini, dill for tomato hornworms, and ornamental tobacco for aphids, mites, and whiteflies. They work in home gardens on two conditions: the trap sits near the crop it protects, and you service it regularly, destroying the pests it gathers so it does not become a nursery.
Which companion plants should NOT be planted together?
The Contra Costa Master Gardeners flag fennel and sunflowers as allelopathic, producing compounds that suppress plants growing near them, and advise against tomatoes next to brassicas or corn because of nutrient competition. They also note dill planted close to carrots attracts the pests both share. Black walnut is the extreme case, suppressing most garden plants beneath it. Keep fennel in its own corner and give sunflowers the bed edge.
Do pest-repelling plants work against slugs, snails, or gophers?
No. Slugs, snails, gophers, and other non-insect pests are not deterred by neighboring aromatic plants; they respond to barriers, baits, traps, and habitat changes. Plant choice matters only in that some plants, such as rosemary, lavender, and California poppy, are unattractive as food. For those pests, use the mechanical and bait defenses in our slug and snail guides rather than planting anything and hoping.
Plant One Insectary Edge This Season
Skip the marigold picket fence this year. Seed a single 8-foot edge of sweet alyssum and calendula beside your most aphid-prone bed, let one dill bolt near the tomatoes, and watch what shows up to the flowers by midsummer. That one strip does more verifiable pest control than every repellent-plant list on the internet combined.
For printable companion planting and season planning sheets, grab the free guides in Your Garden Toolkit.

