Companion planting: what actually holds up

Last reviewed September 2026 · written from public-domain USDA/NOAA data and Cooperative Extension references — see how we source data

Illustration of a mixed vegetable bed where a staked tomato plant grows beside basil and orange marigolds, with a row of carrots and onions in front.

Companion planting ranges from well-supported ecology to charts copied between websites for decades. It is worth knowing which is which before you plan a bed around it.

What the evidence supports

Flowers and flowering herbs (alyssum, dill, cilantro left to bloom, buckwheat) genuinely pull in hoverflies, parasitic wasps and other predators that reduce aphids and caterpillars.

Interplanting and diversity make it harder for specialist pests to find and stay on their host crop, compared with a large single-crop block.

Tall or open crops can shelter shade-tolerant ones — lettuce in the afternoon shade of pole beans or corn.

Legumes fix nitrogen, but most of it becomes available to later crops after the legume dies, not to a neighbor growing at the same time.

Who grows well together

TomatoBasilCarrotOnionLettuceBeanCucumberCabbage
Tomato✓✓✓✓✕
Basil✓
Carrot✓✓✓✓
Onion✓✓✓✕✓
Lettuce✓✓✓✓✕
Bean✓✕✓
Cucumber✓✓
Cabbage✕✓✕
Read across a row: a green tick marks a traditional companion pairing, a red cross a pair traditionally kept apart, blank means no recorded effect. As this guide explains, many of these pairings are tradition rather than tested - the solid reasons to separate plants are shared diseases and competition for light and water. Check any crop in the companion planting chart.

What is mostly folklore

Most specific "plant X with Y for better flavor / bigger yield" pairings have little or no controlled evidence. The famous "tomato and basil" pairing is fine to do — they like the same conditions — but basil does not measurably improve the tomatoes.

The classic antagonist claims (beans hate onions, carrots hate dill) are weak. The real reasons to keep some plants apart are competition for light and water, shared diseases within a family, and cross-pollination (dill and carrot, different squash).

A practical layout approach

Group by water and sun needs. Keep members of the same family out of the same square year to year (rotation). Give heavy feeders room for airflow. Edge beds with flowers and let a few herbs bolt for the pollinators. Check the companion planting chart for a specific pair. Do not lose sleep over the charts.

Trap crops: planting something for the pests

A trap crop is a plant pests prefer, grown nearby so they gather there instead of on the crop you care about. It is one of the better-supported ideas in this area. Blue Hubbard squash planted around the edge of a squash or cucumber patch, for example, draws striped cucumber beetles and squash bugs, where they can be picked off or the trap plants removed.

The catch is that a trap crop only works if you deal with the pests once they've gathered - otherwise it becomes a nursery that sends a bigger population into the main crop.

Pairings that really do matter

A few separations are well founded. Black walnut trees release juglone from their roots, and tomatoes, peppers and potatoes planted within the root zone often wilt and die. Potatoes and tomatoes share early and late blight, so keeping them apart - and rotating both - limits disease. Squash varieties of the same species cross-pollinate, which matters only if you save seed.

The traditional Three Sisters planting - corn, pole beans and squash together - does work when timed so the corn is a few inches tall before the beans go in, and the beans and squash don't swamp it. It needs more space than it looks, and yields per plant are usually lower than growing each crop on its own.

Putting it into a real bed

Start with the non-negotiables - sun, spacing, and not repeating a plant family in the same spot - then use companion ideas to fill gaps: a row of flowering herbs along the edge, lettuce tucked into the shade of taller crops, quick radishes marking a slow row of carrots. The garden bed planner flags neighbouring pairs listed as poor companions and repeated families as you lay out a bed.

Common questions

Do marigolds keep pests away?

Mostly not in the way people hope. Dotting a few marigolds around the garden does little for above-ground pests. The better-supported use is growing French marigolds densely as a cover crop for a season, which can suppress root-knot nematodes in the soil.

What should not be planted near tomatoes?

Keep tomatoes away from black walnut trees, and don't plant them where potatoes, peppers or eggplant grew last year - they share diseases. The traditional warnings about cabbage-family neighbours are weaker.

Is basil really good for tomatoes?

It's a good neighbour because both like the same sun, warmth and watering, and basil flowers attract beneficial insects. There's no good evidence it improves tomato flavour or yield.

Do I need companion plants for a good harvest?

No. Good soil, enough sun, sensible spacing and rotation matter far more. Companion planting is a useful extra, not a requirement.

Related guides

Crop rotation for the home garden →Square-foot gardening →Attracting pollinators to your vegetable garden →Identifying common vegetable garden pests and cultural control →