Garden Voila
Plant Problems

Companion Planting: What Actually Works and What’s Folklore

Which companion planting ideas have real evidence, which only work under certain conditions, and which are folklore, plus practical pairings that help.

Few topics in gardening generate as many confident charts as companion planting. Tomatoes love basil. Carrots love tomatoes. Beans hate onions. Marigolds keep every pest away. Some of these pairings are backed by solid research. Some have a real effect, but only under specific conditions. And some are folklore that has been repeated so often it sounds like fact.

None of that means companion planting is nonsense. Mixing plants thoughtfully can genuinely reduce pests, attract beneficial insects, make better use of space and improve the soil. The trick is knowing which ideas have evidence behind them and why they work, so you can use them well. This article sorts the useful from the doubtful, in plain language.

What companion planting actually means

Companion planting is growing different plants near each other so that one or both benefit. That benefit can come from several very different mechanisms, and it helps to separate them, because some are well understood and others are not.

  • Attracting beneficial insects that eat or parasitize pests.
  • Trap cropping, where one plant lures pests away from another.
  • Physical help, such as tall plants providing shade or support.
  • Soil effects, such as legumes adding nitrogen or deep roots loosening soil.
  • Confusing or repelling pests with scent or visual clutter.
  • Chemical interference, where one plant releases compounds that affect another, known as allelopathy.

The first four have the strongest evidence. The last two are real in some cases, but frequently overstated in companion planting charts.

What has good evidence

Flowers that feed beneficial insects

This is probably the most reliable form of companion planting. Many of the insects that control garden pests, such as hoverflies, lacewings, ladybugs and tiny parasitic wasps, need nectar and pollen as adults. Their larvae, or the adults themselves, feed on aphids, caterpillars and other pests. Planting small-flowered plants among vegetables gives these allies a reason to stay.

Sweet alyssum is a well-studied example. Research in commercial lettuce fields has shown that rows of alyssum attract hoverflies whose larvae eat large numbers of aphids. Other good choices include dill, cilantro and parsley allowed to flower, yarrow, buckwheat, calendula and many native wildflowers. Plants with small, open flowers work best, because the beneficial insects are small.

Practical tip: scatter flowering plants throughout the garden, rather than in one border at the edge. Many beneficial insects do not travel far from their food source.

Trap crops

Some pests strongly prefer certain plants. A trap crop is a preferred plant grown deliberately to draw pests away from the main crop, where they can be removed or destroyed. Extension research has shown that Blue Hubbard squash, for example, attracts squash bugs and cucumber beetles away from other cucurbits when planted around the edges of a squash planting. Nasturtiums are often used as an aphid trap crop.

Trap cropping works best when you actively manage the trap plants, by checking them regularly and removing pests, rather than just planting them and hoping.

Diversity in general

Research on mixed plantings, sometimes called polycultures, generally finds that diverse plantings tend to have lower pest pressure than large blocks of a single crop. Pests that find their host plant by sight or smell have a harder time in a mixed bed, and diverse plantings support more natural enemies. This is one reason small, mixed home gardens often have fewer serious pest outbreaks than a large planting of one crop.

Physical partnerships

Some of the oldest companion plantings work through simple physical effects.

  • Shade: tall crops such as tomatoes or trellised cucumbers can shade lettuce and spinach in summer, slowing bolting in hot climates.
  • Support: pole beans can climb sturdy corn stalks, saving the need for a trellis.
  • Interplanting fast and slow crops: radishes or lettuce sown between slow-growing broccoli or tomatoes are harvested before the larger plants need the space.
  • Ground cover: sprawling squash leaves shade the soil, conserving moisture and suppressing weeds.

The Three Sisters

The best-known companion planting is the Three Sisters: corn, beans and squash, grown together for centuries by many Indigenous peoples of North America. Corn provides a stalk for beans to climb. Beans, as legumes, host bacteria in their roots that capture nitrogen from the air. Squash spreads across the ground, shading out weeds and holding moisture. Together, the three crops also provided a balanced diet.

