Renovimo
A front hall staircase with white painted balusters, two to each tread, under a dark stained handrail between turned newel posts

Engineering calculator

Baluster spacing calculator

A 6 ft (1.83 m) clear opening between posts takes 13 balusters 1½ in wide, with 14 equal gaps of 3¾ in (9.5 cm) and the balusters 5¼ in on center: no gap lets the 4 in sphere of IRC R312.1.3 through. On the open side of a stair the limit is a 4⅜ in sphere; two 1¼ in spindles on a 10 in tread, 5 in on center, leave 3¾ in gaps, well under it. Enter your railing or stair to get the count, the gap, every layout mark from the post to 1/16 in, drawings and a 3D model.

Space your balusters

Baluster spacing calculator: count, gaps and layout marks

Works for wood, metal and iron balusters (spindles) on a level railing, a balcony or landing guard, or a stair. The count is the fewest balusters that keep every gap under the limit, with equal gaps at both posts. Measure the clear distance face to face of the posts; for a turned spindle, enter its width at the thinnest point, where the gap is widest.

The railing

6 ft = 1.83 m, face to face

Stair heights are measured plumb from the line through the tread nosings. Rail depths are measured square to the rail; on a stair the calculator turns them into the plumb depth a baluster loses.

The balusters

Colors for the 3D

Quick answers

How many balusters do I need for a 6 ft railing?

How many balusters for a 6 ft section, and how far apart? Take the clear distance between the posts, S, and the baluster width, b. The fewest balusters that keep every gap under 4 in is n = ⌊(S − 4) ÷ (b + 4)⌋ + 1, and the equal gap is (S − n × b) ÷ (n + 1). For 72 in between posts and 1½ in balusters: (72 − 4) ÷ 5½ = 12.4, so 13 balusters; the gap is (72 − 13 × 1½) ÷ 14 = 3¾ in (9.5 cm), and they sit 5¼ in on center, the first one 3¾ in from the post. Twelve would leave 4.15 in gaps, which fail. Posts set 6 ft on center (4 × 4 posts, 3½ in wide) leave 68½ in clear, which takes 12 with 3⅞ in gaps.

Baluster count and gap by railing length

Balusters per section and the equal gap they leave, for the clear distance between the posts and three common baluster widths, every gap under the 4 in sphere of IRC R312.1.3. Gaps are rounded down to the 1/16 in.

Clear between posts 1½ in wood (2 × 2) 1¼ in spindle ¾ in round metal
3 ft 6 · 3 13/16 in gaps 7 · 3 3/8 in gaps 7 · 3 13/16 in gaps
4 ft 9 · 3 7/16 in gaps 9 · 3 5/8 in gaps 10 · 3 5/8 in gaps
5 ft 11 · 3 5/8 in gaps 11 · 3 13/16 in gaps 12 · 3 7/8 in gaps
6 ft 13 · 3 3/4 in gaps 13 · 3 15/16 in gaps 15 · 3 3/4 in gaps
8 ft 17 · 3 7/8 in gaps 18 · 3 13/16 in gaps 20 · 3 13/16 in gaps

Many builders hold wood balusters to about 3¾ in so a board that shrinks or twists still passes; pick that limit in the calculator and it adds a baluster where needed.

Stairs

Stair baluster and spindle spacing: per tread and the 4⅜ in rule

On the open side of a stair the IRC allows a larger opening than on a level guard: "Guards on the open side of stairs shall not have openings that allow passage of a sphere 4-3/8 inches (111 mm) in diameter" (R312.1.3, Exception 2). Balusters stand plumb, so the opening between two of them, measured square to their faces, is a level distance: the rake does not shrink it. Measured along the sloped rail the same spacing is longer, by 1 ÷ cos of the stair angle, and that is the spacing to mark on a rail.

On an interior stair the balusters usually stand on the treads, so many to each: the on-center spacing is the tread run divided by that number, and the gap is that less the baluster width. Two per tread is the usual layout and three where the gap would be too wide; that is builder practice, the code only sets the sphere.

