Enter Railing Details
Calculation Results
Baluster Spacing Calculator โ Complete Guide
- What baluster spacing is and why the gap is regulated by building code
- The exact formula for even spindle spacing โ and the reverse formula
- How to calculate spacing for deck railings and stair railings
- The 5 most common mistakes that cause failed inspections
- US, UK, Canada, and Australia building code requirements side by side
- A quick-reference spindle count table for 6 common railing lengths
Your spindles must be no more than 4 inches apart. That is the IRC building code โ IRC Section R312.1.3 to be exact. But most professional deck builders use 3.5 inches as their working target. Measuring to exactly 4.0 inches leaves no buffer for installation tolerance. This free baluster spacing calculator gives you the exact count and gap in seconds. No math needed.
What Is Baluster Spacing? (And Why the Gap Matters)
A baluster โ also called a spindle โ is a vertical member in a deck or stair railing. It fills the open space between the larger support posts. Balusters run from the deck surface or a bottom rail up to the top handrail.
The gap between them is a safety requirement, not a style choice. The 4-inch sphere rule states that no opening in a railing should allow a 4-inch ball to pass through. This rule exists to prevent young children from falling through or getting their heads trapped.
Building inspectors carry a 4-inch ball to every deck inspection. If it passes through any gap, the railing fails. Fixing the problem after installation means re-drilling the top and bottom rail to add more spindles. That is an expensive fix.
Baluster Spacing Building Code Requirements
Here is the 4-inch rule in four countries. Keep this table as your reference before you start.
| Country | Max Gap | Code Reference | Test Method |
|---|---|---|---|
| USA | 4 inches (101.6mm) | IRC Section R312.1.3 | 4-inch sphere must not pass through |
| UK | 99mm (~3.9") | BS 6180 / Approved Document K | 100mm sphere test โ the baby's head rule |
| Canada | 100mm (~3.9") | NBC Section 9.8.8 | 100mm sphere test |
| Australia | 125mm (~4.9") | NCC Volume Two | 125mm sphere test |
Build at 3.5 inches โ not 4.0 inches. Minor variations during installation can push gaps slightly over 4 inches. Professional deck contractors use 3.5 inches as the standard to guarantee a pass.
Railing height matters too. The IRC requires at least 36-inch-high railings on decks less than 30 inches above grade. Decks 30 inches or more above grade need 42-inch railings. These height rules apply no matter how your spindles are spaced.
Baluster Spacing Formula โ How the Calculator Works
Start with plain English: subtract the total width of all balusters from your railing length. Then divide that remaining space by the number of gaps โ one more than the number of balusters.
Spacing Formula: Spacing = (Railing Length โ N ร Baluster Width) รท (N + 1)
Reverse Formula (find count): N = (Railing Length โ Spacing) รท (Baluster Width + Spacing) โ always round up
Center-to-Center Pitch: Pitch = Baluster Width + Spacing
IRC maximum gap: 4 inches | Professional target: 3.5 inches
For installers marking positions โ center-to-center pitch: add the baluster width to the gap. That is your on-center mark. For a 1.5-inch baluster with 3.5-inch spacing: 1.5 + 3.5 = 5.0 inches per mark. Use this number on your tape measure during installation.
Worked Example โ 10-Foot Deck Railing
You have a 120-inch post-to-post distance. You are using 1.5-inch square balusters. You want 3.5-inch spacing.
- Count: N = (120 โ 3.5) รท (1.5 + 3.5) = 116.5 รท 5 = 23.3 โ round up to 24 balusters
- Check spacing: (120 โ 24 ร 1.5) รท (24 + 1) = 84 รท 25 = 3.36 inches โ Passes 4-inch code
- Order with waste: 24 ร 1.10 = 27 balusters to buy
Do not want to do the math? The calculator at the top does it for you.
For the full deck build, use the Baluster Calculator which calculates spindle count per section with post deduction built in. To plan the deck surface itself, try the Decking Calculator for board count and gap spacing.
Spindle Count Quick Reference Table
Use this as a fast lookup before entering values into the calculator. Based on 1.5-inch square balusters at 3.5-inch spacing.
| Railing Length | Spindles Needed | Actual Spacing | Code Compliant? |
|---|---|---|---|
| 6 feet (72") | 14 | 3.43" | โ Yes |
| 8 feet (96") | 19 | 3.45" | โ Yes |
| 10 feet (120") | 24 | 3.36" | โ Yes |
| 12 feet (144") | 28 | 3.57" | โ Yes |
| 14 feet (168") | 33 | 3.44" | โ Yes |
| 16 feet (192") | 38 | 3.47" | โ Yes |
For aluminum balusters (typically 0.75 inches wide) or Trex, TimberTech, and Fiberon composite balusters, use the calculator above. Thinner balusters mean more spindles per foot to stay under the 4-inch limit.
Stair Baluster Spacing Calculator โ What's Different?
The same 4-inch maximum gap applies to stair railings under IRC R311.7.8.2. But measuring on stairs is trickier.
Here is the thing โ always measure the horizontal gap between spindles. Not the diagonal distance along the stair rake angle. Measuring diagonally gives a bigger number. That leads to gaps that look fine but fail inspection.
Professional stair builders use a 4-inch PVC pipe held horizontally between spindles during installation. If it slides through, the gap is too wide. Test every gap โ not just a few.
Use the horizontal post-to-post run as your railing length when calculating stair sections. Do not use the angled length along the stringer. For stair calculations on this page, switch to stair mode and enter your riser height and tread run โ the calculator adjusts automatically.
5 Common Mistakes When Calculating Spindle Spacing
These are the mistakes that cause failed inspections and expensive rework.
- Wrong measurement point. Measure from the inside face of each post โ not the outside. Total rail length includes post widths that are already occupied. Using post-to-post clear distance only is the right move.
- Nominal vs. actual size. A 2ร2 wood baluster is 1.5 inches wide, not 2 inches. Always enter the actual measured width. Getting this wrong means your count will be short and gaps will fail.
- Rounding down. Always round your baluster count up. Rounding down leaves wider gaps that push over the 4-inch code limit.
- Building to exactly 4 inches. Use 3.5 inches as your target. Small measurement errors during installation can push 4.0-inch gaps over the limit and fail inspection.
- Missing post widths. If your railing has three posts, subtract all three post widths from the total length before calculating. Missing even one post throws off the entire count.
Frequently Asked Questions
How far apart should spindles be on a deck railing?
Deck spindles must be no more than 4 inches apart per IRC Section R312.1.3. Most professional deck builders space them at 3.5 inches. That gap gives a small buffer so minor installation variation does not push gaps over the code limit during inspection.
How do I calculate baluster spacing?
Subtract the total width of all balusters from your post-to-post railing length. Then divide that space by balusters plus one. The formula is: Spacing = (Railing Length โ N ร Width) รท (N + 1). Use the calculator above to skip the math entirely.
How many spindles do I need per foot of railing?
Plan for 3 spindles per linear foot with 1.5-inch square balusters at 3.5-inch spacing. For a 10-foot railing, that is about 30 spindles. For thinner 0.75-inch aluminum balusters, plan for 4 per foot to stay under the 4-inch code limit.
What is the 4-inch rule for deck balusters?
The 4-inch rule states that no gap between spindles should allow a 4-inch sphere to pass through. This comes from IRC Section R312.1.3 and exists to stop young children from falling through or getting their heads trapped between spindles on a deck railing.
How do I calculate spindle spacing for stairs?
Use the same 4-inch maximum gap rule. Measure the horizontal gap between spindles โ not the diagonal distance along the stair angle. Enter the horizontal post-to-post distance as your railing length. Use the stair mode in the calculator above for an automatic adjustment.
Can I use a spindle spacing calculator for stairs and decks?
Yes. The calculator on this page handles both flat deck railings and angled stair railings. For stairs, switch to stair mode and enter your riser height and tread run. The calculator adjusts the spacing formula for the stair angle automatically.
What is the spindle spacing rule in the UK?
In the UK, the maximum gap is 99mm per BS 6180 and Approved Document K. Building regulations state a 100mm sphere must not pass through any opening in the guarding. This is nearly identical to the US 4-inch rule and is commonly called the baby's head rule.
Do I always need to round up the spindle count?
Yes โ always round up. If the formula gives 23.7 spindles, buy 24. Rounding down to 23 increases the gap between each spindle. That wider gap may push you over the 4-inch code limit and cause a failed inspection.
What is center-to-center spindle spacing?
Center-to-center spacing is the distance from the center of one spindle to the center of the next. It equals spindle width plus the gap. For a 1.5-inch spindle with 3.5-inch spacing: 1.5 + 3.5 = 5 inches on center. Use this number to mark spindle positions on the rail during installation.
How do I measure spindle spacing on a turned wood spindle?
Measure the gap at the narrowest point of the spindle โ not the widest. Building code requires a 4-inch sphere cannot pass through any opening, and the narrowest section creates the largest potential gap. Always measure from the thinnest point when checking compliance.
How many balusters do I need for 8 feet of railing?
For an 8-foot (96-inch) railing with 1.5-inch wide balusters and 3.5-inch spacing, you need approximately 19 balusters. That gives actual gaps of about 3.45 inches โ safely under the 4-inch code limit. Use the calculator for your exact post-to-post measurement.
What is a good spacing for deck balusters?
3.5 inches is the most common spacing used by professional deck builders in the US. It passes the 4-inch IRC code, leaves room for measurement tolerance during installation, and works well with standard 1.5-inch square balusters available at any home improvement store.
Related Calculators
Use the Baluster Calculator to calculate full railing sections with post deduction built in. The Decking Calculator estimates deck boards, gaps, and waste before you calculate your railing. For all the framing lumber under your deck, the Lumber Calculator covers joists, beams, and total cost.
All calculations are estimates based on standard formulas and IRC guidelines. Actual spindle counts and spacings may vary based on field conditions. Verify all requirements with your local building department before construction.
Need More Calculators?
Explore our complete collection of construction calculators to plan every part of your project.
Browse All Calculators