
To find how many balusters a rail section needs, divide the clear length between posts, minus your target opening, by the opening plus one baluster width, and round up: N = (L − C) ÷ (C + W). The balusters then split the rail into N + 1 equal openings. A 72 in section with 1 1/4 in balusters and a 3 3/4 in target opening needs 14 balusters, with openings of 3.63 in.
The 4-inch rule is about the gap, not the center spacing
The International Residential Code requires that guards do not allow a 4 in sphere to pass through any opening (IRC R312.1.3 in recent editions; some jurisdictions and older code editions differ, so confirm with your building department). The rule measures the clear opening between balusters, not the distance from center to center. Spacing balusters 4 in on center leaves openings of 4 in minus the baluster width, which is safe but wastes balusters. Spacing the openings at 4 in, by contrast, fails inspection once you account for the extra width the baluster itself adds to the center-to-center distance. Aim for a little under 4 in, such as 3 3/4 in, so small measuring and cutting errors do not push an opening over the limit.
On stairs, the balusters follow the slope of the rail, and the triangular gap between the bottom rail, a tread and a riser is allowed to be larger (the code permits a 6 in sphere there). Check your local code for the stair-specific limit before you buy.
Working Out the Baluster Count
Let L be the clear length between the two posts (or post and wall), W the baluster width and C the largest opening you will accept, all in inches.
- Number of balusters: N = (L − C) ÷ (C + W), rounded up to a whole number.
- Number of openings: N + 1, because a baluster is not set against the post at either end.
- Actual clear opening: A = (L − N × W) ÷ (N + 1). This is always at or below C because N was rounded up.
- On-center spacing: S = A + W. Use it to mark the center of each baluster.
Rounding up matters: rounding down gives openings larger than C, which is how DIY railings end up over 4 in.
Worked example: 72 in section, 1 1/4 in balusters
- N = (72 − 3.75) ÷ (3.75 + 1.25) = 68.25 ÷ 5 = 13.65, rounded up to 14 balusters.
- Openings: 14 + 1 = 15.
- A = (72 − 14 × 1.25) ÷ 15 = (72 − 17.5) ÷ 15 = 3.633 in, under 3 3/4 in.
- S = 3.633 + 1.25 = 4.883 in on center.
Baluster counts for common rail lengths
Target opening C = 3 3/4 in. Every row is computed with the formula above.
| Rail length (L) | Baluster width (W) | Balusters (N) | Openings (N + 1) | Clear opening (A) | On-center spacing (S) |
|---|---|---|---|---|---|
| 36 in | 1.25 in | 7 | 8 | 3.406 in | 4.656 in |
| 36 in | 1.5 in | 7 | 8 | 3.188 in | 4.688 in |
| 48 in | 1.25 in | 9 | 10 | 3.675 in | 4.925 in |
| 48 in | 1.5 in | 9 | 10 | 3.450 in | 4.950 in |
| 60 in | 1.25 in | 12 | 13 | 3.462 in | 4.712 in |
| 60 in | 1.5 in | 11 | 12 | 3.625 in | 5.125 in |
| 72 in | 1.25 in | 14 | 15 | 3.633 in | 4.883 in |
| 72 in | 1.5 in | 13 | 14 | 3.750 in | 5.250 in |
| 96 in | 1.25 in | 19 | 20 | 3.612 in | 4.862 in |
| 96 in | 1.5 in | 18 | 19 | 3.632 in | 5.132 in |
Every opening in the table is at or under 3.75 in, so each leaves a margin below the 4 in limit.
A 7 ft 6 in Railing, Start to Finish
A deck stair railing section is 7 ft 6 in (90 in) long and uses 1 1/2 in balusters.
- N = (90 − 3.75) ÷ (3.75 + 1.5) = 86.25 ÷ 5.25 = 16.43, rounded up to 17 balusters.
- Openings: 17 + 1 = 18.
- A = (90 − 17 × 1.5) ÷ 18 = (90 − 25.5) ÷ 18 = 3.583 in.
- S = 3.583 + 1.5 = 5.083 in on center.
Buy 17 balusters plus a few spares for cutting mistakes. Set the first baluster so its edge is A from the post, then step off S for each one after. Dry-fit a few before fastening.
Related guides and tools
To lay out the stairs themselves, use the stair calculator. The rise and run guide covers the riser and tread limits, and how to calculate stair stringer length covers the stringer.
Sources
- International Code Council, 2021 International Residential Code, section R312 (guards and window fall protection): the 4 in sphere rule for guard openings. Local adoption and amendments vary.
For related coverage, see our guide on Concrete for Solid Stairs: Cubic Yards and Bags by Number of Steps.