Baluster Calculator

in
*Use narrowest point if turned/tapered.
Railing Skeleton
in
Layout Specifications
Total Balusters Needed: 0 Pieces
Exact Gap Width: 0″
Center-to-Center Spacing: 0″
Cumulative Marking List (Centers):
*Measurements from starting edge to center of each piece.
Professional Carpentry & Building Code Grade Railing Tool

Baluster Calculator — How Many Balusters Do You Need?

Whether you’re building a new deck, replacing stair railings, or finishing an interior balustrade, getting your baluster count and spacing right is one of the most important steps of the project. Space them too far apart and you’ll fail a building inspection — or worse, create a safety hazard. Space them too close and you’ll waste money on materials you didn’t need.

Our baluster calculator above tells you exactly how many balusters to buy and how far apart to space them. Just enter your railing length, post dimensions, baluster width, and desired gap, and you’ll get a precise count in seconds. This article explains the math behind it, covers every building code you need to know, and walks you through the entire process from measuring to installation.


What Is a Baluster?

A baluster is the individual vertical member that fills the space between a top rail and a bottom rail (or the deck surface) in a railing system. Balusters are also called spindles, pickets, or stair sticks depending on the region and the application. The full railing assembly — posts, rails, and balusters together — is called a balustrade.

Balusters serve two purposes: they provide structural support to the handrail, and more importantly, they act as a safety barrier to prevent falls — especially critical on elevated decks, stair railings, and second-floor landings.


How to Calculate How Many Balusters You Need

The baluster spacing formula is straightforward once you understand what you’re measuring. The goal is to find how many balusters fit in the available space between posts, at a gap that satisfies building code requirements.

The Baluster Spacing Formula

Number of Balusters = (Railing Length − Total Post Width) ÷ (Baluster Width + Gap Between Balusters)

Always round the result up to the nearest whole number.

Step-by-Step Example

Let’s say you have a deck railing section with the following measurements:

  • Railing length between posts: 10 feet (120 inches)
  • Number of posts in this section: 2 posts, each 3.5 inches wide
  • Baluster width: 1.5 inches (standard 2×2 baluster actual size)
  • Desired gap between balusters: 3.5 inches (safely under the 4-inch code maximum)

Step 1 — Subtract the post widths from total railing length: 120 inches − (2 × 3.5 inches) = 120 − 7 = 113 inches of usable space

Step 2 — Add baluster width and gap together: 1.5 + 3.5 = 5 inches per baluster unit

Step 3 — Divide usable space by one baluster unit: 113 ÷ 5 = 22.6 → round up to 23 balusters

Step 4 — Verify the actual gap: With 23 balusters: (113 − (23 × 1.5)) ÷ (23 + 1) = (113 − 34.5) ÷ 24 = 78.5 ÷ 24 = 3.27 inches per gap ✓ (under 4-inch maximum)

Our baluster calculator handles all of these steps automatically. It also adjusts the spacing evenly so every gap is equal, rather than leaving an awkward leftover space at one end.


The 4-Inch Rule for Railings — What Is It?

The 4-inch rule is the single most important building code requirement for baluster spacing in the United States. It states:

The gap between balusters must not exceed 4 inches (approximately 100mm).

This rule exists specifically to prevent small children from getting their heads trapped between balusters. A 4-inch sphere — roughly the size of a young child’s head — must not be able to pass through any opening in a railing system. This applies to deck railings, stair railings, interior balustrades on landings, and any guardrail system on an elevated structure.

The 4-inch rule is written into the International Residential Code (IRC Section R312) and adopted in some form by virtually every state and local building department in the US.

Important: The 4-inch rule is a maximum, not a target. Many professionals aim for 3.5 inches of actual gap to provide a comfortable safety buffer and account for any slight variation in baluster placement during installation.


What Is the Code for Stair Baluster Spacing?

Stair balusters follow the same 4-inch gap maximum as deck and landing balusters, but with one important additional requirement: on stairs, the gap is measured at the most open point of the opening, which is the diagonal angle created by the stair angle.

Because stair balusters are installed on a slope, a perfectly square 4-inch gap at the bottom of the baluster creates a larger diagonal opening. Building codes address this by requiring that a 4-3/8 inch sphere must not pass through any opening in a stair guardrail — slightly larger than the flat 4-inch rule to account for the geometry of the stair angle.

US Building Code Summary for Balusters

