Deck Baluster Calculator: Spacing, Count and Layout

Enter your railing sections, post size, and baluster width to get the baluster count, even gap, and on-center spacing for each run. Every section is checked against the IRC 4-inch sphere rule, with stair railing support and an optional material cost.

✓ Free, No Signup Required ✓ Sources Cited ✓ No Data Stored ✓ Last Reviewed: November 2026
< 4 in Max opening, IRC R312.1.3
4⅜ in Stair guard sphere limit
36 in Min guard height, R312.1.2

🪵 Deck Baluster Spacing Calculator

Step 1 - Railing Sections

Add one row for each run of railing between two posts. Use a separate row for each stair run.

Section 1

ft
in
Up to 8 sections per calculation
Center-to-center subtracts one full post width
Dry, surfaced 4×4 lumber measures 3½ inches

Step 2 - Baluster Size and Gap

Use the narrowest point on tapered or turned balusters
A 4 in sphere must not pass, so the target stays under 4 in
Centered layouts look symmetrical and may add one baluster
IRC R312.1.3 exception 2 applies to the open side of stairs only

Step 3 - Guard Height and Waste

in
Walking surface to top of guard
in
Deck surface to bottom rail or baluster end
Covers miscuts, defects, and damage

Free. No signup. Layout math: gap = (clear length - balusters × width) ÷ (balusters + 1).

Baluster Count by Railing Length

Find the count for common clear lengths between posts. These values use a 3⅞ inch target gap and the formula built into the calculator.

Wider balusters need fewer pieces, but the gap shrinks less evenly. Check the exact result before cutting.

Clear Length 1½ in Balusters Gap (1½ in) ¾ in Balusters Gap (¾ in)
36 in (3 ft)63.857 in73.844 in
48 in (4 ft)93.450 in103.682 in
60 in (5 ft)113.625 in133.589 in
72 in (6 ft)133.750 in153.797 in
96 in (8 ft)183.632 in203.857 in
120 in (10 ft)223.783 in263.722 in

Calculated with n = ceil((L - 3.875) ÷ (w + 3.875)) and gap = (L - n × w) ÷ (n + 1). Clear length excludes the posts.

How the Layout Math Works

1

Find the Clear Length

Feet and inches convert to decimal inches. If you measured post center to post center, one post width comes off. A 120 inch run between 3.5 inch posts leaves 116.5 inches.

2

Count the Balusters

The minimum count is the clear length minus one gap, divided by baluster width plus gap, rounded up. Rounding up keeps every opening under your target.

3

Split the Space Evenly

A section with n balusters has n + 1 openings, including the two against the posts. The leftover space divides equally across all of them.

4

Check, Then Order

Each gap is compared with the sphere limit. Totals add a waste allowance and round up to full packs, so the order matches what the store sells.

Example Scenarios, Step by Step

These sample calculations show the same method on three different railing runs. Each uses a 3⅞ inch target gap.

🪵 6 ft Level Section

Clear length: 72 in

Baluster: 2×2, 1.5 in actual

Step 1: (72 - 3.875) ÷ (1.5 + 3.875) = 12.67

Step 2: Round up to 13 balusters

Step 3: (72 - 19.5) ÷ 14 = 3.75 in gap

On center: 5.25 in

The 3.75 inch gap passes the sphere check with 0.25 inch to spare.

📏 10 ft Run, Center to Center

Measured: 120 in, post center to center

Post: 4×4, 3.5 in actual

Step 1: 120 - 3.5 = 116.5 in clear

Step 2: (116.5 - 3.875) ÷ 5.375 = 20.95, so 21

Step 3: (116.5 - 31.5) ÷ 22 = 3.864 in gap

With 10% extra: 24 balusters

The gap lands just under the target, so the count cannot drop to 20.

🪜 Stair Run With Exception

Horizontal clear run: 66 in

Target: 4.25 in (under the 4⅜ in limit)

Step 1: (66 - 4.25) ÷ (1.5 + 4.25) = 10.74

Step 2: Round up to 11 balusters

Step 3: (66 - 16.5) ÷ 12 = 4.125 in gap

This passes only under the stair exception. A level run would need more balusters.

The 4-Inch Sphere Rule and Guard Basics

Building codes do not set a number of balusters. They set a maximum opening. IRC 2021 §R312.1.3 bars any opening that lets a 4 inch sphere pass, from the walking surface up to the required guard height.

A sphere exactly 4 inches wide must not fit, so layouts aim for 3¾ to 3⅞ inches. That small margin absorbs saw kerf, post lean, and baluster movement.

The same rule covers the gap between the end baluster and the post, and the gap under the bottom rail. Many failed inspections come from an end gap that was never measured.

Guards are required where a walking surface sits more than 30 inches above grade, measured within 36 inches of the open edge (IRC §R312.1.1). Height must reach at least 36 inches under §R312.1.2.

For a deck on a slope, the 30 inch test can apply even when the boards are lower at the edge. Measure the drop at the worst point.

Baluster count also drives material cost. Use the deck cost calculator to place railing within the full deck budget, and the project budget calculator to track it against other line items.

Layout Mistakes That Fail Inspection