Tread run1¼ in spindle1½ in baluster2 in baluster1¼ in, held to 4 in
10 in2 · 3 3/4 in gaps2 · 3 1/2 in gaps2 · 3 in gaps2 · 3 3/4 in gaps
10½ in2 · 4 in gaps2 · 3 3/4 in gaps2 · 3 1/4 in gaps3 · 2 1/4 in gaps
11 in2 · 4 1/4 in gaps2 · 4 in gaps2 · 3 1/2 in gaps3 · 2 3/8 in gaps

Balusters per tread and the gap, measured level. Where the balusters stand on a bottom rail instead, a second rule applies: the triangle formed by the riser, the tread and the bottom rail must not pass a 6 in sphere (R312.1.3, Exception 1). With a 7½ in riser, a 10 in run and a 1 in nosing, a rail on the nosing line already leaves room for a 5½ in sphere, so the underside of the rail must sit less than ¾ in above the nosing line. The stair's own rise and run are on the stair calculator.

The code

Baluster spacing code: the 4 in sphere and guard height

The IRC never states a baluster spacing. It sets the largest ball that must not pass through the guard, and the spacing follows from it. The figures this calculator checks, from the 2021 IRC:

RuleLimitSection
Openings in a guard, from the walking surface to the guard heightNo 4 in sphere passesR312.1.3
Guards on the open side of stairsNo 4⅜ in sphere passesR312.1.3 Exception 2
Triangle formed by the riser, tread and bottom railNo 6 in sphere passesR312.1.3 Exception 1
Guard heightAt least 36 in above the walking surfaceR312.1.2
Guard on the open side of a stairAt least 34 in, plumb from the nosing lineR312.1.2 Exception 1
Handrail, or a guard top that serves as one34 to 38 in, plumb from the nosing lineR311.7.8.1; R312.1.2 Exception 2
Where a guard is requiredOpen sides more than 30 in above the floor or grade below, at any point within 36 in horizontally of the edgeR312.1.1
Guard load200 lb at any point along the topTable R301.5, note i
Balusters and other infill50 lb on an area of 1 sq ftTable R301.5, note f

Some towns amend these rules, and a commercial building follows the IBC instead; check with your building department.

A woman measuring in an old house under renovation, beside a stair with turned wood balusters, a newel post and building materials on the floor

Based on your result

What you'll need

For the balusters of your railing or stair: the balusters, what fixes them, and the tools that keep the layout even.

Balusters Amazon
The count, at the store length the cut list picks
Calculate above
Fixings Amazon
Screws, connectors or shoes for the kind you picked, at both ends
—
Top and bottom rail
Post to post; on a stair, along the rake
—
Spacer block
A helper cut to the gap; the marks set the positions, so re-check against them every few balusters and check the last gap
1
Baluster spacing jig Amazon
An adjustable spacer that clamps to the rail, if you have many to set
1 (optional)
Level Amazon
Plumbs every baluster before the top is fixed
1
Speed square Amazon
Marks the square or rake cut on each baluster
1
Tape measure Amazon
Every mark from the same post face
1

As an Amazon Associate I earn from qualifying purchases.

The maths

Baluster spacing formula

With n balusters between two posts there are n + 1 gaps, one at each post and one between each pair. Make them all equal and the layout looks deliberate and every gap is the smallest it can be.

