★ REFERENCE TABLE · CONSTRUCTION · STAIRS & RAILINGS

Baluster Spacing Chart & Calculator

An 8-foot rail with 1.5-inch wood balusters takes 17 balusters, leaving a 3.92-inch clear gap. The rule behind every number on this page is the International Residential Code (IRC) sphere test: a 4-inch sphere must not pass between balusters, so the clear gap between balusters must be 4 inches or less. Enter your rail length and baluster width in the calculator to count a section, then print the table and take it to the job site.

561

How many balusters does your rail take?

Baluster spacing starts from one rule: the clear gap between balusters must be 4 inches or less, because a 4-inch sphere must not pass through. With n balusters there are n + 1 gaps, so the clear gap is the rail length minus the balusters' own widths, divided by n + 1. The calculator finds the smallest baluster count that keeps every gap at or under 4 inches. End posts count as boundaries, not balusters, and the end gaps equal the clear gap by construction.

Inches of rail. A 120-inch rail at 1.5 inches takes 22 balusters; a 48-inch rail at 1.5 inches takes 8, because shorter rails need fewer balusters to hold every gap at 4 inches or less.

Inches per baluster. A 96-inch rail at 0.5 inches takes 21 balusters, while the same rail at 2.5 inches takes 15 — wider balusters fill more of the rail themselves, so fewer are needed to close the gaps.

Balusters for your rail1796 inches of rail at 1.5 inches per baluster takes 17 balusters: (96 − 4) ÷ (1.5 + 4) = 16.73, rounded up to 17. Clear gap = (96 − 17 × 1.5) ÷ 18 = 3.92 inches — under the 4-inch limit, so a 4-inch sphere cannot pass. Center-to-center spacing = (96 − 1.5) ÷ 16 = 5.91 inches. End gaps equal the clear gap by construction. Measure the sloped rail length along the stair, not the horizontal run.

96 inches at 1.5 inches takes 17 balusters with a 3.92-inch clear gap. That is 17 balusters and 18 gaps across 96 inches of rail, and the gap is under the 4-inch limit — the sphere test passes.

The model, stated exactly

The IRC guard and baluster rule is a sphere test: a 4-inch sphere must not pass between balusters, so the clear gap between balusters must be 4 inches or less. For a rail section of length L inches and baluster width w inches, n balusters leave n + 1 gaps (one between each pair of balusters, plus one at each end, where the end posts act as boundaries). The clear gap is therefore (L − n × w) ÷ (n + 1). The smallest count that keeps the gap at or under 4 inches is n = ceil((L − 4) ÷ (w + 4)), computed with an epsilon-safe ceiling (a tiny 1e-9 tolerance is applied before rounding up) so a case that lands exactly on 4.00 inches never rounds up to one extra baluster. Center-to-center spacing, when it is useful for layout, is defined as (L − w) ÷ (n − 1): the distance between the centers of the first and last balusters spread across the section. End gaps equal the clear gap by construction, so spacing every baluster at the clear gap from its neighbors and from the posts gives a uniform run.

The worked example, line by line

Setup: 96 inches of rail, 1.5-inch wood balusters.

Line 1 — baluster count. (96 − 4) ÷ (1.5 + 4) = 92 ÷ 5.5 = 16.73, rounded up to 17 balusters.

Line 2 — clear gap. (96 − 17 × 1.5) ÷ 18 = 70.5 ÷ 18 = 3.92 inches — under the 4-inch limit, so the sphere test passes.

Line 3 — center-to-center spacing. (96 − 1.5) ÷ 16 = 94.5 ÷ 16 = 5.91 inches between adjacent baluster centers.

Try these

120 inches at 1.5 inches. (120 − 4) ÷ 5.5 = 21.09, rounded up to 22 balusters; clear gap = (120 − 33) ÷ 23 = 3.78 inches.

96 inches at 0.5 inches (iron). (96 − 4) ÷ 4.5 = 20.44, rounded up to 21 balusters; clear gap = (96 − 10.5) ÷ 22 = 3.89 inches.

48 inches at 1.5 inches. (48 − 4) ÷ 5.5 = 8.00 exactly, so 8 balusters; clear gap = (48 − 12) ÷ 9 = 4.00 inches — the boundary case, which passes at exactly 4 and needs no extra baluster.

Baluster spacing reference table — print this table

Every cell is computed with the same formula as the calculator: the smallest baluster count that keeps the clear gap at or under 4 inches, and the clear gap that count produces. Read across a row for your rail length, down a column for your baluster width. Iron balusters (0.5 inches) are the slender metal spindles common on modern stairs; wood balusters (1.5 inches) are the standard turned or square wood spindle; wide wood balusters (2.5 inches) are the chunky square or box newel-style spindles. All gaps are in inches and all are at or under the 4-inch limit.

Rail length (in)Iron 0.5 in: balustersIron 0.5 in: clear gap (in)Wood 1.5 in: balustersWood 1.5 in: clear gap (in)Wide wood 2.5 in: balustersWide wood 2.5 in: clear gap (in)
3683.5663.8653.92
48103.9184.0073.81
60133.82113.6393.75
72163.76133.75113.71
96213.89173.92153.66
120263.96223.78183.95
144323.88263.89223.87

