Railings

Baluster Spacing and Railing Height: The Code Rules

Railings are one of the most commonly failed items on deck and stair inspections, and almost always for the same few reasons: gaps a little too wide, or a guard a little too short. Here are the rules, the reasons behind them, and how to space balusters so every gap passes.

Guard or handrail?

People use "railing" for both, but the code treats them separately:

  • A guard is the barrier along an open side that stops people falling off. Balusters are part of the guard.
  • A handrail is the rail you grip as you go up and down. On a stair, the top of the guard is often also the handrail, but it has to meet both sets of rules.

When you need a guard

Under the IRC, a guard is required where a walking surface (a deck, landing, porch or the open side of a stair) is more than 30 inches above the floor or ground below, measured within 36 inches horizontally of the edge.

Guard height

  • Decks, porches, landings and floors: at least 36 inches high.
  • Open side of a stair: at least 34 inches, measured straight up from the line of the tread nosings.
  • Commercial buildings (IBC): 42 inches.

Guards also have to be strong: built to resist a 200-pound load at the top in any direction, and the infill (balusters or panels) a 50-pound load over one square foot.

Baluster spacing: the 4-inch sphere rule

The rule is written as a sphere: a 4-inch sphere must not pass through any opening in the guard. It's sized so a small child's head can't fit through.

On stairs there are two allowances:

  • On the open side of a stair, openings may pass a 4 3/8-inch sphere.
  • The triangle formed by the tread, the riser and the bottom rail may pass a 6-inch sphere.

Many builders keep every gap under 4 inches everywhere anyway. Inspectors often test with a 4-inch ball, and lumber moves.

Clear gap, not center spacing

The rule limits the clear gap between balusters, not their center-to-center spacing. With 1 1/2-inch balusters and gaps just under 4 inches, the center spacing can be up to about 5 1/2 inches. "Three balusters per foot" is a safe rule of thumb, but it uses more balusters than you need with thicker stock.

How to space balusters evenly

Even spacing looks far better than fixed spacing with an odd gap at the end. Here's the method, using a 6-foot (72-inch) section between posts and 1 1/2-inch balusters:

  1. Pick a target gap under 4 inches.
  2. Find the fewest balusters that keep every gap under 4 inches. For 72 inches that's 13 balusters.
  3. Work out the exact gap: (72 − 13 × 1.5) ÷ 14 gaps = 3 3/4 inches.
  4. Mark centers at 3 3/4 + 3/4 = 4 1/2 inches from the first post, then every 5 1/4 inches after that.

The baluster spacing calculator does this for any length and baluster size, and lists every mark from the first post.

Balusters on stairs

On a stair, balusters usually go two per tread on 10 to 11-inch treads, which keeps the gaps under 4 3/8 inches. Thin balusters or deep treads may need three. Because the rail slopes, each baluster on a tread is a different length, and the tops are cut at the stair angle. The baluster length and rake angle calculator gives the length and cut angle for each.

Handrail rules

  • Required on at least one side of a stair with four or more risers.
  • Height: 34 to 38 inches above the nosing line.
  • Grip: a round rail must be 1 1/4 to 2 inches in diameter.
  • Clearance: at least 1 1/2 inches from the wall.
  • Continuous for the full flight, with the ends returned to the wall or a post.

The handrail length calculator works out the rail length, extensions, brackets and stock pieces to buy.

Cable and glass railings

Cable railings meet the 4-inch rule only when the cables are tight and close enough that a 4-inch sphere can't push between them. That usually means cables about 3 inches apart and posts no more than about 4 feet apart. The cable railing calculator sizes the runs and fittings. Glass panels need tempered or laminated safety glass and are usually designed to the manufacturer's tested system.

Quick reference

Rule Residential (IRC)
Guard required Drop over 30"
Guard height 36" (34" on stair side)
Openings 4" sphere (4 3/8" on stairs, 6" triangle)
Handrail height 34" to 38"
Handrail grip (round) 1 1/4" to 2"
Wall clearance 1 1/2" min

Local codes can be stricter, so confirm with your building department before you order materials.

Common questions

What is the maximum spacing between balusters?

On level guards, a 4-inch sphere must not pass between balusters. On the open side of a stair, the IRC allows a 4 3/8-inch sphere, and the triangle formed by the tread, riser and bottom rail may pass a 6-inch sphere.

How tall does a deck railing have to be?

Residential guards must be at least 36 inches high where the deck is more than 30 inches above the ground, and 34 inches above the nosings on the side of a stair. Commercial guards are 42 inches.

How many balusters do I need for a 6 foot railing?

With 1 1/2-inch balusters and gaps kept under 4 inches, a 6-foot (72-inch) section between posts needs 13 balusters, leaving 14 equal gaps of 3 3/4 inches.

Calculators for this job