All articles
GardenIssue №21

Companion Planting Basics: What to Grow Next to What (and Why It Works)

Some plants make each other stronger. Others quietly sabotage each other. Here's the beginner-friendly guide to which vegetables and herbs to plant side by side.

Companion Planting Basics: What to Grow Next to What (and Why It Works)
The Green Nook · Editorial

The idea that plants have friends and enemies sounds a little like garden folklore, but there's real science behind it. Some plants release compounds that deter pests. Others attract pollinators. Some fix nitrogen in the soil that neighbors happily use. And some grow in ways that shade or shelter more delicate plants nearby. Companion planting is the practice of arranging vegetables and herbs so they help each other — and the results can genuinely double your harvest without any extra work.

This guide is a simple, honest introduction. I've skipped the more mystical claims (planting by the moon, plants that 'don't like' each other because of vibes) and focused on the pairings that have real evidence behind them. If you use even half of these ideas, your garden will be more productive and healthier this year.

02

The three ways companion planting actually works

First, pest deterrence: some plants release scents or oils that confuse or repel common pests. Second, pollinator attraction: flowers near vegetables bring more bees and beneficial insects. Third, growth support: some plants shade, support, or feed others through their roots. Most good companion pairings use at least one of these three mechanisms.

03

The classic pairing: tomatoes and basil

You've probably heard of this one. Basil planted near tomatoes may deter tomato hornworms and whiteflies, plus its strong scent seems to confuse pests looking for tomato smell. Practically, they also love the same growing conditions and taste incredible together on your plate. Plant 2-3 basil plants around each tomato. Bonus: basil grown near tomatoes reportedly tastes even better.

"You've probably heard of this one."

04

Marigolds — the garden's bodyguards

Marigolds are the number-one companion flower for a reason. Their roots release compounds that deter root-knot nematodes (microscopic pests that damage many vegetable roots). Their scent deters some above-ground pests. And they attract pollinators and beneficial insects. Plant marigolds along the borders of any vegetable bed, especially near tomatoes, peppers, and beans. Choose French marigolds (Tagetes patula) for the best pest control.

05

The Three Sisters: corn, beans, and squash

This is the most famous companion planting system in the world, developed by Indigenous farmers thousands of years ago. Corn provides tall stalks for beans to climb. Beans fix nitrogen in the soil that corn and squash use. Squash spreads across the ground, shading out weeds and keeping soil moist. Plant corn first, add beans when corn is 6 inches tall, then squash between the corn hills once beans are established. It's a real, working system.

06

Carrots and onions (or leeks)

Carrots suffer from carrot flies. Onions and leeks suffer from onion flies. Interplanting them confuses both pests — the strong scent of onions masks the carrot smell, and vice versa. Plant alternating rows or mix them within a bed. This is one of the most reliable pairings in traditional European gardens.

"Carrots suffer from carrot flies."

07

Lettuce and taller crops (tomatoes, peppers, kale)

Lettuce hates hot afternoon sun in midsummer. Plant lettuce on the shady side of tomato or pepper plants, and the tall plants provide dappled shade that extends the lettuce season by weeks. This lets you keep harvesting salad well into summer instead of losing lettuce to bolting in June.

08

Nasturtiums as a 'trap crop'

Nasturtiums attract aphids like a magnet — which sounds bad, but is actually great. The aphids congregate on nasturtiums instead of on your tomatoes, cabbages, or beans. Plant nasturtiums around vulnerable vegetables and let them take the pest hit. Bonus: their flowers and leaves are edible and peppery, and they attract pollinators.

09

Beans and heavy feeders

Beans (and other legumes) fix nitrogen from the air and deposit it in the soil through their roots. Plant beans near nitrogen-hungry crops like corn, cucumbers, leafy greens, or squash. Even after the bean plants are done, chop them and leave the roots in the soil to release stored nitrogen for the next crop.

"Beans (and other legumes) fix nitrogen from the air and deposit it in the soil through their roots."

10

Herbs to plant throughout your vegetable beds

Chives near carrots, roses, and tomatoes: deters aphids and adds pollinator flowers. Dill near cabbages and cucumbers: attracts predatory wasps that hunt caterpillars. Cilantro near tomatoes and spinach: attracts hoverflies and other beneficials. Oregano and thyme scattered anywhere: pollinator magnets when they bloom. Parsley near tomatoes and asparagus: attracts predatory insects.

11

Some pairings to avoid

There are a few well-documented incompatibilities. Alliums (onions, garlic, leeks, chives) inhibit the growth of beans and peas — keep them separated. Fennel is famously unfriendly with almost everything; plant it in its own corner. Cabbages and strawberries don't do well together. And avoid planting tomatoes right next to potatoes — they share diseases and can spread blight to each other.

12

How to design a companion-planted bed

Start with your main crop (say, tomatoes). Add pest-deterrent companions (basil, marigolds). Add pollinator attractors (nasturtiums, dill, cilantro). Add lower-growing crops that appreciate shade or share space (lettuce, spinach). Add nitrogen-fixers if you have room (bush beans). Your bed becomes a functional community instead of separate plants.

"Start with your main crop (say, tomatoes)."

13

A sample 4x4 companion bed layout

Center: one indeterminate tomato staked or caged. Around tomato: three basil plants, one dill plant. West side (sun protection): a row of lettuce that will be shaded by the tomato as it grows. Front (south): marigolds along the edge, plus a small bunch of nasturtiums at one corner. East side: a row of bush beans. That single small bed uses six different plants that all help each other, produces steady harvests for months, and looks beautiful.

14

Pollinator strips

If space allows, plant a strip of flowers alongside your vegetable garden — cosmos, zinnias, borage, calendula, alyssum, and yes, marigolds. This strip becomes a magnet for bees, hoverflies, ladybugs, and lacewings, all of which either pollinate your vegetables or eat pest insects. Even 2-3 feet of dedicated flower strip transforms a garden ecosystem within one season.

15

Rotate crops year to year

Companion planting works even better when combined with crop rotation. Move your tomato family (tomatoes, peppers, eggplants) to a different bed next year. Move your brassica family (cabbage, broccoli, kale) to yet another bed. Beans and peas can move around freely and improve any spot they land in. Rotation prevents disease buildup in the soil and keeps beds productive year after year.

"Companion planting works even better when combined with crop rotation."

16

Track what worked

Keep a small garden journal — even a note on your phone. What you planted where, what did well, what struggled, what pest showed up when. In year two, you'll be amazed how much you learn from these notes. Companion planting is a personal practice that gets more effective the more you tune it to your specific yard.

17

The garden as a small ecosystem

The deeper lesson of companion planting is that plants don't do well in isolation. A vegetable garden with only one crop is fragile — one pest can devastate the entire bed. A diverse garden with dozens of species is resilient. Something is always thriving, something is always attracting beneficials, something is always feeding the soil. Learn to see your garden as a small community and it will reward you more than any monoculture ever could.

Isabella Whitmore

About the writer

Isabella Whitmore Admin · Verified

Founder & Editor-in-Chief

Runs The Green Nook. Nine years of small-space gardening, fifteen of living in rentals. Believes a good home is built one honest tip at a time.