Baluster Calculator: How Many Balusters and How Far Apart
By FindMySum · Last reviewed
Building codes don't set a baluster spacing: they set the largest opening a guard may have. A child's head must not fit through, so the code says a sphere of a certain size must not pass through any opening. This calculator turns that rule into a number of balusters and an equal gap for each section of railing.
The opening rules
- Canada: the National Building Code of Canada 2020, Sentence 9.8.8.5.(1), says openings through a guard must prevent the passage of a 100 mm sphere. Provinces adopt the code with their own amendments, and Ontario's Building Code has its own section 9.8.8.
- United States: the International Residential Code 2021, R312.1.3, uses a 4 in sphere, with 4-3/8 in on the open sides of stairs and 6 in at the triangle formed by a stair's tread, riser and bottom rail.
The limit is on the clear gap between balusters, not their centre-to-centre spacing.
The count
For a section of clear length L between posts, balusters of width b and a largest gap g, n balusters make n + 1 gaps:
n = (L − g) ÷ (b + g), rounded up
equal gap = (L − n × b) ÷ (n + 1)
Worked example (the Canadian default). A 2,400 mm section with 38 mm (2 × 2) balusters and the 100 mm limit: (2,400 − 100) ÷ 138 = 16.7, so 17 balusters. The equal gap is (2,400 − 17 × 38) ÷ 18 = 97.4 mm, and the centres are 135.4 mm apart. Four sections take 68 balusters.
In the US, a 96 in section of 1½ in balusters under the 4 in rule also takes 17 balusters, with gaps of 3.92 in.
Laying them out
- Measure each section between the post faces, at the rail, and treat each section separately.
- Cut a spacer block to the equal gap.
- Set the first baluster one gap from the post: its centre is the gap plus half a baluster width from the post face.
- Work along the section, checking your progress against the layout marks measured from the same post.
Aim a little under the limit. Wood shrinks and twists, and a gap laid out at exactly 100 mm can grow past it. Many builders aim for about 90 mm (3¾ in): enter that as the largest gap you want.
Stairs
On a stair, balusters stand vertically and their gaps are measured horizontally, so the count uses the horizontal length of the stair. The rails run along the rake: the rail length is the horizontal length × √(1 + (rise ÷ run)²). A stair with 180 mm risers and 280 mm treads rises at about 33°.
Guard heights
The same section of the NBC sets guard heights (Article 9.8.8.3): 1,070 mm in general, and 900 mm for guards within a dwelling unit, for exterior guards serving one dwelling unit where the walking surface is no more than 1,800 mm above the ground, and for flights of steps. Guards are required where the drop is more than 600 mm. In the US, the IRC requires 36 in, and 34 in on the open sides of stairs, where the drop is more than 30 in.
Above 4.2 m the NBC requires guards that are not climbable between 140 mm and 900 mm above the floor, so horizontal rails and cables are out on high balconies.
What the calculator leaves out
The gap under the bottom rail (keep it under the same limit), the stair triangle, curved or angled sections, post and rail sizing, and the loads a guard must resist. Your inspector checks the finished guard, so ask before you build anything unusual.
More questions
What is the difference between a baluster, a spindle and a picket?
They are the same thing in a railing: the vertical members between the top and bottom rails. Baluster is the usual term for stairs and decks, spindle for turned wooden ones, and picket for fences. The spacing rule applies to all of them when they form part of a required guard.
Does the gap under the bottom rail count?
Yes. The opening rule applies to every opening from the walking surface up to the required guard height, including the space between the deck surface and the bottom rail. Keep that gap under 100 mm (or 4 in), and remember deck boards can sag or settle.
How do I lay out balusters so they look even?
Work out the equal gap for each section, cut a spacer block to that width, and set the first baluster one gap from the post. Check every few balusters against the layout marks measured from the same post, so small errors don't add up, and adjust slightly before the last few.
Do stair balusters need different spacing?
In Canada the 100 mm sphere rule is the same on stairs. In the US, the IRC allows 4-3/8 in on the open sides of stairs, and the triangle formed by the tread, riser and bottom rail may pass up to a 6 in sphere. Balusters are spaced horizontally along the stair, and the rails run on the rake.
How many balusters per stair tread?
Usually two per tread with 1¼ to 1½ in balusters on a 10 to 11 in tread, and three for slimmer balusters or deeper treads. Check the clear gap between them against your code limit; the calculator gives the count for the horizontal length of the stair.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.