TP The Planter AppPlan a season in minutes

Companion Planting Guide: Which Vegetables Grow Well Together

Companion planting — the idea that some plants thrive next to each other and others should be kept apart — is one of those gardening topics where the internet’s advice ranges from genuinely useful to total folklore. This guide cuts through the noise, focuses on the pairings backed by either solid research or repeated home-garden experience, and is honest about which “rules” you can ignore.

What companion planting actually does (when it does anything)

Real companion-planting effects fall into a few categories:

What companion planting does NOT do reliably:

So treat companion planting as a layer of small advantages that add up — not magic.

The reliable companions

These pairings are well-supported and worth following:

Tomato + basil

The textbook companion. Basil’s strong scent confuses tomato-hornworm moths (the pest that lays eggs producing leaf-stripping caterpillars). Both crops want similar conditions: full sun, regular water, warm soil. Plant basil 12–18” from each tomato base.

Tomato + marigold

Marigolds (especially French marigolds) release thiopene compounds from roots that suppress nematodes — microscopic root pests that damage tomato roots. Effect is most useful if you have nematode pressure (warm climates, sandy soils). Plant marigolds at the corners of the tomato bed.

Carrot + onion / scallion

Onions deter the carrot rust fly via scent; carrots deter the onion fly. Mutual pest deterrence. Plant in alternating rows or interplanted within the same row.

Cucumber + dill

Dill flowers attract beneficial wasps that prey on cucumber-beetle larvae. Plant dill at the bed edge so the cucumbers get sun and the dill flowers attract pollinators.

Beans + corn + squash (Three Sisters)

The classic Indigenous American polyculture. Corn provides vertical support for the bean vines. Beans fix nitrogen for the corn (heavy nitrogen feeder). Squash spreads at ground level, shading out weeds and shielding soil moisture. All three crops benefit. Requires a larger bed (8×8 minimum), so it’s not ideal for a small raised bed.

Lettuce + tall sun-lovers (tomato, pepper)

Lettuce wants partial shade and bolts (goes to seed) in summer heat. Plant lettuce in the shadow of taller plants — to the east of tall plants if possible — to extend the lettuce season into early summer.

Brassicas (cabbage, broccoli, kale) + thyme / sage / rosemary

Aromatic herbs deter cabbage moths (the pest behind the green caterpillars that destroy brassicas). Plant herbs along the bed perimeter.

The ones to keep apart

These pairings actively harm each other or compete heavily:

Tomato + brassicas (cabbage, broccoli, kale, brussels sprouts)

Brassicas are heavy feeders that strip the soil of nutrients tomatoes need. They also harbor cabbage moths that, while not direct tomato pests, can damage other plants nearby. Plant in separate beds.

Onion / garlic + beans / peas

Alliums (onion family) release compounds that suppress nitrogen-fixing bacteria on legume roots. The legumes underperform. Keep them in different sections.

Fennel + most things

Fennel is famously antisocial. Its root exudates suppress germination of many vegetables, especially beans, tomatoes, and cucumbers. Plant fennel in its own corner — or skip it for an in-bed planting.

Potato + tomato

Both are nightshades and share diseases (especially early blight and late blight). Plant in separate beds and rotate yearly to break disease cycles.

Cucurbits (cucumber, squash, melon) + potato

Potatoes harbor blight that can spread to cucurbits. Same reason as the tomato/potato rule — separate them.

The “rules” that are mostly myth

The internet repeats these but evidence is weak:

Save your bed space and your effort for pairings with real evidence.

A practical companion-planting layout

For a 4×8 raised bed using companion-planting principles:

North side (back, full sun)
[Tomato] [Tomato] [Pepper] [Pepper]
   |        |       |        |
   basil   basil    -        -
[Carrots interplanted with onions]   [Bush beans]
[Lettuce] [Lettuce]  [Marigold]      [Lettuce]
South side (front)

This layout uses: - Tomato + basil pairing (pest deterrence) - Tomato + marigold (nematode suppression) - Carrot + onion (mutual pest deterrence) - Lettuce in afternoon shade of tomatoes (extends harvest season) - Beans on one end (nitrogen for next year’s heavy feeders)

Using companion planting in small spaces

In a 4×4 raised bed, you can’t separate every conflicting crop into different beds. The honest answer: don’t grow crops with strong incompatibilities together at all. Pick one of:

Just don’t try to grow tomatoes AND brassicas in 16 sq ft. Pick a theme.

Companion planting and pest control aren’t the same thing

Even with perfect companion planting, you’ll still get pests. Companion plants reduce pest pressure but don’t eliminate it. You still need to:

The companion-planting effect is best thought of as a 10–20% reduction in pest pressure, not a substitute for hands-on pest scouting.

Plan companions when you plan the rest

Companion planting works best when you bake it into your overall garden plan rather than retrofitting it. The Planter App lets you pick crops and shows you what fits in your space; the suggested pairings here can guide which crops to combine in the same plan.

Plan a companion-friendly garden →

Related guides