Calcady
Home / Trade / Construction / Baluster Even Spacing

Baluster Even Spacing

Calculate perfectly equal spacing for deck balusters and stair spindles while ensuring compliance with the 4-inch sphere rule (IRC/IBC).

Railing Dimensions

Inches
Inches
Inches
Layout: 9 Balusters @ 3.450" Equal Gaps

The 4-Inch Rule

Building codes (IBC/IRC) specify that openings in guards shall not allow the passage of a sphere 4 inches in diameter. To be safe, most builders aim for a max gap of 3.875" to account for material variations and installation tolerance.

Total Balusters

9
Number of spindles required
Exact Spacing Gap
3.450Inches

Face-to-face distance between balusters

Material Total13.50"

Combined width of all balusters

For estimation purposes only. Always consult a licensed professional before beginning work. Full Trade Safety Notice →
Email LinkText/SMSWhatsApp

Quick Answer: How many balusters do I need, and what is the maximum legal gap between them?

Under IRC Section R312.1.3, balusters must be spaced so that a 4-inch diameter sphere cannot pass through any opening — this is the controlling life-safety rule for all residential deck and stair railings in jurisdictions adopting the International Residential Code. In practice, most experienced carpenters target 3ȕ7⁄8″ (3.875″) clear gap rather than the full 4″ to account for wood shrinkage, installation variance, and inspector discretion. To find baluster count: enter your clear span between posts and your baluster width above — the calculator solves for the maximum number that keeps every gap ≤ 3.875″, distributes the gaps perfectly evenly, and gives you the exact installation spacing. Example: a 96″ span with 1.5″ square balusters requires 17 balusters at exactly 3.77″ clear spacing to pass code.

Baluster Spacing Code Standards Reference

Code / Standard Max Baluster Gap Min Railing Height Application
IRC R312.1 (2021) 4″ (sphere rule) 36″ if < 30″ above grade; 42″ if ≥ 30″ above grade Residential decks, porches, balconies, open-sided walking surfaces
IRC R311.7.8 (Stairs) 4″ (vertical); 6″ triangle 34″–38″ measured from nosing Stair guardrails: 4″ between balusters but 6″ at triangular opening formed by riser, tread, and bottom rail
IBC 1015.3 (Commercial) 4″ (sphere rule) 42″ minimum (occupancy-dependent) Commercial buildings, public spaces; same sphere rule but stricter height requirements than residential
OSHA 1926.502(b) (Construction) 19″ midrail criteria 42″ top rail Construction worksites; different balusters not required — mid-rail at 21″ or screen/mesh filling the opening is acceptable
NBC (Canada) 9.8.8 4″ (100mm) 900mm (∼35.5″) or 1,070mm (∼42″) depending on height above grade Canadian residential; metric equivalent of IRC sphere rule; provincial amendments may apply
Always verify applicable code with your local building department — many jurisdictions adopt IRC/IBC with local amendments. Some coastal or HOA jurisdictions require cable railing spacing of 3″ clear or specify post-to-post maximums. Railing height is measured vertically from the deck surface, not along the incline of a stair.

Pro Tips & Baluster Layout Mistakes

Do This

  • Measure the clear span between the inside faces of your posts — not center-to-center, not outside-to-outside. This is the single most common measurement error. The baluster spacing formula works with the clear opening that balusters must fill. If your posts are 4″ wide and set 96″ apart (center-to-center), the actual clear span is 96 − 4 = 92″ — not 96″. Entering 96″ instead of 92″ produces too few balusters, creating gaps wider than 4″ adjacent to the posts. Verify at both ends of the railing span, as posts are not always perfectly parallel.
  • Use a spacing block or story pole to mark baluster positions, not individual measurements from the post each time. Cumulative measurement error compounds with each baluster: measuring each gap individually from the previous baluster's face introduces small errors (1⁄16″–1⁄8″ per baluster) that stack into visible misalignment on long runs. Instead: cut a scrap piece of wood to the exact calculated gap width (e.g., 3.77″) and a baluster-width spacer (1.5″). Alternate between them from one post to the other — every baluster position is automatically correct without re-measuring.

