fscmd

Baluster Spacing Calculator

Evenly spaced balusters make a railing look professional and keep it safe. Enter the clear distance between your posts, the width of each baluster (spindle) and the largest gap your code allows, and the calculator gives the number of balusters, the exact equal gap, the on-centre spacing and a list of marks to lay out on your rail — no trial and error.

Baluster spacing calculator

Deck Railing Planner Pack

Printable baluster layout worksheet, a railing materials list (Excel) with spacing formulas, a railing code checklist and a spacer-block cut guide.

Formats: XLSX, PDF, DOCX. Instant download after payment (link valid 72 hours, up to 5 downloads). AI-assisted: the templates were drafted with AI help and reviewed and laid out by Kedop.

$3.00 USD, one-time

Secure card checkout by Stripe. Full refund within 7 days — see the refund policy and license.

The formula

To space balusters evenly with equal gaps at both posts: number of balusters = (length − gap) ÷ (baluster width + gap), rounded up to a whole number. Then the exact gap = (length − number × width) ÷ (number + 1), and the on-centre spacing is gap + width. Rounding up the number of balusters guarantees the actual gap is never bigger than your maximum.

The 4-inch rule

Most US residential building codes require guards (railings) where a deck, porch or landing is more than 30 inches above the ground, and state that a 4-inch sphere must not pass through any opening. That is why many builders aim for gaps just under 4 inches — 3⅞ or 3¾ inches — to leave a margin for wood movement and imperfect installation. Common US code provisions allow a larger 4⅜-inch sphere between balusters on the open side of stairs, and a 6-inch sphere in the triangle formed by the tread, riser and bottom rail. Other countries use different figures (for example 100 mm in the UK), so always check your local code.

Worked example

A deck section is 96 inches between posts, balusters are 1½ inches wide and the maximum gap is 3⅞ inches. Number = (96 − 3.875) ÷ (1.5 + 3.875) = 17.1, rounded up to 18 balusters. Exact gap = (96 − 18 × 1.5) ÷ 19 = 3.632 inches (about 3⅝ in), on-centre spacing 5.132 inches. For four identical sections you need 72 balusters — buy about 76 to allow for splits and mistakes.

Laying out the balusters

  1. Measure the clear distance between post faces at the bottom rail and again at the top — they should match.
  2. Use the calculator’s exact gap; cut a spacer block to that width.
  3. Mark the first baluster’s left edge at one gap from the post, then every on-centre distance.
  4. Alternatively, mark centre points and centre each baluster on its mark.
  5. Fix the first and last balusters, check the remaining space, then fill in using the spacer.
  6. Check plumb every few balusters with a level.

A spacer block is faster and more consistent than measuring each gap: fix one baluster, hold the block against it, fix the next.

Stair balusters

On stairs, balusters follow the slope of the rail. Measure the horizontal run between posts (not along the slope) for layout from above, or measure along the rail and use the same calculator — the gap measured square to the balusters is what matters for the sphere rule. Many stair designs use two or three balusters per tread; check that the gap between them meets your code’s stair limit.

Choosing balusters

TypeTypical widthNotes
Square wood (2 × 2)1½ in (38 mm)Classic, affordable; paint or stain
Turned wood1¼–1¾ inDecorative stair and porch railings
Round metal¾ inSlim modern look; more balusters needed
Square metal¾ inPowder-coated aluminium or steel
Glass panelsVariesUse panel system spacing rules
Cable—Needs tensioned posts; different spacing rules (often 3 in)

Narrow metal balusters need more pieces for the same length, because the gap limit stays the same while each baluster covers less width.

Common mistakes

Planning the whole deck

Measure every section separately — posts are rarely exactly the same distance apart — and run the calculator for each. Keep the same maximum gap everywhere so the spacing looks consistent; the actual gaps will vary slightly from section to section, which is not noticeable once installed. Add up the balusters for all sections, including stairs, and buy a few extra: wood balusters can have knots, splits or twists that make some unusable.

Metric layouts

Switch the units to millimetres for metric materials. For a 2,400 mm span with 40 mm balusters and a 95 mm maximum gap, you need 18 balusters with gaps of about 88.4 mm. In the UK and many other places, the 100 mm sphere rule for domestic balustrades is common — check the regulations that apply to your project.

Privacy

The calculator runs in your browser and stores nothing.

Frequently asked questions

How far apart should balusters be?

Close enough that a 4-inch sphere cannot pass through in most US codes; many builders aim for about 3¾–3⅞ inches.

How many balusters for an 8-foot section?

With 1½-inch balusters and a 3⅞-inch maximum gap, 18.

What is on-centre spacing?

The distance from the centre of one baluster to the centre of the next: gap + width.

Is the gap measured at the widest point?

Yes, measure the clear opening between balusters.

Do stairs use the same rule?

Many US codes allow a 4⅜-inch sphere between stair balusters; check your local code.

How do I keep gaps even while installing?

Cut a spacer block to the exact gap and use it between each baluster.

Can I use more balusters than the calculator says?

Yes, extra balusters only make gaps smaller; fewer would make them too wide.

What gap is between the bottom rail and deck?

Many codes apply the same 4-inch sphere rule there; check your local code.

Does the calculator work for fences?

Yes, for picket fences enter the picket width and desired gap.

Is my data stored?

No, it runs in your browser.