Count boundary-to-boundary planting positions on a square or staggered grid inside a rectangular bed.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
A square grid counts floor(side ÷ spacing) plus the first boundary point on each axis. A staggered layout separates rows by sin(60°) × spacing and shifts every second row by half the horizontal spacing, so alternate rows can contain fewer positions near an edge.
Length m: 2 Width m: 1 Spacing cm: 30 Layout: rows
Plants needed: 28 Rows: 7 Plants per row: 4 Row spacing cm: 30
Nursery plug beds, orchard stake plans, and regular drip-emitter layouts count positions from known spacing.