Plan an evenly spaced railing with this deck baluster spacing calculator. Enter the span, baluster width and maximum gap to find the count, actual gap and center marks for the layout.
Railing layout
Deck Baluster Spacing Calculator
Find how many balusters fit a level railing, with equal gaps and center marks for your layout.
For railing layouts on your phone, Unit Converter is free to download and includes a Baluster tool in its Construction Calculator.
How to use this tool
- Choose Clear open span to lay out one opening between post faces. Alternatively, choose Subtract post widths, then enter Overall rail length, Post count and Post width.
- Choose each measurement unit before entering the span, Baluster width and Maximum gap. Use the actual installed widths.
- Click Calculate. Read the count, gap and center marks in your preferred Spacing and length units. In post mode, the marks describe an equivalent continuous span; use Clear open span for an individual opening.
What are deck balusters?
Balusters are the repeated upright pieces that fill the openings in a railing. They sit between the larger railing posts, usually connecting the top and bottom rails. Their width and spacing determine how open the railing looks and how many pieces are needed for each section.
An even layout leaves the same open gap between neighboring balusters and beside the posts. A deck baluster spacing calculator finds a baluster count that keeps those equal gaps within a chosen maximum, then gives the center marks used to lay out the rail.
Clear span, baluster width and gap
The layout starts with the opening that the balusters will fill. Three measurements describe it:
- Clear span
- The distance between the facing surfaces of two posts, measured along the level railing. It excludes the widths of the posts themselves.
- Baluster width
- The width of one baluster in the direction of the rail. Use the finished measurement of the piece, including its installed orientation, rather than a nominal lumber size.
- Clear gap
- The open distance from the edge of one baluster to the edge of the next. An end gap is the space between a post face and the nearest baluster.
The maximum gap is the largest opening allowed in the planned layout. The actual gap is the spacing left after a whole number of balusters has been fitted into the span. It will often be smaller than the maximum because a baluster count must be a whole number.
How equal baluster spacing is calculated
If a section has n balusters, it has n + 1 gaps: the spaces between neighboring balusters plus a gap at each end. Let L be the clear span and b the width of each baluster. Subtracting the combined baluster widths leaves the space available for all the gaps:
Actual gap = (L − n × b) ÷ (n + 1)
Dividing by n + 1 distributes this remaining space evenly, including the two end gaps. This produces a balanced layout with the first and last balusters equally far from their respective posts.
To find the count from a maximum gap G, the calculation first finds:
(L − G) ÷ (b + G)
Round that result up to a whole number, using at least one baluster. This gives the smallest count that keeps the equal gaps at or below G, provided the balusters fit with open space between them. The actual gap is then calculated using that count. All the lengths in these formulas must use the same unit.
On-center spacing and the first layout mark
The on-center spacing is the distance from the center of one baluster to the center of the next. For equal-width balusters, it includes one full baluster width and one clear gap:
On-center spacing = b + actual gap
The first center mark is different because it begins at a post face. From the start of the clear span, move across the end gap and then halfway into the first baluster:
First center mark = actual gap + b ÷ 2
Each following center is one on-center interval farther along the rail. The last center is the clear span minus the first-center distance. It should sit the same distance in from the opposite post, giving equal gaps at both ends. Matching marks on the upper and lower rails keep the balusters aligned.
Planning separate railing sections
A railing divided by several posts consists of separate openings. Measure each opening between its finished post faces and calculate it individually for installation marks. Even small differences in span can change the gap or the count, so adding the counts for the individual openings gives the total for the planned sections.
When starting from an overall rail length, subtracting the combined post widths gives the total open length. The calculator’s Subtract post widths option treats this as one equivalent continuous span. Its center marks refer to that combined span; the Clear open span option provides the layout for each actual opening between posts.
More tools: Browse all calculators and unit converters.
Plan baluster spacing on your phone
Use the Construction Calculator in Unit Converter for baluster spacing and other layout calculations. Download it free from the App Store or Google Play.

