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
| Plant | Good companions | Keep away from | Why |
|---|---|---|---|
| Tomato | Basil, onions, chives, carrots, parsley, lettuce, marigolds | Potatoes, 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 |
| Pepper | Basil, onions, carrots, tomatoes, lettuce, spinach | Fennel | Same sun and warmth needs as tomatoes. Low leafy crops shade the soil around them |
| Cucumber | Beans, peas, corn, radishes, dill, nasturtiums, lettuce, cabbage | Potatoes, strong herbs such as sage | Radishes and nasturtiums are traditional decoys for cucumber beetles. Corn or a trellis gives vines something to climb |
| Zucchini and squash | Corn, beans, radishes, nasturtiums, marigolds | Potatoes (charts disagree on this one) | Part of the Three Sisters. Big leaves shade out weeds. Both squash and potatoes are space and water hungry |
| Lettuce | Carrots, radishes, beetroot, parsnips, onions, strawberries, tall crops for summer shade | Few strong conflicts | Shallow roots fit between deeper-rooted crops. Taller neighbors slow bolting in hot weather |
| Carrot | Onions, leeks, chives, lettuce, radishes, peas, tomatoes, cabbage | Dill | The smell of onions and leeks is said to confuse carrot fly. Dill is in the carrot family and can cross-pollinate |
| Onion and leek | Carrots, beetroot, lettuce, cabbage family, parsnips, tomatoes, Swiss chard | Beans, peas | Strong scent is thought to mask crops from carrot fly and cabbage pests. Onions are traditionally said to stunt legumes |
| Garlic | Tomatoes, cabbage family, carrots, beetroot, lettuce | Beans, peas | Same reasoning as onions. Compact, so it fits along bed edges |
| Beans (bush and pole) | Corn, squash, cucumbers, potatoes, carrots, peas | Onions, garlic, leeks, chives, fennel | Legumes fix nitrogen. Pole beans climb corn in the Three Sisters |
| Peas | Carrots, turnips, radishes, cucumbers, corn, beans | Onions, garlic | Fix nitrogen. Cool-season, so they pair best with other spring crops |
| Potato | Beans, corn, peas, cabbage family, marigolds | Tomatoes, peppers, eggplant, cucumbers, and often squash | Potatoes, 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, nasturtiums | Strawberries. Tomatoes in some charts | Aromatic herbs and onions are said to deter cabbage moths. Dill flowers attract wasps that parasitize caterpillars |
| Corn | Beans, squash, cucumbers, peas, potatoes | Tomatoes | Three Sisters. Shares corn earworm with tomatoes |
| Strawberry | Lettuce, spinach, onions, chives, borage, bush beans | Cabbage family. Don't plant where tomatoes, potatoes, peppers or eggplant grew recently | Those crops can leave verticillium wilt in the soil, which strawberries are prone to |
| Basil | Tomatoes, peppers, lettuce, oregano | Sage and rue (traditional) | Aromatic. Flowering basil attracts bees and other pollinators |
| Beetroot | Onions, lettuce, cabbage family, Swiss chard | Pole beans (traditional) | Different root depths share the bed well |
| Radish | Carrots, lettuce, peas, cucumbers, spinach, parsnips | Few strong conflicts | Fast crop that marks rows of slow carrots and parsnips. Used as a trap crop for flea beetles and leaf miners |
| Spinach | Strawberries, peas, radishes, cabbage family | Few strong conflicts | Grows well in the light shade of taller plants |
| Swiss chard | Onions, beetroot, cabbage family | Few strong conflicts | Tolerates partial shade, fills gaps between bigger crops |
| Parsnip | Onions, lettuce, radishes | Few strong conflicts | Slow to germinate, so quick radishes and lettuce use the space early |
| Dill | Cabbage family, cucumbers, lettuce, onions | Carrots, tomatoes (mature plants) | Umbrella-shaped flowers feed hoverflies, ladybugs and parasitic wasps |
| Marigold and nasturtium | Almost all vegetables | Nothing significant | Marigolds 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

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 plant | Plant around it |
|---|---|
| Beetroot | Broccoli, onions, Swiss chard, cabbages, Brussels sprouts |
| Cabbages | Tomatoes, broccoli, spinach, Swiss chard, kale, Brussels sprouts |
| Carrots | Leeks, onions, peas, lettuce, radishes, cabbages |
| Potatoes | Corn, squash, peas, beans, cabbages |
| Tomatoes | Broccoli, onions, cabbages |
| Onions | Parsnips, lettuce, beetroot, cabbages, carrots |
| Radishes | Peas, spinach, parsnip, lettuce, carrots, cucumber |
| Swiss chard | Onions, cabbages, beetroot |
| Peas | Turnip, corn, beans, radishes, carrots, cucumber |
| Cucumber | Corn, cabbages, beans, radishes |
| Lettuce | Radishes, carrots, beetroot, parsnip |
| Parsnip | Onions, 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:
- Start with what you want to eat, then look each crop up in the chart and check its neighbors.
- Put tall plants on the shady side of the bed so they don't block the sun from shorter crops.
- Use onions, garlic and chives as edging. They take little space and sit between crops that like them.
- Sow radishes with slow crops such as carrots and parsnips. You harvest the radishes before the others need the room.
- Tuck flowers into corners. One marigold, nasturtium or dill plant per corner brings in beneficial insects.
- 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 1 | Square 2 | Square 3 | Square 4 |
|---|---|---|---|
| Tomato (staked) | Basil | Basil | Tomato (staked) |
| Onions | Carrots | Carrots | Onions |
| Lettuce | Radishes | Radishes | Lettuce |
| Marigold | Beetroot | Beetroot | Nasturtium |
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.

Feel free to share this infographic with a link back to this page.
| Plants per stamp | Vegetables |
|---|---|
| 16 | Carrots, onions, radishes |
| 9 | Beans, beets, peas, turnips |
| 4 | Asparagus, celery, chard, garlic, kohlrabi, lettuce |
| 2 | Basil, cucumber, kale, sweet potatoes, tomatoes |
| 1 | Broccoli, 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 135-variety heirloom seed bank on Amazon

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.