Deck Baluster Spacing Calculator

Lay out balusters for one to eight level deck railing spans. Use measured inside post faces and baluster widths to compare even end openings with half-size end openings. Round each center independently to your tape grid, then check the planned clear gaps and review the marking and cut ledger.

Level railing layout

Deck baluster spacing planner

Compare end spacing, round center marks to your tape and check the resulting clear gaps.

Span measurements and tape

Measure between inside post faces. Use actual baluster face widths and enter dimensions in inches, such as 68 7/16.

Span 1
Span 2

Compare end layouts

Compare gaps below 4 in after snapping centers to 1/16 in.

Even ends across all spans
25 balusters
Half ends across all spans
26 balusters

Ideal end gap 3 137/224 in. Ideal inside gap 3 137/224 in. Smallest rounded gap 3 9/16 in.

Proportional width for Main span. Measure every center mark from the left inside post face.
Level span and rounded baluster positions13 balusters with largest planned clear gap 3 5/8 in. Exact marks and each planned gap are in the ledger.Baluster 1 at 4 5/16 in from the left faceBaluster 2 at 9 5/16 in from the left faceBaluster 3 at 14 1/4 in from the left faceBaluster 4 at 19 1/4 in from the left faceBaluster 5 at 24 1/4 in from the left faceBaluster 6 at 29 1/4 in from the left faceBaluster 7 at 34 1/4 in from the left faceBaluster 8 at 39 3/16 in from the left faceBaluster 9 at 44 3/16 in from the left faceBaluster 10 at 49 3/16 in from the left faceBaluster 11 at 54 3/16 in from the left faceBaluster 12 at 59 1/8 in from the left faceBaluster 13 at 64 1/8 in from the left faceLeft faceRight face
  • Baluster
  • Rounded center mark

This worksheet compares level-span geometry with your gap rule. Guard height, attachments, loads and local approval are separate checks.

Cut and mark ledger

Main span · Even ends. Meets entered gap rule.

Layout quantity 13. Measured face width 1 3/8 in. Supplied cut length 26 in.

OpeningClear gap after roundingBalusterIdeal centerTape center from left faceResult
Left end3 5/8 in14 67/224 in4 5/16 inWithin entered gap rule
Inside 13 5/8 in29 2/7 in9 5/16 inWithin entered gap rule
Inside 23 9/16 in314 61/224 in14 1/4 inWithin entered gap rule
Inside 33 5/8 in419 29/112 in19 1/4 inWithin entered gap rule
Inside 43 5/8 in524 55/224 in24 1/4 inWithin entered gap rule
Inside 53 5/8 in629 13/56 in29 1/4 inWithin entered gap rule
Inside 63 5/8 in734 7/32 in34 1/4 inWithin entered gap rule
Inside 73 9/16 in839 23/112 in39 3/16 inWithin entered gap rule
Inside 83 5/8 in944 43/224 in44 3/16 inWithin entered gap rule
Inside 93 5/8 in1049 5/28 in49 3/16 inWithin entered gap rule
Inside 103 5/8 in1154 37/224 in54 3/16 inWithin entered gap rule
Inside 113 9/16 in1259 17/112 in59 1/8 inWithin entered gap rule
Inside 123 5/8 in1364 31/224 in64 1/8 inWithin entered gap rule
Right end3 5/8 in———Within entered gap rule

How to use this calculator

  1. Measure the clear width between the inside post faces for each level span. Measure each baluster's actual face width in the same direction.
  2. Enter your gap limit, comparison rule and tape grid. Choose Find minimum or Use fixed count separately for each span.
  3. Compare Even ends and Half ends. Choose a span to inspect its rounded gaps and diagram. Check both end openings as well as the largest interior opening.
  4. Use the Cut and mark ledger to read each center from the same left inside face. Add an optional measured cut length to include length and quantity together.
  5. Download the cut and mark CSV for both layouts across the project. Check the installed openings using the requirements applicable to your guard.

The Formula

The mathematical logic powering this calculation is:

Let L be the horizontal clear distance between the inside post faces, w the actual baluster face width and N the count. Free width G = L − Nw. Even ends use G/(N + 1) for each ideal opening. Half ends use G/N between balusters and G/(2N) at each end. With one baluster, both patterns have equal end gaps and no interior opening. With zero balusters the entire span is one opening.

Find each ideal center from the left inside face. Snap it independently to the nearest increment on the selected tape grid, with exact halfway marks rounded farther from the left face. The planned edges are the snapped center ± w/2. The clear gaps are the distances from the left face to the first baluster, from a baluster's right edge to the next left edge, and from the last edge to the right face. A negative gap identifies an overlap or an edge past a post. A zero gap represents contact.

Strictly below requires each nonnegative gap to be less than your entered limit. At or below includes equality. Minimum mode searches fitting counts and chooses the first count that meets the rule on the chosen grid. Fixed mode retains the count and identifies any failed gap or fit. Searches support 0 to 300 balusters per span.

Enter one to eight level spans. Measurements are in inches, using decimals with at most six decimal places or proper mixed and simple fractions. Clear span is positive through 1,200 inches, actual face width positive through 12 inches, and gap limit from 0 to 36 inches. Fraction denominators are positive integers through 1,000,000. Optional cut lengths are measured inputs through 240 inches. Code context, including sphere passage in 2021 IRC R312.1.3, is separate from the entered gap comparison. Guard loads, heights, attachments and site approval depend on the applicable rules and assembly.

Worked Example

If you input:

  • Main span: 68 7/16 in
  • Return span: 64 1/2 in
  • Actual width: 1 3/8 in in both spans
  • Gap rule and tape grid: Strictly below 4 in, marks to 1/16 in
  • Supplied cut lengths: 26 in in both spans

Result:

The main span uses 13 balusters under either end layout. Its largest planned gap is 3 5/8 in with even ends and 3 15/16 in with half ends. The return span needs 12 with even ends and 13 with half ends, for project quantities of 25 and 26. On the main span, twelve evenly spaced balusters have an ideal gap just below 4 in. Rounding makes some gaps exactly 4 in, which fails the strict comparison.

Frequently Asked Questions

What width should I measure for deck baluster spacing?

Measure the actual face width in the direction of spacing, and measure the clear span between the inside post faces. The worksheet models a uniform baluster width within each named span.

What is the difference between even ends and half ends?

Even ends use the same ideal clear opening between balusters and next to each post. Half ends use ideal openings beside the posts that are half as wide as those between balusters. Independent tape rounding can change the resulting end gaps.

Why can an ideal gap below my limit end up exactly at the limit?

Rounding moves each center independently. Adjacent moves can increase a clear gap, and an outside move can change the first or final opening. The worksheet recomputes every gap from the resulting positions before comparing it with your limit.

How does the strict versus inclusive option work?

Strictly below excludes an opening equal to the entered limit. At or below includes an opening equal to that limit. Choose the rule for your layout check and verify the installed assembly against its applicable requirements.

Where should I start measuring the tape marks?

Read each rounded center from the same left inside post face. These are cumulative distances from that origin. Follow those positions so the spacing model and the final opening stay consistent.

Does the worksheet establish guard compliance?

The worksheet compares planned level-span openings with the dimensions and gap rule you enter. Installed openings, guard height, loads, connections and local approvals require separate verification. IRC R312.1.3 and AWC DCA 6 Figure 24 offer context for the opening check.

Can I use the worksheet for stairs or uneven spans?

It assumes a level span and uniform widths, so it applies to horizontal inside-to-inside measurements. Stair rails and sloped or irregular openings require geometry and checks specific to that rail.

Similar Calculators