Baluster Spacing Calculator
Calculate even baluster (spindle) spacing for a deck, stair, or porch railing so every gap stays under the code-required 4-inch limit. Enter your railing run, baluster width, and maximum gap to get the exact number of balusters, the even gap between them, on-center spacing, and a full tape-measure layout list with fractional-inch marks. Includes a to-scale railing diagram and the 4-inch sphere code check. Supports imperial (feet/inches) and metric units.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by upgrading for ad-free browsing and more daily uses, or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade for ad-free browsing and higher daily limits
About Baluster Spacing Calculator
The Baluster Spacing Calculator works out how to space the balusters (also called spindles or pickets) in a deck, stair, or porch railing so the gaps are even and stay under the code-required 4-inch limit. Enter the railing run between your posts, the width of one baluster, and the maximum gap, and you get the exact number of balusters, the even gap between them, the on-center spacing, and a full tape-measure layout list you can take straight to the job site.
The 4-Inch Sphere Rule
Under the International Residential Code (IRC) and most local building codes, the openings in a guardrail must be small enough that a 4-inch (100 mm) sphere cannot pass through. The rule protects small children from getting through or stuck in the railing. In practice this means the clear gap between balusters must be less than 4 inches. Many builders target about 3ยฝ to 3โ inches to leave a safety margin. This calculator always sizes the gaps so a 4-inch sphere will not fit.
Baluster Spacing Formula
The key idea is a fencepost count: in a railing between two posts, if you install n balusters you create n + 1 gaps โ one at each end and one between every pair. So the railing run is split like this:
Step 1 finds the fewest balusters that keep every gap at or below your limit (rounding up because you cannot install a fraction of a baluster). Step 2 spreads the leftover space evenly, and Step 3 gives the mark-to-mark distance you actually measure with a tape.
How to Lay Out the Marks
Measuring each gap by hand invites errors that pile up across a long railing. Instead, mark centers from one post. The center of baluster number i sits at:
So the first center is one gap plus half a baluster from the post, and each following center is one on-center step further along. The calculator prints the full list of these marks for you.
Baluster Spacing Chart (1ยฝ-inch balusters, 4-inch max gap)
| Railing Run | Balusters | Even Gap | On-Center |
|---|---|---|---|
| 3 ft (36") | 7 | โ 3โ " | โ 4โ " |
| 4 ft (48") | 9 | โ 3โ " | โ 4โ " |
| 6 ft (72") | 13 | โ 3โ " | โ 5ยผ" |
| 8 ft (96") | 17 | โ 3ยนโตโโโ" | โ 5โ " |
| 10 ft (120") | 22 | โ 3ยพ" | โ 5ยผ" |
These are typical results โ your exact numbers depend on your railing run and baluster width, so always calculate for your own project.
What Affects Baluster Spacing?
The clear opening between posts. Measure inside face to inside face โ the balusters are distributed inside that span.
Wider balusters (2ร2 vs slim metal) eat more of the run, so you need more of them or the gaps shrink.
The 4-inch sphere rule caps the clear gap. Tighter limits (some stairs use less) mean more balusters.
Each railing section between posts is calculated on its own, since runs are rarely all the same length.
How to Use This Calculator
- Measure the railing run: Measure the clear opening between the two posts, inside face to inside face.
- Enter the baluster width and maximum gap: Use the true width of one baluster and the code limit (4 inches for most guardrails).
- Click Calculate: Get the minimum baluster count, the even gap, and the on-center spacing instantly.
- Mark and install: Use the layout list to mark each baluster center from the post, then fasten the balusters at those marks.
Frequently Asked Questions
What is the maximum gap between balusters?
Under the IRC and most building codes, a 4-inch sphere must not be able to pass through any opening in a guardrail, so the gap between balusters must be less than 4 inches. This calculator sizes the gaps to stay below that limit.
How do you calculate even baluster spacing?
For a railing between two posts with n balusters there are n + 1 gaps, so run = n ร width + (n + 1) ร gap. First find the fewest balusters that keep every gap under the limit: n = ceiling of (run โ max gap) รท (width + max gap). Then the even gap = (run โ n ร width) รท (n + 1).
What is on-center spacing for balusters?
On-center spacing is the distance from the center of one baluster to the center of the next. It equals one baluster width plus one gap. Marking centers on-center from the post is the most accurate way to lay out balusters.
Does the baluster width matter for spacing?
Yes. Wider balusters take up more of the run, so you either need more of them or the gaps get smaller. The gap that must stay under 4 inches is the clear space between balusters, not the on-center distance, so the baluster width must be included in the calculation.
How many balusters do I need per foot?
With standard 1ยฝ-inch balusters and a 4-inch code gap, on-center spacing works out to roughly 5.4 inches, or about 2.2 balusters per foot of railing. The exact number depends on your railing run and baluster width, which this calculator solves precisely.
Should I measure the run between posts inside to inside?
Yes. The railing run used here is the clear opening between the two posts, measured from the inside face of one post to the inside face of the other. The balusters and gaps are distributed inside that opening.
Additional Resources
Reference this content, page, or tool as:
"Baluster Spacing Calculator" at https://MiniWebtool.com/baluster-spacing-calculator/ from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: July 6, 2026
Construction And DIY Calculators:
- Brick and Mortar Calculator
- Concrete Calculator
- Drywall Calculator
- Fence Calculator
- Decking Calculator
- Board Foot Calculator
- Flooring Calculator
- Miter Angle Calculator
- Mulch, Soil & Gravel Calculator
- Stud Wall Framing Calculator
- Wallpaper Calculator
- Lumber Calculator New
- Paint Calculator
- Roof Pitch Calculator
- Roofing Calculator
- Slope and Grade Calculator Featured
- Squareness Checker (3-4-5 Rule) ๐
- Stair Calculator Featured
- Tile Calculator
- Square Footage Calculator New
- Rebar Calculator New
- Paver Calculator New
- Insulation Calculator New
- HVAC Sizing Calculator New
- Retaining Wall Calculator New
- Carpet Calculator New
- Beam Load Calculator New
- Pipe Flow Calculator New
- Bolt Torque Calculator New
- Steel Weight Calculator New
- Gravel, Sand & Topsoil Calculator New
- Tile Grout Calculator New
- Speeds and Feeds Calculator
- Bend Allowance Calculator
- Thread Pitch Converter
- CFM & Air Changes Calculator
- Duct Size Calculator
- Pump Sizing Calculator (TDH)
- Septic Tank Size Calculator
- Concrete Mix Ratio Calculator
- Joist Span Reference
- Footing Size Estimator
- Roof Snow Load Calculator
- Log Volume Calculator (Board Feet)
- Pool Chlorine Calculator
- Pool Pump Run Time Calculator
- Cubic Yard Calculator New
- Asphalt Calculator New
- Sod Calculator New
- Grass Seed Calculator New
- Deck Stain Calculator New
- Siding Calculator New
- Baseboard & Trim Calculator New
- Baluster Spacing Calculator New
- Epoxy Resin Calculator New
- Water Heater Size Calculator New
- Pool Salt Calculator New
- Pond Volume & Liner Calculator New
- TV Mounting Height Calculator New
- Picture Hanging Height Calculator New
- Rug Size Calculator New