Companion Planting in a Raised Bed: Crop Combos That Beat Pests, Boost Yields, and Fill Every Inch
Grow more in every square foot of your raised bed — these crop combos beat pests, boost yields, and fill gaps from spring to fall.
The best thing about a raised bed is that you control every inch of it. The soil mix is yours to set, the drainage is near-perfect, and there are no underground roots from a nearby tree creeping in. That control is exactly what makes companion planting work far better in a raised bed than almost anywhere else in the garden.
In a traditional in-ground bed, companion pairings often fall apart because you can’t contain where roots wander, which plant overshadows which, or whether an allelopathic herb drifts too close to a crop it harms. A raised bed eliminates most of that uncertainty. When you plant basil 12 inches from your tomatoes, it stays there. When French marigolds line the perimeter, they form an actual border. The geometry of a 4×8 or 4×4 bed is a planning tool — and this guide shows you how to use it.
You’ll walk away knowing which crops belong next to your tomatoes, peppers, and salad greens, why the chemistry works, what to avoid (fennel near nearly anything, brassicas near tomatoes), and how to stagger plantings across spring, summer, and fall so every square foot earns its keep. If you’re new to pairing plants, start with our companion planting guide for a full overview of the principles behind the practice.
Why Companion Planting Works Better in a Raised Bed
Four mechanisms explain how companion planting delivers results — understanding them lets you make your own pairing decisions beyond any chart.
Aromatic pest suppression. Pest insects locate their host plants primarily by smell. When basil grows alongside tomatoes, its volatile organic compounds — linalool, eugenol, and estragole — mask the scent signals that aphids, spider mites, and thrips use to find their targets. Research from the University of Minnesota confirmed that basil and marigolds planted together reduce thrips populations in both field and greenhouse tomato settings. The disruption isn’t a repellent in the traditional sense; the olfactory environment becomes too complex for pests to navigate confidently.
Beneficial insect attraction. Open-flowered companions — marigolds, flowering parsley, borage, chives — produce continuous nectar that feeds parasitic wasps and hoverflies. These insects patrol the bed for aphids, caterpillar eggs, and whiteflies. A raised bed with a diverse flower border can maintain a working population of predatory insects through the season, essentially a free pest-control service that monoculture beds never generate.
Nitrogen fixation — with an important caveat. Beans and peas are almost universally described as “nitrogen-fixing companions.” The truth is more specific. Beans form a symbiosis with Rhizobium bacteria in their root nodules, which convert atmospheric nitrogen into plant-available ammonia. The critical detail: research published in BMC Plant Biology found that common beans don’t begin fixing meaningful nitrogen until week 8, and they preferentially draw on soil nitrogen first — activating fixation only when soil levels are depleted. More importantly, the nitrogen they fix only becomes available to neighboring plants after the bean roots decompose. Treat beans as a soil-fertility investment for your next crop rotation, not as a mid-season fertility fix for whatever’s growing beside them this summer.
Deep and shallow roots don’t compete. Carrot tap roots grow 6–12 inches down; lettuce stays in the top 4 inches. Tomatoes develop deep anchor roots; radishes occupy the top soil layer. Pairing these crops means they access nutrients from entirely different soil depths — no competition, more total food per square foot. In loose, well-amended raised bed soil, rooting depths are more predictable than in compacted ground, which is another reason these pairings perform reliably here.
The raised bed’s defined borders keep all of this working. Fennel can’t drift toward your tomatoes. Squash can’t invade your lettuce patch. You plant, you place, and the system holds.

