How the spacing is worked out
There is always one more gap than there are balusters. The calculator finds the fewest balusters that keep every gap at or under the limit, then spreads them evenly.
Gap = (opening − balusters × baluster width) ÷ (balusters + 1)
A worked example
An opening of 72 inches with 1½ inch balusters needs 13. Together they take up 19½ inches, leaving 52½ inches to share between 14 gaps, which is 3¾ inches each. Mark the centre of the first baluster 4½ inches from the post, then every 5¼ inches after that.
Good to know
- The 4 inch rule is common for decks and stairs, but check your local code. Some places use a different limit on stairs.
- Measure each section separately. Openings that look the same are rarely identical.
- Cut a spacer block to the gap width. It is faster and more accurate than marking every baluster.
- Guard height, post spacing and how the posts are fixed are also set by code.
Common questions
Why does the gap come out smaller than the limit?
You cannot fit a fraction of a baluster. The calculator rounds the count up, which makes every gap a little tighter than the maximum.
Does this work for cable or metal balusters?
Yes for round or square metal balusters. Enter their width. Cable rail follows different rules because cables flex.
How we know this calculator is right
Before this calculator went on the site, 10 answers were worked out separately from its code, by hand or straight from the formula above. Each time this page loads, your own browser runs the calculator on those same numbers and compares. Turn on JavaScript to see the comparison.
See every check
| Numbers used | Result | Worked out separately | This calculator |
|---|
What this proves: the calculator does the arithmetic of the formula shown, correctly. What it cannot prove: your measurements, or figures such as coverage per bag, waste and spacing, which are typical starting values you can change. Go by the product label and your local code.