Measuring for handrail height before you cut brackets
Handrail height is measured vertically, not along the slope of the stair — get the reference point wrong and every bracket ends up off.
Find the nosing line, not the tread surface
Code measures handrail height vertically from the leading edge (nosing) of each tread, not from the flat walking surface behind it. Snap a chalk line touching every nosing point to find this reference line before you measure anything else.
Confirm your riser and tread numbers
This calculator uses your riser height and tread depth only to work out the stair angle and the total rail length — the target height itself doesn't change with the angle, since it's a vertical measurement either way.
Pick a target inside the code range
Most installers target the middle of the allowed range — 36" is a common default — to leave margin against finish flooring or carpet thickness changing the effective height after installation.
Check grip size and clearance separately
A correctly-mounted rail at the right height can still fail inspection on cross-section shape or wall clearance. Both are checked independently below — they don't affect the height number itself.
The formulas behind every result
Nothing on this page is a black box. Here's exactly what runs when you change a number.
Handrail Height
Measured vertically from the nosing line of the stair, or from the finished floor/ramp surface at landings — not along the slope.
Stair Angle
Used only to size the rail length along the pitch and to draw the diagram — it does not change the target height itself.
Flight Run Length
Same stringer-hypotenuse formula as a stair layout calculation: Rise = riser × steps, Run = tread × (steps − 1).
Total Rail Needed
The flight run length plus the horizontal top and bottom extensions, projected along the same slope angle as the rail itself.
Walking through a 14-riser flight
Same formulas, filled in for a 14-riser residential flight at 7.5" risers and 10.5" treads — the default this calculator loads with.
Height target
36" sits comfortably inside the 34"–38" IRC range, so the height chip passes without adjustment — the target is a design choice within the range, not a calculated number.
Stair angle
atan(7.5 ÷ 10.5) ≈ 35.5°. This angle is used to project the extension lengths onto the rail's actual slope in the next step — it has no effect on the 36" height itself.
Flight run length
Rise = 7.5 × 14 = 105". Run = 10.5 × 13 = 136.5". L = √(105² + 136.5²) ≈ 172.3" — the straight-line rail length between the top and bottom nosing points.
Extensions and total length
Using the IRC default extension rule [VERIFY] — one tread depth at the top (10.5") and one tread depth plus 12" at the bottom (22.5") — each projected along the 35.5° slope adds roughly 12.9" and 27.6". Total rail needed ≈ 172.3 + 12.9 + 27.6 ≈ 212.8", which rounds up to a 20 ft stock length.
Notice the extensions add nearly 40" to the order length on a flight that's only 172" of straight run — skipping them is the single most common reason a rail order comes up short.
Handrail height vs. the numbers people confuse it with
Handrail height, guard height and baluster spacing are three different code sections with three different numbers. Mixing them up is the most common railing mistake on this site.
| Element | IRC Residential | IBC Commercial | ADA Accessible |
|---|---|---|---|
| Handrail height (vertical, from nosing) | 34"–38" | 34"–38" | 34"–38" |
| Guard height (open sides, separate from handrail) | 36" min | 42" min | 42" min [VERIFY] |
| Wall-to-rail clearance | 1.5" min | 1.5" min | 1.5" min |
| Top extension beyond first nosing | 1 tread depth [VERIFY] | 12" [VERIFY] | 12" min |
| Bottom extension beyond last nosing | 1 tread depth + 12" [VERIFY] | 12" [VERIFY] | 12" min |
| Handrail required at | 4+ risers [VERIFY] | 4+ risers [VERIFY] | ramps & stairs per facility type |
Reference only — always confirm against your local jurisdiction's adopted code before building. Items marked [VERIFY] are shown as unconfirmed in the calculator's live results as well, not just in this table.
Grip size, cross-section & wall clearance
A rail can sit at exactly the right height and still fail inspection on how it's shaped or how close it sits to the wall — this section covers the two checks the height number doesn't.
Circular profile (Type I)
The most common residential profile. A rail thicker than 2" or thinner than 1.25" typically fails the graspability check regardless of height.
Non-circular profile (Type II)
Covers shaped or flat-topped rails. Both the perimeter and the largest single cross-section dimension have to pass — a wide flat-top rail can meet one and fail the other.
Wall clearance
Gap between the wall finish and the near edge of the rail, measured horizontally. Too tight and a gripping hand can't wrap around the profile in an emergency grab.
Continuous handrail
Where a flight breaks at a landing, the handrail generally has to continue without a gap at the same height rather than stopping and restarting — check your local code for the exact landing-continuity rule.
These are planning-stage checks, not a substitute for a pre-inspection walkthrough with your local building department.
Common mistakes when planning handrail height
Most handrail rejections at final inspection trace back to one of these five errors, not to bad carpentry.
Measuring from the tread, not the nosing
Measuring straight up from the flat part of the tread instead of from the leading nosing edge produces a rail that reads correct on paper but sits too low relative to the actual walking line.
Confusing handrail height with guard height
Handrail height (34"–38") and guard height (36"–42" depending on jurisdiction) are different code sections with different numbers — a guard built to handrail height will fail inspection on an open stair side.
Ordering rail to the flight length only
Skipping the top and bottom extensions when ordering material is the most common reason a rail order comes up short — see the worked example above for how much length that actually adds.
Ignoring grip size and cross-section
A rail mounted at exactly the right height can still fail if the profile is too wide, too thin, or the wrong shape to grip in an emergency — check this separately from height.
Mounting too close to the wall
A rail with less than the minimum wall clearance doesn't leave room for a hand to wrap fully around the profile, even if the height and grip size both pass independently.
When to use a handrail height calculator
Handrail height planning shows up any time a stairway is new, replaced, or being brought up to current code.
Home Renovation
Replacing an old handrail during a stairway remodel.
New Construction
Setting bracket layout before drywall closes in the stairwell.
Commercial Fit-Outs
Confirming IBC handrail dimensions before a tenant improvement inspection.
ADA Accessibility Upgrades
Checking handrail and extension length for a public-facing ramp or stair.
Code Compliance & Permits
Confirming height, grip size and clearance before a plan check.
Basement & Deck Stairs
Planning rail height and length for a confined or outdoor stairway.