Plant Spacing Calculator

Enter your bed size and a spacing, and get plants per row, row count, total plants, a buffer for losses and a transplant budget.

📋 What's on this page: Use the free calculator to lay out a raised bed, vegetable patch or flower border, or scroll down for the guide: the difference between in-row and between-row spacing, why offset rows fit more plants in the same soil, a spacing chart for 20 common crops, a worked 4 by 8 raised bed example, and the spacing mistakes that cost you a harvest.

Plant Spacing Calculator

Pick a bed shape and a crop, then read the plant count and cost

Inputs

Measure the soil, not the frame. A 4 ft wide bed keeps everything within arm's reach from both sides.

Presets fill the spacing boxes below. Switch back to custom to type your own numbers.

Center to center between plants in the same row.

Set equal to in-row spacing for a bed you never walk into.

Set to 0 if you are sowing seed and only want the count.

Results

32
Plants Needed
36
Plants to Buy with Buffer
32.0
Planting Area (sq ft)
8
Plants Per Row
4
Number of Rows
$144
Transplant Cost

How to Use This Plant Spacing Calculator

Start with the shape of the bed. A rectangle covers raised beds, in-ground rows, and the classic 4 by 8 foot box. A circle handles half barrels, stock tanks and round herb planters. Custom area is the escape hatch for a kidney-shaped border or a bed that tapers along a fence line, where you add up the pieces yourself and type in the total.

Then pick a crop from the preset list, or leave it on custom and type the spacing straight off the seed packet. The two spacing boxes are the heart of the tool. In-row spacing is the center-to-center distance between neighbors in the same row. Between-row spacing is the gap from one row to the next, and it is usually the wider of the two because it has to fit your feet, a hoe and a harvest basket.

The layout toggle changes the packing. Square grid lines every plant up on the same lattice, which is easy to hoe and easy to count. Offset rows shifts every other row by half a spacing so plants sit in the gaps ahead of them, which pulls the rows closer together. The calculator sets that row distance for you when you pick this pattern, so the between-row box locks itself.

Last, set the buffer and a price per plant. The buffer is the honest part of the calculation: some seeds never come up and some transplants sulk and die. A 10 percent cushion is a fair default, and the transplant cost line tells you what the plan costs before you get to the nursery.

Square Grid vs Offset Rows

Lay plants out on a square grid and each plant has four neighbors at the spacing distance. That is the mental picture most gardeners carry, and it is what a seed packet diagram usually shows.

Offset the rows by half a spacing and something changes. Each plant now sits at the center of a hexagon with six neighbors, all the same distance away. Six equally distant neighbors beat four, so plants can sit closer without crowding each other. The row distance drops to 86.6 percent of the in-row spacing, which is the height of an equilateral triangle with that side length. Over a large field the gain settles at about 15 percent more plants in the same soil.

Small beds do not behave like fields, and this is where the arithmetic gets interesting. A whole extra row either fits or it does not, so the gain on a raised bed jumps in steps. Tighten the rows from 12 inches to 10.4 inches and a 4 foot wide bed goes from 4 rows to 5, which is a 25 percent jump, not 15. Slightly different bed dimensions and the same change buys you nothing. The calculator counts the rows that actually fit rather than applying a flat percentage, so trust the number it gives for your bed over any rule of thumb.

The practical tradeoff is maintenance. Straight rows are easy to hoe, easy to mark with a string line, and easy to water with a drip line laid in a straight run. Triangular spacing gives that up. If your weed control is a hoe and your irrigation is straight drip tape, square grid wins on labor. If your weed control is mulch and you water by hand, offset rows win on yield per square foot.

LayoutDistinct Neighbors at Equal DistanceRow Distance at 12 in SpacingPlants in a 4 x 8 Bed
Square grid412 in4 rows x 8 = 32
Offset rows610.4 in5 rows x 8 = 40

Worth knowing before you commit: crowding works differently by crop. Leafy greens and root crops tolerate tighter spacing well, and intensive growers routinely plant lettuce and carrots far closer than the packet says. Fruiting crops that depend on airflow, tomatoes, squash, cucumbers and anything that catches powdery mildew, punish crowding with disease. When in doubt on those, use the wider of the two numbers you are considering.

Plant Spacing Chart for Common Crops

The values below are typical home garden spacings drawn from seed packet guidance and Cooperative Extension recommendations. They assume a healthy, well-drained soil and full sun. Shade, poor soil and disease pressure all argue for wider spacing.