Avoid This

  • Don't target exactly 4″ gaps — use 3ȕ7⁄8″ (3.875″) as your working maximum. Inspectors physically try to pass a 4″ gauge (or even a 4″ ball) through each gap. Wood expands when wet and contracts in heat — a 4.0″ gap in dry summer conditions may measure 3.7″ in winter, but a gap that is 3.95″ on installation day may exceed 4″ after a wet season. Additionally, slightly angled or out-of-plumb balusters increase the effective gap at the widest point. The 3.875″ working standard is universally accepted by inspectors and leaves a 0.125″ buffer against these variables.
  • Don't apply deck baluster spacing rules to stair railings without accounting for the triangular opening exception. On stairs, balusters are installed on an incline, which creates a triangular opening at the base of each baluster formed by the stair riser, tread nosing, and the bottom rail. IRC R311.7.8.1 permits this triangular opening to accept a 6″ sphere (not 4″) because it is an inaccessible geometry for a child. However: the 4″ sphere rule still applies to the open gaps between balusters measured perpendicular to the incline. Confusing these two measurements often causes either over-engineering (too many balusters) or a code violation (balusters too widely spaced on the incline).

Frequently Asked Questions

Why is the baluster code based on a 4-inch sphere specifically?

The 4-inch sphere rule is based on anthropometric data for small children's head circumference. A 4-inch sphere approximates the head size of a young toddler (roughly 18–24 months, the highest-risk age for railing entrapment). If a head can pass through a gap, the child's body follows — but the head may become trapped on the other side due to the larger neck circumference, leading to strangulation. The sphere test is more conservative than a head test because: (1) it doesn't account for the head's oval shape, which might pass a round opening that an actual head would not; (2) it provides a simple, objectively measurable field standard. The 6-inch exception for stair triangular openings reflects that these geometries are physically inaccessible to a child's head in the relevant entrapment position.

Do stair balusters need different spacing than deck balusters?

The 4-inch sphere rule applies to both, but stair balusters have two important differences: (1) Measurement direction: on stairs, the 4-inch gap is measured perpendicular to the incline of the stair (not horizontally). This means the horizontal distance may be larger than 4 inches; what matters is the angled clear dimension across the baluster slope. (2) Triangular opening exception: IRC R311.7.8.1 permits the triangular opening at the base of stair balusters (formed by the riser, tread, and bottom rail) to allow a 6-inch sphere to pass. This exception exists because the geometry is physically inaccessible for head entrapment in the dangerous orientation. Additionally, stair handrail height (34″–38″ from nosing) is measured differently from deck guardrail height (36″–42″ from the deck surface), and many jurisdictions require stair balusters to be closer together due to more complex failure modes on steep stairs.

What happens if my baluster spacing is wider than 4 inches?

A spacing violation is a failing inspection result that must be corrected before final approval. The correction requires adding additional balusters between existing ones — which may require re-spacing the entire run to maintain symmetry, since adding one baluster mid-span changes all gaps. If you've already installed balusters and discover a gap violation: (1) Best fix: remove all balusters, run this calculator with the correct span and width, reinstall with proper spacing. (2) Partial fix: add half-size or narrower balusters in oversized gaps — this is aesthetically messy but code-compliant if the new gaps are ≤ 3.875″. (3) Infill panels: for decorative railing systems (cable, glass), inspect for open areas > 4″ at any point along the railing, not just at standard spacing intervals. Beyond code, gaps > 4″ create homeowner liability if a child is injured due to non-compliant construction.

Does my post spacing affect how many balusters I need?

Yes — post spacing determines each individual baluster calculation span. Most deck builders space posts every 6–8 feet (72″–96″) measured center-to-center. For a 4″×4″ post, that yields a clear span of 68″–92″. Each span between adjacent posts is calculated independently: a 72″ clear span with 1.5″ balusters needs 13 balusters at 3.75″ gaps; an 84″ span needs 15 balusters at 3.82″ gaps. If your deck has unequal bay widths (e.g., 74″ and 88″ between posts), enter each span separately. Total baluster count = sum of all bay calculations. Note: IRC R507.3 requires deck posts to be embedded or bolted in a structurally compliant manner, and closer post spacing (every 6 feet vs. 8 feet) reduces lateral railing loads, allowing smaller post cross-sections in some situations. This calculator handles the baluster layout; post structural design requires an engineer or compliance with prescriptive IRC tables.

Related Calculators