Plant Spacing & Layout Calculator
Turn a rectangular planting bed into an explicit planting plan. Compare up to three layouts with different spacing, row direction, edge margins, offsets and buying options. Add up to eight overlapping rectangular paths or no-plant zones; each center is counted only once. Inspect every surviving center on a scaled map and in a paginated coordinate table, then export exact coordinates and a reconciled plant or tray order. Switch metres, centimetres, feet and inches without changing the physical plan. This tool counts a specified finite lattice, not an optimal packing arrangement. It does not select species, estimate mature canopy clearance, predict survival, plan irrigation or establish landscape-code compliance. Prices and tax are user-entered USD assumptions.
Plan every plant, path and tray.
Compare finite planting patterns, see exactly where each center fits, and order whole trays with transparent costs.
Shape your planting plan
Choose spacing for your actual plants from their label or suitable local guidance. This is a geometric layout and purchasing plan, not a species recommendation or a canopy-clearance check. Prices are illustrative USD.
Origin is the upper-left corner; x increases rightward and y downward. Geometry accepts up to six decimal places or exact fractions. Converted fractions preserve quantities. Bounds are checked in metres: bed sides 0.1–100 m, spacing 0.01–100 m. A blank required value stops the result.
Paths and no-plant rectangles
Centers on or inside these rectangles are removed. Overlaps are counted once. Coordinates start at each rectangle’s upper-left corner; every rectangle must fit inside the bed.
Compare planting and ordering choices
The first row begins at margin + row phase; its first plant begins at margin + along-row phase. Odd rows shift by half a plant spacing for staggered and triangular patterns. No positions are backfilled before these origins.
Rectangular rows: 80 planting centers. Triangular rows: 82 planting centers.
What fits and what to order
Bed area: 24 m². Exclusion union: 4 m². Counts come from individual lattice centers, not area divided by spacing.
Rectangular rows
80 centers
Buy 96 plants in 4 trays. 16 left after planting.
≈ $145.80
Triangular rows
82 centers
Buy 96 plants in 4 trays. 14 left after planting.
≈ $145.80
| Layout | Candidate centers | Excluded centers | Planting centers | Row pitch |
|---|---|---|---|---|
| Rectangular rows | 96 | 16 | 80 | ≈ 0.5 m |
| Triangular rows | 104 | 22 | 82 | ≈ 0.433013 m |
Your planting map
Plant-center coordinates
Rows and columns are one-based; skipped columns are excluded centers. Approximate coordinates are labeled ≈. CSV retains exact metre coordinates, including triangular √3 terms.
| Row | Column | x (m) | y (m) | Locate |
|---|---|---|---|---|
| 1 | 1 | ≈ 0.25 m | ≈ 0.25 m | |
| 1 | 2 | ≈ 0.75 m | ≈ 0.25 m | |
| 1 | 3 | ≈ 1.25 m | ≈ 0.25 m | |
| 1 | 4 | ≈ 1.75 m | ≈ 0.25 m | |
| 1 | 5 | ≈ 2.25 m | ≈ 0.25 m | |
| 1 | 8 | ≈ 3.75 m | ≈ 0.25 m | |
| 1 | 9 | ≈ 4.25 m | ≈ 0.25 m | |
| 1 | 10 | ≈ 4.75 m | ≈ 0.25 m | |
| 1 | 11 | ≈ 5.25 m | ≈ 0.25 m | |
| 1 | 12 | ≈ 5.75 m | ≈ 0.25 m | |
| 2 | 1 | ≈ 0.25 m | ≈ 0.75 m | |
| 2 | 2 | ≈ 0.75 m | ≈ 0.75 m | |
| 2 | 3 | ≈ 1.25 m | ≈ 0.75 m | |
| 2 | 4 | ≈ 1.75 m | ≈ 0.75 m | |
| 2 | 5 | ≈ 2.25 m | ≈ 0.75 m | |
| 2 | 8 | ≈ 3.75 m | ≈ 0.75 m | |
| 2 | 9 | ≈ 4.25 m | ≈ 0.75 m | |
| 2 | 10 | ≈ 4.75 m | ≈ 0.75 m | |
| 2 | 11 | ≈ 5.25 m | ≈ 0.75 m | |
| 2 | 12 | ≈ 5.75 m | ≈ 0.75 m | |
| 3 | 1 | ≈ 0.25 m | ≈ 1.25 m | |
| 3 | 2 | ≈ 0.75 m | ≈ 1.25 m | |
| 3 | 3 | ≈ 1.25 m | ≈ 1.25 m | |
| 3 | 4 | ≈ 1.75 m | ≈ 1.25 m | |
| 3 | 5 | ≈ 2.25 m | ≈ 1.25 m | |
| 3 | 8 | ≈ 3.75 m | ≈ 1.25 m | |
| 3 | 9 | ≈ 4.25 m | ≈ 1.25 m | |
| 3 | 10 | ≈ 4.75 m | ≈ 1.25 m | |
| 3 | 11 | ≈ 5.25 m | ≈ 1.25 m | |
| 3 | 12 | ≈ 5.75 m | ≈ 1.25 m | |
| 4 | 1 | ≈ 0.25 m | ≈ 1.75 m | |
| 4 | 2 | ≈ 0.75 m | ≈ 1.75 m | |
| 4 | 3 | ≈ 1.25 m | ≈ 1.75 m | |
| 4 | 4 | ≈ 1.75 m | ≈ 1.75 m | |
| 4 | 5 | ≈ 2.25 m | ≈ 1.75 m | |
| 4 | 8 | ≈ 3.75 m | ≈ 1.75 m | |
| 4 | 9 | ≈ 4.25 m | ≈ 1.75 m | |
| 4 | 10 | ≈ 4.75 m | ≈ 1.75 m | |
| 4 | 11 | ≈ 5.25 m | ≈ 1.75 m | |
| 4 | 12 | ≈ 5.75 m | ≈ 1.75 m | |
| 5 | 1 | ≈ 0.25 m | ≈ 2.25 m | |
| 5 | 2 | ≈ 0.75 m | ≈ 2.25 m | |
| 5 | 3 | ≈ 1.25 m | ≈ 2.25 m | |
| 5 | 4 | ≈ 1.75 m | ≈ 2.25 m | |
| 5 | 5 | ≈ 2.25 m | ≈ 2.25 m | |
| 5 | 8 | ≈ 3.75 m | ≈ 2.25 m | |
| 5 | 9 | ≈ 4.25 m | ≈ 2.25 m | |
| 5 | 10 | ≈ 4.75 m | ≈ 2.25 m | |
| 5 | 11 | ≈ 5.25 m | ≈ 2.25 m | |
| 5 | 12 | ≈ 5.75 m | ≈ 2.25 m |
Order reconciliation
| Item | Value |
|---|---|
| Planting centers | 80 |
| Extras after rounding upward | 4 |
| Plants needed with extras | 84 |
| Whole trays | 4 |
| Tray overage beyond extras | 12 |
| Total plants purchased | 96 |
| Surplus after planting | 16 |
| Plants / trays (USD) | ≈ $120.00 |
| Charged delivery (USD) | ≈ $15.00 |
| Tax (USD) | ≈ $10.80 |
| Total (USD) | ≈ $145.80 |
Inset area after clipping overlapping exclusions: ≈ 15.75 m². This area does not replace center counting. Extras round up first, then trays. Empty orders have no delivery charge; entered tax applies to plants plus delivery.
Keep the plan
CSV contains every input, exact result, row range and supported plant coordinate. Limit layouts contain diagnostics only. Geometry coordinates use metres; prices use USD. Invalid active inputs disable export.
How to use this calculator
- Load Center-path example or Overlapping-path example. Choose Geometry units and enter Bed length / x and Bed width / y. Coordinates start at the upper-left corner, with x to the right and y downward.
- Add paths and no-plant rectangles with Start x, Start y, Length along x and Width along y. Rectangles may overlap, but must fit inside the bed. Delete an unused rectangle rather than leaving required geometry blank.
- Choose each layout’s Pattern and Rows run along direction. Enter plant spacing from appropriate plant-specific guidance, then custom Row pitch if applicable. Set Center margin, Along-row phase and Row phase. Duplicate a layout to compare a different arrangement.
- Enter Extra plants and choose individual or whole-tray purchase. Supply actual prices, delivery and tax assumptions. Read the planting-center count separately from the purchase quantity and surplus.
- Choose Layout to inspect. Use the complete coordinate table and Show on map to locate a center; continue through pages for the entire plan. A calculation-limit notice needs a smaller bed or larger spacing, not acceptance of a partial result.
- Download CSV or open Selectable CSV for exact input, result and coordinate data. Verify dimensions, plant suitability and supplier quantities before using the plan on site. Converted fractions preserve quantities; finish incomplete geometry before changing units.
The Formula
The mathematical logic powering this calculation is:
Let U be the dimension along rows and V the dimension across rows. For center margin m, along-row phase a, row phase b, plant spacing s and row pitch h, row j is at v = m + b + jh, for nonnegative integer j. Its column k is at u = m + a + ks, plus s/2 on odd rows for staggered and triangular layouts. Only centers with m ≤ u ≤ U−m and m ≤ v ≤ V−m are candidates. Row direction maps (u,v) to (x,y) or (y,x). There is no backfill before the chosen origins.
Rectangular and staggered layouts use the entered row pitch. Equilateral triangular layout uses h = s√3/2 exactly, not a rounded 0.866 multiplier. This follows the right triangle with hypotenuse s and horizontal leg s/2. Exact rational-plus-√3 comparisons determine boundary membership; display rounding cannot add or remove a plant. The City of Tacoma manual illustrates triangular groundcover spacing, but its municipal planting requirements are not applied here.
Remove centers on or inside any exclusion rectangle. Overlaps remove each center once. Rectangle union area and clipped inset area are reported separately; neither area divided by spacing nor an infinite-grid density is used to count finite positions. A zero-area inset can still contain centers along a line or at a point.
For N surviving centers and extra percentage e, plants needed = ceil(N × (1 + e/100)). When buying individually, purchased = plants needed. With trays of t plants, trays = ceil(plants needed/t) and purchased = trays × t. Spare allowance = plants needed − N; tray overage = purchased − plants needed; surplus after planting = purchased − N.
Materials = purchased × individual price, or trays × tray price. Delivery is charged once only when purchased > 0. Tax = (materials + charged delivery) × tax percentage/100. Total = materials + delivery + tax. No order optimization, shipping bands or tax jurisdiction is inferred. Exact fractions are retained for calculations and CSV; currency display is approximate.
Geometry bounds in metres: bed sides 0.1–100; spacing/pitch 0.01–100; margin 0–50 and no greater than half either bed side; phase 0–100. Exclusions have nonnegative origins, sides 0.01–100 and must fit inside the bed. Inputs accept up to six decimal places and 12 significant digits, or exact fractions with numerator/positive denominator up to 32 digits. Unit conversion uses 1 ft = 0.3048 m and 1 in = 0.0254 m exactly; conversion that cannot retain accepted precision leaves the draft unchanged. A layout above 2,500 rows or 20,000 candidate centers before exclusions returns a limit state without partial counts or orders. Up to three layouts and eight exclusions are supported. Extras/tax accept 0–100% to four decimal places, trays contain 1–1000 whole plants, and prices/delivery accept $0–$1,000,000 to two decimal places. Blank active values remain invalid.Worked Example
If you input:
- Bed and path: 6 × 4 m bed; a 1 m-wide path starts at x = 2.5 m, y = 0 and spans the full 4 m width.
- Compared patterns: Rectangular and equilateral triangular rows along x; plant spacing 0.5 m, rectangular row pitch 0.5 m, center margin 0.25 m, phases zero.
- Ordering assumptions: 5% extras; trays of 24 plants at $30 per tray; $15 delivery; 8% tax on plants plus delivery.
Result:
Rectangular rows have 96 candidate centers, 16 excluded and 80 to plant. Triangular rows have 104 candidates, 22 excluded and 82 to plant. With 5% extras, the required quantities round up to 84 and 87 plants. Both orders need 4 trays, purchasing 96 plants. Surplus after planting is 16 or 14 plants. Each order costs $120 in trays + $15 delivery + $10.80 tax = $145.80. The bed area is 24 m² and the path union is 4 m²; finite center counts are not obtained by dividing the remaining area by spacing.
Frequently Asked Questions
How do I choose the spacing for my plants?
Use species- and site-appropriate guidance, such as seed packets, nursery pot labels or local horticultural advice. The default 0.5 m is an editable geometric example, not a recommendation for every plant. The planner does not model mature foliage, roots, light, water or competition.
Does triangular spacing always fit more plants?
An infinite triangular lattice has a higher density than a square lattice with the same nearest-neighbor distance. A finite bed with margins, explicit offsets and exclusions can behave differently. Compare the actual reported center counts rather than assuming a fixed percentage increase. Custom staggered pitch also changes nearest-neighbor distances.
What happens to plants exactly on a boundary?
A center exactly on the inset margin boundary is allowed. A center on the boundary of a path or no-plant rectangle is excluded. Overlapping rectangles remove a center once. Triangular decisions use exact rational-plus-√3 arithmetic, so rounding in the map or table does not decide membership.
Why does a layout with the same area have a different count?
Row direction, margin, starting phase, pattern and excluded centers all matter in a finite bed. This calculator enumerates authored row/column positions through exact ranges. It does not use an area-density estimate, shift the grid to maximize a count, or solve arbitrary circle packing.
Are the blue dots the full size of my plants?
No. Dots indicate centers and are drawn for visibility. The margin applies to centers only. You must separately account for mature canopy, pathways, access, utilities and any local rules. A layout is not a planting suitability or compliance assessment.
Why are there more purchased plants than planting positions?
The entered extra percentage rounds the needed quantity upward first. A whole-tray order then rounds that quantity up to complete trays. Surplus after planting includes the rounded extra allowance plus tray overage. Empty orders have zero plants, zero cost and no charged delivery.
Why does a unit switch show fractions or refuse to switch?
Exact fractions prevent converted dimensions from drifting across a boundary that would change a plant count. All geometry, including retained custom row pitch, must be convertible. A blank or unsupported geometry value leaves the original draft and unit unchanged. Switch a triangular pattern temporarily to custom pitch to finish an incomplete retained value if needed.
What is included in the downloadable plan?
The CSV includes input assumptions, exact result values and row ranges, plus one row per surviving center in each supported layout. Point row/column indices are one-based; model ranges are zero-based. Coordinates are metres represented by a rational term and a coefficient of √3. Layouts exceeding the row or candidate limit export diagnostics only, with no partial planting list or order.
Similar Calculators
Sod Calculator & Pallet Planner
Measure lawn outlines and garden-bed cutouts, compare sod pallets and loose rolls, and explore cutting allowances with a scaled plan, supplier costs and CSV export.
Polygon Area Calculator
Calculate polygon area from ordered coordinates, subtract cutouts, and inspect perimeter, centroid and point location on a consistently scaled plan.
Lawn Fertilizer Calculator
Calculate fertilizer product needed from lawn area, nitrogen target, N-P-K analysis, and bag coverage.
Sprinkler & Drip Irrigation Zone Planner
Calculate sprinkler and drip zone flow, watering runtime and cycle-and-soak schedules. Visualize delivery, capacity limits and water shortfalls before your window closes.
Pond Liner Size & Purchase Planner
Size a one-piece pond liner, compare roll cuts and stock sheets in both orientations, and inspect surplus, quote totals and extra-edge allowance scenarios.
