Use the free tool below: your data never leaves your browser — all work happens on your device, and nothing is uploaded to any server.
Why slope length is not the run
A handrail on stairs does not run horizontally: it climbs at the same slope as the steps. The length of rail you need is therefore longer than the horizontal run of the stairs, and buying a rail cut to the run length leaves you short. The right length comes from the rise and the run together, using the same triangle rule every schoolchild learns: the slope length is the square root of rise squared plus run squared. The slope angle comes from the same triangle.
This calculator does that triangle for you. Enter the total rise of the stairs and the total horizontal run, and it returns the slope length in inches and feet, plus the slope angle in degrees. Cut the rail a little long and trim the ends to fit, because end cuts, returns and post positions always eat a little length.
How to use the calculator
- Measure the total rise: the vertical height from the lower floor to the upper floor.
- Measure the total run: the horizontal distance from the first step to the last, at the same points.
- Read the slope length and the angle, then add a little extra for trimming.
A worked example
Stairs with a total rise of 70 inches and a total run of 100 inches need a rail about 122.1 inches long, at an angle of about 35 degrees. The run alone would have suggested 100 inches, which is 22 inches short, more than a full step of rail. The angle matters too: it sets the mitre cuts where the rail meets posts or wall returns, and it tells you whether the rail slope matches the stair slope, which it should.
You can also work from single steps. If each step rises 7 inches and runs 10 inches, and there are 10 steps, the total rise is 70 and the total run is 100, and the answer is the same. Working from totals is safer than measuring a long slope directly with a tape, because a tape sags and follows the steps instead of the straight line.
Tips for cutting rails
- Cut long and trim. A rail cut short cannot be stretched, but a long rail trims in seconds.
- Mark the angle on the rail with a bevel gauge set from the stairs, not from a number alone, and check it before cutting.
- Plan returns at the ends. A rail that ends in mid-air snags sleeves and fails many codes; a return to the wall or a post cap finishes it.
- Keep the rail height consistent above the stair nosings, usually between 34 and 38 inches, per your local code.
Common mistakes
The most common mistake is buying the run length instead of the slope length, which leaves the rail short at the top. Another common mistake is measuring the run along the steps instead of horizontally, which mixes two different triangles and gives a wrong angle. A third mistake is forgetting the ends: brackets, returns and newel posts all take length, so the slope length is a minimum, not a finished size.
Remember that this tool is an educational estimator. Handrail height, grip size, continuity and returns all follow your local code, and the code governs. Use this calculator to get the cut length right, then build the rail to the code.
Test the fit with a cheap scrap board before cutting the real rail. A scrap cut to the slope length and angle shows whether your rise and run numbers were right, and whether the ends meet the posts the way you imagined. Mistakes on scrap cost nothing; mistakes on hardwood cost the price of the rail. Mark the scrap with its angle and keep it: it becomes the template for the return cuts at each end of the finished rail.
Related calculators
- Spanish version
- Baluster Spacing Calculator – Even Spacing Under the 4 Inch Rule
- Wheelchair Ramp Slope Calculator – Ramp Length for Any Rise at 1 to 12

Pingback: Calculadora de Longitud de Pasamanos en Pendiente - Longitud y Ángulo en Escaleras