Baluster Calculator
Baluster Spacing
Color
Mode
- Gap
- On center
- First center
Checks gap spacing only. Confirm with your local building department.
Measure level from post to post, not along the rail.
Leave blank to use 3 3/4".
Marks from the post
From the makers of BuiltWright
Even spacing, code-compliant gaps.
Balusters need to be spaced evenly between posts, with gaps small enough to meet building code. Get it wrong and you're either over a 4-inch sphere, ripping it out, or eyeballing it and hoping the inspector doesn't bring a level.
This calculator takes the guesswork out. Enter the level distance between your posts, the width of your baluster stock, and your target maximum gap. You get the baluster count, the actual gap, the on-center spacing, a drawing to scale, and a tape mark for the center of every baluster.
It also checks your gap against the IRC sphere limit: 4 inches for level railings and landings, 4 3/8 inches for the open sides of stairs. If the math produces gaps too tight to work between, it flags that too.
Common questions
How do you calculate baluster spacing?
Start with the total inside-to-inside distance between your posts. Subtract the combined width of all your balusters. The remaining space is divided among the gaps. The number of gaps is always one more than the number of balusters, since there's a gap on each side and between every baluster.
This calculator does all of that for you. You give it the distance, the baluster width, and your maximum allowed gap. It returns the smallest number of balusters that keeps every gap at or below your limit.
What is the 4-inch sphere rule?
The International Residential Code (IRC) requires that guards on decks, balconies, landings, and other level areas be built so a 4-inch sphere cannot pass through any opening. That includes the gaps between balusters. In practice, your gap must be less than 4 inches. Guards on the open sides of stairs get a slightly larger limit of 4 3/8 inches.
This calculator targets a 3 3/4-inch maximum gap by default, and you can change that target. It then checks the result against the IRC limit for the railing type you pick. Your local code may have different requirements, so always check with your local building department before final layout.
What's the difference between gap and on-center spacing?
Gap is the clear space between two adjacent balusters. On-center spacing is the distance from the centerline of one baluster to the centerline of the next. On-center spacing always equals the gap plus one baluster width.
Most carpenters lay out from centerlines because it's easier to mark and easier to verify. The calculator gives you both numbers, plus a running tape mark for each baluster so small rounding differences don't add up along the run.
Why does it warn about impractical layouts?
If the math produces gaps narrower than about half an inch, you physically can't fit most tools, fingers, or hardware between the balusters. The math is correct but the layout is unworkable. The warning tells you to either widen the gap target or use fewer balusters.
Does it work for stair railings too?
Yes. Switch the calculator to Stairs, then measure the horizontal inside-to-inside distance between your stair posts, not the diagonal along the rail. The tape marks are level distances from the post, so plumb up from each one to the rail.
Stairs mode checks the gap against the IRC's 4 3/8-inch limit for the open sides of stairs. Landings follow the 4-inch limit, so use the level setting for those. Your local code may differ.
Take the calculators offline
Get BuiltWright Calcs for Android. Same accurate math, no ads, no signup. Save your work between sessions. Customize the dashboard. Seven color themes.
Download free for Android