RequirementResidential Code (IRC)
Maximum baluster gap (deck/landing)4 inches
Maximum baluster gap (stairs)4-3/8 inches
Minimum deck railing height (above 30 in.)36 inches
Minimum railing height (above 30 in., some codes)42 inches
Minimum handrail height on stairs34–38 inches
Post spacing maximum6–8 feet (varies by jurisdiction)

Always verify with your local building department. Some municipalities adopt stricter standards than the IRC minimum, and commercial buildings follow IBC (International Building Code) requirements which are often more stringent.


Baluster Spacing Calculator — Key Measurements You Need

Before using the baluster calculator or working through the formula manually, gather these measurements:

1. Railing Length Measure the total length of the railing section from the inside face of one post to the inside face of the next post. This is the usable space for balusters, not the full span between post centers.

2. Number of Posts Count every post in the section, including the end posts. Post width affects the usable railing space.

3. Post Width Measure the actual width of your posts. A “4×4” post is actually 3.5 inches. A “6×6” is actually 5.5 inches. Always use actual dimensions, not nominal lumber sizes.

4. Baluster Width Measure the actual width of the balusters you’re using. Standard square balusters labeled “2×2” are actually 1.5 inches. Round balusters are measured by diameter.

5. Desired Gap Choose your target gap — the space between each baluster face. Most professionals use 3.5 inches to maintain code compliance with a safety margin.


Baluster Spacing Quick Reference Table

Use this table to quickly find how many balusters you need for common railing lengths, using a 1.5-inch wide baluster and a 3.5-inch gap (5-inch unit spacing).

Railing LengthBalusters NeededActual Gap
3 feet (36 in.)7 balusters~3.4 in.
4 feet (48 in.)9 balusters~3.5 in.
5 feet (60 in.)11 balusters~3.5 in.
6 feet (72 in.)13 balusters~3.8 in.
8 feet (96 in.)18 balusters~3.5 in.
10 feet (120 in.)23 balusters~3.3 in.
12 feet (144 in.)27 balusters~3.7 in.
16 feet (192 in.)37 balusters~3.5 in.

Assumes 2 posts per section with 3.5-inch post widths subtracted. Verify with your exact post dimensions.


How Many Balusters Per Linear Foot?

A common rule of thumb for initial planning and material ordering is:

Approximately 2–3 balusters per linear foot of railing

More precisely:

  • With 1.5-inch balusters at a 3.5-inch gap: 2.4 balusters per linear foot
  • With 1.5-inch balusters at a 4-inch gap: 2.1 balusters per linear foot
  • With 2-inch balusters at a 3.5-inch gap: 2.2 balusters per linear foot

Use the “2.4 per linear foot” rule for a quick estimate before running the full calculation. For ordering purposes, always add 5–10% extra for waste, cuts, and any replacement balusters you might need.


How to Calculate the Gap Between Spindles

If you already know how many balusters you want to use (for example, to use up leftover material), you can work the formula in reverse to find your actual gap.

Gap = (Railing Length − Total Post Width − (Number of Balusters × Baluster Width)) ÷ (Number of Balusters + 1)

The “+ 1” at the end accounts for the fact that a row of N balusters creates N+1 gaps (one before the first baluster, one between each pair, and one after the last).

Example: 120-inch railing, 2 posts at 3.5 inches each, 23 balusters at 1.5 inches wide:

Gap = (120 − 7 − (23 × 1.5)) ÷ (23 + 1) Gap = (120 − 7 − 34.5) ÷ 24 Gap = 78.5 ÷ 24 Gap = 3.27 inches ✓ (under 4-inch maximum)

Always verify that your calculated gap doesn’t exceed 4 inches before ordering materials.


Balustrade Spacing for Different Applications

Not all balustrade installations are the same. Here’s how spacing requirements and baluster counts vary by application:

Deck Baluster Spacing

Deck railings are required when a deck surface is 30 inches or more above grade. Standard deck balusters run vertically between the top rail and the deck surface or bottom rail. The 4-inch maximum gap applies.

For deck balusters, the most popular choice is square 2×2 pressure-treated wood (actual size 1.5 × 1.5 inches) or composite square balusters in matching deck colors.

Stair Baluster Spacing

Stair balusters are more complex because they’re installed at an angle matching the stair pitch. The 4-3/8-inch diagonal rule applies. Stair balusters are typically cut to different lengths than deck balusters because the top rail follows the stair angle while the bottom attaches to the stair tread or a sloped bottom rail.

When using the baluster calculator for stairs, measure the horizontal length of the stair run (not the angled length) for the most accurate count.

Interior Baluster Spacing

