Baluster Spacing Calculator
How many balusters fit, the exact even gap, the on-center spacing and every layout mark, with the 4-inch sphere rule checked.
- 1: 3 1/2″
- 2: 8 1/2″
- 3: 13 1/2″
- 4: 18 1/2″
- 5: 23 1/2″
- 6: 28 1/2″
- 7: 33 1/2″
- 8: 38 1/2″
- 9: 43 1/2″
- 10: 48 1/2″
- 11: 53 1/2″
- 12: 58 1/2″
- 13: 63 1/2″
How the spacing is worked out
Even spacing means the gap at each post equals the gap between balusters. With n balusters there are n + 1 gaps, so the clear opening between posts equals n baluster widths plus n + 1 gaps. Pick the largest gap you will accept, solve for the smallest n that keeps every gap at or under it, then compute the exact gap.
Worked example: 6 ft sections of 2×2 balusters
- Posts 72 in. on center, 3½ in. wide: clear opening 68½ in.
- n = ceil((68.5 − 3.5) ÷ (1.5 + 3.5)) = ceil(13) = 13 balusters.
- Gap = (68.5 − 13 × 1.5) ÷ 14 = 3.5 in.; on center 5 in.
- Marks from the left post: 3½, 8½, 13½ … 63½ in.
- With ¾ in. metal balusters in the same section: 16 balusters at a 3.32 in. gap.
Rules beyond the gaps
- Guard height: at least 36 in. above the deck surface where a guard is required (IRC R312.1.2), which is any open side more than 30 in. above grade.
- Bottom gap: the space under the bottom rail must also stop a 4 in. sphere.
- Stairs: the triangle formed by a tread, riser and bottom rail may pass a 6 in. sphere but not larger; the guard on the stair sides follows the same 4 in. rule elsewhere (R312.1.3 exceptions).
- Strength: guards must resist a 200 lb load at the top (IRC Table R301.5); post attachment matters more than baluster count. See DCA 6 for tested post details.
Installation tips
- Cut one spacer block to the exact gap and use it for every space; it’s faster and more accurate than a tape.
- Check plumb every few balusters with a level, since small errors add up across a section.
- Measure each section separately; posts are rarely exactly where the plan says, and the calculator only needs the real opening.
Need the whole railing (posts, rails and baluster counts for every side)? Use the railing calculator.
Common mistakes
- Using nominal sizes. A “2×2” baluster is 1½ in. wide and a “4×4” post 3½ in.; use actual sizes or every gap comes out wrong.
- Measuring post centers instead of the clear opening. The calculator subtracts one post width from the on-center spacing; if your posts differ in size, enter the clear opening directly as the spacing with a post width of 0.
- Starting with a full baluster at the post. Even spacing starts and ends with a gap; starting tight against the post leaves an odd gap at the other end.
Questions people ask
What is the code for baluster spacing?
How many balusters do I need for a 6 ft section?
How do I space balusters evenly?
How many balusters per linear foot?
Sources
- 2021 International Residential Code (IRC) — International Code Council, checked Nov 2026.
- DCA 6: Prescriptive Residential Wood Deck Construction Guide — American Wood Council, checked Nov 2026.
Related calculators
All deck tools →Railing & Baluster Calculator
Posts, balusters and rails with every gap kept under the 4-inch sphere rule.
Deck Stair Calculator
Risers, treads, stringer length and throat, with a drawing to scale.
Stair Stringer Calculator
Any stair, with or without a landing: riser height, cut marks, flights and footprint.
Deck Screw & Fastener Calculator
Deck screws or hidden clips, joist hangers, nails, ledger lags and joist tape.
Deck Planner
Decking, framing, footings, hardware and concrete in one shopping list, with a plan drawing.
Deck Board Calculator
Boards by stock length with seams placed on joists, plus screws or hidden clips.