The Three Sisters in a 4×8 Raised Bed
The Three Sisters — corn, beans, and squash — is the oldest companion planting system in North America, developed by Haudenosaunee (Iroquois) farmers over centuries. In its traditional form, the system uses mounds (called “hills”) spaced 3 to 4 feet apart in every direction, with 5 to 7 corn seeds per mound. That spacing works in an open field or large garden. In a 4×8 raised bed, it needs adjusting.
The 4×8 Three Sisters layout, step by step:
- Corn first. Plant two staggered rows of corn down the length of the bed, spacing seeds 8–10 inches apart. You’ll fit 8–10 stalks total — the minimum you need for wind pollination. Corn pollinates in a block, not a single line; without that critical mass of pollen-producing tassels, kernel set drops significantly. Wait until soil temperature reaches 60°F (mid-May in USDA zones 5–6; earlier in warmer zones).
- Beans second. When corn reaches 6 inches tall — typically 2–3 weeks after germination — plant 2–3 pole bean seeds at the base of each stalk, about 4–6 inches out. Beans will climb the corn once both are established. Timing matters: plant beans too early and their vines will tangle with corn tassels before pollen drops, reducing your corn yield.
- Squash third. Two weeks after bean germination, plant one summer squash or zucchini plant at each short end of the bed. The vines will spill out beyond the bed — plan for this. Squash vines can sprawl 4–6 feet; in a raised bed context, they’ll use the surrounding path as their territory.
Each plant has a specific role. Corn is the vertical structure for beans to climb. Beans are a soil-fertility investment: the nitrogen they fix is released to the bed primarily after their roots decompose, which means this season’s beans are feeding next season’s heavy feeders. Squash is the living mulch — its broad leaves shade the soil between corn rows, suppressing weeds, slowing moisture loss, and deterring browsers like rabbits (the rough, slightly prickly leaf texture discourages browsing).
Small-bed compromise: In a 4×4 bed, drop the squash entirely. A 4×4 Three Sisters with any vining squash variety will be overrun within a few weeks. If you want the ground-cover layer, use a bush zucchini at the far end — it still sprawls, but less aggressively. Winter squash varieties like ‘Delicata’ or ‘Acorn’ are completely impractical in any raised bed under 8 feet long.
Tomato Companions — the Best Pairings and What to Avoid
Tomatoes attract a specific pest community — hornworms, whiteflies, thrips, and nematodes — and the right companions address each threat through distinct mechanisms. For a full deep-dive on growing tomatoes from transplant to harvest, see our tomato growing guide.
Basil (interplant every 12–18 inches throughout the bed). Basil continuously emits linalool and chavicol — volatile compounds that prime tomato plants’ jasmonic acid signaling pathway, essentially putting the tomato’s immune response on standby before pests arrive. Research found a roughly 20% yield advantage for tomatoes grown with basil at adequate density throughout the bed, compared to tomatoes without companions. The emphasis on density is deliberate: a single basil plant at one corner of a 4×8 bed doesn’t create the aromatic field needed to confuse pests. Alternate basil and tomato plants across the full bed.
French marigolds — plant 6 to 8 weeks before tomatoes go in. French marigolds (Tagetes patula) produce alpha-terthienyl in their roots, a compound that suppresses root-knot nematodes. The timing detail that most guides skip: marigolds require approximately two months in the ground before the suppression effect becomes meaningful. Planting marigolds on transplant day does almost nothing for nematodes that season. Start them from seed in late winter, or buy transplants and get them in the ground 6–8 weeks before your tomatoes. After the season, leave the roots in the soil — the compound persists in the decomposing root material.
Carrots. Plant in the gaps between tomato rows. Their tap roots (6–12 inches deep) occupy a completely different soil zone from tomato roots, so there’s no resource competition. Carrots also loosen the soil around the tomato root zone as they grow, and when you pull them at harvest, the removal creates small aeration channels. I’ve found that shorter varieties like ‘Chantenay’ or ‘Danvers 126’ work best in raised beds — their compact root length suits most bed depths without hitting the bottom.
Parsley. Place along the bed edge where it will get partial shade once the tomato canopy fills in. In its first year, parsley is a culinary herb. In its second year — parsley is biennial — it flowers and produces small umbrella-shaped flower clusters (umbels) that attract parasitic wasps. Those wasps target tomato hornworm eggs specifically. Plant a few parsley plants each season and let half overwinter to bloom in year two; you get continuous pest protection alongside a continuous harvest.
What to avoid near tomatoes:
- Fennel. Fennel releases anethole and fenchone from its roots — allelopathic compounds that stunt the growth of tomatoes, peppers, and most other vegetables. The effect persists in the soil for two to three growing seasons after you remove the fennel plant. Grow fennel in a container or a completely separate bed, well away from your vegetable patch.
- Brassicas (cabbage, broccoli, kale, Brussels sprouts). Brassicas and tomatoes compete heavily for calcium in a confined bed, and they share susceptibility to certain fungal diseases. Brassica glucosinolates can also interfere with tomato seedling establishment.
- Potatoes. Tomatoes and potatoes share the same disease pressures — late blight (Phytophthora infestans) spreads rapidly between them. Never plant them in the same bed, or even adjacent beds if you can avoid it.
- Corn (in the same bed as tomatoes). Tomato fruitworm and corn earworm are the same insect (Helicoverpa zea). Planting tomatoes and corn in the same raised bed concentrates this pest in one location. Keep them in separate beds.
Pepper Companions in a Raised Bed
Peppers are compact, heat-loving, and shallow-rooted — an ideal profile for raised bed pairing. They grow to 18–30 inches depending on variety and want consistent warmth and moisture at the root zone throughout summer.
Basil. The same volatile compound mechanism that benefits tomatoes applies to peppers. Basil repels whiteflies and thrips, which are among the most common pepper pests in summer. In a raised bed, basil’s canopy (18–24 inches tall at maturity) also shades the soil between pepper plants, slowing moisture evaporation — a practical advantage since raised beds dry out faster than in-ground soil during July heat.
Carrots. A near-perfect raised bed pairing: pepper roots stay in the top 6–8 inches of soil; carrot tap roots go deeper. No resource competition. A practical layout: set pepper transplants 18–24 inches apart in two rows, then sow carrot seeds in the spaces between them. Mid-season carrot harvest loosens the soil around the pepper root zone without disturbing the peppers themselves.
Spinach and lettuce as living mulch. Plant spinach or loose-leaf lettuce around the base of pepper plants in early summer. The greens shade the soil and moderate root temperature — peppers produce more fruit when their roots stay consistently cool and moist through August. The greens will bolt in peak summer heat, but by then the pepper canopy fills in and shades the soil on its own. The timing is essentially self-managing.
Marigolds. Same timing rule as with tomatoes: 6–8 weeks in the ground before nematode suppression becomes meaningful. Use them as a perimeter border for any bed containing peppers.
Stop missing your zone's planting windows.
Select your US zone and month — get a complete checklist of what to plant, prune, feed, and protect right now.
→ View My Garden CalendarAvoid near peppers: Fennel is allelopathic to all nightshades, including peppers. If you grow beans near peppers, use bush varieties only and position them at the north end of the bed so they don’t shade peppers during peak daylight hours.
Lettuce and Greens — Fast Crops That Fill Every Gap
The most underused raised bed strategy is the timing gap between spring and summer. Cool-weather greens — lettuce, spinach, arugula — thrive in 45–65°F soil temperatures that would stress tomatoes or peppers. They’re ready to go in the ground in late March or early April. Your tomato transplants go in late May. That 6–8 week window is a free harvest if you use it.
Radishes as gap-fillers and row markers. Radishes mature in 3–4 weeks from seed. Plant them between lettuce rows, or in any empty section of a bed waiting for a summer crop. They mark rows of slower-germinating seeds, loosen the soil surface for anything planted behind them, and are harvested long before they crowd out whatever follows.
Chives as aphid barriers. Plant chives between lettuce rows at 14–16 inch intervals — one chive row for every two rows of lettuce works well. The sulfur compounds in chives deter aphids through the same allium repellence mechanism that makes garlic useful near roses. A secondary benefit: chive flowers in early spring — the small purple pom-poms — are one of the first nectar sources available to pollinators and beneficial insects in a cool-spring garden, before most other flowers open.
Green onions and scallions. Ready in 60–70 days from seed and harvestable progressively — pull outer stems as needed. Their shallow bulbs don’t disturb neighboring root systems. Plant them in the gaps between spring greens and you’ll be harvesting scallions well into the transition to summer crops.
The succession sequence: In USDA zones 5–6, plant your spring bed (lettuce, spinach, arugula, radishes, chives, scallions) in early to mid-April. Start tomato and pepper seedlings indoors in late February. By late-May transplant day, much of the spring bed will be finishing or finished. The greens leave the soil loose, slightly enriched from root decomposition, and weed-suppressed for the six weeks before summer crops arrive — a better seedbed than bare soil.

