Baluster spacing calculator: gap between railing spindles
Work out how many balusters or spindles a railing needs and the gap left between them, so it does not exceed the 100 mm (4 in) building code limit.
A baluster railing should have equal gaps (for looks) and no wider than the building code allows (for safety: a child's head must not fit). The calculator gives the gap left with a number of balusters, or how many you need so the gap stays under the maximum.
Formula
L is the clear length between posts, w the width of each baluster and n how many. There are n + 1 gaps because there is also one next to each post. Example: 2 m with 15 balusters 40 mm wide: (2 − 0.6) / 16 = 87.5 mm gap and 127.5 mm between centres.
What building codes ask
- Openings must not let a 100 mm sphere through (4 inches in the US IRC) where children may be present.
- Between about 300 and 500 mm above the floor or stair nosing there should be no footholds to climb it (horizontal rails).
- Guard height: 900 mm to 1.10 m depending on the drop and the code.
Several ways to get each value
- The gap with the balusters you have.
- How many balusters for a gap: enter the gap and clear the number (it comes out with decimals; round up). The «needed» result is already rounded.
- The baluster width that fits a number and a gap: clear the width.
- To mark out on site: the first centre goes at one gap plus half a baluster from the post, and from there one spacing at a time.
Frequently asked questions
What is the maximum gap between balusters?
Most codes require that a 100 mm (4 in) sphere cannot pass between them where children may be present.
How many balusters do I need for 2 m?
With 40 mm balusters and 100 mm gaps at most: (2 − 0.1) / (0.04 + 0.1) = 13.6, so 14 balusters, leaving 96 mm gaps.
How do you space balusters evenly?
Gap = (length − n · width) / (n + 1). With 15 balusters of 40 mm in 2 m: (2 − 0.6) / 16 = 87.5 mm. The first one goes one gap from the post and the centre spacing is gap + width.
How high should a railing be?
Typically 900 mm to 1.10 m depending on the drop and the code (36 to 42 in in the US).
