How to space balusters evenly
For a level section of clear length L between posts, baluster width b and a target maximum gap g:
balusters n = ceil((L − g) ÷ (b + g)) — the fewest that keep every gap at or under your target
exact gap = (L − n × b) ÷ (n + 1) · on-centre = b + gap
first centre = gap + b ÷ 2 from the post · mark i = first + (i − 1) × on-centre
total = n × sections · with waste = ceil(total × (1 + waste %))
On stairs, with k balusters per tread on tread depth T and riser R:
on-centre along the tread = T ÷ k · gap = T ÷ k − b · along the rail = (T ÷ k) × √(1 + (R ÷ T)²)
length of baluster j = rail height − rail depth + dj × R ÷ T, where dj = T ÷ 2k + j × T ÷ k behind the nosing
Worked examples
A 2x2 deck railing
- Inputs69½ in between posts · 2 sections · 1½ in balusters · 3¾ in target gap · 10% waste · IRC.
- Count(69.5 − 3.75) ÷ (1.5 + 3.75) = 12.5 → 13 per section.
- Gap(69.5 − 13 × 1.5) ÷ 14 = 3.571 in (3-9/16") — under 4 in.
- MarksOn-centre 5.071 in; first centre 4.32 in from the post, then 9.39, 14.46, 19.54 in and on.
- Order26 balusters for two sections, 29 with 10% waste.
A stair with two balusters per tread
On 10½ in treads with 1½ in balusters the gap is 10.5 ÷ 2 − 1.5 = 3.75 in — under the 4⅜ in stair limit — and the balusters sit 6.366 in apart along the rail. With a 36 in rail 1½ in deep on 7.2 in risers, they are 36.30 in and 39.90 in long; 14 treads take 28.
When two per tread is not enough
Two 1¼ in balusters on an 11¼ in tread leave exactly 4.375 in — the limit itself, which fails because the gap must be smaller than the sphere. Use three per tread (a 2.5 in gap) or wider balusters.
How many balusters do I need?
| Clear length | 3/4 in metal: count · gap | 1-1/2 in (2x2): count · gap |
|---|---|---|
| 36 in (3 ft) | 8 · 3-5/16" | 7 · 3-3/16" |
| 48 in (4 ft) | 10 · 3-11/16" | 9 · 3-7/16" |
| 60 in (5 ft) | 13 · 3-9/16" | 11 · 3-5/8" |
| 72 in (6 ft) | 16 · 3-1/2" | 13 · 3-3/4" |
| 96 in (8 ft) | 21 · 3-5/8" | 18 · 3-5/8" |
Measure each section between the faces of the posts — sections are rarely identical, so run the calculator for each different length. If the space between a post and a wall is already under the limit, no baluster is needed there.
The 4 inch sphere rule
| Region | Level guards | Open side of stairs |
|---|---|---|
| US — IRC | Under 4 in | Under 4⅜ in; 6 in at the riser / tread / bottom-rail triangle |
| US — IBC | Under 4 in | Under 4⅜ in |
| UK — Approved Document K | Under 100 mm | Under 100 mm |
| Australia — NCC | Under 125 mm | Under 125 mm |
The sphere must not pass, so a gap equal to the limit fails. Timber balusters shrink and metal ones get bent, so the calculator warns when a gap is within ⅛ in (3 mm) of the limit.
Balusters on stairs
On a stair the rail climbs while the treads step, so balusters are set out per tread: one, two or three on each, evenly spaced from the nosing. The level gap between them sets the code check; the spacing along the rail is longer by the slope factor, which matters for drilling the rail. Each position on the tread needs a different length — the back baluster is longer by the rise across the tread spacing. The table under your result compares one, two and three per tread for your stair.
Marking and installing
- Mark centres from one post using the layout marks; check the last gap against the far post before fixing.
- Use a spacer block cut to the exact gap for level runs.
- On stairs, mark each tread from the nosing and drill the rail along the slope at the rake spacing.
- Check finished gaps with a gauge the size of the limit — it must not pass anywhere.
What this calculator does not cover
- The handrail above the balusters: use the stair handrail calculator.
- Cable or glass infill: use the cable or glass railing calculator.
- Guard height, post strength and finishing.
Baluster spacing FAQs
How many balusters do I need?
Divide the clear length between posts, less one gap, by baluster width plus your target gap, and round up. For a 69½ in section with 1½ in balusters and a 3¾ in target that is 13 balusters. As a rule of thumb, 2x2 balusters run about three per foot, thin metal ones about three and a half.
How far apart should balusters be?
Under the IRC and IBC the clear gap must not let a 4 in sphere through, so the gap must be under 4 in on level railings and under 4⅜ in on the open side of stairs. Aim for 3½–3¾ in so small site errors cannot push a gap over. The UK limit is 100 mm and Australia’s 125 mm.
What is the 4 inch sphere rule?
Openings in a guard must be small enough that a 4 in (102 mm) ball cannot pass through anywhere — the size of a young child’s head. On the open sides of stairs the IRC allows 4⅜ in, and the triangle formed by the riser, tread and bottom rail may pass a 6 in sphere but not larger.
How many balusters per stair tread?
Two per tread is standard on 10–10½ in treads with 1½ in balusters, giving gaps of about 3¾ in. Deeper treads or thinner balusters often need three: two 1¼ in balusters on an 11¼ in tread leave a 4⅜ in gap, which is not under the limit.
How do you space balusters evenly?
Work out the count first, then the exact gap: (clear length − count × width) ÷ (count + 1). Every gap, including the ones next to the posts, is then the same. Mark the first centre at one gap plus half a baluster from the post, and step along at the on-centre spacing.
Is baluster spacing different on stairs and decks?
The rule is the same sphere test, but the IRC limit on the open side of a stair is 4⅜ in instead of 4 in, and stair balusters are spaced per tread rather than along a fixed length. The spacing along the sloped rail is longer than the level gap.
What are the UK rules for spindle spacing?
Approved Document K requires that a 100 mm sphere cannot pass through any opening in the guarding of a stair or landing in a dwelling. With 32 mm spindles on a 1.5 m landing that means 12 spindles with gaps of about 86 mm.
How long should stair balusters be?
Each baluster runs from the tread to the underside of the rail, and the rail rises across the tread, so the front baluster is shorter than the back one. With a 36 in rail, a 1½ in deep rail and 7.2 in risers on 10½ in treads, two balusters per tread are 36.30 in and 39.90 in long.
Sources
- International Residential Code 2021, Sections R311.7.8 and R312.1 — Handrails and guards (opens in a new tab)International Code Council. Handrails on flights of four or more risers (R311.7.8), 34–38 in above the nosings (R311.7.8.1), 1-1/2 in wall clearance (R311.7.8.3), continuous from above the top riser to above the lowest riser with returned or newel ends (R311.7.8.4), 1-1/4 to 2 in round grip (R311.7.8.5); guards where the drop exceeds 30 in (R312.1.1), 36 in high or 34 in on the open side of stairs (R312.1.2), openings that do not pass a 4 in sphere, 4-3/8 in on stairs and 6 in at the stair triangle (R312.1.3).
- International Building Code 2021, Sections 1014 and 1015 — Handrails and guards (opens in a new tab)International Code Council. Handrail height 34–38 in and extensions — 12 in level at the top, one tread depth at the slope at the bottom (1014.6); guards 42 in high with openings that do not pass a 4 in sphere (1015).
- Approved Document K: Protection from falling, collision and impact (opens in a new tab)UK Government (statutory guidance for England). Handrails 900–1000 mm above the pitch line; guarding to stairs and landings in dwellings at least 900 mm high, with openings that do not pass a 100 mm sphere.
- National Construction Code 2019, Volume Two, Part 3.9.2 — Barriers and handrails (opens in a new tab)Australian Building Codes Board. Barrier openings that do not pass a 125 mm sphere; barriers at least 1 m high, 865 mm above the nosings of stairs.
- Baluster layout geometryDerived from geometry: equal gaps g = (L − n·b) ÷ (n + 1); stair spacing along the rail = tread spacing × √(1 + (riser ÷ tread)²); baluster length = rail height − rail depth + distance behind the nosing × riser ÷ tread.
Code text is the final word. Editions and local amendments differ — check the edition your building department enforces.
Related calculators
- Stair handrail calculatorThe rail above the balusters
- Cable railing calculatorCable infill instead
- Glass railing calculatorGlass panels instead
- Stair calculatorRisers and treads for the stair
Other stair calculator categories