How to calculate plant spacing in a rectangular bed
Enter bed length in the direction the rows run and bed width across the rows. Enter center-to-center spacing along and between rows. Subtract the chosen end margin from both ends, and subtract the side margin from both sides.
Aligned positions along a row = floor(usable length ÷ within-row spacing) + 1. Aligned rows = floor(usable width ÷ between-row spacing) + 1.
The first row starts at the side margin. Its first plant starts at the end margin. A center at the far margin is included. If either pair of margins crosses, the count is zero. Margins that meet exactly can still leave one center along that dimension. For an 8 ft × 4 ft bed with 12 in spacing and 6 in margins, the aligned result is 8 plants in each of 4 rows, or 32 positions.
Staggered and equilateral triangular plant spacing
Staggered rows shift the first plant in even rows by half the within-row spacing. Count those rows from their shifted start and keep the same far margin. In the example bed, two odd rows have 8 positions each and two even rows have 7, for 30 positions at the same row pitch.
Equilateral triangular rows use the same half-spacing offset and a derived row pitch of √3 ÷ 2 times the within-row spacing. That places each nearest diagonal neighbor at the same center distance as its neighbor within the row. The count follows the orientation and starting position you enter. A different direction or start can give a different finite count.
How to calculate plant population per acre or hectare
For a repeating pattern, divide the target area by within-row spacing times between-row spacing, in consistent units. This gives density without accounting for edges, paths or gaps. At 12 in by 12 in spacing, a repeating pattern has one position per square foot, or 43,560 per acre.
The University of Georgia Extension planting calculations connect row spacing and plant counts along a row to field population. The NC State Extension planting guide shows how spacing and planting conditions vary by crop and setup. Use the spacing for your plants and layout. This worksheet counts positions at supplied spacing and does not estimate survival, yield or the best spacing for a species.