Desima

Companion Planting Chart: What to Plant Together

Updated ยท First published

A companion planting chart for 20+ vegetables and herbs: what to plant together, what not to plant together, and why, plus layouts for small beds.

This post contains affiliate links. If you buy through them, Desima may earn a small commission at no extra cost to you. More about affiliate links.

Companion planting means growing plants next to each other because they help each other: one masks or traps pests, another attracts insects that eat those pests, another feeds the soil or gives shade and support. Classic good pairs are tomatoes with basil, carrots with onions, and corn with beans and squash. Classic bad pairs are tomatoes with potatoes, and beans or peas with the onion family.

The chart below covers the vegetables and herbs most people grow. Use it as a starting point, not a rulebook: a lot of companion planting is garden tradition rather than proven science, and we will tell you which is which.

Companion planting chart for vegetables and herbs

PlantGood companionsKeep away fromWhy
TomatoBasil, onions, chives, carrots, parsley, lettuce, marigoldsPotatoes, corn, fennel. Some charts also say the cabbage family (others pair them)Potatoes share late blight. Corn earworm and tomato fruitworm are the same insect. Basil and marigolds are traditional pest-deterrent partners
PepperBasil, onions, carrots, tomatoes, lettuce, spinachFennelSame sun and warmth needs as tomatoes. Low leafy crops shade the soil around them
CucumberBeans, peas, corn, radishes, dill, nasturtiums, lettuce, cabbagePotatoes, strong herbs such as sageRadishes and nasturtiums are traditional decoys for cucumber beetles. Corn or a trellis gives vines something to climb
Zucchini and squashCorn, beans, radishes, nasturtiums, marigoldsPotatoes (charts disagree on this one)Part of the Three Sisters. Big leaves shade out weeds. Both squash and potatoes are space and water hungry
LettuceCarrots, radishes, beetroot, parsnips, onions, strawberries, tall crops for summer shadeFew strong conflictsShallow roots fit between deeper-rooted crops. Taller neighbors slow bolting in hot weather
CarrotOnions, leeks, chives, lettuce, radishes, peas, tomatoes, cabbageDillThe smell of onions and leeks is said to confuse carrot fly. Dill is in the carrot family and can cross-pollinate
Onion and leekCarrots, beetroot, lettuce, cabbage family, parsnips, tomatoes, Swiss chardBeans, peasStrong scent is thought to mask crops from carrot fly and cabbage pests. Onions are traditionally said to stunt legumes
GarlicTomatoes, cabbage family, carrots, beetroot, lettuceBeans, peasSame reasoning as onions. Compact, so it fits along bed edges
Beans (bush and pole)Corn, squash, cucumbers, potatoes, carrots, peasOnions, garlic, leeks, chives, fennelLegumes fix nitrogen. Pole beans climb corn in the Three Sisters
PeasCarrots, turnips, radishes, cucumbers, corn, beansOnions, garlicFix nitrogen. Cool-season, so they pair best with other spring crops
PotatoBeans, corn, peas, cabbage family, marigoldsTomatoes, peppers, eggplant, cucumbers, and often squashPotatoes, tomatoes, peppers and eggplant are all nightshades and share blight and beetle pests
Cabbage family (cabbage, broccoli, kale, Brussels sprouts, cauliflower)Onions, beetroot, celery, dill, Swiss chard, spinach, nasturtiumsStrawberries. Tomatoes in some chartsAromatic herbs and onions are said to deter cabbage moths. Dill flowers attract wasps that parasitize caterpillars
CornBeans, squash, cucumbers, peas, potatoesTomatoesThree Sisters. Shares corn earworm with tomatoes
StrawberryLettuce, spinach, onions, chives, borage, bush beansCabbage family. Don't plant where tomatoes, potatoes, peppers or eggplant grew recentlyThose crops can leave verticillium wilt in the soil, which strawberries are prone to
BasilTomatoes, peppers, lettuce, oreganoSage and rue (traditional)Aromatic. Flowering basil attracts bees and other pollinators
BeetrootOnions, lettuce, cabbage family, Swiss chardPole beans (traditional)Different root depths share the bed well
RadishCarrots, lettuce, peas, cucumbers, spinach, parsnipsFew strong conflictsFast crop that marks rows of slow carrots and parsnips. Used as a trap crop for flea beetles and leaf miners
SpinachStrawberries, peas, radishes, cabbage familyFew strong conflictsGrows well in the light shade of taller plants
Swiss chardOnions, beetroot, cabbage familyFew strong conflictsTolerates partial shade, fills gaps between bigger crops
ParsnipOnions, lettuce, radishesFew strong conflictsSlow to germinate, so quick radishes and lettuce use the space early
DillCabbage family, cucumbers, lettuce, onionsCarrots, tomatoes (mature plants)Umbrella-shaped flowers feed hoverflies, ladybugs and parasitic wasps
Marigold and nasturtiumAlmost all vegetablesNothing significantMarigolds attract hoverflies. Nasturtiums lure aphids away from crops