01

Using nominal lumber sizes

A 2×2 is sold at 2 inches but measures 1½ by 1½ inches. Using 2 inches shrinks every gap in your layout by a fraction that adds up across a run.

02

Forgetting to subtract the posts

Balusters fit between posts, not through them. Measuring center to center without removing the post width adds baluster spacing that does not exist.

03

Rounding the count down

A result of 20.95 balusters means 21, not 20. Rounding down leaves at least one opening above your target and can push it past 4 inches.

04

Skipping the end and bottom gaps

The opening between the last baluster and the post counts. So does the space under the bottom rail. Check both with a 4 inch test block before the final fastening.

05

Measuring at the thick part of tapered balusters

Turned or tapered balusters are narrower in places. The widest opening sits at the thinnest point, so use that measurement in the calculator.

Ordering Balusters and Planning the Build

📦

Pack Sizes and Extras

Balusters ship in packs, so the order rounds up. Many builders add about 10% for miscuts and defects. Compare cost per baluster across wood, aluminum, and composite before buying.

🪵

Cut List and Lumber

Wood balusters are cut from stock lengths. Use the lumber calculator to total the 2×2 stock, rails, and posts for the full railing.

🏋️

Rail and Post Loads

Table R301.5 lists a 200 lb concentrated load on the top rail and a 50 lb load on infill over 1 square foot. Posts need solid framing. Check the deck post spacing chart and the deck joist span chart.

👷

Hiring an Installer

Railing labor is billed by the linear foot or by the job. Use the construction labor cost calculator to compare quotes with the hours shown in your results.

Stair railings follow the same gap rule but need a rake angle for the rails. Run the geometry in the stair calculator or look up standard dimensions in the stair rise and run chart.

If you are still planning the surface, the decking calculator estimates boards and fasteners for the same project.

Deck Baluster Questions Answered

How many balusters do I need per foot of deck railing? +

A common rule of thumb is 3 balusters per foot, which assumes about 4 inches on center. The real count depends on baluster width. With 1.5 inch balusters and a 3.875 inch target gap, a 72 inch section needs 13 balusters, or about 2.2 per foot.

What is the maximum gap between deck balusters? +

IRC 2021 §R312.1.3 says required guards cannot have openings that allow a 4-inch sphere to pass between the walking surface and the required guard height. Because a 4-inch sphere must not pass, plan the clear gap below 4 inches, such as 3.75 to 3.875 inches.

Is baluster spacing different on stairs? +

Yes. IRC §R312.1.3 allows openings on the open side of a stair to reject a 4-3/8 inch sphere. The triangular opening formed by the riser, tread, and bottom rail may reject a 6 inch sphere. Confirm local amendments before building.

Do I subtract the post width when calculating balusters? +

Yes. Balusters fit in the clear space between posts, so measure post to post or subtract the post width from a center-to-center measurement. A 4x4 post measures 3.5 inches actual, so a 120 inch center-to-center run leaves 116.5 inches of clear space.

What is the actual size of a 2x2 baluster? +

A dry, surfaced 2x2 measures 1-1/2 inches by 1-1/2 inches. Use the actual width in your layout, not the nominal 2 inches, and measure the narrowest point of any tapered or turned baluster.

How tall does a deck guard have to be? +

IRC §R312.1.2 requires guards at least 36 inches high, measured vertically above the walking surface. Guards on the open side of stairs may be 34 inches minimum, measured from the line connecting the stair nosings.

When does a deck need a guard at all? +

IRC §R312.1.1 requires guards on open-sided walking surfaces more than 30 inches above the floor or grade below, measured at any point within 36 inches horizontally of the open edge.

Sources and Methodology

  • International Residential Code 2021 §R312.1.3, Opening limitations (4 inch sphere, 4-3/8 inch stair exception, 6 inch triangular opening): ICC Digital Codes
  • International Residential Code 2018 §R312.1.2, Guard height (36 inches; 34 inches on stairs): ICC Digital Codes
  • IRC §R312.1.1, Where guards are required (more than 30 inches, within 36 inches horizontally): Routt County Building Department, R312 guide
  • IRC Table R301.5 guard loads (200 lb concentrated, 50 lb infill), as summarized by Nails and Numbers. Verify against the code edition your jurisdiction adopted.
  • Actual dimensions of 2x lumber (2x2 = 1-1/2 in × 1-1/2 in): Archtoolbox lumber dimensions
  • Layout method cross-checked against published baluster methods: Decks.com and Inch Calculator
  • Assumptions: the 3⅞ inch default target and the 4¼ inch stair target are safety margins chosen by this tool, not code values. Install time per baluster is a planning assumption.

Last reviewed: November 2026. Reviewed by site author.

⚠️ Disclaimer

This calculator provides estimates for planning purposes. For permitted structural work, foundations, multi-story construction, retaining walls over 4 feet, and commercial projects, calculations must be verified by a licensed structural engineer per IBC 2024 §1604. ConcreteCalculate.com is not liable for structural decisions made from these estimates.

Your entries go to this site's calculation script only to produce the result. Nothing is saved on our server. Your last inputs stay in your browser session so you can adjust them.