Baluster Calculator
Test cases replayed : 2 of 2 match · Methodology · Sources
Enter the distance between posts, the baluster width and your maximum gap to get the count and the even spacing.
Result
Balusters per section
Even gap between balusters (inches)
Reading the result
At a glance
What moves the result
Method and sources: How this calculator works, Sources
- On-center spacing (inches)
- Balusters for all sections
The unit choice applies to the fields you fill in. Results stay in the units written with them.
Estimate for planning only, not tax, legal, financial or medical advice. Check important figures with the official source listed on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
Affiliate link
This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.
Search Amazon for deck balusters. Visit Amazon
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Units: switches the fields between the two unit systems.
- Clear distance between posts, in in: enter 0 or more.
- Baluster width, in in: enter 0 or more.
- Maximum gap between balusters, in in: enter 0.5 or more.
- Number of identical sections: enter 1 or more.
- Read the result: Balusters per section; the panel also shows Even gap between balusters (inches), On-center spacing (inches) and Balusters for all sections.
Sources
- Stairways and Handrails for Residential Structures City of Saint Paul (MN), Department of Safety and Inspections checked on 2026-11-02
How this calculator works
With n balusters there are n + 1 equal gaps: gap = (distance − n × width) ÷ (n + 1). The smallest n that keeps the gap at or below your maximum is n = (distance − gap) ÷ (width + gap), rounded up.
The International Residential Code (IRC R312.1.3) requires guard openings that do not let a 4-inch sphere pass, so a maximum just under 4 inches is common. Your local code governs.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Clear distance between posts | in | |
| Baluster width | in | |
| Maximum gap between balusters | in | |
| Balusters per section | ||
ceil(x) | the smallest whole number not below x. |
Worked example
| Clear distance between posts | 72 in |
|---|---|
| Baluster width | 1.5 in |
| Maximum gap between balusters | 3.875 in |
| Number of identical sections | 1 |
| Even gap between balusters (inches) | 3.75 |
|---|---|
| On-center spacing (inches) | 5.25 |
| Balusters for all sections | 13 |
Balusters per section 13
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How many balusters for a 6-foot section?
With 1.5-inch balusters and gaps under 3.875 inches, 13 balusters, leaving even 3.75-inch gaps.
Why not just divide by 4 inches on center?
On-center spacing ignores the baluster width at the ends; the even-gap formula makes the first and last gaps match the rest.