Skip to content

Baluster Calculator

Enter the rail span, the baluster width, and the maximum gap you need to respect. The calculator rounds the baluster count up so the equal gaps stay at or below the limit, then reports the actual gap, centre-to-centre spacing, and total baluster width.

Updated 2026-11-18 Editorial estimate Calccc Editorial Team Free · No sign-up
m
mm
mm

A common guardrail rule limits the gap so that a 100 mm sphere cannot pass through.

Scenarios A/BSave two input sets and compare the results. Stored only in this browser.
AEmpty
BEmpty

Your inputs stay in this browser. No account, no uploads.

Professional worksheet

Detailed schedule & assumptions

Inputs used, method, sensitivity, and any year-by-year table. The summary above stays compact; the audit lives here.

Professional worksheet

Inputs, scope, and sensitivity

Inputs used

Method and scope

Result audit

MetricValue

What this calculator does

Baluster spacing is a safety detail, not just a visual one. Many guardrail rules limit the gap so that a 100 mm sphere cannot pass through, and local codes can be stricter. The layout problem is to fit a whole number of balusters into a fixed span with equal gaps at both ends. Rounding the count down can leave gaps that are too wide, so the correct move is to round up and let the gaps close slightly. This calculator does that, checks the actual gap against your limit, and gives the centre-to-centre spacing for layout. It assumes a straight, level rail with equal gaps and no intermediate posts.

How to use it

  1. Measure the clear span between the posts, not the outside of the rail.
  2. Enter the baluster width at its widest point.
  3. Enter the maximum gap allowed by the applicable code or your requirement.
  4. Read the baluster count and the actual equal gap.
  5. Mark the centre-to-centre spacing along the rail and confirm the end gaps.

How it works

Count = ceil((span - max gap) / (baluster width + max gap)). Actual gap = (span - count x width) / (count + 1). Centre spacing = width + actual gap. In the default case, a 3,600 mm span with 40 mm balusters and a 100 mm maximum gap needs 25 balusters at an actual gap of 100.0 mm.

Example calculations

Example 1: 3,600 mm span with 40 mm balusters

The count is 25, giving 26 equal gaps of 100.0 mm. Centre-to-centre spacing is 140.0 mm, and the gap is within the 100 mm limit.

Example 2: 2,400 mm span with 38 mm balusters

A 2,400 mm span needs 17 balusters. The equal gap is 97.4 mm and the centre spacing is 135.4 mm. Rounding up is what keeps the gap below the 100 mm maximum.

Example 3: 4,800 mm span with 50 mm balusters

The count is 32 and the actual gap is 97.0 mm, with a centre spacing of 147.0 mm. Wider balusters reduce the count but also reduce the open area.

What the result means

The code limit is usually written as a sphere that must not pass through the opening, so the gap is measured at the widest point and includes any decorative shape. A 100 mm sphere rule is common, but some jurisdictions use a smaller limit for certain occupancies. The calculator assumes the balusters are vertical and the rail is level; stair rails need a different layout because the balusters are often set plumb with a sloped rail. Check the actual code text and the manufacturer's installation instructions before drilling.

Common mistakes

  • Measuring the rail length instead of the clear span between posts.
  • Rounding the baluster count down and leaving gaps above the limit.
  • Using the narrowest point of a shaped baluster instead of the widest.
  • Forgetting that stair rails and level rails need different layouts.
  • Treating the calculator result as a code approval.

Assumptions and limits

  • The rail is straight and level.
  • The clear span is measured between the inside faces of the posts.
  • All gaps are equal, including the two end gaps.
  • Baluster width is constant at the widest point.
  • The entered maximum gap reflects the applicable requirement.

Frequently asked questions

What is the 100 mm sphere rule?

It is a common guardrail requirement that a 100 mm sphere must not be able to pass through any opening. It is intended to prevent a small child from slipping through or getting stuck. Local codes can differ.

Why round the baluster count up?

Rounding down increases the gap. Rounding up adds balusters and slightly narrows the gaps, which keeps the opening at or below the maximum. The calculator rounds up for that reason.

How do I measure the span?

Measure the clear distance between the inside faces of the posts at the height of the rail. Do not include the post thickness or the rail overhang.

Does this work for stair rails?

Not directly. Stair rails are sloped, and the baluster spacing is usually measured along the rake. The same gap principle applies, but the layout and measurement are different.

What if the gaps come out uneven?

The calculator fits equal gaps. In practice, small differences at the ends are absorbed by adjusting the end gaps or the post spacing. Mark the centres from one end and check the cumulative error before drilling.

Is the result a code-compliant design?

No. It is a layout aid. The applicable code, the guard height, the loading, and the attachment details still need to be checked by a qualified person.

Sources

This calculator is an educational layout aid, not a code compliance determination or engineering advice. Guardrail requirements vary by jurisdiction and occupancy. Confirm the applicable code and attachment details with a qualified professional.

2026 update

How to use the professional output

This page is not just a formula box. The result is designed to be checked, compared, and taken away.

  • Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
  • A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
  • Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.

The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.

Calccc Editorial Team · Updated 2026-11-18

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.