Skip to main content

DigitalCalculators.net

Baluster Calculator

Last updated By the DigitalCalculators.net team Free, no sign-up

How many balusters (spindles) your deck or porch railing needs, and the even gap between them, so that a 4-inch sphere cannot pass through. Enter the railing length, post spacing and the sizes of posts and balusters. Save each railing run.

Results

ItemValue
Open guards need intermediate rails or balusters spaced so that a sphere 4 inches in diameter cannot pass through, on guards required along walking surfaces more than 30 inches above the floor or grade below (City of Dublin, CA, Guards and Handrails, quoting the California Building Code). Balusters per section = (clear span − gap) ÷ (baluster width + gap), rounded up; the gap is then spread evenly. A 4×4 post is 3 1/2 in and a 2×2 baluster 1 1/2 in wide (Wikipedia, Lumber). Check the code your local building department uses.

Quick Answer

Clear span ÷ (baluster + gap) gives the balusters per section. 40 ft of railing with posts every 6 ft (3 1/2 in posts) has 7 sections of 64.57 in; 1 1/2 in balusters at no more than 3 1/2 in apart need 13 per section, 91 in all, with even 3.22 in gaps.

Last updated: 27 November 2026 ·How we calculate this: (span − gap) ÷ (baluster + gap)

How This Baluster Calculator Works

Deck and porch railings fill the space between posts with balusters, also called spindles. Building codes limit the gaps so a child cannot slip through: open guards need balusters spaced so that a 4-inch sphere cannot pass. Enter the total railing length, the post spacing, and the widths of your posts and balusters, plus the largest gap you will accept. The calculator works out the sections between posts, the clear span of each, the number of balusters per section, and the even gap that results.

Because the gap is spread evenly, it always comes out at or under your largest gap. Save each railing run, such as the stairs and each side of the deck, and add the totals for the order.

Quick explanation:

  • Sections: railing length ÷ post spacing, rounded up.
  • Balusters per section: (span − gap) ÷ (baluster + gap), rounded up.
  • Even gap: (span − balusters × width) ÷ (balusters + 1).

How to Use the Baluster Calculator

  1. Enter the total railing length and post spacing.
  2. Enter the post width and baluster width.
  3. Enter the largest gap you want, under 4 inches.
  4. Press Calculate to see balusters and the even gap.
  5. Save each run and add the totals.

Core Formulas

  • Sections: length ÷ post spacing, rounded up
  • Clear span per section: (length × 12 − posts × post width) ÷ sections
  • Balusters per section: (span − gap) ÷ (baluster width + gap), rounded up
  • Actual gap: (span − balusters × width) ÷ (balusters + 1)
  • Code check: gaps must not let a 4-inch sphere pass

Key Terms

  • Baluster: a vertical piece between the rails of a guard, also called a spindle.
  • Guard: a barrier along a raised walking surface.
  • 4-inch sphere rule: openings must stop a 4-inch ball from passing.
  • Clear span: the open distance between two posts.
  • Spacer block: a cut block used to keep gaps the same.

Worked Example

40 ft of railing, posts every 6 ft, 3 1/2 in posts, 1 1/2 in balusters and a largest gap of 3 1/2 in.

  • Sections: 40 ÷ 6 = 7; posts 8
  • Clear span: (480 − 8 × 3.5) ÷ 7 = 64.57 in
  • Balusters per section: (64.57 − 3.5) ÷ 5 → 13
  • Even gap: (64.57 − 13 × 1.5) ÷ 14 = 3.219 in
  • In all: 91 balusters

Real-Life Examples

  • 40 ft railing, 6 ft posts: 91 balusters.
  • One 12 ft section: 27 balusters at 3.45 in gaps.
  • Gap check: under 4 in passes the sphere rule.
  • Spacer block: cut it to the even gap shown.

Baluster Spacing vs Baluster Count

  • Spacing: set by the 4-inch sphere rule and your largest gap.
  • Count: follows from the span, the baluster width and the gap.
  • Even gaps: round the count up and spread the space.

Balusters per Foot of Clear Span

Clear spanBalustersEven gap
36 in73.19 in
48 in93.45 in
60 in123.23 in
64.5 in133.21 in
70 in143.27 in
72 in143.40 in
90 in183.32 in
96 in193.38 in

Laying Out the Balusters

Start in the middle of a section or at one post, and use a spacer block cut to the even gap so every space matches. Measure the clear span of each section on site, because posts are rarely exactly where the plan says; enter a single section length with Post spacing to check it. Stairs follow the same 4-inch rule along the guard, and the triangle under the bottom rail at the stair is allowed up to a 6-inch sphere in the guide we used. Guards are required where the walking surface is more than 30 inches above the floor or grade below.

Things to Check

  • Local code: your building department decides which code and limits apply.
  • Actual sizes: a 2×2 baluster is 1 1/2 in wide; measure metal or round balusters.
  • Post spacing: enter what your posts really are.
  • Bottom gap: check what your code allows under the bottom rail.
  • Spares: buy a few extra for splits and cuts.

Common Mistakes to Avoid

  • Spacing at exactly 4 inches. A 4-inch sphere must not pass; stay under.
  • Using nominal sizes. A 2×2 is 1 1/2 in wide.
  • Forgetting the posts. Subtract their width from the run.
  • Measuring from plans only. Measure each section on site.
  • Skipping the local check. Confirm the rules with your building department.

Frequently Asked Questions

Close enough that a 4-inch sphere cannot pass through.

About 2.4 with 1 1/2 in balusters at 3 1/2 in gaps; the calculator gives the exact count.

Round the count up and divide the leftover space by balusters + 1.

Along walking surfaces more than 30 inches above the floor or grade below, in the guide we used.

1 1/2 inches.

Yes. Subtract it from the length.

The 4-inch rule applies; the triangle at the bottom rail may allow a 6-inch sphere.

Yes. Save each one by name in this browser.

Yes. Use Compare: keep as A.

Yes. Enter their width.

Yes. Press Print.

Ask your local building department.

The count is rounded up and the space shared evenly.

Use the Decking Calculator.

References & Sources

SourceUsed ForLink
City of Dublin, CA, Guards and Handrails (2025 California Building Code) Guards over 30 in; openings must not pass a 4-inch sphere; 6-inch sphere for the stair triangle; 42 in guard height. https://dublin.ca.gov/DocumentCenter/View/79
Wikipedia, Lumber Actual sizes: 2×2 = 1 1/2 × 1 1/2 in; 4×4 = 3 1/2 × 3 1/2 in. https://en.wikipedia.org/wiki/Lumber

Cite or share this calculator

DigitalCalculators.net. (2026, November 27). Baluster Calculator. https://digitalcalculators.net/baluster-calculator/