How to calculate handrail length
A stair handrail runs parallel to the nosing line — the line through the front edges of the treads. Over one flight of n risers of height R and treads of depth T:
step diagonal s = √(R² + T²) · sloped length S = (n − 1) × s · rail angle = atan(R ÷ T)
extensions: IRC none · IBC / ADA top 12 in (300 mm), bottom s (one tread depth at the slope)
total = S + level landing segments + top + bottom + 2 × return
brackets = ceil((total − returns) ÷ spacing) + 1 · stock pieces = ceil(total ÷ stock length)
rail height at the bottom newel = R + rail height (above the lower floor) · at the top = rail height
The sloped length runs from above the nosing of the lowest tread to above the top riser — exactly the stretch the IRC requires the rail to cover. With several flights, the extensions apply only at the very top and the very bottom of the whole run.
Worked examples
A 9 ft interior stair
- Inputs15 risers of 7.2 in · 10½ in treads · rail 36 in above the nosings · IRC (no extensions) · no returns · brackets at 48 in · 16 ft stock.
- Slope√(7.2² + 10.5²) = 12.73 in per step; angle 34.4°.
- Length14 × 12.73 = 178.24 in (178-1/4") = 14.85 ft — one 16 ft length.
- Bracketsceil(178.24 ÷ 48) + 1 = 5.
- Newels43.20 in at the bottom (one riser plus the rail height) and 36 in at the top. The height passes.
The same stair to IBC / ADA
Add 12 in level at the top, 12.73 in at the slope at the bottom and two 3½ in returns: 178.24 + 12 + 12.73 + 7 = 209.97 in (17.50 ft). That needs 6 brackets and two 16 ft lengths with one splice.
An L-stair with a landing
Flights of 8 and 7 risers give 89.12 in and 76.39 in of sloped rail; a 36 in level segment over the landing brings the total to 201.51 in (16.79 ft), with two bends at the landing and 6 brackets.
Handrail length by stair height
| Floor to floor | Risers | IRC length · brackets | IBC / ADA + 3½ in returns · brackets | Angle |
|---|---|---|---|---|
| 3 ft 6 in (42 in) | 6 × 7" | 5' 3-1/8" · 3 | 7' 10-11/16" · 3 | 33.7° |
| 7 ft (84 in) | 12 × 7" | 11' 6-13/16" · 4 | 14' 2-7/16" · 5 | 33.7° |
| 8 ft (96 in) | 13 × 7-3/8" | 12' 10-1/16" · 5 | 15' 5-7/8" · 5 | 35.1° |
| 9 ft (108 in) | 15 × 7-3/16" | 14' 10-1/4" · 5 | 17' 6" · 6 | 34.4° |
| 10 ft (120 in) | 17 × 7-1/16" | 16' 10-7/16" · 6 | 19' 6-1/16" · 6 | 33.9° |
A typical 8–9 ft house stair takes a single 16 ft rail; commercial extensions push it into a second length. The table under your result shows how many pieces each stock length needs for your rail.
How far should a handrail extend past the stairs?
| Rule set | Top | Bottom | Ends |
|---|---|---|---|
| IRC (homes) | None — to above the top riser | None — to above the lowest riser | Return to the wall or end at a newel / safety terminal |
| IBC / ADA (commercial, public) | 12 in level | One tread depth at the slope | Return to a wall, guard or the floor, or continue to the next flight |
Many online handrail tools label the 12 in extension as an IRC rule — it is not. Homes only need the rail over the full flight; the extensions are an IBC and ADA requirement for commercial and public buildings. Choose the rule set that applies and the calculator adds the right lengths.
Handrail height and grip
- Height: 34–38 in above the nosing line (IRC R311.7.8.1, IBC 1014.2); 900–1000 mm above the pitch line in the UK.
- Grip: round rails 1¼–2 in in diameter (IRC R311.7.8.5), or a shape with an equivalent graspable perimeter.
- Wall clearance: at least 1½ in between the rail and the wall (R311.7.8.3).
- Newels: the bottom newel cap sits one riser higher above the floor than the rail is above the nosing — 43.2 in for a 36 in rail on 7.2 in risers.
If the rail is also the guard along an open side, it must meet the guard rules too: 34 in minimum on stairs under the IRC, with openings that will not pass a 4⅜ in sphere. Lay out the balusters with the baluster spacing calculator.
Brackets, returns and newels
Brackets are spaced evenly along the rail at no more than the maximum your rail maker gives — 48 in is common — with one within about 12 in of each end. Returns turn the rail ends back to the wall (often 3½ in) so nothing catches on them; they add to the length you buy but need no brackets of their own. Order a little extra for cuts and for the fittings at newels and landings.
Handrails over landings
With Flights with landings, enter each flight and the length of level rail over each landing. The total adds the sloped runs and the level runs, and counts two bends per landing — an over-easing where the rail levels off and an up-easing where it climbs again, or a gooseneck where heights change. Extensions apply only at the very top and bottom. For the flight layout itself, use the L-shaped or U-shaped stair calculator.
What this calculator does not cover
- Balusters, cable or glass under the rail: use the baluster, cable or glass railing calculator.
- The stair layout: use the stair calculator.
- Fitting lengths (easings, goosenecks, volutes), railing cost and finishes.
Stair handrail FAQs
How do you calculate handrail length for stairs?
Find the step diagonal √(riser² + tread²) and multiply it by one less than the number of risers — that is the sloped length from the lowest nosing to the top riser. Add any extensions, the wall returns at each end and any level runs over landings. For 15 risers of 7.2 in with 10½ in treads the sloped length is 14 × 12.73 = 178.24 in, just under 15 ft.
How far should a handrail extend past the stairs?
Under the IRC, for homes, no extension is required: the rail runs from above the top riser to above the lowest riser. Under the IBC and the ADA Standards the rail extends 12 in level past the top riser and, at the bottom, continues at the stair slope for one tread depth past the last nosing.
What height should a stair handrail be?
34–38 in above the nosing line under both the IRC and the IBC, measured plumb from the nosings to the top of the rail. In the UK, Approved Document K sets 900–1000 mm above the pitch line.
When is a handrail required on stairs?
Under the IRC, any flight with four or more risers needs a handrail on at least one side. Below four risers it is not required, but it is still recommended — especially outdoors and for older users.
How many handrail brackets do I need?
Divide the rail length (less any returns) by the maximum spacing your rail maker allows, round up, and add one. 48 in is a common maximum; keep one bracket within about 12 in of each end. A 15 ft rail at 48 in spacing needs 5 brackets.
Do you need a handrail on both sides of the stairs?
Homes under the IRC need only one side for flights of four or more risers. Commercial stairs under the IBC generally need handrails on both sides, and wide stairs need intermediate rails. A rail on both sides is safer wherever there is room.
Should a handrail end in a wall return or a newel?
Either meets the IRC: the ends must return to the wall or finish at a newel post or safety terminal so that sleeves and bags cannot catch. A return of about 3½ in to the wall is common on wall-mounted rails.
What size should a handrail grip be?
A round rail should be 1¼–2 in in diameter under the IRC (R311.7.8.5); other shapes must have an equivalent graspable perimeter. Keep at least 1½ in between the rail and the wall.
Does the handrail continue over a landing?
Under the IRC the handrail may stop at a landing and start again on the next flight. Many builders run it continuously round the landing with level sections and easings, which this calculator adds as level segments with two bends per landing.
Sources
- International Residential Code 2021, Sections R311.7.8 and R312.1 — Handrails and guards (opens in a new tab)International Code Council. Handrails on flights of four or more risers (R311.7.8), 34–38 in above the nosings (R311.7.8.1), 1-1/2 in wall clearance (R311.7.8.3), continuous from above the top riser to above the lowest riser with returned or newel ends (R311.7.8.4), 1-1/4 to 2 in round grip (R311.7.8.5); guards where the drop exceeds 30 in (R312.1.1), 36 in high or 34 in on the open side of stairs (R312.1.2), openings that do not pass a 4 in sphere, 4-3/8 in on stairs and 6 in at the stair triangle (R312.1.3).
- International Building Code 2021, Sections 1014 and 1015 — Handrails and guards (opens in a new tab)International Code Council. Handrail height 34–38 in and extensions — 12 in level at the top, one tread depth at the slope at the bottom (1014.6); guards 42 in high with openings that do not pass a 4 in sphere (1015).
- 2010 ADA Standards for Accessible Design, §505.10 — Handrail extensions (opens in a new tab)U.S. Access Board. Stair handrails extend 12 in horizontally at the top and continue at the slope for one tread depth beyond the bottom nosing.
- Approved Document K: Protection from falling, collision and impact (opens in a new tab)UK Government (statutory guidance for England). Handrails 900–1000 mm above the pitch line; guarding to stairs and landings in dwellings at least 900 mm high, with openings that do not pass a 100 mm sphere.
- Handrail bracket spacingCommon rail-maker practice: brackets at no more than about 48 in apart, with one near each end. No single governing standard — use the maximum your rail system states.
- Handrail geometryDerived from geometry: the sloped rail over a flight of n risers is (n − 1) × √(riser² + tread²), parallel to the nosing line; the rail angle is atan(riser ÷ tread).
Code text is the final word. Editions and local amendments differ — check the edition your building department enforces.
Related calculators
- Baluster spacing calculatorThe balusters under the rail
- Stair calculatorGet the risers and treads
- L-shaped stair calculatorFlights and the landing
- Cable railing calculatorCable infill under the rail
- Glass railing calculatorGlass panels under the rail
Other stair calculator categories