Vegetable Garden Layout Plans & Spacing: The Complete Companion Planting Guide
Vegetable Gardening

Vegetable Garden Layout Plans & Spacing: The Complete Companion Planting Guide

The right spacing chart and the right neighbors decide more of your harvest than almost anything else you do. Here’s exactly how far apart to plant, and what to plant next to what.

πŸ“– 9 min read 🌱 Vegetable Gardening πŸͺ΄ Beginner Friendly
Quick answer: Most vegetables need 12–36 inches between plants depending on their mature size, and pairing them with the right companions β€” like basil near tomatoes or onions near carrots β€” improves flavor, deters pests, and makes better use of your space. Crowd them, or plant the wrong neighbors together, and both spacing and yield suffer.
Healthy raised bed vegetable garden showing multiple vegetables planted with proper spacing
A well-planned layout β€” correct spacing plus compatible companions β€” is what separates a struggling bed from a productive one.

Every vegetable garden layout plan starts with two questions: how much room does each plant actually need at full size, and which plants help each other when grown side by side? Get both right and you’ll see fewer pest problems, better airflow, and a noticeably bigger harvest from the same square footage. This guide covers the full vegetable garden plant spacing chart first, then walks through companion planting β€” vegetable by vegetable β€” so you can plan your whole bed in one sitting.

Vegetable Garden Spacing Chart

Bookmark or screenshot this vegetable garden spacing chart β€” it’s the fastest way to plan a layout, whether you’re working with traditional rows or a raised bed.

VegetableSpacing Between PlantsSpacing Between RowsBest Companions
Tomato18–36 in36–48 inBasil, marigold, carrot, onion
Pepper18–24 in24–36 inBasil, onion, spinach
Cucumber24–36 in48–60 inRadish, nasturtium, corn, beans
Carrot2–4 in12–18 inOnion, leek, rosemary, tomato
Onion2–4 in12–18 inCarrot, beet, lettuce, strawberry
Broccoli18–24 in24–36 inDill, thyme, sage, beet, onion
Beans (bush)2–4 in18–24 inCorn, squash, cucumber, radish
Beans (pole)4–6 in24–36 inCorn, radish, summer savory
Zucchini / Squash24–36 in48–60 inCorn, beans, nasturtium, marigold
Lettuce6–12 in12–18 inCarrot, radish, cucumber, chives

Tip: this table doubles as a printable companion planting guide β€” save it to your phone or print it to keep by your garden beds.

Vegetable garden rows showing correct plant spacing between crops
Measure at planting time using mature spacing, not seedling size β€” young plants look far apart until they fill in.

Tomato Plant Spacing Chart & Companion Planting

πŸ… Tomatoes

How far apart to plant tomatoes β€” staked, caged, and raised bed spacing
Spacing

Staked or caged tomatoes: 18–24 inches apart. Sprawling, unstaked varieties: 36 inches. Rows: 36–48 inches apart. In a raised bed, use the tighter end of the range (18 inches) since airflow between beds compensates for closer in-row spacing.

Best Companions
  • Basil β€” repels aphids and hornworms, and is said to improve flavor
  • Marigold β€” deters nematodes and whiteflies
  • Carrot and onion β€” make efficient use of root space below the tomato

Avoid: cabbage family, corn, potatoes, fennel, and dill nearby β€” corn attracts the same pest (the tomato fruitworm is also the corn earworm), and tomatoes and potatoes share blight susceptibility.

Tomato plants growing next to marigolds as companion plants in a vegetable garden
Marigolds planted along a tomato row help keep nematodes and whiteflies down without a single spray.

Pepper Plant Spacing & Companion Plants for Peppers

🌢️ Peppers

Bell pepper plant spacing and companion plants for peppers
Spacing

18–24 inches between plants, with 24–36 inches between rows. Bell peppers and sweet peppers follow the same range; hot pepper varieties (like jalapeΓ±o) can be spaced slightly closer, around 16–18 inches, since the plants stay more compact.

Best Companions
  • Basil β€” the same aphid and thrip protection it gives tomatoes
  • Onion and spinach β€” shallow roots that don’t compete for space
  • Marigold β€” general pest deterrent

Avoid: fennel and kohlrabi, which stunt pepper growth through root competition and allelopathic effects.