Two caveats help modern gardeners. First, the nitrogen fixed by beans mostly benefits the soil over time, especially when roots and plant material break down, rather than feeding the corn substantially in the same season. Second, the system needs space and the right varieties. Vigorous pole beans can overwhelm sweet corn bred for home gardens, and corn needs to be planted in a block for good pollination. Many gardeners plant corn first, add beans once the corn is several inches tall, and plant squash around the edges.

What is partly true

Marigolds and nematodes

Marigolds are probably the most famous companion plant, often said to repel nearly every pest. The real story is more specific. Certain marigolds, particularly French marigolds, release compounds from their roots that can suppress root-knot nematodes, microscopic worms that damage the roots of many vegetables. But the effect generally requires growing marigolds densely, as a cover crop over a whole season, and then working them into the soil. A few marigolds dotted among tomatoes are unlikely to protect them from nematodes.

Marigolds are still worth growing. They are cheerful, easy, and their flowers attract some beneficial insects. Just do not count on them as a pest shield.

Strong-smelling plants as pest repellents

The idea that onions, garlic, herbs and other aromatic plants hide crops from pests by masking their scent has some support for specific pests in specific studies, but results are inconsistent. The effect is usually modest and depends on planting the aromatic plants close and in quantity. Interplanting herbs among vegetables is harmless and often useful for other reasons, but it is not a reliable pest control on its own.

Tomatoes and basil

Tomatoes and basil are a classic pairing in the kitchen, and they grow happily together, liking the same sun, heat and watering. Claims that basil improves tomato flavor are not well supported. Some studies have explored whether basil reduces certain tomato pests, with mixed results. Plant them together because it is convenient and both thrive in the same conditions, not because one transforms the other.

What is mostly folklore

Many popular charts list detailed “friends” and “enemies” for each vegetable, with little explanation. Claims such as “carrots love tomatoes” or “beans hate onions” have little research behind them. Some may have arisen from a single gardener’s experience, or from a plausible-sounding idea that was never tested.

That does not make them harmful. Following a chart rarely hurts. But if a chart tells you two crops cannot share a bed and you have no other space, there is usually no strong reason to worry.

Real reasons to keep some plants apart

There are a few genuine incompatibilities worth knowing, but they are usually about shared pests, diseases or competition rather than mysterious dislikes.

  • Black walnut trees release a compound called juglone that harms tomatoes, peppers, potatoes and many other plants. Keep vegetable beds well away from black walnuts and do not use their leaves or wood chips in the garden.
  • Tomatoes and potatoes belong to the same family and share serious diseases, especially late blight. Growing them near each other can help disease spread between them.
  • Crops in the same family attract the same pests. Planting all your brassicas together, such as cabbage, broccoli, kale and cauliflower, makes it easy for cabbage worms to move from plant to plant. Spreading them out, or covering them with row cover, helps.
  • Aggressive spreaders and shade-casters can simply crowd out smaller neighbors. Sprawling squash planted beside young carrots will win.
  • Different water needs make care harder. Drought-tolerant Mediterranean herbs such as rosemary and thyme prefer drier conditions than thirsty vegetables like cucumbers.

A practical approach to companion planting

Rather than trying to follow a complicated chart, focus on a few principles that consistently help.

  1. Add flowers everywhere. Tuck sweet alyssum, calendula, dill, cilantro and other small-flowered plants into vegetable beds to support beneficial insects.
  2. Mix crops. Avoid large blocks of a single crop where you can. Diversity makes life harder for pests.
  3. Use height and timing. Pair tall and short crops thoughtfully, and fill gaps around slow crops with quick ones.
  4. Rotate families. Move crop families to different beds each year to break pest and disease cycles.
  5. Watch and learn. Notice which plants attract which insects in your own garden, and keep notes.

To plan where everything goes, the square foot gardening calculator shows how many of each crop fit in a square, and the plant spacing calculator works out counts for any bed. Our comparison of square foot and row gardening explains how mixed beds fit into each method.