Interior balustrades — on staircases, loft railings, and mezzanine guardrails — follow the same 4-inch gap maximum. Interior applications typically use more decorative baluster styles: turned wood, wrought iron, cable, or glass panel systems.

For interior installations, aesthetics often drive the choice to use a smaller gap (2.5–3 inches) which creates a more elegant, refined look while exceeding code requirements.

Baluster Spacing Calculator Australia

In Australia, balustrade spacing requirements are governed by the National Construction Code (NCC). The key differences from US code:

RequirementAustralia (NCC)
Maximum baluster gap (above 1m)125mm (~4.9 in.)
Maximum gap at base of balustrade100mm (~3.9 in.)
Minimum railing height (>1m above ground)1,000mm
Minimum railing height (>4m above ground)1,200mm
Sphere test diameter125mm

Australian requirements allow a slightly wider gap than US codes for most of the balustrade height, but specify a tighter 100mm gap at the base to prevent footing and climbing hazards for children.


Types of Balusters and How Width Affects Your Count

The type and width of baluster you choose directly affects how many you need. Here’s a comparison of common types:

Baluster TypeActual WidthBalusters per Linear Foot (3.5″ gap)Common Use
Square Wood 2×21.5 inches~2.4Decks, exterior
Square Wood 4×43.5 inches~1.4Heavy-duty deck
Round Wood Dowel (1.5″)1.5 inches~2.4Interior stairs
Wrought Iron Square (½”)0.5 inches~2.9Decorative interior
Wrought Iron Twist (¾”)0.75 inches~2.8Ornate interior
Flat Metal (1″)1.0 inch~2.7Modern/contemporary
Cable Railing (each run)~0.19 inchesN/A — spacing rules differModern exterior
Glass PanelN/AN/A — no gap between panelsContemporary

For cable railing systems, gap rules apply differently — no individual cable run can have more than 4 inches of vertical open space, and horizontal cable tension must meet specific load requirements. Cable systems are not calculated the same way as standard balusters.


Balustrade Spacing — Getting Even Gaps From End to End

One of the most common frustrations in baluster installation is ending up with uneven gaps — balusters that look perfectly spaced through most of the run, then have an awkward narrow gap at one end.

The key is to center your layout so any remainder is split evenly on both ends rather than pushed to one side.

How to Work Out Balustrade Spacing Evenly

  1. Calculate how many balusters fit using the formula
  2. Note the total space consumed: (number of balusters × baluster width) + (number of gaps × gap size)
  3. Find the leftover space: usable railing length − total space consumed
  4. Divide the leftover space by 2 and add half to each end gap

Example: 113 inches usable, 23 balusters at 1.5 inches, 24 gaps at 3.27 inches

Total consumed: (23 × 1.5) + (24 × 3.27) = 34.5 + 78.48 = 112.98 inches Leftover: 113 − 112.98 = 0.02 inches (effectively zero — this is a clean fit)

When the math doesn’t come out perfectly even, the standard professional technique is to set the first and last gaps slightly wider than the internal gaps. This looks intentional and symmetrical rather than like an error.


How to Figure Baluster Spacing Without a Calculator

If you’re on the job site without access to our balustrade calculator, here’s the manual method professionals use:

  1. Measure the total railing length between posts in inches
  2. Subtract the width of all posts within the section
  3. Divide that number by 5 (which approximates a 1.5-inch baluster + 3.5-inch gap)
  4. Round up to get your baluster count
  5. Back-calculate the actual gap: (usable space − (count × baluster width)) ÷ (count + 1)
  6. Confirm the gap is under 4 inches

This shortcut works for standard 2×2 square balusters and gives you a starting count that you can fine-tune on site.


What Is the Maximum Gap Between Spindles?

The maximum allowable gap between spindles (balusters) is 4 inches in most of the United States, Canada, and many international jurisdictions. This applies to:

  • Deck railings on structures 30 inches or more above grade
  • Stair railings (with a 4-3/8-inch diagonal maximum)
  • Interior balustrades on open landings and mezzanines
  • Guardrails on balconies, walkways, and bridges

There is no code-specified minimum gap — you can install balusters as close together as you like. However, gaps under about 1.5 inches become difficult to clean and can look heavy and over-built in most designs.


Common Baluster Installation Mistakes to Avoid

1. Using Nominal Lumber Dimensions Instead of Actual

A “2×2” baluster is actually 1.5 × 1.5 inches. A “4×4” post is actually 3.5 × 3.5 inches. Using the labeled size instead of the actual size throws off your spacing calculation — sometimes by enough to put you over the 4-inch gap maximum.

