Skip to calculator

Baluster Spacing Calculator

A 68 1/2 in section between posts (6 ft centres) takes 13 2x2 balusters with 3 1/2 in gaps. Enter your spans below for counts, gaps and a marking list, on decks or stairs.

Baluster spacing calculator

Measure between the faces of the posts, not their centres. A 6 ft post spacing with 4x4 posts leaves 68 1/2 in.

Gap and layout
Enter the space between your posts.

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 wood1 1/4 in wood3/4 in metal
4 ft (44 1/2 in)8 at 3 9/16 in9 at 3 5/16 in10 at 3 5/16 in
5 ft (56 1/2 in)11 at 3 5/16 in11 at 3 9/16 in12 at 3 5/8 in
6 ft (68 1/2 in)13 at 3 1/2 in13 at 3 11/16 in15 at 3 9/16 in
7 ft (80 1/2 in)15 at 3 5/8 in16 at 3 1/2 in18 at 3 1/2 in
8 ft (92 1/2 in)17 at 3 11/16 in18 at 3 5/8 in20 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

With posts 8 ft apart on centre and 4x4 posts, the clear space is 92 1/2 in. With 2x2 balusters and gaps kept to 3 3/4 in, that takes 17 balusters, 3 11/16 in apart. Even with gaps right up to the 4 in limit you still need 17, because one fewer would leave gaps just over 4 in.

Usually 2 with 2x2 wood balusters on a 10 in tread, which keeps the gaps under the 4 3/8 in allowed on stairs. Thin 3/4 in metal balusters need 3 per tread at the same spacing rule, because each one fills less of the gap.

The code limit is the clear gap between balusters, the space a 4 in ball could pass through. For layout, centres are easier to mark: in the 68 1/2 in example, 2x2 balusters with 3 1/2 in gaps sit 5 in apart on centre.

If three sides are open and the posts are 6 ft apart, that is six sections of about 68 1/2 in. With 2x2 balusters at 3 1/2 in gaps, each takes 13, so 78 in all, or 82 with spares. Take off any section left open for stairs.

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.

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.

Related Calculators