Baluster Spacing Calculator
Calculate the number of balusters and exact spacing for deck railings and stair spindles, with IRC compliance check.
Building a deck? Calculate rafter dimensions for your roof with our Rafter Calculator.
Input
For multiple identical railing runs (e.g., both sides of a deck).
Result
Spacing Diagram
How It Works
Baluster count = ⌈(Run − Baluster Width) / (Max Gap + Baluster Width)⌉. Exact gap = (Run − Balusters × Baluster Width) / (Balusters + 1). End spacing equals the gap (equal spacing throughout).
Understanding Baluster Spacing
Proper baluster spacing is critical for both safety and aesthetics. Building codes require that the gap between balusters be small enough to prevent a 4-inch sphere from passing through — this protects children from falling through or getting stuck.
Baluster Spacing Formula
To find the number of balusters needed:
To find the exact equal spacing between balusters:
The end spacing equals the exact gap, giving equal spacing from post to first baluster, between balusters, and from last baluster to post.
How to Calculate Baluster Spacing
IRC Code Requirements
- Residential (IRC R312): Maximum 4-inch gap between balusters on guardrails. Applies to decks, balconies, and porches more than 30 in above grade.
- Stairways (IRC R312.1): Maximum 4⅜-inch gap on stair railings (triangle at tread). The 4-inch rule applies to the baluster-to-baluster gap.
- Commercial (IBC): Maximum 4-inch gap. Some jurisdictions require 3⅝ in for increased safety in public spaces.
- Height: Guardrails must be at least 36 in high for residential, 42 in for commercial.
Frequently Asked Questions
How many balusters do I need for a 10-foot deck railing?
For a 10-foot (120 in) railing with 1.5 in balusters and a 4 in max gap: Balusters = ⌈(120 − 1.5) / (4 + 1.5)⌉ = ⌈118.5 / 5.5⌉ = ⌈21.5⌉ = 22 balusters. The exact gap = (120 − 22 × 1.5) / 23 = 87 / 23 = 3.78 in — well within the 4-inch code requirement.
What is the maximum spacing between deck balusters?
IRC requires a maximum 4-inch gap between balusters on residential guardrails. This is measured as the clear space between balusters — a 4-inch sphere must not be able to pass through. Some local codes are stricter (3⅝ in), so always verify with your local building department.
How do you calculate stair baluster spacing?
For stairs, the railing run follows the diagonal of the stair rise and run. Calculate: Run = √((Tread Run)² + (Tread Rise)²) × Number of Treads. Then apply the same baluster formula. The key difference is that the "run" is along the slope, not horizontal.
Should balusters be equally spaced from the ends?
Yes — for the most professional appearance, balusters should have equal spacing from the end posts to the first and last baluster as between balusters. This is the "equal spacing" method. Some installers prefer a half-space at each end, but equal spacing throughout looks best and is easiest to install with a spacer jig.
What size balusters are most common?
The most common wood baluster sizes are 1.25 in × 1.25 in (nominal 2×2) and 1.5 in × 1.5 in. Metal balusters are typically ½ in to ¾ in square or round. Thinner balusters (½ in metal) allow wider visible spacing between them, while thicker wood balusters create a more traditional look but require more material.