Baluster Spacing Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free baluster spacing calculator. Find how many balusters fit between two posts and the exact even gap, keeping it under your maximum, often 4 inches.

Actual gap
0
Centre-to-centre spacing
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the baluster spacing calculator

  1. Measure the space between two posts in inches, from the inside face of one post to the inside face of the next.
  2. Enter the width of one baluster in inches. Square wooden balusters are commonly about 1.5 inches (a nominal 2 × 2); metal balusters are often about 3/4 inch.
  3. Enter the maximum gap allowed between balusters, commonly 4 inches under many US residential codes.

The baluster spacing calculator shows how many balusters to fit, the exact gap between them, and the centre-to-centre spacing for marking them out.

What are balusters?

Balusters, also called spindles or pickets, are the vertical posts that fill the space between the top and bottom rails of a railing on a deck, porch, balcony or staircase. They stop people, especially children, from falling through the railing. Getting them evenly spaced makes the railing look professional and keeps the gaps within the limits set by building codes.

The 4-inch rule

Many US residential building codes, including the International Residential Code (IRC), require that a sphere 4 inches in diameter must not pass through any opening in a guard. That effectively limits the gap between balusters to less than 4 inches. The rule is intended to keep small children from slipping through or getting their heads stuck. Stair guards may have slightly different rules for the triangle formed by the tread, riser and bottom rail. Requirements vary between jurisdictions and are updated over time, so check your local code before building.

How the baluster spacing calculator works

The goal is to fit as few balusters as possible while keeping every gap no wider than the maximum, and to make all gaps equal, including the gaps next to the posts.

  1. Number of balusters = (space − maximum gap) ÷ (baluster width + maximum gap), rounded up.
  2. Exact gap = (space − number of balusters × baluster width) ÷ (number of balusters + 1).
  3. Centre-to-centre spacing = exact gap + baluster width.

With the default figures, a 72-inch space with 1.5-inch balusters and a 4-inch maximum gap needs (72 − 4) ÷ (1.5 + 4) ≈ 12.36, rounded up to 13 balusters. The exact gap is (72 − 13 × 1.5) ÷ 14 = 52.5 ÷ 14 = 3.75 inches, and the balusters are 5.25 inches apart, centre to centre.

Why the formula uses one more gap than balusters

Between two posts, there's always one more gap than there are balusters: a gap between the first post and the first baluster, a gap between each pair of balusters, and a gap between the last baluster and the second post. With 13 balusters, there are 14 gaps. Making all 14 gaps equal gives a balanced, even look.

A worked example: metal balusters

A deck railing section has 66 inches between posts. You're using round metal balusters 0.75 inch wide, with a maximum gap of 4 inches.

  1. Number of balusters: (66 − 4) ÷ (0.75 + 4) ≈ 13.05, rounded up to 14.
  2. Exact gap: (66 − 14 × 0.75) ÷ 15 = 55.5 ÷ 15 = 3.7 inches.
  3. Centre-to-centre spacing: 3.7 + 0.75 = 4.45 inches.

Enter 66, 0.75 and 4 in the baluster spacing calculator to check.

Marking out the balusters

  1. Mark the centre of the first baluster: measure the exact gap plus half a baluster width from the inside of the first post. For the default example, that's 3.75 + 0.75 = 4.5 inches.
  2. Mark each following centre at the centre-to-centre spacing: 5.25 inches apart in the default example.
  3. Check the last gap at the second post. It should equal the exact gap; if not, recheck your measurements.

A spacer block cut to the exact gap width makes installation quick and consistent: place it against each baluster, set the next baluster against it, fix it, and move along. Measure each railing section separately, because spaces between posts often vary slightly.

Who uses a baluster spacing calculator

Deck builders and carpenters use it to lay out railings quickly and accurately. Homeowners use it when building or replacing a deck or porch railing. Staircase installers use it for stair and landing balustrades. Building inspectors and designers use it to check that a railing design meets spacing requirements.

