How to measure
- Measure each section on its own, from the inside face of one post to the inside face of the next. Posts are rarely exactly where the plan put them, so two sections that should match often differ by 1/4" or more.
- Measure the real baluster. A 2x2 is 1 1/2" wide, metal balusters are usually 3/4", and turned balusters vary. On a tapered baluster, use the thinnest part.
- On stairs, enter the riser height and the tread run. The run is riser face to riser face, not the full tread depth with its nosing. If you used the deck stair calculator, its "next" button fills them in for you.
How we calculate
A section with n balusters has n + 1 gaps, counting the gaps at both posts. The calculator finds the fewest balusters that keep every gap at or under the largest gap you set, then spreads them so all the gaps are equal:
balusters = round up ((length − gap) ÷ (baluster + gap))actual gap = (length − balusters × baluster) ÷ (balusters + 1)
Some calculators divide the length by baluster plus gap and stop there. That skips the extra gap at the end and can call for one baluster more than you need.
Example: posts 6' on center with 4x4 posts leave 68 1/2" between them. With 2x2 balusters and a 3 1/2" gap you need 13 balusters, and the gap comes out at exactly 3 1/2", 5" on center. A 2x4 on edge is 3 1/2" wide, so it makes the spacer.
The layout marks are measured from the post for each baluster, not built up by adding gap after gap, so rounding never adds up along the rail.
Stairs: measure the gap level
Balusters stand plumb. The opening a ball has to get through is the level distance between them, so the code measures it level. Along the sloped rail the same gap reads longer: a 3 1/2" level gap on a 7 1/2" × 10 1/2" stair is about 4 5/16" along the rail. The calculator lays out the balusters on the level gap and gives you the marks along the rail, where you actually mark them.
| Tread run | 2x2 wood (1 1/2") | 3/4" metal |
|---|---|---|
| 10" | 2 per tread, 3 1/2" gap | 2 per tread, 4 1/4" gap |
| 10 1/2" | 2 per tread, 3 3/4" gap | 3 per tread, 2 3/4" gap |
| 11" | 2 per tread, 4" gap | 3 per tread, 2 7/8" gap |
| 11 1/2" | 2 per tread, 4 1/4" gap | 3 per tread, 3 1/16" gap |
Fewest balusters per tread that pass the 4 3/8" stair limit, set the traditional way: the front baluster in line with the riser face and the rest dividing the run evenly.
Questions people ask
How far apart should balusters be?
Close enough that a 4" ball cannot pass between them, so every gap must be under 4". On the open side of a stair the limit is 4 3/8", measured level. Most builders aim for about 3 1/2", which leaves room for wood that shrinks or bows.
How many balusters do I need per foot?
About 2 1/2 per foot for 2x2 wood balusters at a 3 1/2" gap, and about 3 per foot for 3/4" metal balusters. Use the calculator for the exact count: each section between posts is worked out on its own, with the same gap at both ends.
Is baluster spacing measured center to center?
No. The code checks the clear opening between two balusters, the space a ball would have to pass through. Center-to-center spacing is that gap plus the width of one baluster.
How many balusters go on each stair tread?
With 2x2 wood balusters, two per tread work on runs under 11 3/4". With 3/4" metal balusters, two per tread only work on runs under 10 1/4", so most deck stairs need three.
Does the 4" rule apply under the bottom rail?
Yes. On a deck, the gap between the deck boards and the bottom rail must also stop a 4" ball. On a stair, the triangle between the tread, the riser and the bottom rail can be larger, up to a 6" ball.
Sources
- 2024 International Residential Code, Chapter 3, International Code Council, Section R321.1.3 (R312.1.3 in the 2021 edition).
- Code-Compliant Guardrails, Journal of Light Construction.
- Baluster Layout, Journal of Light Construction.