YardSolver app iconYardSolver is now an app —Get it on Google Play· iPhone app coming soon
YardSolver
Know what you need. Buy exactly that.

Guides · Companion planting · Published October 31, 2026

Companion Planting Basics

Tomato plants growing in a raised bed with basil plants at their base and marigolds planted between them

Companion planting is simply choosing neighbours on purpose. Some pairings work through plain, understandable mechanisms — shade, scent, roots, flowers for helpful insects. Others on the internet are folklore repeated for decades. This guide keeps the pairings with a real reason behind them, gives you the chart, and is honest about the limits.

The chart: good neighbours, poor neighbours

Step 1 — Use the four real mechanisms

A grid of raised beds with vegetables and herbs growing mixed together — the setting for the four real companion planting mechanisms: shade, pest confusion, nitrogen fixing and feeding pest-eating insects
Step 1 — Structure, scent, soil and flowers — no magic.

Companion effects come from: (1) structure — tall corn or sunflowers shading lettuce in high summer, trellis crops sheltering wind-tender plants; (2) scent — onions and carrots confusing each other's pest flies, aromatic herbs muddling pest searches; (3) soil — beans and peas leaving nitrogen behind for the next crop, roots feeding at different depths; (4) flowers — marigolds, nasturtiums and herbs feeding the ladybirds and hoverflies that eat aphids, and nasturtiums acting as a sacrificial magnet for them.

Step 2 — Plant the famous trio (and understand it)

A Three Sisters planting in a raised bed: corn standing tall as the trellis while squash leaves sprawl at its base shading the soil, each plant doing a different job
Step 2 — One tall, one climber-feeder, one ground-cover.

The "three sisters" — corn, beans, squash — is the classic designed system: corn provides the trellis, beans climb it and add nitrogen, squash leaves shade the soil and hold moisture. It works because each plant does a different job. Design your own groupings the same way: one tall, one climber or feeder, one ground-cover. Spacing still rules — check the Plant Spacing Calculator before squeezing companions in.

Step 3 — Respect the few genuine feuds

A gardener hoeing between a labelled row of onions and a labelled row of potatoes growing well apart in the same garden — respecting the few genuine companion planting feuds
Step 3 — Alliums away from legumes; fennel in its own pot.

Most "bad companion" claims are weak, but a few are worth obeying: onions/garlic beside beans and peas (stunting is widely reported); tomatoes beside potatoes (they share blight and other diseases — a spacing rule as much as a chemistry one); fennel beside almost anything (it inhibits many crops and belongs in its own pot); and any pairing that crowds — competition for light and water is the feud that definitely exists.

Step 4 — Add flowers on purpose

Marigolds, nasturtiums and other flowers planted on purpose through a vegetable bed, bringing in pollinators and the ladybirds and hoverflies that eat aphids all season
Step 4 — The highest-value companion move of all.

A vegetable bed with no flowers is missing its workforce. Marigolds among tomatoes, nasturtiums near squash and cucumbers, and a few herbs allowed to flower bring in pollinators and pest-eating insects all season. This is the highest-value companion move of all — and it makes the garden beautiful, which is not a small thing.

Step 5 — Keep perspective: companions nudge, basics decide

Sunlit rainbow chard leaves glowing over the edge of a thriving bed — rich soil, sun and water done right first, with companions adding only a quiet few percent on top of good basics
Step 5 — No pairing rescues wrong sun, starved soil or no water.

No pairing rescues a plant in the wrong sun, in starved soil, or unwatered. Get the fundamentals right — soil preparation, correct spacing, dates from the Planting Calendar — then let companions add their quiet few percent. Gardeners who master the basics first get the most from every chart, including this one.

Keep going

Plan the bed: Best Vegetables to Grow in a Small Garden · How to Prepare Garden Soil in Spring.

Questions people ask

Does companion planting actually work?
Some of it, through ordinary mechanisms: shade, scent confusion, nitrogen from legumes, flowers feeding pest-eating insects, roots at different depths. Treat it as a helpful nudge, never magic — charts never override sun, space and water.

What is the most famous mistake?
Onions and garlic right beside beans and peas — the allium family is widely reported to stunt legumes. Keep the two families in different parts of the bed.

Why marigolds with tomatoes?
French marigold roots suppress certain harmful nematodes, and the flowers feed beneficial insects — one classic pairing with a real mechanism behind it.

The full chart

Every pairing in this guide, graded honestly and extended to 17 vegetables — good companions, plants to keep apart, and the evidence behind each call: Companion Planting Chart.

Share this page

Found it useful? Pass it on to a fellow gardener.

Comments & ratings

No comments yet.

Be the first to share your experience.

Comments appear publicly only after approval. No email is asked for, and nothing you write here is shared anywhere else.