Canada version. Spaces balusters in inches to the National Building Code of Canada 100 mm sphere rule, which applies on stairs too, unlike the 4-3/8 in US allowance. US version
Baluster Spacing Calculator (Canada, NBC)
Deck and stair baluster count and on-centre spacing under the NBC 100 mm sphere rule, in feet and inches, with the 150 mm stair triangle and guard heights.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the Baluster Spacing Calculator?
Canadian decks are built in feet and inches, but the guard rule is metric: NBC Sentence 9.8.8.5.(1) says openings through guards must stop a 100 mm sphere. That is 3.94 in, a little tighter than the 4 in sphere in US codes, and there is no 4-3/8 in allowance for the open side of a stair.
Enter the clear distance between posts and the baluster width. For a 6 ft section with 2x2 balusters (1-1/2 in), 13 balusters give equal 3-3/4 in gaps at 5-1/4 in centres. On a stair the gap is measured level, so the calculator converts the spacing into marks along the sloped rail.
Guards are needed where the drop is more than 600 mm within 1.2 m of the walking surface (NBC Sentence 9.8.8.1.(1)). Exterior guards for a single dwelling may be 900 mm high when the deck is no more than 1 800 mm above finished ground; above that they must be 1 070 mm.
- Baluster count, equal gap, on-centre spacing and first position
- IRC 4 in and 4-3/8 in, 100 mm and 125 mm presets or a custom limit
- Stair mode from rise and run or degrees, with marks along the rail
- Layout table of every centre and an elevation sketch
- Multiple identical sections; imperial fractions or millimetres
Updated
How to use the Baluster Spacing Calculator
- Keep imperial units and the 100 mm (NBC) maximum gap.
- Enter the clear distance between the inside faces of the posts and the baluster width.
- Choose stair rail for a flight and enter the rise and run, or the angle.
- For several identical sections, enter the number of sections to get the total to buy.
Worked examples
6 ft deck section with 2x2 balusters
Input
6 ft between posts, 1-1/2 in balusters, 100 mm limit
Output
13 balusters, 3-3/4 in gaps, 5-1/4 in on centre, first centre 4-1/2 in from the post
A 3-3/4 in gap is 95 mm, comfortably under 100 mm.
Four 8 ft sections on a larger deck
Input
8 ft between posts, 1-1/2 in balusters, 100 mm limit, 4 sections
Output
17 per section, 68 in all, gaps of 3.917 in (99.5 mm)
That gap is 99.5 mm, only half a millimetre under the limit. Setting a custom 3-3/4 in limit gives 18 per section at 3-5/8 in, which leaves room for a warped baluster.
Stair guard at 7-1/2 over 10-1/2
Input
9 ft along the rail, 1-1/2 in balusters, rise 7-1/2 in, run 10-1/2 in (35.5°), 100 mm limit
Output
16 balusters, 3-3/4 in level gaps, 6-7/16 in on centre along the rail
With the US 4-3/8 in stair allowance the same rail would get 15 balusters and 4.09 in gaps, which fails the NBC 100 mm rule.
Background and insight
With n balusters of width b in a clear length L there are n + 1 gaps, so gap = (L - n b) / (n + 1). Requiring gap to be no more than the limit g gives n = ceil((L - g) / (b + g)). For 96 in between posts, 1-1/2 in balusters and a 4 in limit that is 17 balusters with 3.92 in gaps at 5.42 in on centre. Marking every centre from one post, rather than stepping off the spacing, stops rounding from adding up.
The IRC (Section R312.1.3) says required guards must not have openings that allow a 4 in sphere to pass, with two exceptions: 4-3/8 in on the open side of stairs and 6 in for the triangle formed by the riser, tread and bottom rail. England uses 100 mm (Approved Document K), as does the National Building Code of Canada, and Australia's NCC uses 125 mm. On a stair the balusters are vertical, so the clear gap is measured level: the calculator works in the level run (rail length x cos of the rake) and divides back by the cosine for marks along the rail.
Common use cases
Deck and porch railings
Lay out balusters between posts with equal gaps that meet the 4 in rule.
Stair balustrades
Convert level spacing into marks along a raked handrail or stringer.
Ordering balusters
Count balusters for several identical sections in one go.
Metal and cable infill checks
Check gaps for metal pickets or glass panels against a 100 mm or 125 mm limit.
Tips and limitations
- The triangle formed by a riser, a tread and the bottom rail of a stair guard must stop a 150 mm sphere (NBC Sentence 9.8.8.5.(2)).
- On a stair, guard height is measured vertically from a line through the tread nosings (NBC Sentence 9.8.8.3.(4)).
- Where a guard protects a level more than 4.2 m above the level below, nothing between 140 mm and 900 mm may make it easy to climb (NBC Article 9.8.8.6.).
- Provincial codes (Ontario, BC, Alberta, Quebec) and some municipal deck guides add their own details, so check before you buy balusters.
Sources and further reading
- National Building Code of Canada 2025, National Research Council Canada. Division B, Articles 9.8.8.1. (required guards), 9.8.8.3. (height), 9.8.8.5. (openings) and 9.8.8.6. (climbing).
- Codes Canada publications, National Research Council Canada
Frequently asked questions
What is the maximum baluster spacing in Canada?
Openings through guards must prevent the passage of a 100 mm sphere (NBC Sentence 9.8.8.5.(1)). In practice, keep every clear gap at 3.9 in (99 mm) or less; 3-3/4 in (95 mm) gives a margin for lumber that moves.
Is the 4 inch rule the same as the Canadian code?
Almost, but not quite. 100 mm is 3.94 in, so a gap of exactly 4 in fails. The NBC also has no 4-3/8 in allowance on stairs; the 100 mm rule applies to the stair guard as well.
When does a deck need a guard in Canada?
When the difference in elevation is more than 600 mm between the walking surface and the surface within 1.2 m of it (NBC Sentence 9.8.8.1.(1)). Many decks need guards on some sides and not others because the ground slopes.
How high does a deck railing have to be in Canada?
For an exterior guard serving one dwelling, 900 mm where the deck surface is not more than 1 800 mm above finished ground, otherwise 1 070 mm (NBC Article 9.8.8.3.). Guards inside a dwelling unit are 900 mm.
How many balusters do I need for a 6 foot deck section?
With 2x2 balusters and the 100 mm rule, 13 between posts 6 ft apart, at 5-1/4 in centres. Thinner 1-1/4 in metal balusters need 14.
Is there an in-depth guide to the Baluster Spacing Calculator?
Yes. “Baluster Spacing and the 4 Inch Sphere Rule, With the Math” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.