Most US residential decks need a 36-inch guard once the edge sits more than 30 inches above grade, with openings that stop a 4-inch sphere.
One mismeasured rail is the difference between a passed framing inspection and a torn-out deck. The three pieces that decide that outcome — posts, rails, and code-compliant heights — come from the International Residential Code, and nearly every number involved fits on an index card. Two of them do most of the work: a 36-inch guard at the open edge, and a 30-inch trigger above grade. Here is how those numbers apply to a wood deck, what the sphere test actually checks, and where inspections tend to fail.
What Height Does A Deck Guard Need?
An open deck edge needs a guard when the walking surface sits more than 30 inches above the grade or floor below, and the guard must stand at least 36 inches tall from the deck surface to the top of the rail. IRC section R312.1 sets that 30-inch trigger; the 36-inch minimum is measured vertically, straight up from the deck.
Stairs are a separate rule set. A flight with four or more risers needs a graspable handrail on at least one side, set 34 to 38 inches above the sloped plane that runs across the tread nosings. Measuring from the deck surface instead of that sloped line is the most common height error on a stair rail — on a short flight it can put the rail two or three inches out of spec before anyone notices.
Guards and handrails also do different jobs, and inspectors treat them that way. A guard blocks a fall at an open edge. A handrail is something to grip while climbing. A stair open on both sides can need both at once, which is why stair rails usually run continuously from directly above the lowest riser to directly above the highest, with the ends returned to a post or wall.
| Deck Element | What The Code Requires | Where It Applies |
|---|---|---|
| Guard trigger | Required above 30 in. | Walking surface more than 30 in. above grade |
| Guard height | 36 in. minimum | Measured up from the deck surface |
| Guard openings | 4-in. sphere must not pass | Balusters, bottom rail gap, inside corners |
| Stair handrail | 34–38 in. above nosings | Stairs with four or more risers |
| Handrail grip | Type I, 4–6¼ in. perimeter | Type II needs finger recesses on both sides |
| Post spacing | 8 ft on center with a 2×6 cap | Drops to 6 ft on center with a 2×4 cap |
| Load resistance | 200 lb, any direction | Guards and handrails alike |
Posts, Rails, And The 4-Inch Sphere
Every opening in a guard — between balusters, under the bottom rail, and at inside corners — has to be tight enough that a 4-inch sphere cannot pass through it. Guard posts must be bolted or bracketed to the framing; toe-nailing is not accepted anywhere in the load path.
Structural demand drives the hardware. Guards and handrails must resist a 200-pound concentrated load applied in any direction, which is why surface-mounted posts held by deck screws alone tend to move under a firm shove. Through-bolts, lag screws, or engineered post bases do the work.
Spacing depends on the cap. American Wood Council’s DCA6 deck guide allows posts up to 8 feet on center when a nominal 2×6 top cap runs with its wide face parallel to the deck and gets fastened to each post. Switch to a nominal 2×4 cap and that spacing drops to 6 feet on center.
Grip matters as much as spacing on a deck handrail. A Type I profile measures 4 to 6¼ inches around its perimeter. Anything larger is a Type II and needs graspable finger recesses on both sides. If you have not picked a profile yet, this comparison of tested wood handrails for decks covers the shapes that clear the perimeter rule.
Wood Deck Rail Heights: Mistakes That Fail Inspection
Three failures account for most rail rejections: height taken from the wrong reference point, gaps wider than 4 inches, and posts that move when you lean on them. Each is cheap to fix before the inspection and costly after.
- Reading stair handrail height off the deck instead of the nosing line.
- Choosing a chunky decorative top rail no adult hand can wrap around.
- Leaving the deck-to-bottom-rail gap or a corner opening just over 4 inches.
- Fastening posts with toe-nails or short deck screws and calling it finished.
- Assuming the IRC edition you read online is the one your town enforces.
That last point carries the most weight. States and municipalities adopt different code editions and amendments, and some jurisdictions raise guard heights or tighten opening limits. The building department where the deck is being built decides which version is enforceable, so confirm the local sheet before you cut lumber.
Work in order on install day: set posts at the spacing your cap allows, bolt them to the framing, hang the top rail at 36 inches, then walk the whole run with a 4-inch test sphere before you touch a baluster. If the sphere drops through anywhere, the rail is not finished.
Common Questions
Do deck guards and stair handrails follow the same rules?
Not entirely. A guard is sized by the drop below the deck and must reach 36 inches, while a stair handrail is sized by the climb and sits 34 to 38 inches above the nosing line. Posts, opening limits, and the 200-pound load test apply to both, but height is measured from different reference points.
How do you measure guard height on a sloped yard?
Pull the tape vertically from the deck’s walking surface to the top of the rail, never along the ground. Grade below only matters for the 30-inch trigger, and it is measured at the point directly under each open edge. On a slope that distance changes along the deck, so check every edge separately.
Does an older deck have to meet current guard rules?
That depends on your local building department. Many jurisdictions require compliance when a deck is rebuilt or has a permit pulled for significant work, while others leave existing construction alone until it changes use or ownership. Call the office that issues permits in your area before assuming the old rail passes.
Sources
- American Wood Council. “Prescriptive Residential Wood Deck Construction Guide (DCA6).” Supports post attachment, post spacing, and load requirements.
- Village of Albion, NY. “Decks — Permit and Construction Requirements.” Supports the 30-inch guard trigger, stair handrail height, continuity, and graspability.
- JASPECtor. “Guard Requirements, IRC 2024.” Supports the 36-inch guard height and the 4-inch sphere opening rule.
