7 Companion Plants That Protect Your Vegetables — Verified Picks at Every Budget
University research backs these 7 companion plants for vegetable gardens. Marigolds, alyssum, nasturtiums and more — verified prices from $2.99.
Most companion planting guides hand you a long list and leave you to figure out what to buy. This one doesn’t. Each of the seven plants below has published university research supporting its use in vegetable gardens, and every product recommendation includes a verified current price so you can plan before you sow.
One honest framing note: companion planting is not a replacement for sound soil management or timely pest monitoring. What it does is reduce the pressure you’re working against. Research from the University of Minnesota shows that three or more companion species planted together consistently outperform any single pairing, so use this as your palette, not a one-plant fix.
How Companion Planting Actually Works
Three mechanisms have clear research support in vegetable gardens.
VOC masking. Aromatic plants release volatile organic compounds — specifically isothiocyanates from mustards and alliums, and terpenoids including alpha-pinene, camphor, and 1,8-cineole. When these volatiles mix with the host plant’s chemical signals, pests struggle to identify their target. A 2018 peer-reviewed study demonstrated this directly: chive volatiles mixed with sweet pepper VOCs caused aphids to show no attraction to the pepper — a species they normally locate without hesitation. The dose has to be sufficient, though; thin plantings or windy sites dilute the effect.

Three pre-planned garden beds, free
Stop staring at empty beds: printable plans with exact layouts, plant lists and planting calendars — yours free from the Garden Library.
Beneficial insect habitat. Flat-headed flowers like alyssum, dill, and borage provide nectar for adult parasitoid wasps and syrphid flies. Adults feed on nectar; their larvae consume aphids, thrips, and caterpillar eggs. This banker plant model means you’re running a continuous beneficial insect habitat rather than reacting to pest outbreaks after the fact.
Trap cropping. Some plants are simply more attractive to pests than your vegetables. Plant them at the perimeter and pests concentrate there — away from your main crop — where you can manage them without affecting the harvest.
Top 5 Companion Plants at a Glance
| Plant | Best For | Price |
|---|---|---|
| French Marigold Disco — True Leaf Market | Nematodes + whitefly (tomatoes, peppers) | $4.59 / 100 seeds |
| Sweet Alyssum Royal Carpet — True Leaf Market | Aphid biocontrol (lettuce, brassicas, strawberries) | $2.99 / packet |
| Nasturtium Jewel Mix — True Leaf Market | Aphid + squash bug trap crop (squash, beans) | $2.99 / packet |
| Dill Mammoth Long Island — True Leaf Market | Braconid wasps + lacewings (brassicas, cucumbers) | $2.99 / packet |
| Borage — Sow Right Seeds | Pollinators + hornworm deterrence (tomatoes, squash) | $3.49 / packet |