Get the next job from Google

Homeowners search Google when something breaks. Search ads put a local trade business at the top of those searches. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.

Choosing a smaller gap

Some builders choose a maximum gap smaller than 4 inches, such as 3.5 inches, to leave a safety margin for wood movement, slight installation errors and boards that shrink as they dry. Others choose a smaller gap simply for appearance. Entering 3.5 instead of 4 in the baluster spacing calculator adds a baluster or two per section but gives extra peace of mind at inspection.

Counting balusters for a whole deck

To estimate the total number of balusters, run the baluster spacing calculator for each railing section and add up the results. If many sections are the same length, multiply. For a rough estimate before you've set posts, many builders use about three balusters per foot of railing for 1.5-inch balusters at just under 4-inch gaps; the exact figure depends on the baluster width and post spacing. Add a few extra for mistakes and damaged pieces.

Railing height

Spacing is only one part of a safe railing. Many US residential codes require guards on decks and porches more than 30 inches above the ground below, commonly at least 36 inches high, with stair handrails within a set height range measured from the stair nosings. Guards must also withstand specified loads. These requirements vary by location, so check your local code or ask your building department before you build.

Common mistakes

  • Dividing by the number of balusters instead of balusters plus one, which leaves uneven gaps at the posts.
  • Measuring from post centres instead of inside faces.
  • Using nominal baluster sizes, such as 2 inches for a 1.5-inch actual baluster.
  • Assuming every section is the same length. Measure each one.

Stair railings

On stairs, the railing runs at an angle, but the gap between balusters is still measured horizontally, at right angles to the balusters, in most codes. A common approach is to place two or three balusters on each tread, depending on the tread depth and baluster width. With treads about 10 to 11 inches deep and 1.5-inch balusters, two per tread usually leaves gaps under 4 inches; three per tread are often needed with thinner balusters or deeper treads. To check, enter the tread depth as the space in the baluster spacing calculator, with the baluster width and your maximum gap. On stairs, the triangle between the tread, the riser and the bottom rail also has its own limit in many codes, often a larger sphere size than the main 4-inch rule.

Horizontal railings and cables

Not all railings use vertical balusters. Horizontal rails, cable railings and glass panels are popular for modern designs. The same 4-inch rule applies to the gaps between horizontal rails and cables, though horizontal members can be climbed more easily, and some jurisdictions restrict them for that reason. Cable railings need tight cables and close post spacing, because cables can deflect under pressure and open up the gap. Follow the manufacturer's spacing and tensioning instructions.

Materials and cost

Balusters come in wood, aluminium, steel, iron and composite. Wooden balusters are usually cut from square stock and are the cheapest; aluminium and steel are slimmer and need less maintenance; composite balusters match composite decking. Multiply the total count from the baluster spacing calculator by the price per baluster, and include top and bottom rails, posts, connectors and fasteners. Metal balusters are often sold in packs with matching connectors, which can make installation quicker.

Checking existing railings

The same method lets you check an existing railing: measure the gaps with a 4-inch ball or a block of wood cut to 4 inches. If any gap lets it through, the railing may not meet current codes, especially on older homes built before such rules. Replacing or adding balusters to close the gaps is usually straightforward.

Sources and further reading

Frequently asked questions

How do I calculate baluster spacing?

Find the number of balusters with (space − gap) ÷ (width + gap), rounded up, then divide the leftover space equally among balusters + 1 gaps.

What is the 4-inch rule?

Many US codes require that a 4-inch sphere can't pass through any opening in a guard.

How many balusters do I need per foot?

Roughly three per foot for 1.5-inch balusters with gaps just under 4 inches, but calculate each section.

Should I measure from post centres?

No. Measure between the inside faces of the posts.

Why are there more gaps than balusters?

There's a gap at each post as well as between each pair of balusters.

Is the baluster spacing calculator free?

Yes. It's free, needs no sign-up, and works in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep