Companion Planting Matrix
Tick the vegetables you plan to grow to see which pairs are commonly planted together, which are usually kept apart, and which have no recorded guidance.
Choose your vegetables
Vegetables you plan to grow
Select two or more to see the pairings.0 vegetables selected.
Pairing matrix
Good together
Usually kept apart
What Is the Companion Planting Matrix?
Companion planting is the practice of placing certain plants near each other because they are thought to help one another, or at least not to hinder each other. A bean that adds nitrogen to the soil may benefit a leafy crop nearby, while a plant that competes heavily for water may be better kept apart. The Companion Planting Matrix turns that folk knowledge into a simple table. You select the vegetables you plan to grow, and the tool shows every pair among them as Good, Avoid or Neutral. Neutral means no pairing is recorded, which is different from a proven lack of effect. The matrix is designed to help you plan a bed or a garden layout quickly, and to see the pairings at a glance.
How to Use the Companion Planting Matrix
Building a planting plan takes a few minutes. Follow these steps:
- Tick each vegetable you intend to grow. The list covers ten common crops, from tomatoes and beans to cabbage and cucumbers.
- Read the matrix. Each cell shows the relationship between the row vegetable and the column vegetable, written as Good (+), Avoid (x) or Neutral.
- Check the two lists below the matrix. Good together lists the pairs worth planting near each other, and Usually kept apart lists the pairs to separate.
- Adjust your selection to try different layouts. Removing one vegetable can clear a conflict that would otherwise appear in the lists.
- Use the results as a starting point, then watch how the plants perform in your own soil and climate.
How It Works
The tool stores each pairing once and looks it up in either order, so a relationship between tomato and basil applies whether you enter tomato first or basil first. The lookup covers nine good pairings and four pairings to avoid. The good pairings include tomato with basil and with carrot, carrot with onion, lettuce, green bean and pea, green bean with cabbage and cucumber, and pea with cucumber. The pairings to avoid include tomato with potato, onion with green bean and with pea, and cucumber with potato.
Any pair that is not in either list is shown as Neutral. The tool does not infer a result from general principles, so Neutral always means the matrix has nothing recorded for that pairing. Each cell states its result in words as well as a symbol, so the matrix can be read without relying on colour. The lists below the matrix include each pair once, in the order the vegetables appear in the selection.
The matrix shows a dash on the diagonal, because a vegetable is not compared with itself. With fewer than two selected vegetables, the tool asks you to choose more, because a single plant has nothing to pair with.
Worked Examples
Example 1: a summer tomato bed. Select tomato, basil and carrot. The matrix shows Good for tomato and basil, Good for tomato and carrot, and Neutral for basil and carrot, because no pairing is recorded for that combination. The Good together list shows both good pairs, and Usually kept apart is empty.
Example 2: a conflict to fix. Select potato and tomato, then add cucumber. The matrix shows Avoid for potato and tomato, and Avoid for cucumber and potato. Keeping potato in a separate bed from both crops clears both conflicts in one step.
Example 3: a mixed salad bed. Select lettuce, carrot, green bean and onion. Carrot pairs well with lettuce and green bean, while onion is listed as Avoid with green bean. Moving the onion to another bed removes that conflict, leaving good pairings and a few neutral ones with no recorded result.
Common Mistakes to Avoid
The most common mistake is treating Neutral as Good. A blank in the matrix means no recorded pairing, not a confirmed benefit, so use your own judgement. Another mistake is forgetting that the matrix works on pairs. A plant can be a good companion to one crop and a poor companion to another, so check every relationship in your bed. Growers also sometimes ignore spacing and sunlight, which often matter more than the pairing. Finally, do not rely on companion planting alone for pest or disease control. Crop rotation, healthy soil, good watering and monitoring plants all contribute more reliably.
Tips for Best Results
Plan your layout on paper before you plant, and mark which vegetables share a bed. Rotate crops from season to season, because the same plants in the same soil can build up problems over time. Give tall plants room so they do not shade smaller ones. Keep notes on what grows well in your garden, since local conditions often matter more than a general chart. Finally, try one new pairing at a time, so you can see its effect clearly before changing more of your garden.
Reading the results carefully
The matrix only covers the ten vegetables listed, so a crop that is missing cannot be checked here. A Neutral result means the table has no recorded pairing, which is not the same as a tested benefit or a known problem. Each pair appears once in the summary lists, even though the matrix shows both directions. Bed layout also depends on spacing, sunlight, water and rotation from one season to the next, so use the matrix to shape the plan, then check the detail with local growing advice before you plant.
Frequently Asked Questions
Does companion planting really work?
Some pairings have good evidence, such as beans adding nitrogen to the soil, while others rest mainly on gardeners' experience. Effects depend on soil, climate and variety, so treat the matrix as a starting point and watch your own beds.
What does Neutral mean on the matrix?
Neutral means the tool has no recorded pairing for those two vegetables. It does not mean they are proven to be unaffected. Plants that share a bed without a recorded pairing are usually fine, but they are not in the good or avoid lists.
Why are some pairs listed as avoid?
Some combinations are commonly reported to compete for space, nutrients or water, or to share pests and diseases. Tomato and potato, for example, are related and share some diseases, so growers often keep them apart.
Why does the matrix show words as well as symbols?
Relying on colour alone can exclude people who have colour blindness or who use a screen reader. Each state is written in words and marked with a symbol, so the result is clear in any view.
Does the tool store my garden plan?
No. Your selections stay in the page while it is open, and nothing is sent to ToolHuby. Note your own plan if you want to keep it.
Related Tools
By the ToolHuby editorial team. Last updated October 29, 2026.