Output · formula · meaning

OutputFormulaWhat it means
Baluster countceil((L − 4) ÷ (w + 4))17 at the defaults — the smallest count that keeps every gap at or under 4 inches.
Clear gap(L − n × w) ÷ (n + 1)3.92 inches at the defaults — the open space between balusters, and between each end baluster and its post. Must be 4 inches or less.
Center-to-center spacing(L − w) ÷ (n − 1)5.91 inches at the defaults — the distance between adjacent baluster centers, useful for marking layout on the rail.
Gap countn + 118 at the defaults — one gap between each pair of balusters, plus one at each end.

Who uses this

  • The homeowner replacing a stair railing: measures an 8-foot rail, enters 96 inches at 1.5 inches, and learns the section takes 17 wood balusters at a 3.92-inch gap — the count for the lumber order.
  • The DIYer switching to iron balusters: enters the same 96 inches at 0.5 inches, gets 21 balusters at a 3.89-inch gap, and discovers the slimmer spindles need four more pieces than wood for the same rail.
  • The contractor checking a bid: enters 120 inches at 1.5 inches, gets 22 balusters, and spots immediately whether a supplier's count matches the 4-inch rule or pads the order.
  • The home inspector or buyer: reads the table, measures a gap with a tape, and checks in seconds whether an existing railing passes the sphere test or needs a baluster added.

Accuracy & limitations

The 4-inch rule is the IRC guard and baluster sphere test, stated here as the standard rule rather than copied from any single source — and local codes vary: some jurisdictions apply a 4-inch rule only to guards above a certain height, some apply a stricter rule to stair guards, and some older homes were built under earlier codes. Always confirm against your local building code and your inspector before building. The calculator has its own limits: it counts one straight rail section only, with uniform spacing and equal end gaps. It assumes every baluster has the same width — mixed widths, tapered spindles, and decorative baskets change the effective width and must be measured at their widest point. It does not account for newel posts mid-run, angled transitions, or volutes, which split a rail into separate sections that must be calculated one at a time. Measure the sloped rail length along the stair, not the horizontal run: on a stair the rail follows the slope, so the horizontal run understates the length and understates the count. Very short rails (4 inches or less) need no baluster by the sphere test; the calculator reports a minimum of one. Error policy: a rail length or baluster width that is missing, non-numeric, zero or less, or unrealistically large (over 1200 inches of rail, over 120 inches of width), and a baluster width equal to or greater than the rail length, are reported as errors rather than calculated, so no result ever shows NaN.

Cite this calculatorBright Side Kit. “Baluster Spacing Chart & Calculator: 4-Inch Rule Guide.” brightoolbox.com, 2026.Bright Side Kit. "Baluster Spacing Chart & Calculator: 4-Inch Rule Guide." https://brightoolbox.com/baluster-spacing-chart/ Accessed October 24, 2026.
Embed this calculator

Paste this into any web page to embed the live calculator. The “Powered by Bright Side Kit” link below it must stay intact.

Frequently asked questions

What is the 4-inch baluster rule?

A 4-inch sphere must not pass between balusters. That is the IRC guard and baluster test: if the clear gap between balusters is 4 inches or less, a small child's head cannot pass through. Every number on this page is built to keep the clear gap at or under 4 inches.

How many balusters do I need for an 8-foot rail with wood balusters?

17 balusters. An 8-foot rail is 96 inches, and (96 − 4) ÷ (1.5 + 4) = 16.73, rounded up to 17 — leaving a 3.92-inch clear gap that passes the sphere test.

How do I measure rail length on a stair?

Measure along the sloped rail, not the horizontal run. On a stair the rail follows the slope, so the horizontal distance understates the true rail length and understates the baluster count. Measure between the inside faces of the end posts, following the slope.

Do end posts count as balusters?

No — end posts count as boundaries, not balusters. With n balusters there are n + 1 gaps: one between each pair of balusters, plus one at each end where the post closes the run. The end gaps equal the clear gap by construction.

What if my clear gap comes out to exactly 4 inches?

It passes. The rule is 4 inches or less, so a gap of exactly 4.00 inches — like a 48-inch rail with 1.5-inch balusters — meets the test and needs no extra baluster. The calculator's epsilon-safe ceiling keeps that case at 8 balusters instead of rounding up to 9.

Do iron balusters need different spacing than wood balusters?

The gap rule is the same, but the count changes. Iron balusters are typically 0.5 inches wide, so a 96-inch rail takes 21 of them at a 3.89-inch gap, versus 17 wood balusters at 1.5 inches. Slimmer balusters fill less of the rail, so more are needed to close the gaps.

Does the 4-inch rule apply to decks and porches too?

Yes, for guards — but local codes vary. The IRC sphere test applies to guards on decks, porches, and stairs alike, and some jurisdictions add stricter rules for stair guards or for guards above a certain height. Confirm with your local code and inspector before building.