Guardrail & Handrail Height Calculator
The guardrail and handrail height calculator checks a measured rail against the IRC minimum for a deck guardrail, 36 in., or the 34 to 38 in. range for a stair handrail. It returns a pass or fail note, and a handrail is also checked against its maximum height.
Last reviewed September 2026Method & sourcesReport an error
Guardrail & Handrail Height Calculator
Showing numbers from a shared link.
IRC Compliance Check
36 in. meets the IRC's 36 in. minimum guardrail height.
How to Calculate Guardrail & Handrail Height
Guardrails and handrails have different height requirements because they serve different purposes. A guardrail (along an open side of a deck, porch, or landing more than 30 in. above grade) needs to be tall enough to prevent a fall over the top. So the IRC sets a 36 in. minimum with no maximum. A handrail (along a stairway, meant to be gripped while climbing) needs to sit within a comfortable, consistent gripping range. So the IRC sets both a minimum and a maximum: 34 to 38 in., measured vertically above the stair tread's nosing. This calculator checks your measured height against whichever requirement applies to what you selected.
Example: Deck guardrail measured at 36 in.
A deck guardrail measured at 36 in.: 36 ≥ 36 (the IRC minimum), so this guardrail passes. A stair handrail measured at 40 in. instead: 40 in. exceeds the IRC's 38 in. maximum handrail height. Even though it's taller, which might seem safer, it fails because handrails need to stay within a specific gripping range. Meeting a minimum is not enough.
What Is Guardrail & Handrail Height?
A guardrail and handrail height calculator checks a measured rail height against the IRC's requirements for whichever element you're building. That's either a guardrail (open-side fall protection, 36 in. minimum) or a stair handrail (a graspable rail sized within a specific height range, 34-38 in.). It sits alongside the Stair Stringer calculator's riser and tread limits as a stair and deck safety check.
Guardrail & Handrail Height: Pros and Cons
Pros
- Applies the correct requirement (minimum-only for guardrails, a min/max range for handrails) rather than treating both the same way
- Catches the common misconception that a taller handrail is always better. Handrails have a maximum height too, unlike guardrails
- A quick field check against the IRC's published figures before or during a deck or stair build
Cons
- This checks height only. Guardrails and handrails have additional IRC requirements this calculator doesn't check. These include baluster spacing (a 4 in. sphere shouldn't pass through, per IRC R312.3, see the Baluster calculator). They also include handrail graspability (cross-sectional shape and size, per R311.7.8.3)
- Some jurisdictions adopt amended height requirements different from the baseline IRC figures used here. Always confirm with your local building department
- A commercial or multi-family building may follow a different code (IBC) with different height requirements than the residential IRC figures used here
Guardrail & Handrail Height: What a Pro Checks
- Check baluster spacing too, along with rail height. IRC R312.3 requires guardrail infill spaced so a 4 in. sphere can't pass through. That is a separate check from the height requirement here.
- Remember a handrail has a maximum height as well as a minimum. The maximum is 38 in. per IRC R311.7.8, so taller is not automatically more compliant the way it is for a guardrail.
- Confirm your local jurisdiction hasn't amended these baseline IRC figures. Check the IBC instead if you're building a commercial or multi-family project rather than a single-family residence.
Frequently Asked Questions
How tall does a deck guardrail need to be?
At least 36 in., measured vertically from the deck surface to the top of the rail, per IRC R312. There's no maximum height for a guardrail, unlike a stair handrail.
How tall should a stair handrail be?
Between 34 and 38 in., measured vertically above the stair tread's nosing, per IRC R311.7.8. Both a minimum and a maximum apply, since a handrail needs to sit within a comfortable, consistent gripping range while climbing.
What's the difference between a guardrail and a handrail?
A guardrail prevents falls over an open edge (a deck, porch, or landing) and only needs to meet a minimum height (36 in.). A handrail is meant to be gripped while climbing stairs and needs to fall within a specific height range (34-38 in.). Clearing a minimum is not enough.
When does a deck need a guardrail?
The IRC requires a guardrail on any open side of a deck, porch, or landing more than 30 in. above the grade or floor below it. Below that height, a guardrail generally isn't required, though you should check local amendments.
Can a handrail be too tall?
Yes. Unlike a guardrail, a handrail has a maximum height (38 in.) as well as a minimum (34 in.). A handrail set too high isn't as effective to grip while climbing or descending, especially in an emergency.
Sources
Related Calculators
Stair Stringer Calculator
Stair stringer calculator for risers, treads and stringer board length, checked against the 7.75 in. max riser and 10 in. min tread limits for your stairs.
Deck & PatioBaluster Calculator
Use this baluster calculator to count balusters for a railing section and see the even spacing and actual gap that keep every opening under your maximum.
Carpentry & TrimEgress Window Size Calculator
Egress window size calculator for bedroom and basement openings: check net clear area, width, height and sill height against the IRC R310 limits.