Spindle Spacing Calculator
To calculate baluster spacing: clear run length divided by (spindle width plus max 4-inch gap per IRC R312.1.3) gives the spindle count, rounded up. Actual gap = (clear run minus count x spindle width) divided by (count + 1). This Diamond Grade widget draws the live railing with spindles equally spaced, runs the IRC R312.1.3 4-inch sphere test, and outputs both clear gap and centre-to-centre layout numbers.
Railing with Spindles Equally Spaced
Total run = 96.00 in
IRC R312.1.3 = 4 in. UK Approved Doc K = 3.94 in.
Standard 4x4 deck post = 3.5 in actual; 6x6 = 5.5 in
Common Spindle / Baluster Sizes
Conversion Table — Run to Spindle Count (3/4 in wood square, 4 in max gap)
| Run (ft) | Run (in) | Spindles (3/4 in) | Actual gap (in) |
|---|---|---|---|
| 4 | 48 | 8 | 3.78 |
| 6 | 72 | 13 | 3.88 |
| 8 | 96 | 18 | 3.92 |
| 10 | 120 | 23 | 3.95 |
| 12 | 144 | 28 | 3.97 |
| 16 | 192 | 38 | 3.99 |
| 20 | 240 | 48 | 4.00 |
| 24 | 288 | 59 | 3.93 |
| 28 | 336 | 69 | 3.95 |
| 32 | 384 | 79 | 3.96 |
Need to plan baluster spacing for an entire stair? See Baluster Calculator.
Formula
count = ceil((clear_run - max_gap) / (spindle + max_gap)); actual_gap = (clear_run - count x spindle) / (count + 1)Worked: 96 in run (8 ft), 4 in posts each end (8 in deducted = 88 in clear), 3/4 in spindles, 4 in max gap. count = ceil((88 - 4) / 4.75) = ceil(17.68) = 18 spindles. Actual gap = (88 - 18 x 0.75) / 19 = 74.5 / 19 = 3.92 in ≤ 4 in. PASSED. Per IRC 2024 R312.1.3 (4 inch sphere rule).
Recent Calculations
How to Calculate Spindle Spacing per IRC R312.1.3
- 1Measure the total runInside-of-post to inside-of-post railing length. The widget accepts ft + extra inches, or just inches. A 28 ft deck rail run = 336 in.
- 2Subtract the end postsStandard 4x4 deck post actual size is 3.5 in; 6x6 is 5.5 in. Default 4-inch deduction per side gives clear run = total - 8 in.
- 3Pick spindle size3/4 in wood square (standard interior); 1-1/4 in wood square (deck); 1/2 in metal round (powder-coated steel); 3/8 in glass panel. The widget has 6 presets.
- 4Set max gapIRC R312.1.3 = 4 in (default). UK Approved Document K = 3.94 in. Australian Standard AS 1657 industrial = 3 in. Custom value for tighter local code.
- 5Read count + actual gapcount = ceil((clear_run - max_gap) / (spindle + max_gap)). actual_gap = (clear_run - count x spindle) / (count + 1). If actual ≤ max, PASSED.
A Brief History of the 4-Inch Sphere Rule
In 2026, a Maryland deck builder finishing a 28 ft long second-story deck railing needs the exact spindle count and post-to-spindle and spindle-to-spindle gaps to clear an IRC R312.1.3 sphere test (no opening 4 inch sphere can pass through). With 1-1/4 inch square wood spindles, the math is total opening width = run minus end posts, divided by (spindle + max gap), rounded up. This Diamond Grade widget delivers the count plus the exact actual gap, plus a pass/fail check against the 4 inch IRC sphere rule.
The 4-inch sphere rule traces to a 1995 CABO One- and Two-Family Dwelling Code update, formalized in the 2000 IRC (International Residential Code, first edition by ICC) as R312.1.3. The rule says no opening in a required guard from 0 to 34 inches above the walking surface shall allow a 4 inch sphere to pass through. The intent: prevent toddler head entrapment, a documented cause of childhood guardrail fatalities. The 6-inch sphere rule applies to the triangular opening below the bottom rail and tread per R312.1.3.1.
Spindle spacing is technically the centre-to-centre distance between adjacent balusters. Spindle-to-spindle gap is the clear opening between adjacent balusters. The IRC R312.1.3 4-inch rule applies to the clear gap, not the centre distance. For 1-1/4 inch square wood spindles, the maximum centre distance is 1.25 + 3.99 = 5.24 inches; the practical layout target is 4 inches gap (centre 5.25 in) to keep clearly inside the rule. This widget's output is the centre-to-centre distance plus the clear gap.
ASTM E2353 (current 2024 edition, Standard Test Methods for Performance of Glazing in Permanent Railing Systems) gives the engineered load test for guard railing systems. Glass-infill railings must withstand 200 lb concentrated load at the top rail (IBC 1607.9.1.3 / IRC R301.5) without allowing a 4-inch sphere to pass. Glass panel widths typically run 12-18 inches with 3/8 inch tempered laminated glass. This widget's glass preset matches the typical SeaLevel or AccuStream glass infill systems used in 2026.
Deck railing height is 36 inches minimum for residential walking surfaces under 30 inches above grade per IRC R311.7.8.1; 42 inches above grade requires R312.1.2 — the famously higher commercial spec also adopted by Massachusetts and California for residential. The spindle-spacing math is independent of height: the 4-inch sphere rule applies regardless. For interior stair guards over 30 inches, IRC R312 says the same 4-inch rule plus 34-38 inch handrail per R311.7.8.
Powder-coated steel spindles (Fortress Building Products, Westbury Aluminum) and aluminum baluster systems became dominant for residential deck installation around 2010-2015. The market displaced traditional wood square spindles by about 60% by 2020 due to lower maintenance (no repainting, no rot). Standard sizes are 1/2 inch round and 3/4 inch square. The 1/2 inch round spindle preset in this widget matches the standard Fortress FE26 line; the 3/4 inch square matches Westbury Tuscany.
The international codes differ from IRC: the UK Building Regulations Approved Document K (current 2026) requires 100 mm (3.94 in) maximum sphere — slightly tighter than IRC's 4 in (101.6 mm). The EN 1991-1-1 European spec (current 2024) sets the same 100 mm rule. Australian Standard AS 1657 (current 2018) uses a stricter 125 mm vertical / 75 mm horizontal in industrial settings. This widget defaults to IRC 4 inch but accepts any custom gap target.
What deck builders and inspectors say
“The pass/fail check against the 4-inch sphere is exactly what my inspector verifies on site. The actual-gap output (not just count) is the number that matters. I haven't had a railing failure since I started using this widget pre-cut.”
“I send homeowners to this widget before their deck-permit appointment. The IRC R312.1.3 reference and the 6-inch stair triangle note are both correct, and the actual-gap output is exactly what I test for with my baluster gauge.”
“Interior wood spindles at 3/4 in square — the centre-to-centre output is my story-stick number. The wood-square preset matches my milled spindle stock. Saves 15 min of math per stair build.”
“The ASTM E2353 + IBC 1607.9.1.3 reference for glass-panel infill is the engineering data my clients ask about. Most online spindle calcs ignore glass entirely. The 3/8 in glass preset is the standard tempered laminated panel I spec.”
Love using our calculator?
Related Calculators
Related Articles
Dive deeper with our expert guides and tutorials related to Spindle Spacing Calculator