Companion Planting — Friends & Foes
10 min read

What You'll Learn
Learn which plants help each other grow and which ones should never be neighbors — the science and practice of companion planting.
Not All Neighbors Get Along

In nature, plants don't grow in isolated rows of a single species. They grow in diverse communities where different plants support each other — sharing nutrients, repelling pests, attracting pollinators, and providing shade or structure. The practice of growing certain plants near each other for mutual benefit. Benefits include pest control, pollination, nutrient sharing, and improved growth. Some plant combinations are beneficial; others are harmful. is the practice of mimicking these natural partnerships in your garden.
This isn't folklore — there's real science behind why some plant combinations work and others fail. By the end of this lesson, you'll know the most important companion planting relationships and how to use them.
How Companion Planting Works

There are four main ways plants help each other:
1. Pest control — Some plants produce chemicals that repel specific insects. Marigolds, for example, release compounds from their roots that repel Microscopic worm-like organisms that live in soil. Some species are harmful, attacking plant roots. Others are beneficial, eating pest larvae. Marigolds naturally suppress harmful nematode populations. (soil-dwelling pests that attack roots). Basil repels mosquitoes, aphids, and whiteflies.
2. Nutrient sharing — Legumes (beans, peas, clover) fix nitrogen from the air into the soil. Plants growing nearby — especially heavy feeders like corn and squash — benefit from this free fertilizer.
3. Physical support — Tall plants can provide shade for heat-sensitive crops. Corn stalks serve as natural poles for climbing beans. Dense ground covers suppress weeds.
4. Pollination — Flowers interspersed with vegetables attract pollinators (bees, butterflies) that your food crops need for fruit production.
Did You Know?
The "Three Sisters" is one of the oldest companion planting systems in the world, developed by Indigenous peoples of the Americas. Corn provides a structure for beans to climb. Beans fix nitrogen that feeds the corn and squash. Squash spreads along the ground, shading the soil to retain moisture and suppress weeds. Three plants, each solving the others' problems.
The Best Companion Combinations

Here are the most reliable and well-documented companion planting pairs:
Tomato + Basil — Basil repels aphids, whiteflies, and mosquitoes while potentially improving tomato flavor. They also share similar growing requirements. One of the most planted combinations in the world.
Carrot + Onion — Onions repel the carrot rust fly, and carrots repel the onion fly. They protect each other from their primary pests. A classic defensive partnership.
Beans + Corn + Squash — The Three Sisters. Corn is the trellis, beans are the nitrogen fixer, squash is the living mulch. A complete ecosystem in three plants.
Lettuce + Tall plants (tomatoes, corn) — Lettuce benefits from the partial shade of taller plants, especially in hot weather. It prevents bolting and extends your lettuce harvest.
Marigolds + Everything — Marigolds are the universal companion. Their roots repel nematodes, their scent confuses and repels many pest insects, and their bright flowers attract pollinators. Plant them as borders around your entire garden.
Nasturtiums + Vegetables — Nasturtiums act as Plants grown specifically to attract pests away from your main crops. The pests prefer the trap crop, leaving your vegetables alone. Nasturtiums attract aphids away from everything else. — aphids love them and will flock to nasturtiums instead of your vegetables.
Tip
If you do nothing else with companion planting, plant marigolds and nasturtiums around the edges of your vegetable garden. This single action provides pest control, pollinator attraction, and visual beauty — with almost zero effort.
Plants That Should Never Be Neighbors

