mystaircalculator.com logo mystaircalculator.com
  1. Home
  2. Calculators
  3. Railing, Baluster & Safety
  4. Handrail Height Calculator
Railing, Baluster & Safety

Handrail Height Calculator

Enter your stair's riser and tread dimensions and your target handrail height. Get the code-checked height range, grip-size compliance, wall clearance, extension length and total rail length to buy — instantly.

Free to use No sign-up required Formulas verified against IRC 2021 IRC, IBC & ADA ranges included
Height range checked Grip size & clearance included Code-compliance chips built in Last verified July 2026
Checked line-by-line by our in-house stair-planning team before publishing — figures re-verified July 2026.
in

Measured vertically from the nosing of the tread (stairs) or the finished floor/ramp surface (landings).

in
in
risers
Advanced: grip size & cross-section
in
Advanced: wall clearance & landing
in

Gap between the wall surface and the near edge of the rail.

Side profile diagram of the stair nosing line with handrail height and extensions

Results

Target Height
in
Allowed Range
Stair Angle
°
Grip Status
Wall Clearance
Top Extension
in
Bottom Extension
in
Flight Run Length
in
Total Rail Needed
in
Stock Length to Buy
ft
Continuous Required
How to measure

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.

1

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.

2

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.

3

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.

4

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 math

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

H = target, checked against 34"–38"

Measured vertically from the nosing line of the stair, or from the finished floor/ramp surface at landings — not along the slope.

Stair Angle

θ = atan(Riser ÷ Tread)

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

L = √(Rise² + Run²)

Same stringer-hypotenuse formula as a stair layout calculation: Rise = riser × steps, Run = tread × (steps − 1).

Total Rail Needed

Total = L + TopExt ÷ cos(θ) + BotExt ÷ cos(θ)

The flight run length plus the horizontal top and bottom extensions, projected along the same slope angle as the rail itself.

Worked example

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.

1

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.

2

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.

3

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.

4

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.

Code reference

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.

ElementIRC ResidentialIBC CommercialADA Accessible
Handrail height (vertical, from nosing)34"–38"34"–38"34"–38"
Guard height (open sides, separate from handrail)36" min42" min42" min [VERIFY]
Wall-to-rail clearance1.5" min1.5" min1.5" min
Top extension beyond first nosing1 tread depth [VERIFY]12" [VERIFY]12" min
Bottom extension beyond last nosing1 tread depth + 12" [VERIFY]12" [VERIFY]12" min
Handrail required at4+ 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.

Beyond the height number

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)

Diameter: 1.25"–2"

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)

Perimeter 4"–6.25" [VERIFY], max cross-section 2.25" [VERIFY]

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

Clearance ≥ 1.5"

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

Required across intermediate landings [VERIFY]

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.

Avoid these

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.

Who uses this

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.

FAQ

Common questions

What is the correct height for a stair handrail?
Most US residential and commercial codes require a handrail height between 34" and 38", measured vertically from the nosing of the tread. 36" is a common target because it sits comfortably in the middle of that range.
Is handrail height measured from the tread or from the nosing?
From the nosing — the leading edge of the tread — not from the flat walking surface behind it. Measuring from the wrong reference point is one of the most common installation errors.
Is handrail height the same as guardrail height?
No. Handrail height (34"–38") applies to the graspable rail along a stair. Guard height (typically 36" residential, 42" commercial) applies to the barrier along an open side of a stair, landing or balcony, and is checked separately with the Guardrail Height Calculator.
Does handrail height change with the stair angle?
No. Height is measured vertically, so a steeper or shallower stair angle doesn't change the target height itself. The angle only affects how much extra rail length the top and bottom extensions add.
How far past the top and bottom step does a handrail need to extend?
Extension requirements vary by code and are one of the more locally-specific handrail rules — this calculator flags its extension figures as unconfirmed for that reason. Always verify the exact extension length with your local building department before ordering material.
What diameter should a round handrail be?
A circular profile between 1.25" and 2" in diameter is the standard graspable range under most residential and commercial codes. Thinner or thicker rails typically fail the grip-size check even if the height is correct.
Can a flat or square-topped handrail meet code?
Yes, under the non-circular (Type II) profile rules, which check the graspable perimeter and the largest single cross-section dimension separately. A wide, flat-topped rail can meet one check and fail the other, so both need to be verified.
How much clearance does a handrail need from the wall?
A minimum of 1.5" between the wall finish and the near edge of the rail is the standard requirement, leaving enough room for a hand to wrap fully around the profile.
Does a stair with only 3 steps need a handrail?
Many residential codes only require a graspable handrail once a flight reaches a certain riser count — commonly cited as four or more risers — but this threshold is one of the figures worth confirming locally before assuming a short flight is exempt.
How much extra handrail material should I order beyond the flight length?
Beyond the straight flight run, budget for the top and bottom extension lengths projected along the stair's slope angle, not just their horizontal distance — on a typical residential flight this commonly adds 30"–40" to the total length needed.
Is ADA handrail height different from residential code?
The core height range — 34" to 38" — is generally the same across IRC, IBC and ADA, but ADA adds its own extension-length and continuous-rail requirements for accessible routes that residential code doesn't always mirror.
Does a handrail need to be continuous across a landing?
Generally yes on multi-flight stairs, but the exact continuity requirement varies by code edition and jurisdiction, so this calculator flags it as a check to confirm locally rather than a hard pass/fail.