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.
Project Dimensions & Specs
Customize measurements to automatically calculate spacing
Railing Elevation View
Live scale representation of posts, pickets, and equal spacing
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 |
|---|
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.
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.
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.
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.
Baluster Spacing Mathematical Formula
1. Baluster Count Calculation:
Calculates a baluster count based on the selected opening and target gap, then distributes the remaining space evenly.
2. Exact Symmetrical Clear Gap:
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.