Companion planting is one of the oldest techniques in agriculture -- and also one of the most misunderstood. At its core, the idea is simple: some plants grow better when they're near each other. They repel each other's pests, attract beneficial insects, improve soil, or simply make efficient use of shared space. Other plants compete so aggressively that planting them together guarantees problems.
The challenge is that a lot of what's written about companion planting mixes solid, well-documented science with old gardening folklore. This guide sticks to what consistently works in real gardens and on small farms. You'll find the pairings that reliably improve your results -- and the ones to keep well apart.
Why companion planting works
Before diving into specific pairings, it helps to understand the mechanisms behind companion planting. There are four main ways that plants benefit each other:
- Pest deterrence. Certain plants produce volatile compounds, strong scents, or physical barriers that confuse or repel insects. Planting these near vulnerable crops can significantly reduce pest pressure without any spraying.
- Beneficial insect attraction. Flowering plants in and around the vegetable garden attract pollinators and predatory insects like parasitic wasps and hoverflies that feed on aphids, caterpillars, and other pests. A garden without flowers is a garden without allies.
- Nitrogen fixation. Legumes -- beans, peas, clover -- host rhizobial bacteria on their roots that pull nitrogen from the air and convert it into a form plants can use. Growing legumes alongside heavy feeders like corn or squash provides a slow, steady nitrogen boost.
- Space and light efficiency. Different plants occupy different vertical layers and mature at different rates. Pairing tall, slow-growing crops with short, fast-maturing ones means you're producing more food per square foot over the season.
The goal of companion planting isn't magic -- it's ecology. You're building a small, functional ecosystem in your garden beds rather than a monoculture that pests can move through unchecked.
The Three Sisters: corn, beans, and squash
The most famous companion planting system in North American agriculture comes from Indigenous farmers who developed it centuries ago. The Three Sisters -- corn, beans, and squash -- work together in a way that's elegant, practical, and well-documented.
Here's what each plant contributes:
- Corn grows tall and provides a living trellis for the pole beans to climb. It's a heavy feeder that benefits from the nitrogen the beans supply.
- Beans fix atmospheric nitrogen through their root systems, feeding the corn and squash. They climb the corn stalks, freeing up ground space.
- Squash spreads along the ground, shading out weeds and keeping soil moist with its large leaves. The spiny texture of the leaves and vines deters some pests and animals.
To plant the Three Sisters: mound your soil into hills about 18 inches across, spaced 3-4 feet apart. Plant 4-5 corn seeds in the center. When the corn is 4-6 inches tall, plant 4-5 bean seeds around the base. One week later, plant 3-4 squash seeds around the outer edge of the mound. Water well and let the system work.
Tomatoes and their best companions
Tomatoes are the garden's most pampered crop -- and also one of the most pest-prone. Companion planting can significantly reduce the two biggest tomato headaches: aphids and hornworms.
Plant these near your tomatoes:
- Basil. The most widely recommended tomato companion, and for good reason. Basil's aromatic oils appear to confuse aphids and repel whiteflies. It also attracts pollinators during its flowering phase. Plant it 12-18 inches from tomato stems so it gets enough light.
- Marigolds. French marigolds (Tagetes patula) are heavy hitters against pest nematodes -- they release a compound from their roots that suppresses nematode populations in the soil. They also deter aphids and attract hoverflies. Plant them as a border around your tomato beds.
- Borage. This easy-to-grow herb is said to repel tomato hornworms and attract bees. It self-seeds freely once established, so you'll rarely need to replant it.
- Carrots. Carrots aerate the soil around tomato roots as they grow, improving drainage. They're also shade-tolerant enough to grow under tomato foliage.
- Parsley. Parsley attracts predatory wasps that prey on tomato hornworm larvae. Let a few parsley plants flower and you'll have an insectary right in your tomato bed.
Keep these away from tomatoes:
- Brassicas (broccoli, cabbage, kale). These compete aggressively with tomatoes and can stunt growth.
- Fennel. Fennel is famously allelopathic -- it produces compounds that inhibit the growth of most other vegetables, tomatoes included. Plant it well away from everything else, or in a pot.
- Corn. Both attract the same pest -- corn earworm and tomato fruitworm are the same moth species (Helicoverpa zea). Planting them together concentrates the problem.
Brassicas: building a pest defense system
Cabbage, broccoli, kale, Brussels sprouts, and their relatives are targets for a specific set of pests: cabbage worms, cabbage loopers, flea beetles, and aphids. A well-planned companion planting strategy around your brassica beds can dramatically cut pest damage.
- Nasturtiums as trap crops. Nasturtiums are aphid magnets -- which sounds bad, but it's actually a strategy. Plant nasturtiums at the edges of your brassica beds and aphids will colonize them instead of your crops. The nasturtiums become a sacrificial trap crop, drawing pests away and concentrating them where predators can find them.
- Dill and celery. Both attract parasitic wasps that prey on cabbage worm eggs and larvae. If you allow dill to flower, it becomes an especially powerful insectary plant. Plant it in clumps throughout your brassica patch.
- Aromatic herbs. Thyme, rosemary, sage, and mint planted near brassicas help mask the distinctive scent that cabbage moths use to locate host plants. This doesn't eliminate the pest, but it reduces it.
- Clover as a living mulch. Low-growing clovers between brassica rows fix nitrogen, attract ground beetles that eat slug eggs and other soil pests, and reduce weeding time. White Dutch clover is a popular choice for this use.
The most effective companion planting strategy for brassicas is layered defense: aromatic herbs to confuse arriving pests, trap crops to lure and concentrate them, and flowering plants to feed the predators that eat them.
Cucumbers, squash, and zucchini
The cucurbit family -- cucumbers, squash, melons, and zucchini -- shares common pest pressures: cucumber beetles, squash vine borers, squash bugs, and powdery mildew. Good companions provide pest deterrence and improve pollination.
- Nasturtiums. Again useful here as a trap crop for aphids and as a cucumber beetle deterrent. Some growers plant them as a dense border around their squash beds.
- Radishes. Fast-maturing radishes planted near cucumber transplants can deter cucumber beetles. Allow a few radishes to flower and they'll attract beneficial insects as a bonus.
- Tansy. This aromatic herb is reported to repel squash bugs when planted nearby. It spreads aggressively, so plant it where you can contain it, or in pots placed near squash beds.
- Dill and fennel (with caution). Dill is beneficial in small amounts for attracting predatory insects. Fennel should be kept far from cucurbits -- it can inhibit their growth.
- Pole beans. Beans fix nitrogen that benefits cucurbits, and the two crops can share a trellis structure in small spaces.
Carrots and their allies
Carrots are relatively low-maintenance, but they're prone to carrot fly -- a pest whose larvae tunnel into the roots. Their main companion planting strategy involves aromatic plants that mask the scent of carrot foliage, which carrot flies detect from impressive distances.
- Onions, leeks, and chives. Alliums and carrots are classic companions. The strong scent of alliums confuses carrot flies, and the smell of carrots confuses onion flies. They're mutually protective. Interplant them in alternating rows for maximum effect.
- Rosemary and sage. Both have strong aromatic profiles that help mask carrot scent. Plant them at the corners or borders of your carrot beds.
- Lettuce. Lettuce makes a good space-filler between slower-growing carrots. It's harvested before it competes, and its shallow roots don't interfere with carrot development.
One important note: carrots and dill are closely related (both are Apiaceae) and can cross-pollinate if both are flowering at the same time. Keep them separated if you're saving seed from either crop.
Garlic and alliums as garden-wide protectors
Garlic is one of the most broadly useful companion plants in the garden. Its sulfurous compounds deter a wide range of pests, from aphids and spider mites to Japanese beetles and even deer and rabbits. You can use it strategically throughout the garden, not just in a single bed.
- Plant garlic around fruit trees and berry bushes to deter borers and aphids.
- Interplant cloves in rose beds to reduce aphid pressure and black spot.
- Use chives as a border plant around almost any vegetable bed -- they deter aphids and carrot fly while attracting pollinators when in flower.
- Avoid planting alliums near beans and peas. Alliums can inhibit legume growth and reduce their nitrogen-fixing effectiveness.
Flowers that every vegetable garden needs
One of the most impactful things you can do for your garden is to integrate flowering plants throughout your vegetable beds. Flowers attract the beneficial insects that keep pest populations in check. A garden without flowers relies entirely on sprays and hand-picking; a garden with flowers builds a living pest management system.
The most useful flowering companions:
- Marigolds (Tagetes). French marigolds for nematode suppression; African marigolds as a trap crop for spider mites. Plant liberally throughout the garden.
- Phacelia. One of the best insectary plants available. Its bright blue flowers attract an extraordinary range of beneficial insects including hoverflies, bees, and parasitic wasps.
- Calendula. Sticky stems trap aphids and whiteflies before they reach crops, and the flowers attract hoverflies. Easy to grow from seed, prolific bloomer.
- Sweet alyssum. Low-growing, fast-blooming, and packed with tiny flowers that hoverflies and parasitic wasps use for nectar. Excellent as a living mulch between rows.
- Sunflowers. Attract pollinators, provide habitat for predatory insects in their flower heads, and serve as a trap crop for aphids. Their height also provides some wind protection for nearby plants.
Every 10 feet of vegetable row benefits from at least a foot or two of flowering plants nearby. Think of flowers not as decoration but as functional infrastructure for your pest management system.
Pairings to avoid
Companion planting isn't just about what to grow together -- knowing what to keep apart is equally important. Some of these conflicts are well-documented; others are consistent enough in practice to take seriously.
- Fennel and almost everything. Fennel inhibits the growth of tomatoes, peppers, beans, brassicas, and many herbs. Grow it isolated in a pot or at the far edge of the garden.
- Onions and beans or peas. Alliums stunt legume growth. Keep them separated by at least several feet.
- Brassicas and tomatoes. These are heavy competitors that don't benefit each other. Separate them into different beds.
- Cucumber and sage. Sage is reported to inhibit cucumber growth. Keep them apart.
- Two crops from the same family in the same bed. Planting tomatoes next to peppers or cucumbers next to squash concentrates shared pest and disease pressure. Rotate them.
How to plan companion planting in practice
The most effective approach isn't to memorize every pairing -- it's to build companion planting into your garden planning process from the start. When you're laying out your beds, think in terms of plant guilds: a central crop surrounded by companions that protect it, attract beneficial insects, and make efficient use of space.
A simple framework that works in most gardens:
- Choose your primary crop for each bed (tomatoes, brassicas, cucurbits, root vegetables).
- Add at least one aromatic herb to confuse or deter primary pests.
- Add at least one flowering plant to attract beneficial insects.
- Add one fast-maturing crop (radish, lettuce) to fill space while the primary crop establishes.
- Note what worked and what didn't so you can refine the approach next season.
Companion planting rewards attention. Keep records of which combinations reduced your pest pressure and which seemed to make no difference. Over several seasons, you'll develop a planting system that's tuned to your specific growing conditions, pest pressures, and crop preferences -- and that's when the results get genuinely impressive.
Start with one or two proven combinations this season: basil with tomatoes, nasturtiums with brassicas, marigolds throughout the garden. Watch what happens. The best companion planting knowledge isn't found in a chart -- it's built through observation in your own garden.