What Not to Plant With Cucumbers

Cucumbers are easygoing about spacing but picky about neighbors. Give vining types 48–60 inches between rows (or grow them up a trellis to cut that in half), and 24–36 inches between plants along the row.

πŸ₯’ Cucumbers

Good and bad companions for cucumbers
Good Companions
  • Radish β€” deters cucumber beetles
  • Nasturtium β€” traps aphids and pulls them away from the vine
  • Corn and beans β€” classic trellis-sharing combination
  • Dill β€” attracts predatory insects that eat cucumber pests
What Not to Plant With Cucumbers
  • Potatoes β€” both are prone to blight, and cucumbers can make potato harvest more difficult
  • Aromatic herbs like sage β€” can slow cucumber growth and affect flavor
  • Melons and squash in tight spacing β€” same pests (squash bugs, cucumber beetles) concentrate in one area

Carrot and Onion Companion Planting

Carrots and onions are one of the most reliable companion planting for vegetables and herbs combinations in any garden β€” and both are compact enough to tuck into small spaces.

πŸ₯•πŸ§… Carrots & Onions

Why this classic pairing works
Spacing

Carrots: 2–4 inches apart, rows 12–18 inches apart. Onions: 2–4 inches apart, rows 12–18 inches apart. Because both are narrow and shallow-rooted, they can be interplanted in the same row without competing for space.

Why They Work Together

The onion’s strong scent masks the smell that attracts carrot rust flies, while carrots loosen the soil for the onion’s shallow roots. Add rosemary or sage nearby for extra carrot fly protection. Keep dill away from carrots β€” dill can cross-pollinate and stunt carrot root development.

Broccoli Companion Plants & Spacing

πŸ₯¦ Broccoli

Spacing and companions for broccoli and other brassicas
Spacing

18–24 inches between plants, 24–36 inches between rows. Broccoli needs consistent moisture and full sun, so avoid crowding it under taller plants.

Best Companions
  • Dill and thyme β€” repel cabbage moths and loopers
  • Beet, onion, and celery β€” don’t compete for the same nutrients
  • Nasturtium and marigold β€” trap crops for aphids and beetles

Avoid: tomatoes, strawberries, and pole beans, which compete heavily with brassicas for nutrients.

Beans Companion Plants & Spacing

🫘 Beans

Bush and pole bean spacing plus companions
Spacing

Bush beans: 2–4 inches apart, rows 18–24 inches apart. Pole beans: 4–6 inches apart, rows 24–36 inches apart, with a trellis or support for climbing.

Best Companions
  • Corn and squash β€” the classic Three Sisters trio
  • Cucumber and radish β€” share space and pest-deterrent benefits
  • Summer savory β€” improves bean flavor and repels bean beetles

Avoid: onions, garlic, leeks, and chives β€” the allium family suppresses the nitrogen-fixing bacteria beans rely on.

Companion Plants for Zucchini

πŸŽƒ Zucchini & Summer Squash

Spacing and companion plants for zucchini
Spacing

24–36 inches between plants, 48–60 inches between rows β€” zucchini vines sprawl wide, so give it more room than most other vegetables in this chart.

Best Companions
  • Corn and beans β€” Three Sisters combination
  • Nasturtium and marigold β€” draw squash bugs away from the fruit
  • Buckwheat β€” attracts beneficial insects that eat squash-bug eggs

Avoid: potatoes nearby β€” both compete for the same nutrients and are prone to overlapping pest issues.

Lettuce Plant Spacing

πŸ₯¬ Lettuce

Spacing for loose-leaf and head lettuce
Spacing

6–12 inches between plants, 12–18 inches between rows. Loose-leaf types can go on the tighter end; head lettuce varieties need the full 12 inches to form properly.

Best Companions
  • Carrot and radish β€” different root depths, no competition below ground
  • Cucumber β€” lettuce enjoys the light shade cucumber vines provide in hot weather
  • Chives and strawberries β€” compact, low-competition neighbors

The Three Sisters Planting Method

The three sisters planting method is one of the oldest companion planting systems, developed by Indigenous farmers in North America: corn, pole beans, and squash grown together in the same mound.

Corn stalks with climbing bean vines and squash growing together using the Three Sisters planting method
Corn, beans, and squash growing together β€” each sister supports the next.

