Railing Baluster Spacing Calculator
Written by Thierno Sadou Diallo, formula verified per our methodology • Last checked on 12/5/2026
Number of balusters = (length − maximum gap) ÷ (baluster width + maximum gap), rounded up. Between posts 200 cm apart, with 4 cm balusters and an 11 cm maximum gap, you need 13 balusters with 10.6 cm gaps.
Explanation
A railing, or guardrail, protects against falls from a balcony, deck, mezzanine or staircase. When it is filled with vertical balusters, the gap between them must be small enough that a young child cannot get their head or body through. In France, standard NF P01-012 limits this gap to 11 centimeters; many building codes elsewhere set similar limits, such as the 4-inch (10.2 cm) sphere rule common in North America. Check the rule that applies where you live. The calculation starts from a simple observation: between two posts, n balusters create n + 1 gaps. The clear length is therefore the sum of the baluster widths and the gaps. For every gap to be at most the maximum, you look for the smallest number of balusters that meets this constraint, rounding up. You then share out the remaining space into equal gaps, for an even look. The center-to-center spacing is the most practical measure for marking their positions on the rail: simply step it off from the first gap. Measure the clear length between the inside faces of the posts, not center to center. The maximum gap is not the only requirement: codes also set a minimum railing height, require that the bottom of the infill offers no foothold for climbing, and demand adequate strength. A baluster that is too flexible and bends under a child's push can also exceed the allowed gap. For the required height, use the guardrail height calculator; to size the steps of a staircase, the stair calculator.
Example: a 2-meter balcony section
Inputs
Clear length: 200 cm. 4 cm balusters. Maximum gap: 11 cm.
Calculation
Number = (200 − 11) ÷ (4 + 11) = 12.6, rounded up to 13 balusters. Actual gap = (200 − 13 × 4) ÷ 14 = 148 ÷ 14 ≈ 10.57 cm. Center-to-center = 10.57 + 4 = 14.57 cm.
Result
13 balusters set 14.57 cm apart center to center leave even 10.57 cm gaps.
Frequently asked questions
Why 11 cm?
That is the maximum gap set by the French standard NF P01-012 to stop a young child from passing between two vertical balusters. Other countries use similar values, such as 4 inches (10.2 cm) under many North American building codes.
Does the gap between the last baluster and the post count?
Yes. The calculation gives every gap the same width, between posts and balusters as well as between balusters, so that no gap exceeds the maximum.
What about a sloping stair railing?
Measure the clear length horizontally between the posts, since the balusters stay vertical and it is the horizontal gap between them that matters.