Quick answer
On a square grid, plants = ⌊length ÷ spacing + 1⌋ × ⌊width ÷ spacing + 1⌋, counting a plant on each edge. A 10 × 4 bed with 1 unit spacing gives 11 columns × 5 rows = 55 plants, 0.727 area units per plant. Staggered patterns pack more plants.
Enter the bed length, width, spacing and the pattern (square or staggered). The calculator returns the plant count, grid and area per plant.
Related tools: Plant Spacing Calculator: Number of plants that fit a bed at a spacing. Compost Carbon-to-Nitrogen Ratio Calculator: Combined carbon-to-nitrogen ratio of up to three compost ingredients.
This page covers the same calculation as the plant spacing calculator page; the two give identical results.
How to use the Plant Spacing Calculator
- Enter bed length (0.001 or more).
- Enter bed width (0.001 or more).
- Enter spacing between plants (same unit) (0.001 or more).
- Choose pattern: Square grid and Staggered (triangular).
- Press Calculate to see the result, and use Reset to start again.
| Input | What to enter | Allowed values |
|---|---|---|
| Bed length | A number | ≥ 0.001 |
| Bed width | A number | ≥ 0.001 |
| Spacing between plants (same unit) | A number | ≥ 0.001 |
| Pattern | Choose one: Square grid; Staggered (triangular) | Starts at Square grid |
Formula and method
Formula
square: floor(length ÷ spacing + 1) × floor(width ÷ spacing + 1); staggered: row spacing = spacing × √3 ÷ 2, plants alternate half a spacing
IEEE-754 double precision; shown to at most 6 decimal places.
Counts plants that fit, with one plant on each edge of the bed, in a square grid or in a staggered (triangular) pattern whose rows are √3/2 of the spacing apart, which fits about 15% more plants in the same area. Rows alternate between the full count and one fewer when the offset row would overshoot the bed. All lengths must use the same unit. Check your plant's recommended spacing; edge setbacks are not applied.
Worked examples
These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.
Example 1
Inputs: Bed length = 10; Bed width = 4; Spacing between plants (same unit) = 1; Pattern = Square grid.
| Result | Value |
|---|---|
| Plants needed | 55 |
| Columns × rows | 11 × 5 |
| Bed area | 40 |
| Area per plant | 0.727 |
Example 2
Inputs: Bed length = 10; Bed width = 4; Spacing between plants (same unit) = 1; Pattern = Staggered (triangular).
| Result | Value |
|---|---|
| Plants needed | 53 |
| Rows | 5 |
| Plants in long and short rows | 11 and 10 |
| Row spacing | 0.866 |
Example 3
Inputs: Bed length = 8.5; Bed width = 3; Spacing between plants (same unit) = 0.75; Pattern = Staggered (triangular).
| Result | Value |
|---|---|
| Plants needed | 58 |
| Rows | 5 |
| Plants in long and short rows | 12 and 11 |
| Row spacing | 0.65 |
The first line is the headline result (plants needed). Below it the plant Spacing Calculator lists columns × rows, bed area and area per plant, which describe the same case from other angles. IEEE-754 double precision; shown to at most 6 decimal places.
Staggered patterns
In a triangular layout, rows are offset by half a spacing and row distance is spacing × √3 ÷ 2 (0.866 × spacing). That fits about 15% more plants into the same bed than a square grid.
Edges and margins
This count puts plants on the bed edges. If you want a margin from the edge, subtract it from the length and width first.
How the result changes with bed length
Holding every other input at the first worked example, this table changes only bed length. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.
| Bed length | Plants needed | Columns × rows | Bed area |
|---|---|---|---|
| 5 | 30 | 6 × 5 | 20 |
| 10 | 55 | 11 × 5 | 40 |
| 20 | 105 | 21 × 5 | 80 |
| 40 | 205 | 41 × 5 | 160 |
What happens with invalid input
These messages are produced by the calculator itself, so you know what to fix.
- Bed length: left empty shows "Enter bed length." beside that field and no result.
- Spacing between plants (same unit): entering "0" shows "Spacing between plants (same unit) must be at least 0.001." beside that field and no result.
Choosing between the Plant Spacing Calculator and similar calculators
Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.
| Calculator | You enter | It returns |
|---|---|---|
| [Plant Spacing Calculator](/lifestyle/plant-spacing-calculator/) | bed length, bed width and spacing | Plants |
| [Compost Carbon-to-Nitrogen Ratio Calculator](/lifestyle/compost-ratio-calculator/) | ingredient 1 amount, ingredient 1 carbon and ingredient 1 nitrogen | Carbon-to-nitrogen ratio |
| [Fertilizer Application Calculator](/lifestyle/fertilizer-application-calculator/) | lawn or bed area, nitrogen to apply and nitrogen in the fertilizer | Fertilizer needed |
| [Lawn Watering Calculator](/lifestyle/lawn-watering-calculator/) | lawn area and water depth to apply | Water needed |
| [Sleep Calculator](/lifestyle/sleep-calculator/) | bedtime | 4 cycles (6 h) |
Assumptions and limitations
- Plants are counted centre to centre with one on each edge
- Bed is a rectangle
If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for bed length and spacing between plants (same unit) to confirm this.
Frequently asked questions
Which pattern is best?
Staggered for density, square for easy access.
What spacing do I use?
Use the mature spread on the plant tag, or the spacing recommended for that variety.
How many plants for a border?
Treat the border as a bed one plant wide and enter its length and width.
What does the Plant Spacing Calculator calculate?
Number of plants for a bed at a chosen spacing, in a square or staggered pattern. It returns Plants needed, Columns × rows, Bed area and Area per plant.
What formula does the Plant Spacing Calculator use?
square: floor(length ÷ spacing + 1) × floor(width ÷ spacing + 1); staggered: row spacing = spacing × √3 ÷ 2, plants alternate half a spacing. Counts plants that fit, with one plant on each edge of the bed, in a square grid or in a staggered (triangular) pattern whose rows are √3/2 of the spacing apart, which fits about 15% more plants in the same area.
What do I need to enter in the plant Spacing Calculator?
You enter Bed length, Bed width, Spacing between plants (same unit) and Pattern.
How is the result rounded or limited?
IEEE-754 double precision; shown to at most 6 decimal places. Plants are counted centre to centre with one on each edge.
What are the limits of this calculator?
Plants are counted centre to centre with one on each edge. Bed is a rectangle.
What does the “Pattern” option change?
It sets how the plant Spacing is worked out. The choices are Square grid and Staggered (triangular).
What is an example of a plant Spacing result?
With bed length 10, bed width 4, spacing between plants (same unit) 1 and pattern Square grid, the plants needed is 55.
Where does the method come from?
The method follows: Plane geometry of square and equilateral-triangle packing; plant spacing is a user input.
Related calculators
- Plant Spacing Calculator — Number of plants that fit a bed at a spacing.
- Compost Carbon-to-Nitrogen Ratio Calculator — Combined carbon-to-nitrogen ratio of up to three compost ingredients.
- Lawn Watering Calculator — Gallons of water to apply a depth over a lawn.
- Sleep Calculator — Wake-up times that line up with 90-minute sleep cycles.
- Birthday Calculator — Next birthday, days until it, and your current age.
Sources
- Plane geometry of square and equilateral-triangle packing; plant spacing is a user input
Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.