ConstructionCalculators

Baluster Spacing Calculator

Enter the space between the posts, a whole railing or a run of stairs to get the number of balusters, the exact gap and the marks, with every opening under the code limit.

68-1/2"3-7/8"
Railing
Space between posts

You need

12balusters

3-7/8" apart

Openingunder the 4" sphere (IRC R312.1.3)
3-7/8"
On centerbaluster to baluster
5-3/8"
Marksleft edges from the post: 3‑7/8", 9‑1/4", 14‑5/8", 20‑1/16", 25‑7/16", 30‑13/16", 36‑3/16", 41‑9/16", 46‑15/16", 52‑3/8", 57‑3/4", 63‑1/8"
12

How Many Balusters Do I Need?

A 68 1/2 in space between 4×4 posts set 6 ft on center takes 12 balusters of 2×2 wood, 3 7/8 in apart. That keeps every opening under the 4 in sphere the code allows, with the same gap at both posts.

Balusters = (space − 4) ÷ (baluster + 4), rounded up · gap = (space − balusters × baluster) ÷ (balusters + 1)(68.5 − 4) ÷ (1.5 + 4) = 11.7 → 12 balusters68.5 − 12 × 1.5 = 50.5 in of openings50.5 ÷ 13 = 3.88 in → 3 7/8 in apart

Balusters and openings by the space between posts:

Space between posts2×2 wood (1 1/2 in)3/4 in metal
30 in5 · 3 3/4 in6 · 3 5/8 in
44 1/2 in (4 ft posts)8 · 3 5/8 in9 · 3 3/4 in
56 1/2 in (5 ft posts)10 · 3 3/4 in12 · 3 5/8 in
68 1/2 in (6 ft posts)12 · 3 7/8 in14 · 3 7/8 in
92 1/2 in (8 ft posts)17 · 3 3/4 in19 · 3 15/16 in

The space is the clear distance between the post faces, measured at the rail. Posts 6 ft on center leave 72 − 3 1/2 = 68 1/2 in with 4×4s, and 66 1/2 in with 6×6s.

Balusters by the clear space between posts:

2×2 wood3/4 in metal
3 ft clear
6
7
4 ft clear
9
10
5 ft clear
11
12
6 ft clear
13
15
8 ft clear
17
20
2×2 wood, 3/4 in metal, in balusters

Thin metal balusters need more pieces for the same rail, about 2 1/2 a foot against 2 for 2×2 wood, because each one fills less of the space.

How to Space Balusters Evenly

  1. 1Measure the clear space between the posts at the rail height, in inches. Measure each section; posts are rarely set exactly on their marks.
  2. 2Enter it with the baluster width. The calculator returns the count and the gap that is the same at both posts and between every pair.
  3. 3Mark the left edge of each baluster from the same post face, using the marks the calculator lists, rather than spacing them one from the next.
  4. 4Cut a spacer block to the gap and use it to hold each baluster square while you fasten it.
  5. 5Check the last gap against the post. If it is off by more than 1/16 in, a mark was missed.

For a section between 4×4 posts 4 ft on center, the marks look like this:

44-1/2"3-5/8"
8 balusters, 3 5/8 in gaps; marks at 3 5/8 in, 8 3/4 in, 13 13/16 in, 18 15/16 in …

Why the Gap Comes Out Under 4 in

The code test is a 4 in sphere that must not pass, so an opening of exactly 4 in fails. The calculator adds balusters until every gap is smaller, which is why 68 1/2 in gives 3 7/8 in and not 4. If your balusters are crooked or you want more margin, set Largest opening to 3 1/2 or 3 in: the same span then takes 14 or 15 balusters.

Baluster Spacing Code

  • 4 in sphere: guard openings must not let a 4 in sphere pass (IRC 2021 R312.1.3), so every gap has to be under 4 in. That includes the gap under the bottom rail.
  • Stairs: on the open sides of stairs the limit is 4 3/8 in, and the triangle formed by the riser, tread and bottom rail must stop a 6 in sphere.
  • When a guard is needed: on open sides more than 30 in above the floor or grade within 36 in horizontally (R312.1.1).
  • Height: at least 36 in, or 34 in from the stair nosings (R312.1.2).
  • Strength: balusters and other in-fill must hold a 50 lb load on one square foot, and the guard top 200 lb (IRC Table R301.5).
  • Posts: no more than 6 ft apart in the American Wood Council's DCA 6 deck guide.

The four opening rules, shown as the test spheres an inspector would use:

36 in34 in1234
  1. 1Between balusters: under 4 in
  2. 2Under the bottom rail: under 4 in
  3. 3Between stair balusters: under 4 3/8 in
  4. 4Triangle at the tread: under 6 in

The 2024 IRC moved these rules to Section R321 without changing the numbers. Where fixed benches stand along the guard, DCA 6 measures the guard height from the seat, not the deck, so someone standing on the bench still has a full guard in front of them.

Stair Balusters

On stairs, the calculator places the same number of balusters on every tread so the openings repeat. The gap is measured level, between the balusters on one tread and across to the next.

Balusters per tread and the opening, under the 4 3/8 in stair limit:

