Garden & outdoors

Plant spacing calculator

Count planting positions on a rectangular grid with an explicit edge margin.

Your measurements

Change any value to calculate

Switch units without changing your quantities. The formula and worked example below keep their stated units.

in
in
in
in
Grid planting positions
40 plants
Along the length
10 positions
Across the width
4 positions
Center spacing
12 in

Displayed values are rounded. Whole packages and purchase lengths round up. See assumptions below.

Calculation details

Inputs and full-precision results for checking this calculation. No report is sent.

How to use this calculator

Choose the recommended center-to-center spacing for your plants. Enter the minimum distance from a plant center to each bed edge. Choose inches or centimeters with the measurement-system control. Rows are aligned in a rectangular grid.

The formula

Positions along each side = max(0, round down((side length − 2 × margin) ÷ spacing) + 1). Multiply the two counts. If a side is smaller than twice the margin, its count is zero.

A worked example

A 120 × 48 inch bed with 12 inch spacing and a 6 inch margin has 10 positions along its length and 4 across its width: 40 plants total.

Assumptions & limitations

This is a geometric count, not a planting recommendation. It uses the same spacing in both directions and does not support staggered rows. The last row may leave more room than the specified minimum edge margin.

Common questions

Is the spacing between plant edges?

No. It is the distance from the center of one plant to the center of the next.

Why can the result be zero?

The chosen margin may leave no valid planting position along one side. Reduce the margin or use a larger bed.

Units reference

The calculation follows the method above. This reference supports the units and conversions.

NIST: units and conversion factors ↗

Formula and worked example checked against automated test cases. About our methodology.

Answers in seconds

No signup. No spreadsheet. Just your answer.

The math, explained

Clear formulas and useful worked examples.

Your numbers stay yours

Calculations happen right in your browser.