Companion planting is the practice of growing certain plants near each other because they benefit from the relationship. Some combinations repel pests, some improve flavor, some fix nitrogen in the soil, and some simply use space more efficiently. The opposite is also true: some plants actively harm each other through chemical signals, competition, or shared diseases.
Why companion planting works
The mechanisms behind companion planting fall into a few categories:
- Pest deterrence — aromatic plants like basil, marigold, and rosemary produce volatile compounds that confuse or repel insect pests. Planting basil near tomatoes reduces aphid and whitefly pressure.
- Trap cropping — sacrifice plants attract pests away from your main crop. Nasturtiums draw aphids away from beans. Blue Hubbard squash draws squash vine borers away from zucchini.
- Nitrogen fixation — legumes (beans, peas, clover) host Rhizobium bacteria on their roots, converting atmospheric nitrogen into plant-available form. Neighboring crops benefit from the nitrogen left behind when legume roots decompose.
- Physical support — the Three Sisters planting (corn, beans, squash) works because corn provides a trellis for beans, beans fix nitrogen for corn, and squash leaves shade the ground to suppress weeds and retain moisture.
- Pollinator attraction — flowering herbs and flowers interspersed with vegetables bring in bees and beneficial insects, improving fruit set on crops like squash and tomatoes.
Proven companion pairs
These are well-supported by research or by generations of consistent observation:
- Tomato + basil — basil repels aphids and whiteflies. Some studies suggest it improves tomato flavor, though this is debated. At minimum, it makes excellent use of shared growing conditions (both want full sun and consistent water).
- Carrot + onion — the scent of onion deters carrot fly, and the scent of carrot deters onion fly. A classic mutual defense pairing.
- Cabbage + dill — dill attracts parasitic wasps that prey on cabbage worms. Plant dill around the edges of brassica beds.
- Corn + beans + squash — the Three Sisters. Each plant contributes something the others need. Widely practiced across indigenous American agriculture for centuries.
- Lettuce + tall crops — lettuce benefits from partial shade in summer. Planting it beneath tomatoes, corn, or trellised beans extends the lettuce season by keeping soil cool.
- Roses + garlic — garlic planted around roses reduces aphid and black spot incidence. The sulfur compounds garlic releases are the likely mechanism.
Plants to keep apart
Some combinations cause real problems:
- Tomato + fennel — fennel secretes a substance from its roots that inhibits tomato growth. Keep fennel isolated from most vegetables.
- Bean + onion family — alliums (onion, garlic, shallot) stunt bean growth. The mechanism is likely allelopathic compounds in allium root exudates.
- Brassica + strawberry — brassicas (cabbage, broccoli, kale) are heavy feeders that compete aggressively for the same nutrients strawberries need.
- Potato + tomato — both are solanaceous (nightshade family) and share the same diseases, especially late blight. Growing them together increases infection risk for both.
- Walnut + everything — black walnut trees produce juglone, a compound toxic to tomatoes, peppers, eggplant, and many other garden plants. The toxin persists in soil for years after a walnut tree is removed.
Crop rotation and companions
Companion planting works best alongside crop rotation. The basic principle: do not plant the same family in the same spot in consecutive years. This breaks disease cycles and prevents nutrient depletion.
A simple four-year rotation:
- Year 1: Legumes (beans, peas) — fix nitrogen
- Year 2: Brassicas (cabbage, broccoli, kale) — heavy feeders that use the nitrogen legumes left behind
- Year 3: Solanaceae (tomato, pepper, eggplant) — moderate feeders
- Year 4: Root crops (carrot, beet, onion) — light feeders that break up soil
Within each year, use companion planting to pair crops that help each other within the bed.
Being honest about the evidence
Companion planting is part science, part tradition, and part garden lore. Some pairings (like the Three Sisters or carrot-onion) have solid observational and some scientific backing. Others are passed down through gardening books with little rigorous testing.
The best approach: use well-documented companions, experiment with others in your own garden, and keep notes on what works. Your soil, climate, and pest pressure are unique. What fails in one garden might thrive in another.