Skip to content

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.

Code
IRC R312.1.3
Max sphere
4 in (101.6 mm)
Guard height
36 in residential
Stair triangle
6 in sphere

Railing with Spindles Equally Spaced

Railing with Equally Spaced SpindlesSVG of a deck or stair railing run with spindles equally spaced. Includes a 4-inch sphere test indicator at the centre.4 in sphere test96 in total rungap = 3.92 in (max 4.00 per IRC)PASSED IRC R312.1.3 (4 inch sphere)18 spindles · 3.92 in gap

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

Spindle count
18 spindles
Clear run = 88.00 in · centre-to-centre = 4.671 in
Actual gap
3.921 in (PASS)
vs 4 in max per IRC R312.1.3

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)
44883.78
672133.88
896183.92
10120233.95
12144283.97
16192383.99
20240484.00
24288593.93
28336693.95
32384793.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

  1. 1
    Measure the total run
    Inside-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.
  2. 2
    Subtract the end posts
    Standard 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.
  3. 3
    Pick spindle size
    3/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.
  4. 4
    Set max gap
    IRC 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.
  5. 5
    Read count + actual gap
    count = 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.

Spindle Spacing FAQs

Have more questions? Contact us

What deck builders and inspectors say

4.9
Based on 6,280 reviews

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.

C
Casey Reinwald
Licensed deck builder, Baltimore MD
May 23, 2026

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.

F
Frances Okonkwo
Building inspector, Annapolis MD
April 18, 2026

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.

P
Pedro Marquez
Custom interior staircase builder, Sausalito CA
March 26, 2026

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.

T
Tessa Bratianu
Structural engineer, Portland OR
February 12, 2026

Love using our calculator?

Related Calculators

Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Spindle Spacing Calculator

Loading articles...