S = clear distance between posts, b = baluster width, g = gap limit
n = ⌊(S − g) ÷ (b + g)⌋ + 1
gap = (S − n × b) ÷ (n + 1)
on center = gap + b
mark k = gap + (k − 1) × (gap + b)
stairs: per tread = ⌊run ÷ (b + g)⌋ + 1
along the rail = level spacing ÷ cos(angle)
  1. 01

    Measure the clear distance

    Face to face of the posts, at the rail. Use the narrowest width of the baluster: for a turned spindle, its thinnest point, because that is where the gap is widest.

  2. 02

    Find the count

    The gap is under the limit g exactly when n is more than (S − g) ÷ (b + g); the fewest whole balusters that do it is that figure rounded down, plus one. At 72 in with 1½ in balusters that is 12.4 → 13. If the figure comes out whole, the extra baluster keeps the gap strictly under g rather than equal to it.

  3. 03

    Work out the gap and the marks

    Share what is left after the balusters equally among the n + 1 gaps. Mark the left face of baluster k at gap + (k − 1) × on-center, each measured from the post, not from the mark before, so rounding to 1/16 in never builds up. A spacer block is only a helper: cut to the rounded gap it falls a little short each time and the shortfall piles into the last gap, so re-check against the marks every few balusters.

  4. 04

    Stairs: level, then along the rail

    Balusters stand plumb, so the code opening is the level gap. On a stair the limit is 4⅜ in; with the balusters on the treads the count is per tread, and each baluster's length grows by the rise over the run times its distance from the nosing. Between rails, divide the level spacing by the cosine of the stair angle to mark it along the rail.

  5. 05

    Check the other openings

    Under the bottom rail of a level guard the gap must also stay under 4 in. Under a stair's bottom rail the triangle with the riser and tread must not pass a 6 in sphere: its inscribed circle is (R + h + R·p ÷ T) ÷ R × (R + T − √(R² + T²)) for riser R, run T, nosing p and the rail h above the nosing line.

Good to know

Baluster and spindle spacing questions

Under 4 in on a level guard: IRC R312.1.3 says no opening may let a 4 in sphere through, from the walking surface up to the guard height. On the open side of a stair the limit is a 4⅜ in sphere (Exception 2), and the triangle under a stair's bottom rail may be up to a 6 in sphere (Exception 1). Your town may amend these, so check locally.

On center is the gap plus the baluster width. For 1½ in balusters with gaps just under 4 in that is about 5¼ to 5½ in; for 1¼ in spindles about 5 in; for ¾ in round metal about 4½ in. Use the calculator for your clear distance: it makes every gap equal, so the exact on-center spacing depends on the length.

With the spindles on the treads, two per tread is usual: a 10 in tread with 1¼ in spindles at 5 in on center leaves 3¾ in gaps, under the 4⅜ in stair limit. Count the treads the rail runs over and double it: 12 treads take 24 spindles, in two lengths, because the second one on each tread stands higher under the rail.

Level. Balusters stand plumb, so the clear opening between two of them, measured square to their faces, is a level distance; the slope of the rail does not change it. The spacing measured along the sloped rail is longer, by 1 ÷ cos of the stair angle, and that is the figure to mark on the rail itself.

A gap. With equal spacing there is a gap at each post the same as between the balusters, so the first baluster's face is one gap from the post. Some builders center a baluster in the run instead; it works too, as long as the gaps at the posts are under the limit.

Use the thinnest part of the spindle as its width, because that is where the opening is widest and where a 4 in ball would pass. A spindle with a 1¼ in square top that turns down to ¾ in counts as ¾ in for the gap.

The guard is 36 in high on a level walking surface (R312.1.2). Take off the top rail and what sits under the balusters: with a 1½ in top rail, a 1½ in bottom rail and a 3 in gap under it, a baluster is 30 in, cut from 36 in stock. On a stair each baluster on a tread is a different length, which is why stair spindles are sold in several lengths, such as 36, 39 and 41 in. On a stair, the top rail's depth comes off plumb, so a 1½ in rail at 36.9° takes 1⅞ in.

n = ⌊(S − 4) ÷ (b + 4)⌋ + 1 balusters for a clear distance S and baluster width b, then gap = (S − n × b) ÷ (n + 1). Use 4⅜ in instead of 4 on the open side of a stair, or a tighter figure if you want to leave room for wood to shrink.

The sphere rule applies to any infill, so horizontal rails or cables must also keep every opening under 4 in. Some towns restrict horizontal infill because it can be climbed; the IRC does not, but check your local code before you build one.

No. It lays out the infill to the opening limits in the IRC. The guard has to resist a 200 lb load along its top and the balusters a 50 lb load on 1 sq ft (Table R301.5), which depends on the posts and how they are fixed. Build those to your building department's details.

Building a whole deck railing — posts, rails, brackets and the cost? The deck railing and post spacing calculator sets the posts and counts the balusters for every run. For the stair under the rail, use the stair calculator or the deck stair calculator.

For your website

Run a contractor, supply or DIY site? Put this baluster spacing calculator on your own page for free — it works the same as here and updates on its own.

Keep estimating