The 7 Best Companion Plants for Vegetables
1. French Marigolds (Tagetes patula)
French marigolds are the most researched companion plant for vegetables — but the evidence comes with a condition most guides leave out.
The active compound is alpha-terthienyl, a thiophene released by marigold roots. UF/IFAS describes it as “one of the most toxic naturally occurring compounds found to date.” It suppresses root-knot nematodes in the surrounding soil, but only when marigolds are planted densely — no more than 7 inches apart — in the exact soil zone where your susceptible crop will grow, and for at least two months before that crop goes in. Planting marigolds beside tomatoes at transplant time does nothing for nematodes. The compound is only active through living roots in the same soil; UV light inactivates extracted alpha-terthienyl outside the soil environment.
For practical nematode suppression: sow French marigolds into your tomato bed in early spring, grow them through the season, then transplant tomatoes into that bed the following year. It’s a rotation strategy, not a same-season fix.
Above ground, French marigolds contribute meaningful VOC masking. Research confirmed that marigold, onion, and nasturtium together reduced cabbageworm damage in cabbage, and marigold combined with basil reduced thrip populations on tomatoes in both field and greenhouse settings.
Best varieties for nematode control: ‘Single Gold,’ ‘Tangerine,’ ‘Goldie’ (French); ‘Crackerjack’ and ‘Alaska’ (African). Caveat: ‘Crackerjack’ controls southern root-knot nematodes but can host stubby-root and reniform species — soil test before using it if those are present.
Best for: Tomatoes, peppers, eggplant, strawberries. See our marigold care guide for full growing tips.
2. Sweet Alyssum (Lobularia maritima)
Sweet alyssum is the most underrated companion plant in this guide. It’s inexpensive, low-growing, and creates a continuous habitat for two of the most effective aphid predators in the garden: syrphid flies and parasitoid wasps.
Adult syrphid flies nectar on alyssum flowers; their larvae consume hundreds of aphids each before pupating. Parasitoid wasps feed on the same nectar and then lay eggs inside aphids, killing them from the inside out. Researchers at Purdue University’s Meigs Horticultural Farm documented that strawberry beds planted alongside sweet alyssum had “almost no aphids” compared to control rows with significantly higher aphid pressure. Sticky card traps confirmed that both syrphid flies and parasitoid wasps were in measurably greater abundance wherever alyssum was present.
A separate Florida study corroborated the effect: African marigolds and sweet alyssum together increased natural enemies of aphids across tomato and squash plots, with a slight yield improvement in treated plots compared to uncompanioned controls.
Sweet alyssum’s advantage over reactive pesticide applications is timing — it provides continuous pressure reduction throughout the season rather than a single-event knockdown. At $2.99 for a packet covering roughly 25 linear feet of border, it’s the highest return-on-investment plant in this guide. It self-seeds lightly in most zones and often returns the following season.
Best for: Lettuce, brassicas, tomatoes, peppers, strawberries.
3. Nasturtiums (Tropaeolum majus)
Nasturtiums fill two distinct roles depending on how you plant them — and understanding the difference determines whether they help or concentrate pests near your crops.
Stop guessing if your garden pays.
Log what you grow and harvest — see total yield weight, estimated retail value, and season-on-season progress in one place.
→ Track My HarvestAs a trap crop, nasturtiums work because aphids and squash bugs find them more attractive than most vegetables. An Iowa State University study confirmed that nasturtium combined with marigolds reduced both squash bug and cucumber beetle damage on squash. A separate Minnesota trial showed nasturtium reduced cabbage looper and imported cabbageworm damage when planted near broccoli. The trap-crop effect only works at the perimeter. Interspersed through a squash bed, nasturtiums concentrate pests next to your crop rather than away from it. Plant them as a border, check weekly, and remove heavily infested stems before populations spill over.
As a pollinator attractor, nasturtiums draw hummingbirds and honeybees — supporting fruit set in squash, beans, and cucumbers. Illinois Extension (citing Rutgers NJAES research) confirmed this pollinator role directly, while noting explicitly that nasturtiums are not chemical pest deterrents. The benefit is ecological.
A practical bonus: every part of the nasturtium is edible. Leaves have a peppery bite similar to watercress, flowers add color to salads, and unripe seeds can be pickled as capers. At $2.99 a packet, few plants deliver more value per dollar in the garden.
Best for: Squash, cucumbers, brassicas, beans.
4. Dill (Anethum graveolens)
Dill’s umbrella-shaped flower clusters (umbels) are among the most productive nectar sources for small beneficial insects in the vegetable garden. Braconid wasps, lacewings, and syrphid flies all feed on dill flowers in preference to most competing species — and all produce larvae that prey on common vegetable pests including aphids, cabbage worms, and whitefly.
Two rules determine whether dill actually delivers this benefit. First, let it flower — a dill seedling provides no beneficial insect benefit whatsoever. Plant early enough that dill reaches full bloom stage as your vegetable crops hit peak pest vulnerability in late spring and summer. Second, keep dill away from fennel. The two cross-pollinate, producing seeds with poor flavor from both; fennel also releases allelopathic compounds that inhibit vegetable growth throughout the bed.
Dill self-seeds readily in zones 3 and above. A single planting location often produces volunteer return plants for two to three seasons, meaning one packet frequently covers several years of coverage. Stagger sowings every three weeks to maintain continuous bloom through summer.
Best for: Brassicas, cucumbers, onions, leeks, carrots.
5. Borage (Borago officinalis)
Borage deserves honest framing on its two main claimed benefits.
The hornworm deterrence claim — widely repeated across gardening sources — lacks controlled trial support. Experienced growers consistently report reduced tomato hornworm pressure where borage grows nearby, and Illinois Extension cites it as a deterrent, but no randomized study has confirmed the mechanism. Treat this as strong practitioner consensus rather than peer-reviewed fact.
What borage delivers with confidence is pollinator attraction. Its star-shaped blue flowers bloom prolifically from late spring through fall and produce nectar throughout the day, not just during peak morning hours like many flower species. Honeybees preferentially visit borage over most competing garden flowers. For squash, beans, and tomatoes — where poor pollination directly reduces yield — borage in or near the bed provides consistent, measurable benefit.
One practical note: borage self-seeds aggressively. One packet planted this season will likely produce volunteers for several seasons. Its deep taproot also improves soil structure as it decomposes at season’s end.
Best for: Tomatoes, squash, beans, cucumbers, strawberries.
6. White Clover (Trifolium repens)
White clover is the only companion plant in this guide that addresses soil health alongside pest management — making it especially valuable for long-season vegetable plots.
As a living mulch between vegetable rows, clover cools the soil surface (reducing blossom-end rot risk in tomatoes and peppers during summer heat), suppresses weeds by shading them out before they germinate, and retains moisture through dry spells. Research compiled by ATTRA confirms that crimson clover intercropped with broccoli increased spider populations in the plots — adding a pest suppression dimension on top of the soil benefits.
The nitrogen fixation benefit is real but often misunderstood. Clover fixes nitrogen in root nodules, but neighboring vegetables only access it once clover biomass decomposes into the soil. The management step that matters: mow clover regularly throughout the season and leave all clippings in place — do not rake or remove them. Allow at least six weeks after clover establishes before expecting any nitrogen benefit to adjacent vegetable plants.
White Dutch clover stays 4 to 6 inches tall and tolerates light foot traffic, making it practical for path cover between raised beds and for underplanting in larger vegetable plots.
Best for: Brassicas, potatoes, carrots, or any vegetable row needing weed suppression and soil improvement between plants.
7. Basil (Ocimum basilicum)
Basil is the most popular vegetable companion, and the research partly backs the enthusiasm — with one important correction every tomato grower should know.
The flavor improvement claim is false. A three-year double-blind study at West Virginia University found no measurable taste difference in tomatoes grown with basil versus those grown without it. What the science does confirm: basil reduced thrip populations when intercropped with tomatoes in both field and greenhouse trials, and plants grown at adequate density — within 1 yard of tomatoes — showed roughly 20% yield improvement compared to ungrown controls in some trials. The mechanism is VOC-based: basil releases terpenoid volatile compounds, the same class identified in the PMC masking study, that disrupt host identification for small-bodied pests like thrips and spider mites.
Bush basil produces higher concentrations of eugenol than sweet basil and is the documented performer for pest deterrence. Sweet basil still contributes through other VOC pathways — both are worth planting in the tomato bed.
For full variety selection and care, see our basil growing guide. For tomato integration specifically, our complete tomato growing guide covers spacing and companion timing in detail.
Best for: Tomatoes, peppers, eggplant.
How to Combine Them for a Full-Bed System
For a standard 4×8 raised bed focused on tomatoes or brassicas:
- Perimeter border: Nasturtiums as trap crop, with sweet alyssum interspersed every 18 inches along the border edges
- Bed corners: One French marigold per corner for VOC coverage; if you’re planning nematode suppression, these go in the season before your susceptible crop
- Companion row: Dill at one end of the bed allowed to go to flower; basil at the other end closest to tomatoes or peppers
- Path cover: White clover between raised beds as living mulch, mowed and left in place throughout the season
This layout addresses VOC masking, beneficial insect habitat, trap cropping, and soil nitrogen simultaneously — four of the five documented companion planting mechanisms in one planting plan. The key principle is diversity: Minnesota Extension research consistently shows three or more companion species outperform any single pairing.
Three Mistakes That Waste Money
Planting marigolds beside crops for nematode control. The thiophene compound requires living roots in the same soil zone for two full months before the target crop goes in. A marigold transplanted alongside tomatoes in May provides VOC coverage above ground — but zero nematode suppression. That requires the rotation strategy described above.
Growing fennel in or near the vegetable garden. Fennel is frequently recommended alongside dill, but it releases allelopathic compounds that inhibit vegetable growth. Keep fennel entirely separate from the vegetable bed — it belongs in a dedicated herb section at a distance.
Ignoring nasturtiums once they’re working. Trap cropping only functions if you remove the concentrated pests. Check nasturtium stems weekly; remove or destroy heavily aphid-infested growth before populations build enough to spill over onto nearby vegetables.
Frequently Asked Questions
Which companion plant is most broadly compatible with vegetables?
Sweet alyssum is the closest to a universal companion — it stays low enough not to shade crops, doesn’t compete aggressively for nutrients, and improves aphid biocontrol for almost any vegetable type. Nasturtiums are similarly compatible across most bed configurations.
Can companion plants replace pesticide treatment?
UF/IFAS research found that only 7% of insects laid eggs on host plants surrounded by companion species, compared to 36% on isolated plants. That’s meaningful pressure reduction, not elimination. In most home vegetable gardens, companion planting combined with physical monitoring significantly reduces the need for insecticide — but rarely removes it entirely during severe pest pressure years.
How close do companion plants need to be to work?
VOC masking benefits require close proximity — within 12 to 24 inches of the target vegetable. Beneficial insect banker plants like sweet alyssum and dill can be slightly further, up to 3 feet, since the insects actively travel to foraging sites and patrol the surrounding area.
Sources
Marigolds for Nematode Management (NG045) — UF/IFAS Extension | ATTRA Companion Planting & Botanical Pesticides Resources
Companion Planting in Home Gardens — University of Minnesota Extension
Companion Planting and Insecticide Reduction — UF/IFAS Duval County Extension (2026)
Sweet Alyssum as a Companion Plant — Purdue University Vegcrops Hotline
Volatile Organic Compounds and Aphid Pest Management — PMC5746795 (2018)
Fortify the Spring Vegetable Garden — Illinois Extension









