Baluster Calculator

Calculate even spacing for railing balusters (spindles).

Calculator by SuperCalX: formulas, worked examples and 250+ free calculators.

Your values

Result

Balusters Needed
22
Exact Spacing
3.7826"
Center-to-Center
5.2826"
Layout Plan
Installation guide

Start Point

To center the layout, find the center of the rail. Place the center of the middle space at the center of the rail.

Code Compliance

Your spacing of 3.7826" is within the maximum limit.

How to Use

Step-by-step instructions
  1. 1Enter the total length of the rail section.
  2. 2Enter the width of a single baluster.
  3. 3Enter the maximum allowed spacing (usually 4 inches).
  4. 4The calculator will provide the number of balusters and exact spacing.

Uniform Spacing

Determines the exact gap between balusters to ensure they are evenly distributed and meet code requirements (usually max 4 inches).
Spacing = (Length - (Count × Width)) / (Count + 1)

Variables:

LengthTotal rail length
WidthWidth of one baluster
CountNumber of balusters

Example

10ft Railing

Inputs:

Length:120 in
Width:1.5 in
Max Space:4 in

Steps:

  1. 1.Min Spaces = (120 + 1.5) / (4 + 1.5) = 22.09 -> 23 spaces
  2. 2.Balusters = 23 - 1 = 22
  3. 3.Spacing = (120 - (22 × 1.5)) / 23 = 3.78 inches
Result:
22 balusters, 3.78" spacing

Baluster Calculator: the short answer

Number of balusters = round up((rail length + baluster width) ÷ (max gap + baluster width)) − 1, and even spacing = (rail length − balusters × width) ÷ (balusters + 1). On a 96 in rail with 1.5 in balusters and a 4 in maximum gap, you need 17 balusters spaced 3.92 in apart.

  • U.S. residential codes (IRC) require openings that a 4-inch sphere cannot pass through.
  • Guards are required where a deck or stair is more than 30 inches above the ground.
  • Residential guard height is usually at least 36 inches.

By the SuperCalX team · Reviewed by Dr. Ahmed Mortuza Saleque, founder and editor · Last reviewed · How we check our calculators

Laying out balusters

Stair balusters need the same 4-inch rule, measured along the slope; the triangle under the stair rail may allow a 6-inch sphere under the IRC.

  • Measure between posts, not post centres.
  • Cut a spacer block to the calculated gap.
  • Start from the centre or from one post and check that the final gap matches.

Worked examples

96 in rail, 1.5 in balusters, 4 in max gap

  1. Spaces = round up(97.5 ÷ 5.5) = 18; balusters = 17.
  2. Gap = (96 − 17 × 1.5) ÷ 18 = 70.5 ÷ 18.

17 balusters, 3.92 in apart.

Common mistakes

  • Measuring gaps centre to centre instead of edge to edge.

Baluster Calculator FAQ

How far apart should balusters be?

Under the IRC, no more than 4 inches clear between them.

How many balusters per foot?

About 2.1 to 2.5 per foot for 1.5 in square balusters at code spacing.

What is the standard maximum spacing?

Most building codes (like IRC) require that a 4-inch sphere cannot pass through the balusters, so spacing is typically set to a maximum of 4 inches.

Add this calculator to your website

Teachers, bloggers and businesses can show the Baluster Calculator on their own pages for free. Copy this code and paste it into your page's HTML:

Please keep the credit link so readers can find the formula, worked examples and guide.