By Community Steward ยท 4/30/2026
Companion Planting for the Vegetable Garden: What Works, What Does Not, and How to Lay It Out
Companion planting has a lot of noise around it. Here is what actually works, what does not, and how to plan your garden beds with it.
Companion Planting for the Vegetable Garden: What Works, What Does Not, and How to Lay It Out
You have spent weeks planning which vegetables to grow. You picked the tomatoes, the peppers, the beans, the squash. Now you have to decide where they go.
This is where companion planting comes in. It has a reputation for being part gardening science, part garden folklore. Some of the claims are solid. Some of them are not.
This article separates the signal from the noise and gives you a practical way to lay out your garden beds using the pairings that actually make a difference.
What Companion Planting Actually Is
Companion planting is the practice of placing certain plants near each other to create a benefit. The benefits fall into four real categories:
Pest confusion and suppression. Strong-smelling herbs and flowers can mask the scent of vulnerable crops from insects that hunt by smell. This is why planting basil near tomatoes or dill near cabbage can reduce pest pressure.
Attracting beneficial insects. Flowers like nasturtium, alyssum, and cilantro in flower draw in predatory wasps, lacewings, and hoverflies that eat aphids and other soft-bodied pests.
Physical support and shading. Tall plants like corn or sunflowers shade shorter, cool-loving crops like lettuce. Pole beans use corn stalks as a natural trellis. This is the Three Sisters method that Indigenous gardeners developed over generations.
Soil improvement. Plants in the legume family fix nitrogen from the air into the soil. Planting beans or peas near heavy feeders like corn or brassicas gives those plants a slow release of nutrients.
These mechanisms are grounded in plant biology and insect behavior. They are not magic. They work best as part of a healthy garden, not as a substitute for good soil, proper watering, and clean garden practices.
The Pairings That Actually Work
These are the combinations backed by both experience and at least some published research.
Tomatoes + Basil
Basil is one of the most reliable companion plants. The strong aromatic oils in basil deter thrips, aphids, and tomato hornworms. Plant basil around the perimeter of your tomato bed or between plants.
Beans + Corn
Beans fix nitrogen in the soil. Corn is a heavy nitrogen feeder. Together they form a self-feeding system. The corn provides a structure for pole beans to climb. This is the foundation of the Three Sisters planting method and it works because each plant does something the others need.
Carrots + Onions or Leeks
Carrot fly and onion fly are different pests, but both use scent to find their host plants. Planting onions, leeks, or garlic near carrots confuses carrot fly. Planting carrots near onions confuses onion fly. It is a simple swap that cuts pest pressure in half.
Cabbage + Dill or Nasturtium
Cabbage family plants attract cabbage worms, aphids, and flea beetles. Dill attracts predatory wasps that eat cabbage worms. Nasturtiums act as a trap crop, drawing aphids away from the brassicas. Plant dill in clumps around the edges and nasturtiums at the perimeter.
Squash + Nasturtium or Radish
Squash vine borer is the enemy of summer squash. Nasturtiums repel squash bugs and vine borers. Radishes planted around squash plants can deter squash bugs with their strong scent. The key is to plant these companions around the outside of the squash patch, not between the squash plants.
Lettuce + Tall Crops
Lettuce and other leafy greens are cool-weather crops that bolt in hot sun. Planting them on the shaded side of taller crops like tomatoes, corn, or peppers extends your lettuce harvest by giving it afternoon shade when the weather heats up in late spring.
The Pairings That Do Not Work
Some of the most famous companion planting combinations have no real evidence behind them.
Marigolds as a universal pest repellent
French marigolds do release a compound from their roots that suppresses root-knot nematodes in the soil. That is a real benefit for gardeners dealing with nematode issues. But the idea that marigolds in general repel all garden pests is overstated. They do not repel hornworms, squash bugs, or cabbage worms. Plant them where you have a nematode problem or near flowers that benefit from their nematode-suppressing roots.
Garlic curing everything
Garlic has some antifungal and antibacterial properties, but planting garlic next to beans or peas actually stunts those crops. The allium family and the legume family do not get along well. Skip this pairing.
The bean and onion rivalry
Onions, garlic, and chives can stunt the growth of beans and peas. This is one of the few companion planting rules backed by observable evidence. Keep alliums away from legumes.
Classic Bad Pairings to Avoid
Knowing what not to plant together matters just as much as knowing what to plant together.
Beans or peas near onions, garlic, or chives. Alliums release compounds that inhibit legume growth.
Tomatoes near potatoes. Both are nightshades and share the same diseases, especially blight. Planting them close together makes it easier for diseases to jump between them.
Fennel near almost everything. Fennel releases compounds that inhibit the growth of many garden plants. Give it its own bed.
Squash or melons near potatoes. They share vine blight and other soil-borne diseases.
A Practical Garden Layout
Here is how you can apply this in a real garden bed. This example assumes a standard backyard garden with four main beds, each roughly 4 feet wide by 8 feet long. It works for Zone 7a in late April.
Bed 1: Tomatoes and Friends
- Six tomato plants in the center row, spaced 2 feet apart
- Basil planted between each tomato plant and around the edges
- Carrots planted along the north edge of the bed
- Lettuce along the south edge for early spring harvest before the tomatoes get tall
Bed 2: Beans, Corn, and Squash
- Four corn plants in a small block of 2 by 2 in the center
- Four pole bean plants at the base of each corn stalk
- Two squash plants on the east side, with nasturtiums planted around them at the bed edge
Bed 3: Brassicas and Allies
- Six cabbage or broccoli plants in two rows
- Dill planted in clumps at the four corners
- Radishes planted between the brassica rows as an early catch crop
Bed 4: Root Crops and Herbs
- Carrots in three rows
- Onions or leeks planted along the borders
- Cilantro in the center for early flowering to attract beneficial insects
- Lettuce along the south edge for early spring harvest
Spacing and Design Rules
Companion planting only works if you respect the basic needs of the plants involved.
Do not let companions crowd the main crop. If the companion plant competes for water, light, or nutrients, it is doing more harm than good. A basil plant between tomatoes is fine. A second row of basil takes up space your tomatoes need.
Plant trap crops at the edge, not in the middle. If you are using nasturtium as a trap crop for aphids, put it around the perimeter. You want the pests to go to the trap crop, not the plants in your main bed.
Think vertically as well as horizontally. Tall plants shade short plants. Use the height difference to your advantage. Put corn or tall sunflowers on the north side of shorter crops so they do not block morning sun.
Rotate companion plants each year. If you plant beans in Bed 1 this year, move them next year. The soil benefits of nitrogen fixation are one-time gains. Move them and let Bed 1 rest or take a different crop.
Timing Matters
Companion planting benefits are often timing-dependent.
Herbs like cilantro and dill are only valuable as pest companions when they are flowering. Once they bolt and go to seed, their pest-deterrent effect drops off. Succession-plant a small row every few weeks so you always have flowering herbs near your vulnerable crops.
Early-season companions like lettuce and radishes provide benefits during spring but are done by the time summer heat arrives. Plan to replant those spaces with warm-season companions once the cool crops come out.
Perennial companions like certain flowering herbs come back year after year and can be planted once in permanent positions at the garden edge.
The Honest Bottom Line
Companion planting will not replace good soil, proper watering, crop rotation, or pest monitoring. But it is a useful tool in a well-rounded garden system.
The plants that consistently deliver real benefits are:
- Basil near tomatoes (pest suppression)
- Beans near corn (nitrogen fixation and structural support)
- Alliums near carrots (pest confusion)
- Flowers near brassicas (beneficial insect attraction)
- Tall crops near lettuce (shade and season extension)
The plants that do not deserve the hype:
- Marigolds as a universal pest cure
- Garlic near legumes
Focus on the proven pairings. Keep the bad ones apart. Plan your beds so that plants help each other instead of competing. That is companion planting done right.
โ C. Steward ๐ฟ