Measuring

Stair Handrail Calculator: Length, Height and Pitch

A stair handrail calculator estimates three separate things from your staircase's rise and run: the raked (sloped) length of handrail needed to follow the pitch line, the mounting height measured vertically above the tread nosing, and the pitch angle itself. Handrail length is not the same as the floor-plan length of the stair, because the rail follows the diagonal pitch line, which is always longer than the horizontal run.

By Thomas Bramley, Estimating editor · · 5 min read

Last updated · Reviewed by James Whitfield, Stair runner fitter and flooring estimator

Handrail following the pitch line of a staircase

The geometry a handrail calculator uses

A staircase's pitch line runs from the nosing of the bottom tread to the nosing of the top tread, and the handrail follows a line parallel to it, offset upward by the mounting height. The raked length of that pitch line — and therefore roughly the length of handrail needed — is found using simple right-triangle maths: it is the hypotenuse of a triangle whose two other sides are the total rise (vertical) and total run (horizontal) of the flight.

QuantityHow it's found
Total riseNumber of risers × riser height
Total runNumber of treads × tread going (depth)
Pitch line length√(total rise² + total run²)
Pitch anglearctan(total rise ÷ total run)
Approx. handrail lengthPitch line length + allowance for newel returns/volutes

That pitch-line figure is a close estimate of the handrail length for a rail that runs straight from bottom to top newel. Add an allowance — commonly 100-300mm (4-12in) depending on the style of end cap, volute or newel return — because most handrails need extra length to terminate cleanly rather than stopping exactly on the pitch line.

Worked example

Take a flight with 13 risers at roughly 178mm (7in) each and 12 treads at roughly 254mm (10in) going. Total rise is about 2,314mm and total run is about 3,048mm. The pitch line length works out to roughly √(2,314² + 3,048²) ≈ 3,826mm (about 150.6in, or 12.5ft), and the pitch angle is arctan(2,314 ÷ 3,048) ≈ 37.2 degrees. Add an allowance for the end treatment and you would order a rail somewhere around 4.0-4.1m (13-13.5ft) to be safe, always confirming against a physical measurement before cutting.

How a stair runner is measuredOne step showing tread depth, riser height and the nosing wrap that all add together to give the runner length per step.Tread depthRiser heightNosing wrapRunner per step = tread + riser + nosing allowance
The pitch line runs nosing-to-nosing; handrail length follows this diagonal, not the horizontal floor-plan run.

Mounting height

Handrail height is measured vertically from the top of the tread nosing to the top of the rail, generally along the whole pitch of the flight, and most residential codes specify a range rather than a single figure — commonly around 865-965mm (34-38in) in the US, and a similar though not identical range under UK Building Regs, with landings sometimes requiring a slightly different guard height than the stair flight itself. Always check the specific figures that apply in your location before fabricating brackets.

Location on the calculatorTypical height range (confirm locally)
Along the stair flight≈ 865-965mm / 34-38in
At landings (guarding)≈ 900-1,100mm / 36-43in, varies by code
Handrail projection from wall≈ 38-50mm / 1.5-2in clearance behind rail

Pitch and how it affects rail fittings

The pitch angle matters for ordering handrail fittings, because rake fittings — the pieces that transition the rail from sloped to level at a newel, or turn a corner — are usually made for a specific pitch range, commonly grouped in bands such as roughly 30-35 degrees, 35-40 degrees and so on. Standard stairs (see our note on the standard 7-11 rule) tend to land in the high 30s in degrees, which is why so many stock rake fittings are made for that range, but always measure your own flight rather than assuming.

Order rake fittings to your measured pitch, not a guess

A rake fitting made for the wrong pitch band will not sit flush and is very difficult to correct on site. Measure your actual pitch angle first, then order fittings rated for that band.

Know your numbers in 30 seconds

Enter your step count, tread depth and riser height — the stair runner calculator gives you the exact length to order, in metres and feet, with waste included.

Open the stair runner calculator

Continuous rails, winders and landings

Where a handrail continues around a winder or across a landing, calculate each straight or curved segment separately and sum the lengths, because the simple rise/run hypotenuse method above only applies to a single straight flight. Curved and winder sections are usually quoted by a specialist based on a template or a 3D survey rather than a simple formula, since the geometry compounds quickly.

Common handrail calculation mistakes

  • Using the horizontal floor-plan length instead of the sloped pitch-line length, which under-orders material.
  • Forgetting an allowance for newel returns, volutes or wall-return end caps.
  • Measuring height from the tread surface instead of the nosing.
  • Assuming one height figure applies to both the stair flight and any landing guarding.
  • Ordering rake fittings before measuring the actual pitch angle of the built stair.

Whatever you decide, get the numbers first: the stair runner calculator doubles as a stair runner length calculator, adding nosing wrap, landings, winders, pattern repeat and waste so you order the right length the first time.

Frequently asked questions

How do I calculate handrail length for stairs?

Find the pitch-line length using the hypotenuse of total rise and total run (√(rise² + run²)), then add an allowance of roughly 100-300mm (4-12in) for end treatments like volutes or wall returns.

What height should a stair handrail be?

Commonly around 865-965mm (34-38in) measured vertically from the tread nosing, though the exact range varies by local code and can differ for landing guarding — always check locally before fabricating.

How do I find the pitch angle of my stairs?

Take the arctangent of total rise divided by total run (arctan(rise ÷ run)). A typical residential stair often lands somewhere in the mid-to-high 30s in degrees, but always measure your own flight.

Is handrail length the same as the stair's floor-plan length?

No. Handrail follows the sloped pitch line, which is always longer than the horizontal floor-plan run, because it is the hypotenuse of the rise/run triangle.

Why do rake fittings come in specific angle bands?

Because the fitting has to sit flush against both the sloped rail and the level or turning section, manufacturers group fittings into pitch bands (for example roughly 30-35 or 35-40 degrees) rather than making every angle to order.

Do winders need a different handrail calculation?

Yes. Winder and curved sections should be measured and quoted per segment, often from a template or survey, rather than the simple rise/run formula used for a straight flight.

How much extra handrail length should I allow for fittings?

A common allowance is roughly 100-300mm (4-12in) beyond the calculated pitch-line length, though it depends heavily on the specific end cap, volute or newel return style you are using.

What is the difference between handrail height and guard height?

Handrail height is measured along the pitch of the stair flight; guard (or guarding) height applies at landings and open edges and is sometimes set to a different figure by local code.

Know your numbers in 30 seconds

Enter your step count, tread depth and riser height — the stair runner calculator gives you the exact length to order, in metres and feet, with waste included.

Calculate stair geometry

Every guide is written from hands-on measuring and fitting experience, checked against the calculator’s own maths, and re-reviewed whenever prices or methods change. Read our editorial standards.

Keep reading