The Herb Placement Guide for Raised Beds
Herbs earn their place twice over: as pest deterrents and as culinary crops. The key is placement — herbs along the bed edge leave the center clear for taller vegetables without shading them out. For a visual reference on which plants pair across the whole garden, see our companion planting chart.
Basil: Interplant throughout the bed near tomatoes and peppers, 12–18 inches from each plant. Avoid planting basil directly adjacent to sage — growth inhibition between the two has been reported, though the mechanism isn’t well-studied.
Parsley: Position at the bed edge or near the base of tomato cages where it receives partial shade as the season progresses. Allow half your parsley plants to overwinter to bloom in their second year — the umbel flowers attract parasitic wasps that target hornworm and caterpillar eggs.
Chives: Versatile border herb. Excellent near carrots (deters carrot flies), near brassicas (deters aphids and cabbage worm), and as a gap-filler between any crops. Chive plants stay compact at 12–18 inches and won’t crowd neighbors.
Thyme: Plant near brassicas — kale, cabbage, broccoli. Thyme’s volatile oils deter cabbage worm, whitefly, and cabbage maggot. At 6–8 inches tall, it won’t shade adjacent crops and thrives at the bed edge.
Sage: Place near brassicas and carrots. Avoid near cucumbers and onions — anecdotal reports suggest incompatibility, though peer-reviewed evidence is limited. Sage grows to 18–24 inches, so position it where it won’t shade smaller companions. In zones 5–6, sage is reliably perennial and may die back in severe winters but usually regrows from the root crown.
Rosemary: Best at the corners of the raised bed where its woody structure (2–3 feet at maturity) won’t crowd other plants. Deters bean beetles, carrot flies, and cabbage moths. In zones 5–6, rosemary is cold-sensitive — bring it indoors in a container after first frost, or replace it annually as a summer annual.
Companion Planting Quick Reference
| Crop | Good Companions | Bad Companions | Key Reason |
|---|---|---|---|
| Tomatoes | Basil, French marigolds, carrots, parsley, chives, borage | Fennel, potatoes, brassicas, corn | Basil VOCs prime tomato defense; marigolds suppress nematodes via root compounds |
| Peppers | Basil, carrots, spinach, chives, marigolds | Fennel, brassicas | Basil repels whiteflies and thrips; carrot and pepper roots use different soil depths |
| Corn | Beans, squash (Three Sisters), nasturtium | Tomatoes, celery | Beans climb corn; squash shades soil; tomatoes and corn share the same earworm pest |
| Beans (pole) | Corn, squash, carrots, cucumbers | Onions, garlic, leeks, fennel | Nitrogen fixation benefits the bed after root decomposition; alliums inhibit bean germination |
| Lettuce | Carrots, radishes, chives, strawberries, beets | Fennel | Root depth difference eliminates competition; chives deter aphids via sulfur compounds |
| Carrots | Chives, rosemary, sage, leeks, tomatoes | Dill (delays maturity), fennel | Aromatics deter carrot fly; tap roots loosen soil for shallow-rooted companions |
| Squash / Zucchini | Corn, beans, nasturtium, borage | Potatoes, fennel | Nasturtium reduces squash bug populations; borage deters hornworms |
| Basil | Tomatoes, peppers, oregano, chamomile | Sage, thyme (proximity inhibition reported) | VOC emissions (linalool, chavicol) disrupt pest host-finding by scent |
4×8 Raised Bed Planting Layout by Season
| Season | Crops to Plant | Companion Strategy | Notes (Zones 5–7) |
|---|---|---|---|
| Spring (April–May) | Lettuce, spinach, arugula, radishes, chives, scallions, peas | Interplant radishes between lettuce rows as row markers; place chives between greens as an aphid barrier | Sow 4–6 weeks before last frost; harvest aggressively to make room for summer transplants by late May |
| Summer (late May–September) | Tomatoes or peppers (center rows), basil (interspersed every 12–18”), French marigolds (perimeter), carrots (gaps between tomatoes or peppers) | Alternate basil and tomatoes across full bed; marigold border on all four sides; plant marigolds 6–8 weeks before tomato transplants go in | Transplant after last frost: late May in zone 5–6, mid-May in zone 7; marigolds started in early April in time for full nematode effect |
| Fall (August–October) | Second lettuce planting, kale, spinach, arugula, radishes | Sow fall greens in spaces vacated by spent summer crops; leave chive clumps in place as continuing aphid barrier | Sow 8–10 weeks before first fall frost; kale flavor improves after light frosts below 28°F |
Frequently Asked Questions
Can I plant tomatoes and peppers in the same raised bed?
Yes — tomatoes and peppers are compatible and share many of the same companion plants (basil, marigolds, carrots). In a 4×8 bed, plant one row of tomatoes and one row of peppers with basil interplanted throughout. The main consideration is size: indeterminate tomatoes grow very large and will shade peppers if you don’t manage them aggressively with cages and pruning. Use determinate tomato varieties in a shared bed with peppers.
Do marigolds really keep pests away?
French marigolds (Tagetes patula) do suppress root-knot nematodes — but only when planted at least 6–8 weeks before the crops they’re protecting, and only when their roots have adequate time to concentrate compounds in the surrounding soil. Their continuous open flowers also attract hoverflies and parasitic wasps that prey on aphids and soft-bodied pests above ground. The pest-repelling reputation of marigolds is partially earned and partially overstated — they work well for specific threats (nematodes, some aphid predation) and are less effective as a general all-pest deterrent.
How far apart should companions be in a raised bed?
Aromatic companions like basil and chives need to be close enough to create an olfactory effect — within 12–18 inches of the crop they’re protecting. For root-depth pairs (carrots and lettuce, carrots and peppers), standard vegetable spacing is fine because the benefit comes from underground, not proximity above soil. For marigolds targeting soil nematodes, even coverage across the whole bed matters more than how close individual plants are to each other.
Can beans replace fertilizer for my tomatoes this season?
No — not in the same season. Research published in BMC Plant Biology found that common beans don’t begin meaningful nitrogen fixation until week 8, and that fixed nitrogen is only available to surrounding soil after the bean roots decompose. Grow beans in a bed one season, incorporate the spent roots and plant material, and follow with heavy feeders like tomatoes the following year. That’s the crop rotation where the bean nitrogen investment actually pays off.
What is the single worst companion planting mistake in a raised bed?
Planting fennel in or near a vegetable bed. Fennel’s root exudates — anethole and fenchone — are allelopathic to tomatoes, peppers, and most other vegetables, and the compounds persist in the soil for two to three growing seasons after you remove the plant. If fennel has self-seeded in your raised bed from a previous year, remove it early and avoid planting sensitive crops in that bed for at least one full growing season afterward.
Sources
- University of Minnesota Extension. “Companion planting in home gardens.” https://extension.umn.edu/planting-and-growing-guides/companion-planting-home-gardens
- West Virginia University Extension. “Legumes & Nitrogen Fixation.” https://extension.wvu.edu/lawn-gardening-pests/news/2021/11/01/legumes-nitrogen-fixation
- Gresta F, et al. “Nitrogen fixation by common beans in crop mixtures is influenced by growth rate of associated species.” BMC Plant Biology 23, 236 (2023). https://pmc.ncbi.nlm.nih.gov/articles/PMC10184335/
- Cornell Garden-Based Learning. “How to Plant the Three Sisters.” https://gardening.cals.cornell.edu/lessons/curriculum-classics/the-three-sisters-exploring-an-iroquois-garden/how-to-plant-the-three-sisters/
- Virginia Cooperative Extension. “Companion Planting in Gardening.” Publication SPES-620. https://www.pubs.ext.vt.edu/content/pubs_ext_vt_edu/en/SPES/spes-620.html









