Enter the clear length between two posts and the width of your balusters. You get how many you need, the equal gap between them, the center to center spacing and where to mark each one, with every gap kept under the 4 in sphere limit. It works for a deck, a porch, a balcony or a stair. For the stairs themselves use the stair calculator, and for the deck frame the deck calculator.
The goal is equal gaps, with the same gap at the two ends against the posts. If L is the clear length, W the baluster width and G the largest gap you allow:
With a largest gap of 3⅞ in. The gap shown is the equal gap you get.
| Clear length | 1½ in balusters | ⅝ in balusters |
|---|---|---|
| 36 in | 6 at 3 7/8 in gap | 8 at 3 7/16 in gap |
| 48 in | 9 at 3 7/16 in gap | 10 at 3 13/16 in gap |
| 60 in | 11 at 3 5/8 in gap | 13 at 3 11/16 in gap |
| 72 in | 13 at 3 3/4 in gap | 16 at 3 5/8 in gap |
| 84 in | 15 at 3 7/8 in gap | 18 at 3 13/16 in gap |
| 96 in | 18 at 3 5/8 in gap | 21 at 3 3/4 in gap |
| 120 in | 22 at 3 13/16 in gap | 26 at 3 13/16 in gap |
You do not need a printed template to install balusters evenly. Make a spacer block and use it as the template:
If you prefer marks on the rail, use the list under the drawing (the center of each baluster from the first post), or press Print / save as PDF to get a layout sheet you can take to the job.
This tool gives estimates for planning. It does not check the strength of the posts, the rail or the connections, which also have to meet the code (a guard has to resist a 200 lb load at the top). Confirm the requirements with your local building department before you build.
With 1½ in wide (2×2) balusters and a largest gap of 3⅞ in, a 6 ft (72 in) run between posts needs 13 balusters. The gap comes out at 3 3/4 in and they sit 5 1/4 in center to center. Change the width or the gap in the calculator and the count updates.
A required guard cannot have an opening that lets a 4 in sphere pass. In practice every gap between balusters, and between a baluster and a post, has to be under 4 in. Builders aim for 3⅞ in or a little less, so a small error in cutting or fastening does not push a gap over the limit.
Yes, a little. The IRC lets the open side of a stair use openings that do not pass a 4⅜ in sphere, and the triangle formed by the riser, the tread and the bottom rail can be larger, up to a 6 in sphere. Many builders and inspectors use 4 in everywhere to keep it simple, and local codes change the details, so confirm with your building department.
Keep the balusters plumb (vertical) and measure the spacing level, along the horizontal run of the rail, not along the slope. The calculator does this and also gives the step in height between neighbouring balusters, so you can mark the cuts on the rail.
At least 36 in above the walking surface for a deck, porch, balcony or landing. Where the top rail is also a stair handrail, it must be 34 to 38 in above the nosings. Guards are required when the drop is more than 30 in, and local rules differ.
See also the deck stairs guide and the stair handrail requirements guide.