Baluster Calculator: How Many Balusters and the Gap

Enter the length of the rail between the posts, the width of a baluster and the largest gap you can allow. You get the number of balusters and the exact, even gap.

Your project

The clear distance, from post to post.

in

Building codes generally require that a 4 inch sphere cannot pass. 3¾ in leaves a small margin.

Results

Balusters
13 balusters
Between the two posts
Exact gap between themEqual at the ends and between balusters. The same as 95.3 mm
3.750 in
Center to center spacing
5.250 in
Balusters per foot of rail
2.17 per ft
First baluster, edge to the post
3.750 in
  • Most codes say a sphere of 4 inches must not pass through any opening in a guard (a few say 4⅜ in for stair triangles). Check your local code, because the details vary. Mark the baluster positions on the rails with a story pole before you cut anything, and fix the rails firmly to the posts.

How this calculator works

Balusters are spaced so that every gap, including the two at the posts, is the same. If the largest gap you allow is g and a baluster is w wide, the number you need is the rail length less one gap, divided by one baluster plus one gap, rounded up. The exact gap is then what is left of the rail after the balusters, shared out over the n + 1 gaps.

n = ⌈(rail − gap) ÷ (baluster + gap)⌉ exact gap = (rail − n × baluster) ÷ (n + 1)

Worked example: a 6 ft (72 inch) rail with 1½ inch balusters and a largest gap of 3¾ inches needs 13 balusters, with an exact gap of 3.750 inches and a center-to-center spacing of 5.250 inches. With 5/8 inch metal balusters it needs 16, and a 10 ft rail needs 23 of the 1½ inch ones.

Balusters for common rail lengths (1½ in balusters, gap under 3¾ in)

Rail length between the posts.

RailBalustersExact gapCenter to center
3 ft73.188 in4.688 in
4 ft93.450 in4.950 in
5 ft113.625 in5.125 in
6 ft133.750 in5.250 in
8 ft183.632 in5.132 in
10 ft233.563 in5.063 in

Tips before you buy

  • Guards on decks and stairs usually have to be 36 to 42 inches high, and balusters must not leave a 4 inch sphere opening: check your local code before you buy.
  • Make a story pole: a stick marked with the baluster positions, so that every section is the same.
  • Cut a spacer block to the exact gap. It is quicker and more accurate than measuring each baluster.
  • On stairs the balusters are set at an angle, and the gap is measured level, so they need more balusters than a level rail.
  • Buy a few spares, since some will split or be cut wrong.

Tools & materials for this project

As an Amazon Associate we earn from qualifying purchases. These links do not change what you pay.

Frequently asked questions

How many balusters do I need for a 6 foot rail?

13 balusters of 1½ inches with a gap of 3.750 inches, if the largest gap is 3¾ inches. With 5/8 inch metal balusters it is 16.

How far apart should deck balusters be?

Close enough that a 4 inch sphere cannot pass: so a gap of less than 4 inches, and most people aim for 3½ to 3¾ inches. That is a center-to-center spacing of 5.25 inches for 1½ inch balusters.

How do I space balusters evenly?

Divide the rail length less the width of all the balusters by the number of gaps (one more than the balusters): 3.750 inches here. Cut a spacer block to the gap and use it for each baluster.

How many balusters per foot of rail?

About 2.2 for 1½ inch balusters at a 3¾ inch maximum gap, and more for narrower balusters.

Add this calculator to your website

Running a blog, a contractor site or a class page? You can put this calculator on it for free. Copy the code below, and please leave the link underneath the calculator in place. The small script just resizes the frame to fit the results; if your site strips scripts, the calculator still works inside a scrolling frame.

Get the embed code

Related calculators & guides

Estimates only. Results assume standard materials and simple shapes. Supplier products vary, and the final call on quantity, structure and safety is yours. Check your local code and your supplier's guidance before ordering.