CropIn-RowBetween RowsPlants in a 4 x 8 Bed
Tomato (staked)24 in36 in8
Pepper18 in24 in12
Zucchini / Summer Squash24 in36 in8
Cucumber (trellised)12 in36 in16
Broccoli / Cabbage18 in24 in12
Kale12 in18 in24
Lettuce (head)12 in12 in32
Spinach / Leaf Lettuce6 in9 in96
Bush Bean6 in18 in48
Pea4 in18 in72
Sweet Corn12 in30 in16
Onion4 in12 in96
Garlic6 in12 in64
Carrot3 in12 in128
Radish3 in6 in256
Strawberry12 in18 in24
Basil12 in12 in32
Marigold10 in10 in50
Zinnia9 in12 in44
Sunflower18 in24 in12

The last column counts a square grid in a standard 4 by 8 raised bed, which holds 32 square feet of soil. The first plant in each row sits at the bed edge and the rest follow at the spacing, so the count is a whole number of rows rather than an area divided by an area. Treat it as a starting point, not a rule. Two gardeners with identical beds and identical packets will land on different numbers because one hovers with a hoe and the other mulches heavily.

Worked Example: Planting a 4 by 8 Raised Bed

Take a 4 by 8 foot raised bed, which is 32 square feet of soil. The plan is staked tomatoes, one crop, square grid.

At a 24 inch in-row spacing, the 8 foot length holds 4 plants with 24 inches left over at the end, so 5 plants can technically fit if you plant to the very edge. Most gardeners stop at 4 to keep foliage off the frame. At a 36 inch between-row spacing, the 4 foot width fits 2 rows. That gives 4 plants per row times 2 rows, or 8 plants total. Add a 10 percent buffer and you buy 9 transplants.

Swap the crop to lettuce at 12 inch spacing both ways. Now the bed holds 8 across and 4 down, so 32 plants, and a 10 percent buffer takes it to 36. At $4 per transplant that is $144 of lettuce, which is a good moment to check the seed packet. Lettuce germinates easily and a $3 packet holds hundreds of seeds, so direct sowing drops the cost to near nothing and the spacing math still tells you how thick to sow.

Now switch the tomatoes to offset rows. The row distance drops from 36 inches to 24 times 0.866, which is about 21 inches, and a third row suddenly fits across the 4 foot width. The count goes from 8 to 12. That is a 50 percent jump on this bed, well above the 15 percent you would see in a field, and it comes entirely from the boundary: 36 inch rows waste a foot and a half of the bed, while 21 inch rows use it. Run the same two layouts on a bed 3 inches narrower and the third row stops fitting, so the gain collapses to zero. The calculator counts what fits rather than guessing at a percentage.

In-Row vs Between-Row Spacing

New gardeners often assume one spacing number describes the whole planting. Seed packets encourage that by printing a single figure, usually the in-row distance. The second number matters just as much and it is the one that gets ignored.

Between-row spacing exists to serve you, not the plant. It has to fit a path wide enough to kneel in, a wheelbarrow, a hose run, or a ladder for trellising. That is why a staked tomato sits 24 inches from its neighbor in the row but 36 inches from the next row, even though the plant's root zone is roughly the same in both directions. The extra foot is a walkway.

In a raised bed you reach from the sides, which is exactly why 4 feet is the standard width. Once a bed is 4 feet wide, no path is needed inside it, so in-row and between-row spacing can be identical and no soil is wasted on aisles. Push a bed to 5 or 6 feet wide and you either walk in it, compacting the soil you spent money to build, or you strain to reach the middle. That single constraint explains more raised bed geometry than any planting guide.

One more consideration for the between-row number. Airflow moves down a row far more freely than across a dense block, so wider row spacing is the cheapest disease control available on tomatoes, cucumbers and squash. If your plants mildewed last August, widening the rows by 6 inches is a more reliable fix than any spray.

5 Plant Spacing Mistakes

  1. Measuring the bed frame instead of the soil. A 4 by 8 bed built from 2 inch lumber holds about 3.7 by 7.7 feet of actual soil, which is 28 square feet rather than 32. On a tight spacing like carrots at 3 inches that difference is a hundred plants. Measure the inside of the frame on both axes.
  2. Ignoring mature spread. Spacing is set by how wide the plant gets, not how wide it looks in a 4 inch nursery pot. A zucchini seedling fits on 12 inch centers comfortably and then swallows the bed by July. Read the mature spread on the tag and add an inch or two.
  3. Planting to the very edge. A plant at the edge of a bed has its roots in the hottest, driest soil in the bed and its foliage hangs over the frame where the mower catches it. Pull the outer row in by half a spacing and accept a slightly lower count.
  4. Using one spacing for a mixed bed. A bed with tomatoes, basil and lettuce needs a layout that starts with the big plants. Place the tomatoes first at their spacing, then fill the leftover gaps with the small crops. Running a single grid across the whole bed wastes the space between tomato plants.
  5. Skipping the buffer, then paying for it twice. Losing three of twelve transplants in a bed means a gap that stays bare all season, and driving back to the nursery for three more costs more in fuel than the extra plants would have. Buy the buffer up front or keep a few spares in pots.

You Might Also Need

Tools that pair with garden bed planning: