Baluster Calculator
IRC R312 check
Measure the clear distance between post faces, not post centers. Check the actual baluster width with a caliper or tape; nominal 2 × 2s are 1½ in.
A 6 ft (72 in) rail section with 1½ in balusters needs 14 balusters to keep every gap under 3½ in. Spaced evenly, each gap is 3.4 in and the balusters sit 4.9 in on center, with the first center 4.15 in from the post. Four sections take 56. Enter your rail below to get the count, spacing, and marks.
How many balusters per section?
| Section | 1½ in wood (gap) | ¾ in metal (gap) |
|---|---|---|
| 48 in (4 ft) | 9 (3.45 in) | 11 (3.31 in) |
| 60 in (5 ft) | 12 (3.23 in) | 14 (3.3 in) |
| 72 in (6 ft) | 14 (3.4 in) | 17 (3.29 in) |
| 84 in (7 ft) | 17 (3.25 in) | 19 (3.49 in) |
| 96 in (8 ft) | 19 (3.38 in) | 22 (3.46 in) |
How to calculate baluster spacing
Baluster layout is a fit problem: you want the fewest balusters that keep every gap, including the gaps at the posts, under your limit. The math:
- Count = (section length − max gap) ÷ (baluster width + max gap), rounded up.
- Actual gap = (section length − count × baluster width) ÷ (count + 1).
- On-center spacing = actual gap + baluster width.
For a 72 in section, 1½ in balusters, and a 3½ in maximum gap: (72 − 3.5) ÷ 5 = 13.7, so 14 balusters. The gaps are (72 − 21) ÷ 15 = 3.4 in, and the balusters sit 4.9 in on center. Every gap, including the two at the posts, is the same.
Laying out the marks
Mark from one post only, so small errors don't add up across the section. The first baluster's center sits one gap plus half a baluster from the post: 3.4 + 0.75 = 4.15 in. Each next center is one on-center step further. The calculator lists every mark, so you can transfer them to the top and bottom rail with a tape or a story stick.
Spacing blocks are faster than measuring: cut a block exactly as wide as the actual gap and use it between each pair of balusters. Check the last gap before you fasten the final few, and split any small difference over the last several gaps.
The 4-inch sphere rule and guard height
The International Residential Code sets the limits most US jurisdictions use:
- Openings (R312.1.3): a guard may not let a 4 in sphere pass anywhere from the walking surface up to the required height. The gap must be under 4 in, which is why 3½ in is a common target.
- Stairs: on the open side of a stair, the limit is a 4⅜ in sphere, and the triangle formed by the riser, tread, and bottom rail may not pass a 6 in sphere.
- Height (R312.1.2): guards are required where the drop is more than 30 in, and must be at least 36 in high. Guards that also serve as a stair handrail are usually 34 to 38 in.
The check under the results compares your actual gap and guard height with these limits. Local codes can be stricter, and commercial work follows the IBC, which requires 42 in guards in most places.
Common baluster sizes
Use the actual width, not the nominal one:
- Wood 2 × 2: 1½ in actual.
- Turned wood spindles: often 1¼ to 1¾ in at the widest square block.
- Square metal balusters: commonly ½ to ¾ in.
- Round metal balusters: commonly ¾ in.
Thinner balusters need more pieces for the same gap. A 72 in section takes 14 wood 2 × 2s but 17 metal balusters at ¾ in, as the table above shows.
How many balusters per foot?
As a rough guide, 1½ in balusters at a 3½ in maximum gap work out to about 2⅓ per foot, and ¾ in metal ones to about 2¾ per foot. Use the calculator for the real count, because rounding up happens per section, not per foot: four 6 ft sections need 56 wood balusters, while one 24 ft run would need fewer. Order a few extra for splits and bad pieces.
What the calculator does not cover
- Raked (stair) sections: enter the horizontal distance between posts; the vertical balusters fill it the same way.
- Horizontal rails or cable: many codes treat these as climbable and limit them. Check locally.
- Structural strength: posts and rails must resist a 200 lb load at the top (IRC Table R301.5). This tool checks spacing and height only.
About the numbers: limits are from IRC Section R312 (2021) as summarized by the ICC and Viewrail. The spacing formula is plain geometry, and the table and examples were checked with this calculator.
Frequently asked questions
How do I calculate baluster spacing?
Count = (section length − max gap) ÷ (baluster width + max gap), rounded up. Then gap = (length − count × width) ÷ (count + 1). A 72 in section with 1½ in balusters and a 3½ in max gap needs 14 balusters with 3.4 in gaps.
What is the maximum baluster spacing?
Under IRC R312.1.3, no opening may let a 4 in sphere through, so the gap must be under 4 in. On the open side of stairs the limit is a 4⅜ in sphere. Many builders aim for 3½ in to leave room for error.
How many balusters do I need for a 6 ft section?
14 wood 2 × 2 balusters (1½ in) for a 72 in clear opening with gaps under 3½ in, or 17 metal balusters at ¾ in. Each section is rounded up on its own, so count sections separately.
How many balusters for an 8 ft section?
For a 96 in clear opening, 19 wood 2 × 2s at 1½ in give 3.38 in gaps, and ¾ in metal balusters need 22. Measure between post faces, not post centers.
How high does a deck railing have to be?
At least 36 in under IRC R312.1.2, required wherever the walking surface is more than 30 in above the floor or grade below. Commercial buildings under the IBC usually need 42 in.
Where do I start the first baluster?
One gap plus half a baluster from the post. With 3.4 in gaps and 1½ in balusters, the first center is 4.15 in from the post, and each next one is 4.9 in further. Lay out from one post to avoid adding up errors.
Related calculators
Sources
- International Residential Code, Section R312 Guards and Window Fall ProtectionInternational Code CouncilR312.1.1 guards where the drop exceeds 30 in; R312.1.2 at least 36 in high; R312.1.3 no opening that passes a 4 in sphere, 4⅜ in on the open side of stairs, 6 in at the stair triangle.
- The 4-inch sphere ruleViewrailHow inspectors apply the 4 in sphere to balusters, and the larger stair allowances.