Railings that hold: the 200-pound test your guardrail has to pass.
A guardrail spends its life as decoration and one moment as life-safety equipment. Code is written entirely for that one moment. This brief explains the 4-inch sphere rule, the concentrated-load requirement, and the unglamorous truth that a railing is only as strong as its post connection.
What the rules are actually for
Residential code requires a guard on any deck surface more than 30 inches above grade, at a minimum height of 36 inches (some jurisdictions require more — we verify locally). Two numbers inside that requirement do the real work, and both exist because of specific, documented ways people get hurt.
The 4-inch sphere rule. No opening in the guard's infill may allow a 4-inch sphere to pass. The dimension isn't arbitrary — it's sized to a small child's body, chosen so that a toddler can't slip through or become entrapped in the railing. It applies between balusters, under the bottom rail, and everywhere in between (stair guards get a related triangle allowance at the tread). When we set baluster spacing, we're not eyeballing "about four inches" — we're laying out so the finished gap passes the sphere with the materials' real dimensions, seasonal movement included.
The 200-pound load. Guards must resist a 200-pound concentrated load applied at the top, in any direction — the code's stand-in for a grown adult stumbling into the rail, leaning hard, or sitting on it (which people do, at every cookout, forever). The infill has its own separate load requirement so a kicked or fallen-against baluster doesn't pop free.
The physics problem nobody sees
Here's what makes that 200 pounds interesting: it's applied 36 inches above the deck surface, at the top of a post that's anchored at the bottom. That's a lever. A modest push at the top of the post becomes a violent prying force at its base — several times the applied load, trying to rotate the post off the rim joist. This is why the weak point of nearly every failed railing isn't the rail or the balusters; it's the post-to-frame connection.
Two common building habits fail this physics quietly. Notched posts — where the post is cut to lap over the rim — remove more than half the wood exactly where the prying force peaks; a notched 4×4 carrying a guard is a code-and-physics problem wearing a traditional look. And bolts through the rim alone, without blocking or tension hardware, ask a single inch-and-a-half board to resist the whole moment; the bolts hold, the rim rolls, the rail leans. The fix is unglamorous: solid blocking between joists at every guard post and manufactured hold-down tension hardware tying the post through the blocking to the frame — so the lever arm pulls against the deck's structure, not against one board's edge.
Cable rail: beautiful, and unforgiving of shortcuts
Cable infill earns its price with sightlines — and demands respect for tension. Cables must be tight enough that the 4-inch sphere still can't pass when the cables are pushed apart, which is how inspectors and children both test them. That drives the details: closer post spacing than wood railings (or intermediate supports), frames rigid enough to take cumulative cable tension without bowing the end posts, and periodic re-tensioning as the system settles. A cable rail installed with wood-railing habits looks right for a season and gaps open by the second summer. Installed correctly, it's as safe as any infill made — the code doesn't grade on aesthetics in either direction.
How Post & Beam builds guards
International Residential Code, guard and handrail provisions (R312) and deck guard attachment guidance · American Wood Council DCA 6 · Cable-rail manufacturers' engineering bulletins on post spacing and tension. Local amendments vary; the county's numbers govern.