Some plants actively harm each other through chemical competition (The production of chemicals by one plant that inhibit the growth of nearby plants. Walnut trees, for example, produce juglone, which is toxic to many vegetables. Some plants simply don't grow well near certain others.), nutrient competition, or environmental incompatibility:
Fennel — Keep it away from everything. Fennel produces chemicals that inhibit the growth of most vegetables. Plant it in its own container or a separate area.
Onions/Garlic + Beans/Peas — Alliums (onions, garlic, leeks) can stunt the growth of legumes.
Tomatoes + Brassicas (cabbage, broccoli, cauliflower) — They compete heavily for the same nutrients and can stunt each other.
Dill + Carrots — They cross-pollinate and dill can inhibit carrot growth. Keep them separated despite being in the same family.
Walnut trees + Most vegetables — Black walnuts produce A chemical compound produced by walnut trees (especially black walnuts) that is toxic to many plants. Juglone persists in soil near walnut trees, creating a zone where tomatoes, peppers, eggplant, and many other vegetables cannot grow., a chemical that poisons tomatoes, peppers, potatoes, and many other plants. Don't garden near walnut trees.
Did You Know?
Fennel is so allelopathic that it can even inhibit the growth of other fennel plants if spaced too closely. It's the loner of the garden world. Beautiful, useful in cooking, but needs its own space.
Planning Your Companion Layout

Here's a practical approach to companion planting in your garden:
Step 1: Start with your main crops — tomatoes, peppers, beans, whatever you're focusing on.
Step 2: Add beneficial companions — basil near tomatoes, onions near carrots, nasturtiums as borders.
Step 3: Avoid bad combinations — check the "avoid" list before placing crops next to each other.
Step 4: Add flowers — marigolds, nasturtiums, sunflowers, and herbs like dill and cilantro around edges and between rows.
A simple companion planted raised bed example (4×8 feet):
- Back row: Tomatoes (3 plants) with basil between each
- Middle row: Peppers (3 plants) with marigolds between each
- Front row: Lettuce under the shade of the tomatoes, nasturtiums at the corners
- Border: Marigolds around the entire edge
Tip
Don't overthink companion planting. The biggest gains come from the simplest actions: add marigolds, add nasturtiums, plant basil near tomatoes, and keep fennel separate. Beyond that, the returns get smaller. A simple, well-maintained garden outperforms a perfectly companion-planted but neglected one every time.
Companion Planting for Pest Management

Companion planting is one of the pillars of natural pest management (which we'll cover in depth in its own lesson). Here's how specific companions help:
To repel aphids: Plant nasturtiums (trap crop), basil, chives, or garlic nearby To repel cabbage moths: Plant rosemary, sage, or thyme near brassicas To repel carrot flies: Plant onions, leeks, or rosemary near carrots To attract beneficial predators: Plant dill, fennel (in its own space), yarrow, and sweet alyssum to attract ladybugs, lacewings, and parasitic wasps To attract pollinators: Plant sunflowers, borage, lavender, and any flowering herb
The goal isn't to eliminate pests — it's to create a balanced ecosystem where beneficial insects keep pest populations in check. Companion planting is the foundation of that balance.
Did You Know?
A garden with diverse companion plantings has been shown to have 60–70% fewer pest problems than a monoculture garden (where only one crop is grown). Diversity confuses pests — they can't find their target plant as easily in a mixed planting as they can in a solid block of one crop.
What This Means For You

Companion planting isn't magic — it's ecology applied to your garden:
- Marigolds + nasturtiums are the universal companions — plant them everywhere
- Basil + tomatoes is the classic pairing — pest control and flavor
- Beans fix nitrogen — plant them near heavy feeders like corn and squash
- The Three Sisters (corn + beans + squash) is a complete ecosystem in three plants
- Keep fennel away from everything — it inhibits most vegetables
- Diversity is your best defense — mixed plantings have 60–70% fewer pest problems
- Don't overthink it — the biggest gains come from simple actions
In the next lesson, we'll build on the succession planting concept and learn how to plan continuous harvests throughout the entire growing season.
Check Your Understanding
Answer these questions to complete the lesson and see how other learners responded.
Question 1 of 3
What is the Three Sisters companion planting system?
Previous Lesson
← Pruning & Thinning — Don't Be Afraid to Cut
Next Lesson
Succession Planting — Harvests All Season →
Enjoying the Academy?
Sign up for free to track your progress, earn skills, and get personalized planting dates.
Sign Up for Free