Companion Planting for Pest Control: 12 Proven Pairings
Companion planting gets a bad rap in some gardening circles because the claims outrun the evidence — and fair enough, a lot of the folklore does not hold up. But a core of pairings is solidly supported by how plants and insects actually behave: some companions repel pests with scent, some act as trap crops that draw pests away, and some simply feed and shelter the predators that eat your pests for you. These 12 pairings are the ones that earn their place, chosen for real mechanisms rather than tradition.
How Companion Planting Works
- Repellency: strong-scented plants like alliums and basil mask the odor of the crop, confusing pests that find food by smell.
- Trap cropping: a sacrificial plant that pests prefer is grown nearby; the pests concentrate there, where you can remove or treat the trap instead of the crop.
- Predator habitat: small flowers like alyssum and dill provide nectar and pollen for parasitic wasps, hoverflies, and lacewings — the insects that actually control pests.
- Physical and chemical support: ground-cover companions shade the soil, while some root exudates deter nematodes.
The 12 Pairings
1. Marigolds + tomatoes
French marigolds are the most famous pairing for a real reason: their roots release compounds that suppress root-knot nematodes, and their scent is widely reported to reduce whitefly pressure. Plant them between tomato plants rather than in a distant bed — the effect is local.
2. Basil + tomatoes
Basil’s strong aroma masks the smell of tomato foliage from pests that locate plants by scent, and gardeners consistently report fewer hornworm eggs on plants grown beside basil. You also get fresh basil all summer, so the pairing costs nothing.
3. Nasturtiums + cucumbers and squash
Nasturtiums are a classic trap crop: aphids and cucumber beetles prefer them to your cucurbits. When the nasturtium leaves are covered, pull the plants or spray only them. Bonus — the flowers are edible and attract pollinators.
4. Alliums + carrots
Onions, garlic, and chives interplanted with carrots are the textbook example of scent masking: the allium smell confuses carrot rust fly, which finds carrots by smell. Sow rows of carrots alternating with rows of alliums for the strongest effect.
5. Dill + brassicas
Dill, especially once it flowers, is a magnet for the parasitic wasps that kill cabbage worms and aphids. Let a couple of dill plants go to flower among broccoli, kale, and cabbage, and the wasps do the pest control for you.
6. Borage + strawberries
Borage’s blue flowers draw pollinators and predatory insects, and it is widely reported to strengthen strawberry plants against disease pressure. It self-seeds readily, so plant it once and it returns.
7. Calendula + beans
Calendula (pot marigold) blooms all season, feeding the hoverflies whose larvae eat aphids — a direct benefit to aphid-prone beans. It also acts as a trap for some aphid species.
8. Garlic + roses
Garlic planted at the base of roses is the traditional answer to aphids and black spot pressure, and the mechanism is plausible — strong scent plus the allelopathic compounds in garlic roots. Even if it only partly works, you get garlic.
9. Catnip + squash and cucumbers
Catnip is one of the few companions with real experimental backing: its essential oil repels squash bugs and cucumber beetles. Plant it in pots near the bed (it spreads aggressively in the ground) and crush a leaf now and then to release the oils.
10. Sage + cabbage family
Sage’s pungent aroma is a traditional deterrent to cabbage moths, and its flowers feed beneficial wasps. One or two sage plants near the brassica bed is enough — it does not need to be everywhere.
11. Sweet alyssum + everything
Alyssum is the ultimate predator-support plant: its tiny flowers bloom continuously and are a favorite nectar source for hoverflies and parasitic wasps. Edge your beds with it and the predator population in the whole garden goes up. It is the single most useful companion for pest control.
12. Mint + brassicas (in pots)
Mint’s strong scent repels cabbage moths and ants, and it attracts beneficial insects when flowering. Always grow mint in a pot sunk into the soil — in open ground it will take over the bed faster than any pest could.
What You Will Need
- Marigold seeds. French marigold seeds on Amazon.
- Nasturtium seeds. Nasturtium seeds on Amazon.
- Dill seeds. Dill seeds on Amazon.
- Sweet alyssum seeds. Sweet alyssum seeds on Amazon.
- Basil seeds or transplants. Basil seeds on Amazon.
Honest Limitations
Companion planting is a layer of defense, not a substitute for the others. It will not stop a severe infestation by itself — if cabbage worms are already thick, you still need to pick or spray. It also needs the right companions: a single basil plant cannot protect a whole row, and trap crops only work when the pest actually prefers them. Treat the pairings above as force multipliers that sit on top of healthy soil practices, proper spacing, and mulching, and they will quietly tip the balance in your favor all season.
FAQ
How close do companion plants need to be?
Close enough that the effect is local — interplanted within the same bed or row, not across the yard. Trap crops and repellents work within a few feet; predator-support flowers work garden-wide as long as they are within the flight range of the wasps and hoverflies, which is generous.
Will companion planting alone get rid of pests?
No — and anyone promising that is selling something. Companion planting reduces pest pressure and strengthens the predator population, but severe infestations need hand-picking, row covers, or targeted sprays. Think of it as the difference between a garden that attracts pests and one that resists them.
Do I need to avoid planting the same families together?
Yes — the classic error. Tomatoes and potatoes are both nightshades and share diseases and pests, so they do not belong in the same bed, regardless of companion lore. Rotation matters too; a cover crop rotation between seasons starves out the pests that overwinter in the soil.
Which companion is the best overall for pest control?
Sweet alyssum, by a wide margin. It feeds the predators that suppress nearly every soft-bodied pest, it blooms from spring to frost, and it edges beds without competing with crops. If you only add one companion plant this year, make it alyssum.
Bottom Line
The 12 pairings above work through real mechanisms — scent masking, trap cropping, and predator support — not folklore. Plant marigolds with tomatoes, nasturtiums with squash, alliums with carrots, and alyssum everywhere. Keep expectations honest: companions reduce and delay pressure, while your scouting and the occasional targeted spray finish the job. Done that way, companion planting is one of the cheapest, most pleasant pest-control upgrades a garden can get.
As an Amazon Associate, I earn from qualifying purchases.

