Lay out a straight fence run as equal bays, posts, panels, and rails without assuming a concrete quantity.
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.
Run length divided by the maximum installed bay width rounds up to a whole bay count. A straight run adds one terminal post, rails multiply by bays, and run length divided by bays shows the equal centres needed to fit the measured line.
Run length m: 10 Panel width m: 1.83 Rails per panel: 2
Bays: 6 Posts: 7 Panels: 6 Rails: 12 Post spacing m: 1.67
Preassembled garden panels sit between measured posts, closeboard runs multiply rails per bay, and replacement fences compare old centres with the new system before holes are dug.