Companion planting is one of the most loved ideas in gardening — and one of the most misunderstood.
The basic idea is simple: some plants grow better next to certain neighbors. The right partners can pull pests away from your crops, attract the insects that eat those pests, shade tender plants, support climbers, or improve the soil for whatever grows next.
The trouble is that a lot of the companion planting charts floating around the internet mix real research with decades of garden folklore. Some pairings are backed by solid university trials. Others have never been tested, or were tested and didn't hold up.
This guide separates the two. You'll learn how companion planting actually works, which pairings have good evidence behind them, which popular ones are mostly myth (and harmless to try anyway), and how to put it all together in a real bed.
🌱 Sprouty's honest take: The biggest benefit of companion planting doesn't come from any single "magic pair." It comes from diversity — mixing flowers, herbs, and vegetables so pests have a harder time and beneficial insects have a reason to move in.
1) What Companion Planting Is (and Isn't)
Companion planting means deliberately growing different plants near each other because the combination does something useful. That "something useful" has to come from a real mechanism — attracting a predator, trapping a pest, providing shade or support, or improving the soil.
It is not about plants "liking" or "disliking" each other. Plants don't have friendships. When two plants do badly together, the reason is almost always practical: one shades the other out, they compete for the same water and nutrients, or they share the same pests and diseases.
It's also not a replacement for the basics. No companion will rescue a plant in the wrong amount of sun, poor soil, or inconsistent watering. Get those right first — our Beginner's Guide to Gardening covers them.
2) How Companion Planting Actually Works: The 6 Real Mechanisms
1. Attracting Beneficial Insects
This is the best-supported and most useful kind of companion planting. Many of the insects that eat or parasitize pests — hoverflies, lacewings, ladybugs, and tiny parasitic wasps — need nectar and pollen as adults. Plants with small, open flowers feed them, so they stay in your garden and lay their eggs near pest colonies.
Top "insectary" plants: sweet alyssum, dill, fennel, cilantro and parsley left to flower, yarrow, buckwheat, phacelia, and calendula.
2. Trap Cropping
A trap crop is a plant a pest likes more than your main crop. Pests gather on it, and you either tolerate the damage there or remove the pests (or the whole trap plant) before they spread. Trap crops need to be managed — left alone, they can become a pest nursery.
3. Confusing Pests
Many pests find their host plants by sight and smell, then confirm by landing on them. Research on cabbage pests found that surrounding brassicas with other green plants (like clover) means pests make more "wrong" landings and give up more often. Bare soil around a crop makes it easy to find; a mixed planting hides it.
4. Physical Support and Shade
Tall, sturdy plants can hold up climbers, and they can cast afternoon shade that keeps heat-sensitive crops like lettuce and spinach from bolting in warm weather. Low, sprawling plants shade the soil, keep it cool, and suppress weeds like a living mulch.
5. Improving the Soil
Legumes such as beans, peas, and clover host bacteria in their roots that capture nitrogen from the air. There's a catch: most of that nitrogen becomes available after the legume dies back and breaks down, so the biggest benefit goes to next season's crop, not today's neighbors. Deep-rooted plants like daikon radish can also break up compacted soil — see why daikon cover crops need a September–October sowing.
6. Chemical Effects (Allelopathy)
A few plants release compounds that suppress other plants or soil pests. The best-known case is black walnut, whose roots and fallen leaves release juglone, which harms tomatoes, peppers, potatoes, blueberries, and many other plants. Most other "this plant poisons that plant" claims are far weaker or untested.
3) Pairings With Real Evidence Behind Them
Sweet Alyssum + Lettuce, Brassicas, and Just About Everything
University of California research on lettuce farms found that sweet alyssum planted among lettuce attracts hoverflies, whose larvae eat large numbers of aphids. It's low-growing, blooms for months, and tolerates cool weather, which makes it one of the most useful companions you can grow. Tuck a plant every few feet along the edge of your beds.
Blue Hubbard Squash as a Trap Crop for Squash and Cucumbers
Extension trials in the Northeast found that a border of Blue Hubbard squash draws striped cucumber beetles and squash bugs away from other cucurbits. Plant it a week or two before your main squash and cucumbers, around the edges of the patch, and control pests on the Hubbard plants before they spread.
French Marigolds for Root-Knot Nematodes (Done Properly)
This one is real — but not the way most people use it. Certain French marigold varieties release compounds that suppress root-knot nematodes, microscopic worms that damage roots. The effect comes from growing a dense stand of marigolds as a cover crop for two to three months, then turning them into the soil before planting. A few marigolds dotted between tomatoes won't do much for nematodes (though their flowers do still feed beneficial insects).
Collards as a Trap Crop for Cabbage Pests
Studies have found diamondback moths prefer to lay eggs on collards over cabbage. A border of collards around a cabbage patch can concentrate those pests where you can deal with them.
Clover Living Mulch Under Brassicas
Undersowing cabbage, broccoli, and kale with low white clover makes it harder for cabbage pests to find the crop (see the "confusing pests" section above). The trade-off is competition: clover can reduce yields if it gets too vigorous, so keep it mowed or trimmed short.
Flowering Herbs for Parasitic Wasps
Dill, fennel, cilantro, and parsley in flower all have small, shallow blooms that feed the tiny parasitic wasps that attack aphids and caterpillars. Let a few herb plants bolt and bloom instead of pulling them.
The Three Sisters: Corn, Beans, and Squash
This Indigenous growing system has been used across the Americas for centuries. Corn gives pole beans something to climb, beans add nitrogen to the soil for future seasons, and big squash leaves shade the ground, hold in moisture, and discourage weeds and animals.
How to plant it:
- Build low, wide mounds about 18 inches across and 3–4 feet apart.
- Plant four to six corn seeds in the center of each mound.
- When the corn is about 4–6 inches tall, plant four pole bean seeds around each stalk cluster.
- About a week later, plant two or three squash seeds at the edge of each mound or between mounds.
Use a sturdy field or flint corn if you can. Tall sweet corn works, but vigorous pole beans can pull it over. Keep bean numbers modest so they don't smother the corn.
4) Popular Pairings That Are Mostly Myth
None of these will hurt your garden, and some are still worth growing together for practical reasons. Just don't expect the benefits often claimed for them.
- "Basil makes tomatoes taste better." There's no good evidence for this. Basil and tomatoes are still great partners: basil is compact, likes the same sun and water, and you'll harvest them together for the kitchen.
- "Marigolds repel all pests." Marigolds don't create a pest-free zone. Their flowers do attract hoverflies and other beneficials, which is a fine reason to plant them.
- "Garlic and onions repel everything." Strong-smelling plants may make it slightly harder for some pests to find their host, but the effect in trials has been small and inconsistent.
- "Onions and carrots protect each other from their flies." Studies found it only helps when onions heavily outnumber carrots, and even then the effect is modest. A row cover is far more reliable against carrot rust fly.
- "Beans and onions hate each other." This shows up on nearly every chart, with little research behind it. If space is tight, it's fine to plant them near each other.
- "Nasturtiums repel aphids." It's the opposite: aphids love nasturtiums. That makes them a potential trap crop — but only if you check them and remove the aphids before they spread.
⚠️ Watch for chart overload: If a companion chart lists dozens of "enemies" for every vegetable, most of them have never been tested. Focus on the few real conflicts in the next section and plant freely otherwise.
5) Plants That Really Should Be Kept Apart
- Black walnut and almost everything in the tomato family. Juglone from the roots and leaves is toxic to tomatoes, peppers, potatoes, and eggplant, as well as blueberries, azaleas, and many others. Keep vegetable beds well outside the tree's root zone, which can extend past the canopy.
- Tomatoes and potatoes. They share pests and diseases, especially late blight. Growing them side by side lets problems jump between them. Give them space and rotate their locations each year.
- Crops from the same family, year after year. This is really a rotation issue: planting the same family in the same spot builds up soil pests and diseases.
- Tall plants on the south side of sun-lovers. In the Northern Hemisphere, put corn, trellised beans, and sunflowers on the north side of the bed so they don't shade shorter crops.
- Aggressive spreaders with anything. Mint and horseradish will take over a bed. Grow them in their own containers.
- Sunflowers right next to seedlings. Sunflowers can suppress the germination of some nearby plants. Give them their own spot or a bed edge.
6) Companion Planting Quick-Reference Chart
Here's a practical cheat sheet for the most common home garden crops. The "keep apart" column lists only conflicts with a clear, practical reason behind them.
| Crop | Good companions | Why | Keep apart from |
|---|---|---|---|
| Tomatoes | Basil, sweet alyssum, marigolds, borage | Flowers feed pest predators and pollinators; basil is an easy, space-efficient partner | Potatoes (shared blight), black walnut |
| Peppers | Basil, onions, sweet alyssum | Low-growing herbs fill space without shading; flowers draw aphid predators | Black walnut |
| Squash, cucumbers, pumpkins | Corn, pole beans, nasturtiums, Blue Hubbard squash as a trap crop | Three Sisters shade and support; trap crop pulls cucumber beetles and squash bugs away | Potatoes (compete for space and water) |
| Cabbage, broccoli, kale | Sweet alyssum, dill, white clover as a living mulch, collards as a trap crop | Mixed plantings make it harder for cabbage pests to find the crop; flowers bring parasitic wasps | Strawberries crowding them (competition, not chemistry) |
| Lettuce and greens | Sweet alyssum, radishes, taller crops for afternoon shade | Alyssum brings aphid-eating hoverflies; tall neighbors slow bolting in heat | Nothing significant |
| Carrots | Radishes, onions, leeks, chives | Radishes mark slow-germinating rows and break the soil crust; alliums may help mask carrot scent | Dill left to flower right next to them (same family, can cross-pollinate if saving seed) |
| Beans | Corn, squash, cucumbers, brassicas | Corn supports pole beans; beans leave nitrogen in the soil for next season | Onions and garlic (commonly advised, weak evidence) |
| Corn | Pole beans, squash | The Three Sisters | Very dense tomato plantings (both are heavy feeders) |
| Roses | Garlic, chives, sweet alyssum, lavender | Flowers attract aphid predators; alliums are a low-risk, low-effort companion | Crowding plants that block airflow (encourages disease) |
| Fruit trees | Comfrey, yarrow, dill, clover beneath the canopy | Flowering understory attracts beneficials and pollinators | Turf grass right up to the trunk (competes for water and nitrogen) |
7) Putting It Together: A Sample 4×8 Raised Bed
Here's how a companion-planted summer bed might look, from the north side to the south side (flip it in the Southern Hemisphere):
- North edge (back): Two tomato plants in cages or on stakes, with a basil plant between them.
- Middle: Two pepper plants, a row of bush beans, and a clump of chives.
- South edge (front): Lettuce and radishes, which get some afternoon shade from the taller plants as summer heats up.
- Corners: Sweet alyssum in all four corners, plus a French marigold or two for extra flowers.
- Outside the bed: A pot of mint, so it can't spread into the bed.
New to raised beds? Our Raised Bed Gardening for Beginners guide covers building, filling, and planting one from scratch.
8) Companion Planting for Fall and Cool Seasons
Companion planting isn't just for summer. Cool-season beds benefit just as much:
- Brassicas + sweet alyssum: Alyssum handles cool weather and keeps feeding aphid predators into fall.
- Radishes + carrots: Sow them in the same row. Radishes come up in days, mark the row, and break the soil crust for slow carrot seedlings, and you harvest them long before the carrots need the space.
- Garlic + strawberries or lettuce: Fall-planted garlic takes up little room and fits between other crops.
- Cover crops in empty beds: Clover, fava beans, and daikon radish protect and improve soil over winter.
Check timing for your area with What to Plant Now or the SproutySpeaks Garden Calendar.
9) Common Companion Planting Mistakes
- Overcrowding. Companions still need their own space. Squeezing plants too close causes competition and disease.
- Letting trap crops go unmanaged. A trap crop you never check turns into a pest nursery.
- Relying on repellent plants alone. No plant makes a pest-free zone. Combine companions with row covers, monitoring, and hand-picking — see our Natural Pest Control Guide.
- Pulling herbs before they flower. The flowers are what feed beneficial insects. Let a few go to bloom.
- Following charts too strictly. Use them for ideas, then watch what actually happens in your own garden.
10) Frequently Asked Questions
Does companion planting really work?
Some of it does. The best-supported benefits come from planting flowers that attract beneficial insects, using trap crops, and mixing plantings so pests have a harder time finding their hosts. Many specific "good neighbor" and "bad neighbor" claims on popular charts have little research behind them.
What should not be planted next to tomatoes?
Keep tomatoes away from black walnut trees, whose roots release a compound toxic to tomatoes, and away from potatoes, which share late blight and other pests. Also avoid planting them in the same spot as last year's tomatoes, peppers, eggplant, or potatoes.
What is the best companion plant for a vegetable garden?
Sweet alyssum is hard to beat. It's low, blooms for months, tolerates cool weather, and research has shown it attracts hoverflies whose larvae eat aphids. Flowering dill, cilantro, and yarrow are close runners-up.
Do marigolds keep pests away?
Not in the way most people think. A few marigolds won't repel pests from nearby plants. French marigolds grown densely as a cover crop for two to three months can suppress root-knot nematodes in the soil, and marigold flowers do attract beneficial insects.
What are the Three Sisters?
Corn, beans, and squash grown together, an Indigenous system from the Americas. Corn supports climbing beans, beans add nitrogen to the soil over time, and squash leaves shade the ground to hold moisture and block weeds.
Can I companion plant in containers?
Yes. A tomato with a basil plant, or a pepper with a few sweet alyssum plants around the edge, works well in a large container. Use a pot of at least 10–15 gallons for a tomato and its companions so they don't compete for water.
11) Sprouty's Companion Planting Checklist
- ☐ Basics first: sun, soil, and water right for each crop
- ☐ Small-flowered insectary plants in or near every bed
- ☐ Tall crops on the north side
- ☐ Tomatoes and potatoes apart, and nothing sensitive near black walnut
- ☐ Trap crops planted early and checked weekly
- ☐ Mint and other spreaders in their own pots
- ☐ A few herbs left to flower
- ☐ Notes kept on what worked, for next season
Sources and Further Reading
- University of Minnesota Extension · Companion planting in home gardens
- University of Illinois Extension · Companion planting
- Clemson Cooperative Extension (HGIC) · Plant partners
- University of Wisconsin–Madison Extension · Black walnut toxicity
Keep Growing With Sprouty
Companion planting works best as part of a garden full of life. For more ideas, see How to Design a Pollinator Garden, learn natural ways to handle what gets past your companions in the Natural Pest Control Guide, browse our Garden Design articles, and plan your beds with Raised Bed Gardening for Beginners.

