Companion Planting Chart: Best & Worst Vegetable Pairings (2026)

By Efraín Vega · Published October 28, 2026

Diagram of companion planting pairings showing beneficial companions like tomatoes, basil, and marigolds vs harmful antagonistic neighbors

Companion planting is the practice of pairing specific crops together to repel destructive insects, maximize garden bed space, and enhance vegetable flavor and vigor through natural biochemical cooperation.

Rather than relying on chemical sprays, smart gardeners use aromatic herbs like basil and rosemary to mask crop scent signatures, green beans to fix soil nitrogen, and flowering marigolds to suppress root-knot nematodes.

🌱 Companion Planting Engine

Vegetable Compatibility & Matrix

Find scientifically proven companion pairings, biological pest shields, and plants to keep apart.

Tomato

Tomato

vegetableSolanum lycopersicum

Heavy feeders requiring full sun and deep soil. Pair with aromatic herbs to mask volatile scent trails and suppress hornworms.

✓

Beneficial Companions (6)

Plants that boost vigor, fix nutrients, or repel pests.

Basil
Pest Defense

Repels hornworms, thrips, and whiteflies while improving fruit flavor through volatile terpene release.

Marigold
Pest Defense

Root exudates (alpha-terthienyl) eliminate root-knot nematodes; pungent blooms deter whiteflies.

Carrot
Soil Aerator

Breaks subsoil crust with deep taproots without competing for surface soil nutrients.

Garlic
Pest Defense

Allicin compounds act as a natural antifungal shield against early and late blight spores.

Parsley
Attracts Pollinators

Lacy flower umbels attract beneficial parasitic mini-wasps that parasitize hornworm caterpillars.

Lettuce
Living Mulch / Shade

Shallow roots provide living groundcover, keeping tomato root zones cool and moisture-consistent.

✕

Antagonistic Neighbors (5)

Never plant adjacent: stunt growth, compete for nutrients, or spread disease.

Fennel
Severe Antagonism

Excretes allelopathic root exudates that severely stunt tomato vascular growth and flower formation.

Potato
Severe Antagonism

Shares devastating late blight (Phytophthora infestans) and attracts matching Colorado potato beetles.

Cabbage
Growth Competition

Heavy competing brassica that stunts tomato fruiting and depletes trace calcium.

Sweet Corn
Severe Antagonism

Attracts the identical pest: corn earworms and tomato fruitworms are the exact same moth (Helicoverpa zea).

Broccoli
Growth Competition

Depletes high levels of potassium and micronutrients required for tomato fruit swelling.


Master Companion Planting Matrix

Vegetable / CropBest Garden CompanionsWorst Enemies (Do NOT Plant Near)Primary Benefits
TomatoBasil, Marigold, Carrot, GarlicFennel, Potatoes, Walnut, CabbageBasil repels hornworms; marigolds deter soil nematodes.
Bell PepperBasil, Parsley, Carrot, RosemaryFennel, ApricotsLow foliage retains humidity; herbs repel aphids & thrips.
CucumberGreen Beans, Radish, Marigold, LettuceSage, Mint, Aromatic FennelRadishes deter cucumber beetles; beans add nitrogen.
CarrotRosemary, Lettuce, Radish, TomatoDill, Parsnips, CeleryRosemary aroma confuses rust flies; radishes loosen crusty soil.
ZucchiniGreen Beans, Calendula, Radish, NasturtiumPotatoes, FennelBeans feed hungry squash roots; blossoms attract pollinator bees.
KaleRosemary, Garlic, Spinach, CilantroTomatoes, Strawberries, Pole BeansStrong herb oils repel diamondback moths and cabbage loopers.
LettuceCarrot, Radish, Strawberry, CucumberCelery, Parsley, CabbageShallow roots fit under taller plants; acts as living soil mulch.
SpinachStrawberry, Radish, Kale, Green BeansPotatoes, FennelThrives in cool shade beneath climbing green bean trellises.
StrawberryGarlic, Spinach, Lettuce, BorageCabbage, Cauliflower, FennelAllium sulfur scent deters spider mites and fungus gnats.
Green BeansCucumber, Rosemary, Radish, CarrotGarlic, Onions, Leeks, ShallotsRhizobium bacteria fix atmospheric nitrogen into the soil.
RadishCucumber, Lettuce, Spinach, CarrotHyssop, Brussels Sprouts"Trap crop" drawing flea beetles away from tender salad greens.
GarlicTomato, Bell Pepper, Strawberry, KaleBeans, Peas, AsparagusStrong antifungal allicin protects against fungal damp-off.
BasilTomato, Bell Pepper, Parsley, MarigoldsRue, Sage, RosemaryEssential oils mask scent of nightshades from pests.
CilantroSpinach, Kale, Bell PepperFennelLacy white flower umbels attract beneficial hoverflies and lacewings.
RosemaryGreen Beans, Carrot, KaleBasil, CucumbersHeavy camphor and pinene oils repel bean beetles & carrot flies.
ParsleyTomato, Bell Pepper, CarrotMint, LettuceDeep taproots cycle micronutrients; flowers host predatory wasps.
MarigoldTomato, Cucumber, Bell PepperBeans, PeasRoots exude alpha-terthienyl, eliminating root-knot nematodes.
CalendulaTomato, Zucchini, KaleNoneSticky stems trap aphids and whiteflies; attracts bumblebees.