If you see a pair listed as good in one chart and bad in another (tomatoes and cabbage is the classic example), that is normal. Most of these pairings come from generations of gardeners' observations, and gardeners don't always agree.

How does companion planting work?

There are five main ways one plant can help another. Some are well supported by research, others much less so.

Confusing pests

Many insect pests find their food plant by smell and sight. Strong-smelling plants such as onions, garlic, basil and other herbs are thought to mask the scent of the crop next to them, and mixed plantings are harder for a pest to land on than a solid block of one crop. This is the idea behind onions next to carrots (against carrot fly) and herbs among cabbages (against cabbage moths). The general principle that mixed plantings suffer less pest damage has some research support; specific "this herb repels that bug" claims are mostly traditional.

Trap crops

A trap crop is a plant pests prefer, grown to pull them off your main crop. Nasturtiums attract aphids, and radishes are used to draw flea beetles and leaf miners away from spinach and other greens. You then pull or treat the trap plants. This is one of the better-proven techniques.

Attracting beneficial insects

Flowers such as dill, coriander (cilantro), alyssum, marigolds and borage feed hoverflies, ladybugs, lacewings and tiny parasitic wasps. The adults need nectar and pollen; their larvae eat aphids and caterpillars. Scattering flowers through a vegetable bed is well supported and works alongside the other methods in our guide to biological pest controls. The same flowers help pollinators too, see the bee-friendly garden guide.

Sharing nutrients

Beans and peas host bacteria in their roots that turn nitrogen from the air into a form plants can use. Be realistic about this: a growing legume keeps most of that nitrogen for itself. Neighbors and the next crop benefit mainly when the roots and leftover plant material break down in the soil. That is why many growers cut spent bean plants at ground level and leave the roots in.

Shade and support

Tall plants can shade lettuce and spinach in summer, which slows bolting. Sturdy plants can hold up climbers. The best-known example is the Three Sisters, a system developed by Indigenous farmers in North America: corn gives the beans a pole to climb, the beans add nitrogen to the soil, and squash spreads across the ground, shading out weeds and holding moisture. The flip side is that tall crops can also steal light from sun-lovers, so think about placement (more in the garden sunlight guide).

Does companion planting actually work?

Partly. Trap crops, flowers for beneficial insects, legumes in the rotation, Three Sisters-style intercropping, and simply growing a mix rather than a monoculture all have reasonable evidence behind them. Long lists of plant "likes and dislikes", and claims that one plant improves another's flavor, are mostly tradition. They rarely do harm, so try them, watch your own beds, and keep what works.

Which vegetables should not be planted together?

These are the "bad pairs" you will see most often, with the reason behind each:

  • Tomatoes and potatoes. Both are nightshades and both get late blight, which spreads easily between them. Keep them apart and don't grow one where the other grew last year. Peppers and eggplant are in the same family.
  • Tomatoes and corn. The same caterpillar (corn earworm, also called tomato fruitworm) attacks both, so growing them together gives it a bigger buffet.
  • Beans or peas with onions, garlic, leeks or chives. A long-standing tradition says alliums stunt legumes. The evidence is thin, but it is easy to follow.
  • Fennel with almost anything. Fennel is widely said to inhibit the plants around it. Grow it in its own pot or a corner of the garden.
  • The cabbage family and strawberries. A traditional bad pair, often repeated in companion charts.
  • Strawberries after nightshades. Tomatoes, potatoes, peppers and eggplant can leave verticillium wilt in the soil, and strawberries are susceptible. Plant them in fresh ground.
  • Dill and carrots. They are related, can cross-pollinate if both flower, and mature dill is said to slow carrots.
  • Tall crops in front of short sun-lovers. Not a chemistry problem, a light problem. Put corn, trellised cucumbers and staked tomatoes on the side of the bed away from the sun's path (the north side in the Northern Hemisphere, the south side in the Southern Hemisphere).

Plants that help each other: the infographic

Companion planting guide infographic showing which plants help each other and planting arrangements for beetroot, cabbage, carrots, potatoes, tomatoes, onions, radishes, peas, cucumber, lettuce and parsnip

Feel free to share this infographic with a link back to this page.

