Baluster spacing requirements are set by the International Residential Code and the International Building Code, and they come down to three numbers. On decks, balconies, porches, and other level walking surfaces, the gap between balusters cannot let a 4-inch sphere pass through. On the open side of stairs, the limit loosens slightly to 4⅜ inches. The triangular opening formed where the bottom rail meets the treads and risers can be up to 6 inches. Every measurement is a clearance test, done with a sphere or ball gauge, and there is no rounding in the inspector’s favor.
The 4-Inch Rule for Decks, Balconies, and Landings
On flat surfaces, openings between balusters cannot allow a 4-inch sphere to pass through at any point from the walking surface up to the required guard height. IRC Section R312.1.3 and IBC Section 1015.4 both set this standard.1International Code Council. IBC 2024 Chapter 10 Means of Egress The dimension is based on pediatric safety research: if a 4-inch sphere fits through, so might a small child’s head.
In practice, aim for a clear gap of about 3¾ inches. That leaves margin for wood swelling, minor installation error, and inspector tolerance. Inspectors test with a spherical gauge or a 4-inch ball, and if it passes through at any spot along the run, the railing fails. The rule applies uniformly across the full height of the guard. Older designs that used wider spacing higher up no longer pass under current codes.
The 4⅜-Inch Rule for Stair Railings
Guards on the open side of stairs must block a 4⅜-inch sphere (111 mm) rather than the 4-inch sphere used on level surfaces. The IRC treats this as Exception 2 to R312.1.3, and the IBC mirrors it in Section 1015.4.2International Code Council. IBC 2024 Chapter 10 Means of Egress – Section 1015.4
The extra ⅜ inch exists because of geometry. Balusters on stairs follow the slope of the railing while treads stay horizontal, so the same center-to-center spacing produces wider gaps than it would on a flat run. The 4⅜-inch allowance lets builders use two balusters per tread on a standard stairway. Trying to hit the flat-surface 4-inch limit on stairs would force tighter spacing or additional balusters at each tread.
Because the railing is angled, you can’t measure only the horizontal distance between posts at the bottom rail and assume the gap is the same everywhere. Check the widest point of each opening, which is typically the diagonal between adjacent balusters as they sit installed.
The 6-Inch Triangle at the Stair Base
Where the bottom rail of a stair guard meets the treads and risers, a triangular gap forms that can’t be eliminated without a solid panel. Both the IRC and IBC allow this triangular opening to be larger than the standard baluster gap: a 6-inch sphere is the test.2International Code Council. IBC 2024 Chapter 10 Means of Egress – Section 1015.4
The larger allowance reflects the shape itself. A triangle with a 6-inch inscribed circle has much less total area than a 6-inch square opening, so the entrapment risk stays low. Still, the triangle needs its own check at each tread. The maximum riser height under the IRC is 7¾ inches, and taller risers produce proportionally larger triangles. If your risers are near the upper limit, the bottom rail position becomes critical. Measure from the corner where the tread meets the riser to the nearest point on the underside of the bottom rail.
This is the most commonly missed test on DIY deck and stair projects. Builders focus on even baluster spacing and forget the triangle has a separate standard. An inspector who passes every baluster gap can still fail the railing over one oversized triangle at the base.
When a Guard Is Required at All
Spacing only matters if the code requires a guard. The IRC requires guards on any open-sided walking surface that sits more than 30 inches above the floor or ground below, measured vertically from any point within 36 inches of the open edge.3UpCodes. Guards and Window Fall Protection That includes decks, porches, landings, balconies, ramps, and the open sides of stairs. If the deck sits 28 inches off the ground, no guard is technically required, though many builders install one.
The 30-inch threshold catches homeowners off guard during renovations. Adding a paver patio beneath a low deck can change the measured drop and push you over the line. Inspectors measure from the walking surface to the ground directly below, not to the average grade across the yard.
Guard Height
Residential guards must be at least 36 inches tall, measured from the walking surface to the top of the rail.3UpCodes. Guards and Window Fall Protection On the open sides of stairs, the minimum drops to 34 inches, measured vertically from a line connecting the stair nosings. If the top of the guard doubles as a handrail on a stairway, it must fall between 34 and 38 inches above the nosings.
Commercial and public buildings follow the IBC, which raises the minimum guard height to 42 inches.1International Code Council. IBC 2024 Chapter 10 Means of Egress Some states and local jurisdictions have adopted 42-inch residential requirements for specific situations, such as decks more than 6 feet above grade. Check your local amendments before ordering materials.
Calculating Even Baluster Spacing
Getting the math right before drilling prevents the kind of error that’s expensive to fix later. For a level railing section between two posts:
- Measure the total span between the inside faces of the two end posts.
- Choose a target gap. For a level surface, 3.5 inches gives comfortable margin below the 4-inch maximum. For stairs, you can go up to about 4 inches to stay under 4⅜.
- Divide the total span by the sum of one baluster width plus your target gap. With 1.5-inch-square balusters and a 3.5-inch gap, that’s 5 inches per unit. A 72-inch span divided by 5 gives 14.4.
- Always round up. In this example, that means 15 balusters. Rounding down would push the gaps past your target and possibly past code.
- Find the actual gap by subtracting the total baluster width from the span, then dividing by the number of spaces, which is one more than the number of balusters. With 15 balusters at 1.5 inches, that’s 22.5 inches of baluster. Subtract from 72 to get 49.5 inches of open space, divided by 16 spaces, giving gaps of about 3.09 inches each.
Watch the difference between clearance (empty air between balusters) and center-to-center spacing (which includes half the width of each adjacent baluster). Inspectors measure clearance. When you see spacing charts from baluster manufacturers, check which measurement they’re using.
Mark the rail with a tape measure and combination square before drilling. A small error compounded across 15 balusters can leave the last gap noticeably wider than the rest, and that’s where an inspector’s gauge finds its way through.
Horizontal Balusters and the Climbability Question
A common concern with horizontal rails is whether they create a ladder effect that children can climb. The IRC briefly included language restricting horizontal and decorative infill in its first edition in 2000, but that wording was removed in the 2001 supplement and has not returned. The IBC has never restricted horizontal infill. Current model codes focus on opening size, height, and structural strength rather than orientation.
A handful of local jurisdictions still reference climbability restrictions from the earlier language or have added their own amendments. If you’re planning horizontal cable rail, horizontal metal bars, or a similar design, confirm with your local building department first. The spacing rules apply the same way: a 4-inch sphere still can’t pass through at any point on a level surface.
Structural Load Requirements
Spacing is only half the equation. The guard system also has to resist force. Under IBC Section 1607.8, guards and handrails must withstand a concentrated load of 200 pounds applied in any direction at any point along the top rail. The guard must also resist a distributed load of 50 pounds per linear foot applied horizontally at the top.1International Code Council. IBC 2024 Chapter 10 Means of Egress Individual balusters must handle a 50-pound load on a one-square-foot area.
These numbers drive material selection. Thin decorative iron balusters that pass the spacing test may not meet the load requirement. Wooden balusters with large knots or splits can fail under lateral pressure even if they look fine. Posts are the most critical element: they transfer railing load into the deck frame or wall structure, and a weak post connection brings down the section regardless of how well the balusters are spaced.
What Happens if the Railing Doesn’t Comply
The immediate consequence is a failed inspection. If you pulled a permit, the inspector tests baluster spacing, guard height, and structural connections before signing off. A failure means rework before you can close out the permit, and the reinspection fee adds to the cost.
The larger risk is liability. Building code violations can be used as evidence of negligence if someone is injured on your property. A guest who falls through a railing with gaps wider than 4 inches has a strong argument that you knew or should have known the railing was dangerous, since the code sets a clear, well-known standard.
Insurance adds another layer. Unpermitted or non-compliant work can lead to claim denials if damage or injury is linked to the unapproved construction. Some insurers raise premiums or cancel policies after discovering unpermitted structural work. Even absent an injury, a home inspection during a sale will flag the non-compliance, and buyers will either demand repairs or negotiate the price down to cover bringing the railing up to code.