Part of The Matrix Lab — Free Suite of Online Tools & Solvers
Baluster Planner / Stair Spindle Spacing Calculator

Stair Baluster & Spindle Spacing Calculator

Calculate sloped handrail baluster spacing with automatic rake pitch angle adjustment. Maintains evenly spaced vertical spindles while keeping horizontal clear gaps compliant with the 4-inch opening reference.

Stair Opening Reference: 4" sphere reference between vertical spindles. Triangle at bottom rail allows up to 6" sphere under IRC R312.1.3 exception.
Standard 34° Preset →

Project Dimensions & Specs

Customize measurements to automatically calculate spacing

Real-Time Engine
in
12" (Gate) 72" (Standard 6ft) 144" (12ft Run)
4" max reference
degrees
Spacing Takeoff Summary Equal Gaps
Required Baluster Count
13 spindles / section
Calculated Clear Gap: 3 3/4"
Center-to-Center (O.C.): 5 1/4"
Left & Right End Spaces: Identical
Safety Clearance Check: PASSES (≤4")
Tip: Always mark both top and bottom rails together on your saw horses to guarantee perfectly plumb baluster lines.

Railing Elevation View

Live scale representation of posts, pickets, and equal spacing

4" Opening Check (≤4")
← Hook at Post 1 (0") Post 2 Inside Face →

Running Tape Measure Schedule

Pull your tape measure once along the bottom rail. Mark each number below without moving the hook.

Item # Pencil Mark (Leading Edge) Centerline Mark Exact Decimal
Stair Geometry & Carpentry

Understanding Sloped Rake Railing Math

Unlike level deck guardrails where the rail runs parallel to the deck floor, stair guardrails follow the pitch of the stair stringer (typically 32° to 37° for exterior deck stairs).

1. Slope Rake Elongation

Because spindles stand vertically plumb while the rail slopes, the distance measured along the bottom rail is elongated by $1 / \cos(\theta)$. At 34°, a 4.0" horizontal gap requires a 4.82" mark along the rail.

2. The 6-Inch Stair Triangle

Under IRC Section R312.1.3, the triangular opening formed by the bottom rail, the stair tread, and the stair riser must not allow a 6-inch diameter sphere to pass through.

01

Why Use Running Tape Measure Marks?

Using individual spacer cutoffs from picket to picket creates cumulative drift. A tiny 1/32" manufacturing error per block multiplies across 15 balusters into almost a 1/2" error, leaving the final gap visibly uneven. Locking your tape hook at 0" on Post 1 eliminates all stacking error.

02

4-Inch Opening Reference

Under IRC Section R312.1.3, guardrail openings generally use a 4-inch sphere limit, subject to applicable exceptions. This calculator helps divide the selected opening into equal spaces for layout planning; always verify the requirements that apply to your specific project.

03

Balusters vs Spindles vs Pickets

While termed interchangeably across US and UK building trades, balusters and pickets generally refer to square-edge deck infill posts, whereas spindles denote turned wood stair uprights. The spacing math provides a consistent layout reference for the selected dimensions.

Engineering Reference

Baluster Spacing Mathematical Formula

4" Opening Reference

1. Baluster Count Calculation:

Count = ceil((Opening - TargetGap) / (BalusterWidth + TargetGap))

Calculates a baluster count based on the selected opening and target gap, then distributes the remaining space evenly.

2. Exact Symmetrical Clear Gap:

Clear Gap = (Opening - (Count × BalusterWidth)) / (Count + 1)

Distributes leftover opening across N+1 air gaps, creating identical margins from starting and terminal posts.

Frequently Asked Questions

Quick answers on building codes, spacing formulas, and deck installation

What is the building code for deck baluster spacing?

Under the International Residential Code (IRC Section R312.1.3), guardrail openings generally must not allow a 4-inch diameter sphere to pass through, subject to applicable exceptions. Local jurisdictions may use different adopted code editions or amendments, so verify the requirements for your project.

What is the difference between On-Center (O.C.) and Clear Gap?

The clear gap is the open air space between the facing edges of two balusters. On-center is measured from the center line of one baluster to the center line of the next. On-center equals the clear gap plus the width of one baluster.

Why are the first and last gaps identical?

The mathematical engine calculates the minimum baluster count and divides the leftover opening equally across every space ($N+1$). This creates symmetrical margins at both posts for a balanced, custom-built look.

How do you calculate baluster spacing on stairs?

Because stairs slope at an angle, the distance measured along the rake of the rail can be adjusted using the selected rake angle to provide a slope-adjusted spacing reference. Stair opening requirements and exceptions vary by applicable building code and jurisdiction, so verify the requirements for your project.