Equal Spacing Calculator
Divide any span into clean, repeatable gaps for boards, pickets, slats, balusters, hooks, or shelves—without decimal-inch guesswork.
Enter the layout
The equal-spacing formula
Define the span and the item width
The total span is the clear distance available for the complete layout. The item width is the actual dimension along that span: the face width of a slat, the diameter of a baluster at the layout line, the thickness of a shelf, or the footprint of a hook. Measure real material instead of relying on a nominal label. A board sold as 1×2 is not normally two inches wide, and turned balusters may have different widths at different heights.
Use one unit throughout. The calculator can display practical fractional inches, but it retains decimal precision internally. If the span changes with height, as on a tapered opening or irregular wall, calculate and mark each control line separately.
Flush-end spacing
For a flush-end layout, the first item starts at one end and the last item finishes at the other. Subtract the total item width from the span, then divide the remaining space by one fewer than the number of items. Nine boards create eight gaps. This mode is useful when edge pieces act as boundaries or when the layout must finish against two posts.
A single flush item creates no gap, so its location depends on the project rather than an equal-spacing formula. Two items create one gap. Remember that the result is clear space between item edges; on-center spacing equals the clear gap plus one item width.
Equal outer gaps
When the design needs the same clear space at both ends as it has between items, divide the remaining space by one more than the number of items. Five slats produce six equal spaces: two outside margins and four interior gaps. This creates a centered field and is often the right choice for decorative panels, hooks within a rail, or slats inside a frame.
Do not confuse an equal outer gap with centering the first and last item centers on the boundaries. Those are different layouts. Sketch one end of the assembly and label the desired edge condition before choosing a mode.
Worked baluster example
Consider a 48-inch clear span with seven balusters that are 1.5 inches wide. The balusters occupy 10.5 inches, leaving 37.5 inches. With equal outer gaps, divide by eight to get 4.6875 inches, or 4 11/16 inches. With flush ends, divide by six to get 6.25 inches. The two results are both mathematically correct but represent visibly different designs.
For guardrails and stairs, equal appearance is not the only requirement. Building codes can limit maximum openings and define how measurements are taken. This calculator supplies layout math, not code approval. Confirm local rules and the requirements of the complete guard system before fabrication.
Mark cumulative positions instead of stepping error
A rounded spacer dimension repeated many times can accumulate error. If the exact gap is 2.347 inches and you round it to 2 11/32 inches, a small difference appears at every gap. Over a long run, the last item can miss its target noticeably. Use the calculator's visual preview and cumulative positions as control measurements, then use a spacer for speed between those checks.
Mark item edges or centerlines consistently. Centerlines are convenient when material width varies slightly, while edge marks work well with a physical spacer. Write the mark type on the workpiece so a helper does not interpret a centerline as an edge.
Real-world material variation
Wood expands, contracts, bows, and varies in width. Painted MDF strips may be consistent, while rough-sawn slats may require individual measurement. If item widths differ, a single equal-gap formula is not sufficient unless you calculate using the sum of all actual widths. You can still distribute the remaining space evenly, but the center-to-center distances will vary.
For shelves, remember that “equal spacing” can mean equal clear openings rather than equal shelf-center spacing. The formula here produces equal clear openings when item thickness is consistent. Include fixed top and bottom panels in the layout only if they occupy the measured span in the same way as the movable shelves.
Common uses and pitfalls
- Wall slats: account for trim boundaries and electrical devices before selecting a count.
- Balusters and pickets: verify maximum code openings after the exact layout is known.
- Hooks: check the usable mounting plate width, not just the decorative rail length.
- Shelves: decide whether the top and bottom spaces are included and use actual shelf thickness.
- Fence boards: allow for expected movement and confirm the post-to-post span at each bay.
The most common mistakes are entering the center-to-center dimension as item width, forgetting that flush ends have one fewer gap than items, and rounding a gap before calculating later positions. A quick sketch with item edges, gap count, and total span usually prevents all three.