Skip to content
GardenTrack GardenTrack
Start using GardenTrack

Companion Planting Chart

Pick a crop and see its good and bad neighbors, good neighbors tagged by how much evidence stands behind them, and bad ones with the reason — tap any pairing for the why, and the myths this chart won't repeat.

Backed by research on this pairingBased on research on a related cropPracticalTraditional what these tags mean

Pick a crop to see its good and bad neighbors

Start using GardenTrack

Keep what's planted where, bed by bed.

See the full chart

How to read this chart

"Companion planting" covers four different things that get lumped together: confusing the pests (a clutter of green plants can make your crop harder to find), decoy plants (a decoy plant pulls the pests off the one you care about), shade sharing (tall crop shelters heat-shy crop), and flowers that feed the insects that eat your pests.

The four ways companion planting can work: confuse the pests (a clutter of green plants makes a crop harder to find), decoy plants (a decoy plant at the edge pulls pests off the main crop), share shade (a tall crop shelters a heat-shy crop below it), and feed the good bugs (flowers feed the beneficial insects that eat garden pests).
The ways a pairing can work — the tag on each good neighbor above tells you how much evidence stands behind it.

The tags tell you how much weight each good pairing can hold. Backed by research on this pairing: A published test or review looked at this pairing, or at this plant with this companion, and found an effect. How big it is in your garden is less certain. Based on research on a related crop: The research was done on a related crop, and it might work here, but nobody has tested it on this plant. Practical: A common-sense reason (shade, space, a shared pest). No study. Traditional: Often untested. Some notes say what the research found.

And the honest caveat that outranks the whole chart: sun, water, and spacing matter more than any pairing. A basil plant crammed against a tomato stem helps nobody — work out how far apart to plant them first, then pick the neighbors.

Ideas gardeners lean on, and how well each is tested

Ideas gardeners lean on most, and how well each is tested:

  • Flowers that feed the good bugs. Sweet alyssum's little flowers feed hoverflies (small flies that look like bees), and their young eat aphids (tiny sap-sucking bugs). Many organic lettuce growers plant it among their lettuce on purpose. A 2025 Quebec study found 10 of 16 kinds of these flies mostly or only in alyssum strips; aphids were not counted. The research was on lettuce, so the same idea might work next to tomatoes, peppers and eggplant, but nothing we hold tested it there.
  • Decoy plants. A blue hubbard squash at the bed edge pulls cucumber beetles away from your other squash-family plants (squash, pumpkins, cucumbers and melons), says Minnesota Extension (the University of Minnesota's gardening service). A strip of mustard, arugula or similar pulls flea beetles off young cabbage-family plants, but that is a common practice, not tested on the cabbage family.
  • Dill flowers near the cabbage bed. A common practice: dill flowers draw small wasps that prey on cabbage worms. We hold no test of it on the cabbage family. (Keep mature dill away from the carrot row.)

What not to plant together

The short list with a real reason behind it — a shared disease, a shared pest, a documented chemical, or plain competition:

Keep apart Why
Potatoes + tomatoesSame family, same late blight (a fast-spreading plant disease) — it moves both ways. One sick bed infects the other.
Corn + tomatoesCorn earworm and tomato fruitworm are the same moth. Side by side, you set its table twice.
Carrots + flowering dillBoth are in the carrot family and both may feed on the carrot rust fly (a pest whose maggots tunnel into carrots), so together they may concentrate the pest. (Not the myth that dill "stunts" carrots — they can't even cross-breed.)
Potatoes + squash, cucumbers or melonTwo sprawling, hungry plants fighting for space and water, and mounding soil up around potatoes tears up shallow squash, cucumber and melon roots. Competition — not the chart's shared-disease story (potato blight can't infect them).
Fennel + almost everythingIn lab tests, fennel's leaf and seed extracts held back nearby plants. The lore overstates it, but the chemistry is real — give it its own pot.
Any vegetable bed + black walnutWalnut roots release a toxin (juglone); tomatoes, peppers, potatoes, and eggplant are all sensitive to it. Keep beds clear of the tree's branch spread and root zone.

The most famous "never" — onions or garlic next to beans and peas — isn't on this list because the evidence doesn't support it. Pick those crops in the tool above and the myth-check explains why.

Companion planting by crop

Tomatoes. Basil can help with thrips (tiny rasping insects), onions or garlic by tradition, lettuce for the shade trade, alyssum to draw the insects that eat aphids (tiny sap-sucking bugs). The real rules are the don'ts: no potatoes, no corn, no fennel.

Peppers. Same playbook as tomatoes, smaller plant. Basil and onions alongside; alyssum nearby might help the same way (the research was on lettuce).

Squash and zucchini. The Three Sisters ground floor — under corn with beans climbing above. The trick gardeners lean on: one blue hubbard at the edge as a beetle magnet.

Carrots. Some gardeners report fewer carrot rust flies with onions. We hold no test of it. Radishes mark the row and leave early. Keep mature dill out of it.

Beans. Corn is the original natural trellis, squash is a ground cover that shades the soil. And the one rule every chart repeats — no onions or garlic near beans — is a myth: the worst an onion does is out-compete a bean it's crowding, and garlic has actually helped beans and other bean-family crops in tests.

Sources

The pairings and their tags trace to these. When a claim couldn't be sourced, it didn't make the chart.

FAQ

What should you not plant together?

The ones with a real reason: potatoes near tomatoes (they share late blight, a fast-spreading plant disease), corn near tomatoes (the same moth eats both), fennel near almost anything (it holds back other plants with its own chemicals), and any vegetable bed under a black walnut (a toxin the roots release). The famous "onions ruin beans" rule is not on this list — it is folklore, not a known enemy pairing.

Does companion planting actually work?

Some of it. Flowers that feed pest-eating insects and decoy plants that pull pests away have research behind them, though some of it was done on a related crop. Strong-smelling herbs are not shown to work: a controlled test found them no better than plain green plants against two root flies (cabbage root fly and onion fly). Sage and thyme cut diamondback moth (a small moth whose caterpillars eat cabbage leaves) in one greenhouse test on Brussels sprouts. Most classic pairings don't — they're tradition, not tests. That's why most pairings in this chart carry a tag telling you which kind it is.

What grows well with tomatoes?

Basil and the onion family are the classic picks. Lettuce is a practical pick — it wants the summer shade a tall tomato throws. Sweet alyssum nearby feeds hoverflies (small flies that look like bees) whose young eat aphids (tiny sap-sucking bugs); the research was on lettuce, so it is a maybe, not proven, for tomatoes. Keep tomatoes away from potatoes, corn, and fennel.

How far apart should companion plants be?

Use the normal spacing for each crop — companion planting means sharing a bed, not crowding. A basil plant still wants its foot of space next to a tomato. The plant spacing calculator works out the numbers for your bed size.

Keep what's planted where, bed by bed.

Start using GardenTrack