Sample companion plantings that work

  • Lettuce with sweet alyssum: alyssum dotted through the bed attracts hoverflies that help control aphids.
  • Tomatoes with basil and calendula: all three like full sun and warmth, and calendula flowers attract beneficial insects.
  • Squash with a Blue Hubbard trap crop: plant Hubbards around the edges to draw squash bugs and cucumber beetles, and check them often.
  • Broccoli interplanted with lettuce: lettuce fills the space while young broccoli grows, and is harvested before the broccoli needs room.
  • Cucumbers on a trellis with lettuce underneath: the trellised vines provide light afternoon shade for lettuce in summer.
  • Corn, pole beans and squash: the Three Sisters, given enough space and well-matched varieties.

Companion ideas for popular crops

Here is a practical, evidence-minded summary for some of the most commonly grown vegetables.

  • Tomatoes: grow basil, parsley and calendula nearby for convenience and to attract beneficial insects. Keep tomatoes away from black walnut trees, and avoid planting them right beside potatoes because of shared diseases. Lettuce can grow in the light shade on the north side of tall tomato plants in summer.
  • Cabbage, broccoli and kale: the main threats are cabbage worms and aphids. Lightweight row cover is far more effective than any companion plant against the white butterflies that lay cabbage worm eggs. Flowering dill, cilantro and alyssum nearby support the parasitic wasps and hoverflies that attack these pests.
  • Squash and cucumbers: a Blue Hubbard trap crop at the edge of the planting can draw squash bugs and cucumber beetles away. Flowers that attract bees improve pollination and fruit set, which matters a lot for cucurbits.
  • Lettuce and salad greens: sweet alyssum interplanted through the bed is one of the best-studied companions for aphid control. In hot climates, plant greens where taller crops provide afternoon shade.
  • Carrots and onions: a traditional pairing said to confuse carrot flies and onion flies with mixed scents. Evidence is mixed, but the two crops grow well together and have similar needs, so there is little downside.
  • Beans and peas: as legumes, they add nitrogen to the soil over time, especially when their roots are left in the ground. Follow them with heavy feeders such as squash or brassicas the next season.

For a quick reference on spacing, sun and timing for each of these crops, see our plant database.

Making companion planting easy

The simplest way to put all of this into practice is to treat flowers as part of the vegetable garden, not a separate decoration. Reserve a few squares or a short stretch of every bed for small-flowered plants. Let some cilantro, dill and parsley bloom instead of pulling them. Sow a pinch of sweet alyssum along bed edges in spring. Over a season or two, you will likely notice more hoverflies, ladybugs and tiny wasps, and fewer serious aphid outbreaks.

Frequently asked questions

Does companion planting really work?

Some forms do. Planting flowers that attract beneficial insects, using trap crops, mixing crops and pairing plants for shade or support all have good evidence. Many specific “friend and enemy” charts are based more on tradition than research.

Do marigolds keep pests away?

Not in the broad way often claimed. Certain marigolds can suppress root-knot nematodes when grown densely as a cover crop and worked into the soil. A few marigolds among vegetables mainly add color and attract some beneficial insects.

What should not be planted next to tomatoes?

Keep tomatoes away from black walnut trees, and avoid planting them right next to potatoes, which share diseases such as late blight. Most other common vegetables can grow near tomatoes without problems.

What are the best flowers to plant in a vegetable garden?

Small-flowered plants that feed beneficial insects, such as sweet alyssum, calendula, dill, cilantro, yarrow and buckwheat. Scatter them through the garden rather than only around the edges.

What are the Three Sisters?

Corn, beans and squash grown together, a traditional Indigenous planting system. Corn supports the beans, beans add nitrogen to the soil over time, and squash shades out weeds.

Is it bad to plant the same vegetables together?

Large blocks of one crop, or one plant family, make it easier for pests to find and spread. Mixing crops and rotating families each year helps reduce pest and disease problems.