How to Work Out Baluster Spacing
Start from the gap, not the baluster. Measure the clear space between the post faces, decide the largest gap you’ll accept (3 3/4 in gives a little margin under the 4 in limit), and add one gap to each baluster width: that’s the space one baluster takes up. Divide the span, less one gap, by that figure and round up. The answer is the fewest balusters that keep every gap under your target.
Then make the gaps equal. Multiply the baluster count by the baluster width, take that from the span, and divide what’s left by one more than the number of balusters, because there’s a gap at each post as well as between balusters. For a 68 1/2 in span with 2x2 balusters (1 1/2 in): 68 1/2 − 3 3/4 = 64 3/4, divided by 5 1/4 is 12.3, so 13 balusters. They take 19 1/2 in, leaving 49 in for 14 gaps of exactly 3 1/2 in.
balusters = round up ((span − gap) ÷ (baluster width + gap)) equal gap = (span − balusters × width) ÷ (balusters + 1)
The 4 Inch Rule and Stairs
The residential building code (IRC R312.1.3) doesn’t set a baluster spacing. It says a 4 in sphere must not pass through any opening in a required guard, from the deck surface up to the top of the guard. That covers the gap under the bottom rail as well as between balusters, and it’s about a small child’s head. Two exceptions apply to stairs: on the open side of a stair, the limit is a 4 3/8 in sphere, and the triangle formed by a tread, a riser and the bottom rail may pass up to a 6 in sphere.
Stairs trip people up because balusters stand vertical while the rail slopes. The sphere sees the level gap between balusters, which is shorter than the distance measured along the rail. On a stair with 7 3/4 in risers and 10 in treads, the rail runs at 37.8°. A 72 in section along the rail is only 56 15/16 in level, which takes 10 balusters at about 3 3/4 in, or 6 11/16 in apart on centre when you mark along the rail. That’s about 2 per tread. Many areas adopt the IRC as written, but some are stricter, so check yours.
Baluster Spacing Chart
Common post spacings with 4x4 posts (3 1/2 in wide), keeping gaps to 3 3/4 in on a deck. Each cell gives the balusters per section and the equal gap, rounded down to the 1/16 in.
| Post centres (clear span) | 2x2 wood | 1 1/4 in wood | 3/4 in metal |
|---|---|---|---|
| 4 ft (44 1/2 in) | 8 at 3 9/16 in | 9 at 3 5/16 in | 10 at 3 5/16 in |
| 5 ft (56 1/2 in) | 11 at 3 5/16 in | 11 at 3 9/16 in | 12 at 3 5/8 in |
| 6 ft (68 1/2 in) | 13 at 3 1/2 in | 13 at 3 11/16 in | 15 at 3 9/16 in |
| 7 ft (80 1/2 in) | 15 at 3 5/8 in | 16 at 3 1/2 in | 18 at 3 1/2 in |
| 8 ft (92 1/2 in) | 17 at 3 11/16 in | 18 at 3 5/8 in | 20 at 3 11/16 in |
Marking and Installing
Don’t measure every baluster. Cut a spacer block to the gap, 3 1/2 in for the 68 1/2 in example, then work from one post: block, baluster, block, baluster. Check against the marking list every few balusters, so small errors don’t build up and leave a wide gap at the far post. If one end comes out slightly off, split the difference over the last few gaps rather than leaving one gap wider than the rest.
A baluster centred in the section looks tidy where a section lines up with a door or window, but it forces an odd number and can shrink the gaps. On stairs, keep each baluster plumb with a level rather than square to the rail, and fix the bottom of each into the tread or the bottom rail before cutting the tops.
Baluster Spacing FAQ
How This Calculator Works
Each section’s count is the fewest balusters whose equal gaps stay at or under your target, never more than the code limit for the mode: 4 in for decks and porches, 4 3/8 in for stairs. On stairs, the span measured along the rail is converted to the level span with the rail angle, and the marks are converted back. Marks are rounded to the nearest 1/16 in; if that rounding would open any gap past the limit, the calculator adds a baluster. Spares are 5%, at least 1. The screw count is our own rule of 2 at each end. We test the engine on thousands of random spans, widths and angles to check every gap passes.
- City of Albany, GA: residential code guide (IRC R312.1.3 opening limitations)
- White Bear Lake, MN: residential stair guide (stair guard exceptions)
- Viewrail: the 4 inch sphere rule (deck, stair and triangle limits)
Written and checked by Kris Lynch. Not reviewed by a licensed professional; confirm guard requirements with your local building department. See our methodology. Spotted a problem? Tell us. Updates: Nov 2026, launched.