- Section length
- Clear distance between inside post faces (inches)
- Baluster width
- Finished width of one baluster (inches), not the nominal lumber size
- Max gap
- Maximum allowed clear opening between balusters (inches)
- Count
- Minimum whole number of balusters that keeps every gap at or below the max
- On center
- Distance from one baluster center to the next (inches)
This baluster spacing calculator uses three steps: count the balusters, calculate the even gap, and locate each center for markout.
Baluster count:
Count = ceil((Section length - Max gap) / (Baluster width + Max gap))
Rounding up guarantees the actual clear gap stays at or below the maximum you set. If you rounded down, the gaps would exceed the limit.
Even spacing:
Actual gap = (Section length - Count × Baluster width) / (Count + 1)
The "count plus one" divisor creates equal gaps at both ends and between every pair of balusters. This balanced layout looks clean and keeps the first and last balusters the same distance from each post.
Center markout:
On center spacing = Baluster width + Actual gap
First center = Actual gap + Baluster width / 2
Each next center = Previous center + On center spacing
Mark the first center from the left post face, then repeat the on center distance for every baluster after it. The last center should land at the mirror position from the right post.
Variables:
- Section length = clear distance between inside post faces, measured in inches
- Baluster width = finished width of one baluster in inches (not the nominal lumber size)
- Max gap = largest allowed clear opening between balusters in inches
- Count = minimum whole number of balusters that keeps every gap at or below the max
- On center = distance from one baluster center to the next
Example:
A 72 inch level section with 1.5 inch balusters and a 4 inch maximum gap.
- Count = ceil((72 - 4) / (1.5 + 4)) = ceil(68 / 5.5) = ceil(12.36) = 13 balusters
- Spaces = 13 + 1 = 14 gaps
- Actual gap = (72 - 13 × 1.5) / 14 = (72 - 19.5) / 14 = 52.5 / 14 = 3.750 in
- On center = 1.5 + 3.75 = 5.250 in
- First center = 3.75 + 0.75 = 4.500 in from left post
- Second center = 4.5 + 5.25 = 9.750 in
- Third center = 9.75 + 5.25 = 15.000 in
Continue adding 5.250 inches until all 13 centers are placed. The last center lands at 67.500 inches, leaving a 3.750 inch gap to the right post. This baluster spacing calculator handles the rounding so you only need to mark and drill.
Quick rule: Estimate roughly 3 balusters per linear foot of railing when using standard 1.5 inch wood balusters. For 3/4 inch iron or metal balusters, plan for about 4 per foot. This gives a fast count for budgeting before you run exact numbers through the calculator.
Stair section example:
A stair section with 60 inch horizontal run and 42 inch total rise, using 3/4 inch metal balusters and a 4 inch max gap.
- Sloped rail = √(60² + 42²) = √(3600 + 1764) = √5364 = 73.24 in
- Stair angle = atan(42 / 60) × 180 / π = 35.0°
- Count = ceil((73.24 - 4) / (0.75 + 4)) = ceil(69.24 / 4.75) = ceil(14.58) = 15 balusters
- Actual gap = (73.24 - 15 × 0.75) / 16 = (73.24 - 11.25) / 16 = 3.874 in
- On center = 0.75 + 3.874 = 4.624 in along the sloped rail
Assumptions:
- Section length is measured between inside post faces, not outside. Post width is not included in the calculation
- Baluster width is the finished dimension. A nominal 2×2 wood baluster is 1.5 inches. A nominal 2×4 is 1.5 × 3.5 inches
- End gaps equal interior gaps (balanced layout). Some builders prefer tighter end gaps, which requires a different formula
- The 4 inch maximum gap follows IRC R312.1.3 for residential guard openings. Check your local jurisdiction for the actual requirement
- For stairs, the calculator assumes balusters are plumb (vertical) and spaced along the sloped top rail. The clear gap is measured perpendicular to the baluster faces
- Rounding to the nearest 1/16 inch is shown for practical tape measure use. Actual calculated values have more precision