Tread2×2 wood3/4 in metal
10 in2 · 3 1/2 in2 · 4 1/4 in
10.5 in2 · 3 3/4 in3 · 2 3/4 in
11 in2 · 4 in3 · 2 15/16 in
12 in3 · 2 1/2 in3 · 3 1/4 in

Two 2×2 balusters on a 10 in tread leave 3 1/2 in openings, 8 balusters for 4 treads. On a 12 in tread two would leave 4 1/2 in, so it takes three. Keep the bottom rail close to the nosing line, too: the higher it sits, the larger the triangle above each tread. For the stair itself, work out the risers and treads.

A Whole Railing

For a full run, the calculator sets posts no more than 6 ft on center and divides the run into equal sections, so every section takes the same balusters and the same gap. A 36 ft railing over the end posts takes 7 posts and 6 sections of 67 15/16 in, with 12 balusters in each: 72 in all.

For the posts, rails and cap of a deck guard with a stair opening, and what they cost, price the whole deck railing. The same spacing math sets the gaps in a fence; the fence picket calculator counts pickets for a run of fence.

Common Baluster Spacing Mistakes

  • Measuring post centers. The balusters fill the clear space between the post faces; using the on-center distance adds a post width, and every gap comes out wrong.
  • Spacing each baluster from the last one. A 1/16 in error repeated a dozen times becomes 3/4 in at the far post. Mark every edge from the same post face.
  • Using the stair limit on the deck. The 4 3/8 in opening applies only on the open sides of stairs; level guards need openings under 4 in.
  • Forgetting the bottom gap. The space between the deck and the bottom rail is an opening too, and it has to stop the same 4 in sphere.
  • Rounding the gap up. If a layout comes out to 4 1/16 in, add a baluster rather than squeezing the posts.

Baluster Sizes

Wood balusters are sold by nominal size and planed smaller: a 2×2 is 1 1/2 in square. The calculator also takes 1 1/4, 1 and 3/4 in widths; measure yours across the face that borders the gap.

The narrower the baluster, the more of them a span needs to keep the gaps under 4 in. Over a 68 1/2 in section, the count goes from 12 with 2×2s to 13 at 1 1/4 in, 13 at 1 in and 14 at 3/4 in. For the deck that the railing goes on, count the boards, joists and footings.

Frequently Asked Questions

What is the code for baluster spacing?

The openings in a guard must not let a 4 inch sphere pass (IRC 2021 R312.1.3; R321.1.3 in the 2024 IRC). On the open sides of stairs the limit is 4 3/8 inches, and the triangle under the bottom rail of a stair must stop a 6 inch sphere.

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

12 balusters of 2×2 wood, 3 7/8 inches apart, between 4×4 posts set 6 ft on center (68 1/2 inches clear). With 3/4 inch metal balusters it takes 14.

How many balusters for an 8 ft rail?

With 4×4 posts 8 ft on center, the rail spans 92 1/2 in and takes 17 balusters of 2×2 wood or 19 of 3/4 in metal. A rail a full 96 in long takes 17 of 2×2.

How many balusters per foot of railing?

About 2 per foot with 2×2 wood balusters and about 2 1/2 per foot with 3/4 inch metal ones, when every opening stays just under 4 inches.

How many balusters per stair tread?

Two 2×2 balusters on a 10 or 11 inch tread keep the openings under the 4 3/8 inch stair limit: 3 1/2 inches on a 10 inch tread and 4 inches on an 11 inch tread.

Can the gap between balusters be exactly 4 inches?

No. The rule is that a 4 in sphere must not pass, so a 4 in opening fails; every gap has to be smaller. Balusters warp and shift a little, so many builders aim for 3 1/2 to 3 7/8 in.

How far apart should deck railing posts be?

No more than 6 ft apart in the American Wood Council's prescriptive deck guide, DCA 6. Manufactured railing systems list their own post spacing.

How tall does a deck railing have to be?

At least 36 inches, and at least 34 inches measured from the stair nosings. A guard is required where the deck is more than 30 inches above the floor or grade below (IRC R312.1.1 and R312.1.2).

How do I calculate baluster spacing?

Subtract 4 inches from the space between the posts and divide by the baluster width plus 4 inches; round up for the number of balusters. The exact gap is the space less all the balusters, divided by the number of balusters plus one.

What size is a 2×2 baluster?

1 1/2 × 1 1/2 inches. Lumber is sold by nominal size; a 2×2 is planed to 1 1/2 inches square.

Sources

  • American Wood Council. (2018a). National design specification (NDS) supplement: Design values for wood construction (2018 ed.).
  • American Wood Council. (2018b). Prescriptive residential wood deck construction guide: Based on the 2015 International Residential Code (DCA 6-15).
  • International Code Council. (2020). 2021 International Residential Code (Sections R301.5, R312).
  • International Code Council. (2023). 2024 International Residential Code (Section R321).

Updated .

Cite this page as:

Daniel, P. Baluster Spacing Calculator. Available at: https://constructioncalculators.com/baluster-spacing-calculator/. Accessed: October 28, 2026.