Baluster Spacing Calculator
Between 4x4 posts 6 ft apart, clear space 72 − 3.5 = 68.5 in: 12 balusters of 2x2 leave 3.88 in gaps. 11 would leave 4.33 in, enough for a 4 in sphere to pass. Always round the count up: a gap of exactly 4 in lets the sphere through, so it must be under 4 in.
Balusters per section
12 balusters
3.88 in between each, under the 4 in limit
Estimate only. Check dimensions, loads and local code requirements with a qualified professional before you build.
Example values. Enter your measurements above to see your result.
- Clear space between posts
- 68.5 in
- Gap between balusters
- 3.88 in
- Balusters per foot of rail
- 2
- Total balusters
- 12 balusters in 1 section
- Baluster width used
- 1 1/2 in
Equal spacing, vertical balusters. Always round the count up: one fewer baluster would leave a gap of the limit or more.
Also check the 4 in sphere below the bottom rail and the 6 in sphere in the stair triangle. Your building department has the final word.
Checked by the Yardstick Math team · How we check
Worked examples
4x4 posts 6 ft apart center to center, 2x2 balusters
- Clear space: 72 − 3.5 = 68.5 in
- n = ⌊(68.5 − 4) ÷ (1.5 + 4)⌋ + 1 = 12
- g = (68.5 − 12 × 1.5) ÷ 13 = 3.88 in (11 balusters would leave 4.33 in)
Result: 12 balusters, 3.88 in between each.
Checked by the automated test “baluster — 6 ft: 12 balusters (3.88 in), because 11 would leave 4.33 in”.
Open side of a stair, 60 in clear, 2x2 balusters
- At the 4 in limit: n = ⌊(60 − 4) ÷ 5.5⌋ + 1 = 11, gap 3.63 in
- At the 4 3/8 in limit: n = ⌊(60 − 4.375) ÷ 5.875⌋ + 1 = 10, gap 4.09 in
Result: 11 balusters at 4 in, 10 at 4 3/8 in (gap 4.09 in).
Checked by the automated test “baluster — stair, 60 in clear: 11 balusters at the 4 in limit, 10 (4.09 in) at 4 3/8 in”.
4x4 posts 4 ft apart center to center, metal (3/4 in) balusters
- Clear space: 48 − 3.5 = 44.5 in
- n = ⌊(44.5 − 4) ÷ (0.75 + 4)⌋ + 1 = 9
- g = (44.5 − 9 × 0.75) ÷ 10 = 3.78 in (8 balusters would leave 4.39 in)
Result: 9 metal balusters, 3.78 in between each.
Checked by the automated test “baluster — 4 ft center-to-center, metal 3/4 in: 9 balusters, gap 3.78 in”.
4x4 posts 5 ft apart center to center, 2x2 balusters
- Clear space: 60 − 3.5 = 56.5 in
- n = ⌊(56.5 − 4) ÷ (1.5 + 4)⌋ + 1 = 10
- g = (56.5 − 10 × 1.5) ÷ 11 = 3.77 in (9 balusters would leave 4.44 in)
Result: 10 wood 2x2 balusters, 3.77 in between each.
Checked by the automated test “baluster — 5 ft center-to-center, 2x2 wood: 10 balusters, gap 3.77 in”.
24 ft deck railing, 4x4 posts every 6 ft center to center (5 sections), 2x2 balusters
- Per 6 ft section: clear space 72 − 3.5 = 68.5 in
- n = ⌊(68.5 − 4) ÷ (1.5 + 4)⌋ + 1 = 12 balusters, gap (68.5 − 12 × 1.5) ÷ 13 = 3.88 in
- 5 sections × 12 = 60 balusters for the 24 ft railing — 2 per linear foot
Result: 60 balusters total (12 per 6 ft section, 3.88 in gaps, 2 per foot).
Checked by the automated test “baluster — 24 ft deck railing in 5×6 ft sections, 2x2: 60 balusters (12 per section, 3.88 in gaps)”.
Stair railing 9 ft (108 in center to center), 2x2 balusters, 4 3/8 in limit at the open side
- Clear space: 108 − 3.5 = 104.5 in
- At the 4 3/8 in limit: n = ⌊(104.5 − 4.375) ÷ (1.5 + 4.375)⌋ + 1 = 18, gap (104.5 − 18 × 1.5) ÷ 19 = 4.08 in
- At the stricter 4 in limit: n = ⌊(104.5 − 4) ÷ 5.5⌋ + 1 = 19, gap 3.80 in
Result: 18 balusters at the 4 3/8 in stair limit (gap 4.08 in); 19 at the 4 in limit (3.80 in).
Checked by the automated test “baluster — stair railing 108 in c-c at 4 3/8 in: 18 balusters, gap 4.08 in (19 at the 4 in limit, 3.80 in)”.
How it works
Clear space C = center-to-center distance − post width
Balusters n = ⌊(C − L) ÷ (w + L)⌋ + 1, with L = 4 in (4 3/8 in at the open side of a stair)
Gap g = (C − n × w) ÷ (n + 1)
Assumptions
- Vertical balusters with equal spacing, the same gap at each post.
- A 4x4 post measures 3 1/2 in and a 2x2 baluster 1 1/2 in: nominal sizes are larger than actual ones. Edit the widths if yours differ.
- The model code is IRC R312.1.3: a 4 in sphere must not pass between balusters, 4 3/8 in at the open side of a stair. Local amendments are common: your building department has the final word.
- The calculator does not check the space under the bottom rail, the 6 in sphere in the stair triangle, the guard height or the strength of the posts.
Reference table
| Post center to center | 2x2 wood (1 1/2 in) | Metal (3/4 in) |
|---|---|---|
| 4 ft | 8 (3.61 in) | 9 (3.78 in) |
| 5 ft | 10 (3.77 in) | 12 (3.65 in) |
| 6 ft | 12 (3.88 in) | 14 (3.87 in) |
The gap is measured between balusters, and between the end baluster and each post.
Before you start
- Measure the opening. Either post center to post center (the calculator removes the post width) or the clear space between the posts.
- Use real widths. A 4x4 post is 3 1/2 in and a 2x2 baluster 1 1/2 in; a metal baluster is often 3/4 in.
- Pick the limit. 4 in for a deck, landing or flat railing; 4 3/8 in for the open side of a stair.
What this does not cover
Posts, anchoring, loads and guard height are outside this tool. All decks more than 30 in above grade need a guard (AWC DCA 6, R312.1). Estimate only: verify with a licensed professional and your local code.
Common mistakes
- Rounding the count down With 11 balusters in the 6 ft example the gaps are 4.33 in and a 4 in sphere passes. Round up: 12, gaps of 3.88 in.
- Measuring center to center and forgetting the post A 4x4 post takes 3 1/2 in out of the opening: 72 in center to center is a 68.5 in clear space.
- Using the nominal width of the wood A 2x2 is 1 1/2 in wide, not 2 in. A wrong width moves the gap you read off the page.
- Mixing the 4 in and 4 3/8 in limits 4 in is the sphere rule for a deck or landing; 4 3/8 in applies to the open side of a stair. The same 60 in opening takes 11 balusters under one and 10 under the other.
- Stopping at the balusters The 4 in sphere also applies under the bottom rail, and the stair triangle has its own 6 in limit. Check both, and ask your building department about local rules.
Frequently asked questions
How far apart should balusters be?
Under 4 in: IRC R312.1.3 says a 4 in sphere must not pass between balusters. At the open side of a stair the limit is 4 3/8 in, and the triangle at the tread has a 6 in limit. Local code can differ.
How many balusters do I need per foot?
It depends on the width. With 2x2 balusters between 4x4 posts, 6 ft center to center takes 12: about 2 per foot. Type your own widths in the calculator.
How to calculate baluster spacing?
Gap = (clear space − count × baluster width) ÷ (count + 1), with the smallest count that keeps the gap under 4 in. For 68.5 in clear and 2x2 balusters: 12 balusters, 3.88 in.
Sources
Formula, examples and sources checked on by the Yardstick Math team. How we check our formulas.
- R312.1.3 Opening limitations (IRC 2021) — Stairways.org, accessed
- Prescriptive Residential Wood Deck Construction Guide (DCA 6-2015) — American Wood Council, accessed
- Deck railing codes — Decks.com, accessed