Each plant does a job the others can’t do for themselves:

  • Corn grows tall first and becomes a natural trellis for the climbing beans.
  • Beans fix nitrogen in the soil, feeding the heavy-feeding corn and squash.
  • Squash spreads wide, low leaves that shade the soil, suppressing weeds and holding in moisture.

To plant it: sow corn first, then once it’s about 6 inches tall, plant beans around the base of each corn stalk, and squash around the outer edge of the mound. Space each mound roughly 3–4 feet from the next.

See how spacing and companion planting come together in a real garden layout:

Vegetables That Should Not Be Planted Together

Just as important as good pairings is knowing which vegetables should not be planted together. These combinations either compete for the same nutrients, attract shared pests, or actively stunt each other’s growth.

VegetableAvoid Planting NearWhy
TomatoPotato, corn, fennelShared blight risk and shared pests (fruitworm/earworm)
BeansOnion, garlic, leek, chiveAlliums suppress the nitrogen-fixing bacteria beans need
CarrotDillCross-pollination and stunted root growth
CucumberPotato, aromatic herbs (sage)Competing growth needs and shared blight risk
Broccoli / Cabbage familyTomato, strawberry, pole beansHeavy nutrient competition
Squash / ZucchiniPotatoCompete for nutrients, overlapping pest issues
Close up of a well-spaced healthy vegetable garden bed with compatible plants growing together
When spacing and companions are both right, a bed like this needs far less troubleshooting later in the season.

Tips for Spacing Vegetables in a Raised Bed or Small Garden

  • Plan on paper first β€” sketch your vegetable garden layout plan before you plant, using the mature spacing from the chart above, not seedling size.
  • Use the tighter end of the spacing range in raised beds β€” raised beds have better soil and drainage, so plants can sit slightly closer than in traditional rows.
  • Group companions, not just compatible spacing β€” plant tomato-basil-marigold or carrot-onion clusters together rather than spreading companions across the whole bed.
  • Go vertical where you can β€” trellising cucumbers, pole beans, and vining squash cuts their footprint by half or more.
  • Leave a buffer between unrelated families β€” a foot of space or a row of herbs between brassicas and nightshades reduces shared pest pressure.
  • Rotate crops each season β€” even with perfect companions, planting the same family in the same spot year after year builds up soil-borne pests and disease.

Frequently Asked Questions

How far apart should I plant vegetables in a raised bed versus a row garden?

In a raised bed, use the shorter end of the plant-spacing range since the soil is looser and better draining, letting roots access nutrients from a smaller area. In traditional rows, stick to the wider end of the range and use the full row spacing to leave room for a hoe or foot traffic between rows.

Can I use square foot gardening spacing instead of this chart?

Yes. Square foot gardening is simply a denser version of the same spacing principle β€” instead of rows, you divide a bed into 1-foot squares and plant a set number of a given vegetable per square (for example, one tomato per square, but sixteen carrots). Use this chart’s plant-to-plant spacing to calculate how many will fit in each square foot.

Does companion planting actually work, or is it just folklore?

Many of the pairings in this guide β€” like basil repelling aphids from tomatoes, or the nitrogen-fixing benefit beans give corn β€” are backed by university extension research and agricultural studies, not just tradition. Others, like flavor improvement from certain herb pairings, are less scientifically proven but widely reported by gardeners and carry no real downside to trying.

What vegetables should never be planted next to each other?

The most consistent conflicts are tomatoes with potatoes or corn, beans with any allium (onion, garlic, leek, chive), and brassicas like broccoli with tomatoes or strawberries. See the full table above for the reasoning behind each pairing.

How far apart should I plant tomatoes in a raised bed specifically?

18 inches apart is usually enough in a raised bed if you’re staking or caging the plants, since raised beds allow roots to spread more efficiently in richer soil. In open ground, give tomatoes closer to 24–36 inches, especially for sprawling, unstaked varieties.

The takeaway: a good vegetable garden layout comes down to two simple checks before you plant anything β€” does this vegetable have room to reach full size, and is its neighbor helping or competing with it? Use the spacing chart and companion pairings above as your starting layout, then adjust next season based on what thrived.
Vegetable Gardening