The infographic's "plants helping plants" panel lists these traditional pairings:

  • Tomatoes are said to repel the caterpillars that chew on cabbage leaves.
  • Onions deter many pests, and onions and leeks are said to repel carrot flies.
  • Radishes deter cucumber beetles.
  • Radishes can draw leaf miners away from spinach: the miners chew the radish leaves, and the radish root underground is left unharmed.
  • Lettuce is said to make summer radishes more tender.

Its planting arrangements group each vegetable with neighbors it grows well beside:

Center plantPlant around it
BeetrootBroccoli, onions, Swiss chard, cabbages, Brussels sprouts
CabbagesTomatoes, broccoli, spinach, Swiss chard, kale, Brussels sprouts
CarrotsLeeks, onions, peas, lettuce, radishes, cabbages
PotatoesCorn, squash, peas, beans, cabbages
TomatoesBroccoli, onions, cabbages
OnionsParsnips, lettuce, beetroot, cabbages, carrots
RadishesPeas, spinach, parsnip, lettuce, carrots, cucumber
Swiss chardOnions, cabbages, beetroot
PeasTurnip, corn, beans, radishes, carrots, cucumber
CucumberCorn, cabbages, beans, radishes
LettuceRadishes, carrots, beetroot, parsnip
ParsnipOnions, radishes, lettuce

How to use a companion planting chart in small beds

Companion planting suits small gardens because you are already mixing crops closely. A few practical rules:

  1. Start with what you want to eat, then look each crop up in the chart and check its neighbors.
  2. Put tall plants on the shady side of the bed so they don't block the sun from shorter crops.
  3. Use onions, garlic and chives as edging. They take little space and sit between crops that like them.
  4. Sow radishes with slow crops such as carrots and parsnips. You harvest the radishes before the others need the room.
  5. Tuck flowers into corners. One marigold, nasturtium or dill plant per corner brings in beneficial insects.
  6. Rotate each year so the same plant family doesn't grow in the same spot, especially nightshades and the cabbage family.

Here is one example layout for a 4 ft x 4 ft (1.2 m x 1.2 m) bed split into 16 squares. The top row is the back of the bed, on the side away from the sun:

Square 1Square 2Square 3Square 4
Tomato (staked)BasilBasilTomato (staked)
OnionsCarrotsCarrotsOnions
LettuceRadishesRadishesLettuce
MarigoldBeetrootBeetrootNasturtium

The squares idea comes from square foot gardening, which we cover in detail in the square foot gardening guide. If you are still choosing a bed, see the raised bed gardening guide, and for pots on a balcony, the vegetable container garden guide.

Garden stamps: how many plants per space

The second infographic groups vegetables by how many plants fit in the same size space ("stamp"), so you can lay out a bed efficiently.

Garden stamps infographic showing how many plants of each vegetable fit per planting square, from 16 carrots, onions or radishes down to one broccoli, cabbage, potato or squash

Feel free to share this infographic with a link back to this page.

Plants per stampVegetables
16Carrots, onions, radishes
9Beans, beets, peas, turnips
4Asparagus, celery, chard, garlic, kohlrabi, lettuce
2Basil, cucumber, kale, sweet potatoes, tomatoes
1Broccoli, Brussels sprouts, cabbage, cauliflower, corn, eggplant, peppers, potatoes, pumpkins, squash, strawberry, watermelon, zucchini

Treat these as a rough guide. Variety matters (a cherry tomato on a trellis needs less room than a sprawling beefsteak), so check the seed packet too.

Seeds to get started

If you are planting a mixed companion bed from scratch, a variety pack of heirloom seeds covers most of the chart in one go.

Survival Essentials heirloom seed bank box with dozens of labeled seed packets of vegetables, beans and corn

Survival Essentials 135-variety heirloom seed bank on Amazon

Heirloom 55 gold resealable pouch of vegetable seed packets with the variety list on the label

Heirloom Futures 55-variety heirloom vegetable seed bank on Amazon

For when to sow each crop, see the garden calendar.

FAQ

What is the best companion plant for tomatoes?

Basil is the classic choice, along with onions, chives, carrots, parsley and marigolds. Keep tomatoes away from potatoes, corn and fennel.

Can you plant tomatoes and peppers together?

Yes. They like the same sun, warmth and watering, so they grow well side by side. They also share some pests and diseases, so move them to a different bed each year.

Can cucumbers and tomatoes be planted together?

Yes, they are a common pairing. Give them enough space for air to move between them, and trellis the cucumbers so they don't smother the tomatoes.

What should not be planted next to onions?

Beans and peas are the main ones. Tradition says onions and garlic stunt legumes, so most charts keep them apart.

Does companion planting really work?

Some of it does. Trap crops, flowers that attract beneficial insects, nitrogen-fixing legumes and mixed planting have research behind them. Many specific pairings are traditional, so test them in your own garden.