The 4 Scientific Mechanisms of Companion Planting

1. Olfactory Masking (Scent Confusion)

Insect pests like carrot rust flies (Psila rosae) and cabbage moths (Pieris rapae) find host vegetables by sniffing airborne chemical volatile compounds. Interplanting pungent herbs like rosemary, garlic, and cilantro masks these scent trails, causing flying pests to bypass your raised bed.

2. Biopesticide Root Exudates

French marigolds (Tagetes patula) secrete alpha-terthienyl, a phototoxic compound that destroys parasitic root-knot nematodes (Meloidogyne spp.) in the soil. Interplanting marigolds every 3 to 4 feet in tomato and pepper beds significantly reduces nematode galling.

3. Vertical Tiering & Canopy Sharing

Companion plants can share identical square footage when their root depths and sunlight demands don't compete:

  • Upper Canopy: Tall vining crops like indeterminate tomatoes on a vegetable trellis.
  • Lower Shade Understory: Quick-maturing lettuces and spinach whose shallow fibrous roots occupy the top 3 inches of soil, shaded from burning afternoon summer heat.

4. Biological Trap Cropping

Certain companion plants are sacrificed deliberately. Quick-sprouting radishes attract flea beetles away from fragile eggplants and cabbages. The tough radish foliage survives minor damage while high-value fruiting crops develop unscathed.


3 Fatal Garden Pairings to Avoid

  1. Tomatoes + Potatoes: Both belong to the Solanaceae family and share common vulnerability to late blight (Phytophthora infestans). Spores spread quickly across adjacent foliage, destroying both crops within days.
  2. Beans / Peas + Alliums (Garlic & Onions): Allium root exudates inhibit the symbiotic Rhizobium bacteria residing on legume roots, preventing nitrogen fixation and stunting bean vines.
  3. Fennel + Everything: Fennel (Foeniculum vulgare) produces allelopathic compounds that stunt root cell division in nearly every common vegetable, particularly nightshades and legumes. Always plant fennel in an isolated standalone container.

Sources: Cornell University Cooperative Extension: Companion Planting & Trap Cropping, University of California IPM: Nematode Management in Home Gardens.

FAQ

What should you NOT plant next to tomatoes?

Never plant fennel, potatoes, or brassicas (cabbage, broccoli) next to tomatoes. Fennel produces root exudates that inhibit tomato growth, potatoes share blight spores (Phytophthora infestans), and black walnut trees secrete juglone which causes fatal tomato wilt.

What are the best companion plants for peppers?

Basil, carrots, onions, and marigolds are ideal pepper companions. Basil repels thrips and hornworms, while French marigolds emit nematicidal root compounds that protect pepper roots.

How does companion planting actually work?

It works through four proven biological mechanisms: scent masking (strong herbs hide crops from flying insect pests), natural pest repulsion (marigold alpha-terthienyl), root tier sharing (shallow lettuces under deep tomato roots), and nutrient fixation (legumes fixing nitrogen).

Can you plant garlic next to strawberries?

Yes. Garlic is one of the best strawberry companions. The strong sulfur compounds emitted by alliums deter strawberry spider mites, slugs, and fungal root rots without affecting berry sweetness.