2. Not Accounting for Post Width

Many people measure from post center to post center rather than from inside face to inside face. The posts take up real space that reduces how many balusters fit. Always measure inside face to inside face.

3. Forgetting to Verify the Actual Gap After Rounding

When you round up your baluster count, it slightly reduces the actual gap. When you round down, it increases the gap. Always back-calculate the actual gap after rounding to confirm it’s still under 4 inches.

4. Installing All Balusters at Equal Spacing Without Centering

Installing balusters without centering the layout creates an uneven gap at one end. Take a few minutes to center the layout so the end gaps are symmetrical.

5. Not Checking Local Code Before Starting

Local amendments to the IRC can be stricter than the national code. Some municipalities require 36-inch minimum railing height while others require 42 inches. Some have specific post spacing requirements or material restrictions. Always confirm with your local building department before purchasing materials.


Baluster Material Comparison

Choosing the right baluster material affects not just aesthetics but maintenance requirements, longevity, and cost.

MaterialCost Per BalusterLifespanMaintenanceBest For
Pressure-Treated Wood$1–$315–25 yearsStain/seal every 2–3 yearsExterior decks
Cedar/Redwood$2–$520–30 yearsSeal every 2–3 yearsExterior/natural look
Composite$3–$825–30 yearsOccasional cleaningLow-maintenance decks
Painted Metal (Iron)$5–$1520–40 yearsTouch up paint every 5–10 yearsInterior stairs, decorative
Powder-Coated Aluminum$8–$2030–50 yearsNearly maintenance-freeModern decks, coastal areas
Stainless Steel Cable$15–$30/run30–50 yearsOccasional tension checkContemporary, view-preserving
Tempered Glass Panel$40–$150/panel30+ yearsCleaning onlyModern, high-end

For exterior deck applications in regions with harsh winters, composite or aluminum balusters dramatically reduce long-term maintenance compared to wood. For interior stairs where aesthetics matter most, wrought iron and turned wood remain the most popular choices.


Frequently Asked Questions

How do I calculate how many balusters I need?

Subtract the total post width from your railing length to get usable space. Add your baluster width to your desired gap to get the unit size. Divide usable space by unit size and round up. That’s your baluster count. Our baluster calculator at the top of this page does this automatically — just enter your measurements.

What is the 4-inch rule for railings?

The 4-inch rule requires that no opening in a residential railing or guardrail system can be large enough for a 4-inch sphere to pass through. This prevents small children’s heads from becoming trapped. It applies to deck railings, stair railings, and interior balustrades in virtually every US jurisdiction under the International Residential Code.

How to calculate the gap between spindles?

Use this formula: Gap = (Railing Length − Total Post Width − (Number of Balusters × Baluster Width)) ÷ (Number of Balusters + 1). The result must be 4 inches or less to meet building code. If it exceeds 4 inches, add one more baluster and recalculate.

How many balusters per foot?

With standard 1.5-inch square balusters and a 3.5-inch gap, you need approximately 2.4 balusters per linear foot of railing. As a rule of thumb, plan for 2 to 3 balusters per linear foot for initial material estimates, then run the full calculation for your actual order.

What is the maximum gap between spindles?

In the United States, the maximum gap between spindles (balusters) is 4 inches for deck and landing railings, and 4-3/8 inches for stair railings (measured at the widest diagonal point). In Australia under the NCC, the maximum is 125mm (~4.9 inches) for most of the balustrade height, with a stricter 100mm at the base.

What is the code for stair baluster spacing?

Under the International Residential Code (IRC), stair balusters must be spaced so that a 4-3/8-inch sphere cannot pass through any opening. This is slightly more permissive than the flat 4-inch rule for deck railings, because it accounts for the diagonal geometry created by the stair angle. All stair railings must also maintain a handrail height of 34–38 inches above the stair nosing.


Final Tips for Your Baluster Project

  • Always buy 5–10% more balusters than calculated — cuts, splits, and selection rejects are common, and matching balusters later from a different batch can result in subtle color or size differences.
  • Pre-drill your balusters before installation to prevent splitting, especially near the ends.
  • Use a spacer block cut to your exact gap measurement to maintain consistent spacing during installation — it’s faster and more accurate than measuring every single gap by hand.
  • Check plumb on every baluster — a level or plumb bob speeds this up significantly.
  • Confirm your local frost line depth if setting posts in concrete for exterior railings — post footings must go below frost line to prevent heaving.

Use our baluster calculator above, enter your measurements, and you’ll have a precise count and spacing layout before you cut a single piece of material.