What is a stair calculator?
A stair calculator works out how many steps a staircase needs and how tall and deep each step should be, from two measurements: the total rise, which is the vertical distance from one floor to the next, and the total run, which is the horizontal length the stairs have available. Enter those two numbers and a target riser height, and the tool gives you the step count, the actual riser height, the tread depth, and the angle of the stairs. The defaults describe a 280 cm rise over a 420 cm run: 16 steps, a riser of 17.5 cm, a tread of 26.3 cm, and an angle of 33.7 degrees.
Stairs are one of the few things in a house where a small error is felt every single day. A riser that is a centimetre too tall makes every step a small effort, and a tread that is a centimetre too shallow makes every step feel unsafe. Getting the numbers right before cutting any wood or pouring any concrete is the whole point of the tool. A roofing calculator covers the other big measurement job on the same build, and an area calculator helps with the floor the stairs land on.
This calculator is for homeowners planning a staircase, builders checking a design, and students learning how stairs are set out. It uses the standard method: divide the rise by a comfortable riser height, round up to a whole number of steps, then share the rise and the run equally across those steps so every step is identical.
Everything runs in your browser. Nothing you type is uploaded, stored, or shared, and you can use the calculator as many times as you like without signing up. The results are a starting point for a design, not a building permit: local codes set the legal limits, and the article explains the usual ones.
How a stair calculator works
The method has three steps. First, divide the total rise by the target riser height and round up to the next whole number: that is the number of steps. A 280 cm rise divided by a target riser of 18 cm gives 15.6, which rounds up to 16 steps. Rounding up matters: rounding down would make every riser taller than the target, and tall risers are the ones that trip people.
Second, divide the total rise by the step count to get the actual riser height. With 16 steps the riser is 280 divided by 16, which is exactly 17.5 cm. Every step is the same height, which is the rule that matters most: a staircase where one step is a different height from the rest is a tripping hazard, even if the difference is only a few millimetres. A concrete calculator is useful next if the stairs are cast in concrete, because it works out the material from the same dimensions.
Third, divide the total run by the step count to get the tread depth, which is the horizontal depth of each step. With a 420 cm run over 16 steps the tread is 26.3 cm. The angle then follows from the riser and the tread: the arctangent of riser over tread, which is 33.7 degrees for the defaults. The same three divisions answer every staircase, whatever its size.
The results update the moment you change a number. There is no submit button and no page to reload, so you can try a shorter run or a taller rise and watch the tread and the angle move. That instant feedback is what makes the tool useful while a design is still being argued about.
The riser height explained
The riser is the vertical face of each step, and it is the input people get wrong most often. A comfortable riser for most adults is 17 to 18 cm, and most building codes cap it at about 19.7 cm, which is 7.75 inches. A riser taller than that is hard work on every step and dangerous on the way down, especially for children and older people. A riser shorter than about 14 cm feels odd in the other direction: the stairs take up a lot of floor for very little height.
The target riser you enter is a wish, not a promise. The calculator rounds the step count up, so the actual riser is usually a little shorter than the target: a target of 18 cm on a 280 cm rise gives an actual riser of 17.5 cm. That is the correct behaviour. If the actual riser ever comes out taller than your target, it means the rise does not divide evenly, and the tool has still done the safe thing by adding a step.
The tread matters just as much. A comfortable tread is 25 to 28 cm deep, and most codes set a minimum of about 25.4 cm, which is 10 inches. A tread shallower than that leaves no room for the ball of the foot, and people descend sideways or on their toes. If the calculator gives you a tread under 25 cm, the run is too short for the rise, and the honest fix is more horizontal space, not a steeper stair.
The angle ties the two together. A stair at 30 to 35 degrees feels normal. Below 30 degrees it feels like a long, lazy ramp that eats floor space; above 40 degrees it feels like a ladder. The defaults sit at 33.7 degrees, right in the comfortable band, which is a good sign that the rise and the run fit each other.
A worked example
Work through the defaults by hand, so you can check the maths yourself. Total rise 280 cm, total run 420 cm, target riser 18 cm. Divide 280 by 18 to get 15.56, and round up to 16 steps. Divide 280 by 16 to get the actual riser: 17.5 cm. Divide 420 by 16 to get the tread: 26.25 cm, shown as 26.3 cm. Take the arctangent of 17.5 over 26.25 to get the angle: 33.7 degrees.
The calculator gives Number of steps: 16, Riser height: 17.5 cm, Tread depth: 26.3 cm, Stair angle: 33.7 degrees. Check the totals: 16 steps times 17.5 cm is 280 cm, the full rise, and 16 steps times 26.25 cm is 420 cm, the full run. Both totals land exactly, which is how you know the steps are equal and the staircase will be comfortable.
Now try a second set of numbers. Rise 300 cm, run 450 cm, target riser 18 cm. Divide 300 by 18 to get 16.67, round up to 17 steps. The riser is 300 over 17, which is 17.6 cm, and the tread is 450 over 17, which is 26.5 cm. The angle is 33.7 degrees again, because the rise and the run grew in the same proportion. The result is Number of steps: 17, Riser height: 17.6 cm, Tread depth: 26.5 cm, Stair angle: 33.7 degrees.
Now try a tight one: rise 250 cm, run 300 cm, target riser 17 cm. That gives 15 steps, a riser of 16.7 cm, a tread of 20.0 cm, and an angle of 39.8 degrees. The tread is well under the 25 cm comfort minimum and the angle is near ladder territory, which tells you the run is too short for that rise. The numbers are correct, and they are telling you the design needs more space.
Why stair dimensions matter
Stairs are the most used and most dangerous part of a house. People climb them half asleep, carrying things, in the dark, and a step that is a few millimetres out is enough to cause a fall. Building codes exist because of that risk, and they all say the same thing in different words: every step the same height, every tread the same depth, risers under about 19.7 cm, treads over about 25.4 cm.
Builders use this calculation before ordering materials. The step count decides how much timber or concrete the staircase needs, and the tread depth decides the size of each board. A stair climbing calorie calculator looks at the same staircase from the fitness side, working out what climbing it actually costs the body.
Homeowners use it when a staircase is being replaced or a loft is being converted. The rise is fixed by the floors, so the only real choice is how much run to give the stairs, and this tool shows what each choice costs in comfort. A run that is 50 cm too short can turn a comfortable stair into a steep one, and it is far cheaper to learn that on a screen than after the stringers are cut.
The calculation is also a check on a drawing. If a plan shows 15 steps for a 280 cm rise, the riser is 18.7 cm, which is legal but at the tall end. If it shows 14 steps, the riser is 20 cm, which breaks most codes. A minute with the calculator settles the argument either way.
Stair calculator vs measuring by hand
Measuring by hand means dividing the rise on paper, or worse, spacing the steps by eye on the stringer board. The arithmetic is simple, but it is easy to divide by the wrong number, or to forget that the first step sits on the floor and the last step is the floor above. The calculator removes the arithmetic and shows all four results at once, so a wrong input is obvious immediately.
The calculator does not replace a tape measure. It needs the rise and the run measured correctly, and a measurement error of 5 cm in the rise changes every riser by a few millimetres. Measure the rise from the finished floor below to the finished floor above, including the thickness of the flooring, and measure the run from the face of the first riser to the face of the last.
Neither tool is better in general; they answer different parts of the job. The tape measure gives the facts, and the calculator turns the facts into a design. Use both, and check the calculator's totals against the measurements: steps times riser must equal the rise, and steps times tread must equal the run.
One thing the calculator cannot do is check your local building code. The limits quoted here, about 19.7 cm maximum riser and 25.4 cm minimum tread, are the common US and international figures, but your area may differ. Check the code before building, and treat the calculator as a design aid, not a legal opinion.
Common stair mistakes
The first mistake is steps of different heights. It happens when the rise is divided by a rounded step count instead of the other way round, or when the finished floor thickness is forgotten. Every step must be the same height, including the first and the last, or people will trip.
The second mistake is a tread that is too shallow. It usually comes from a run that is too short for the rise, and the fix is more horizontal space, a different layout such as a landing, or accepting a steeper stair knowingly. Shaving the tread to make the numbers fit is the wrong fix.
The third mistake is measuring the rise to the wrong surface. The rise is from finished floor to finished floor, not from subfloor to subfloor, and forgetting the flooring thickness shifts every riser by that amount. Measure with the flooring in mind, or the first step will be wrong.
The fourth mistake is ignoring headroom. A staircase needs about 2 metres of clear height above every step, and a stair that fits the rise and run can still fail if a beam or a low ceiling crosses it. Check the headroom on the drawing before building anything.
The fifth mistake is building without checking the code. Maximum risers, minimum treads, handrail heights, and landing sizes are all regulated, and the limits vary by place. The calculator gives you the geometry; the code gives you the law.
How to use this stair calculator
Measure the total rise from the finished floor below to the finished floor above, and the total run from where the first step will start to where the last step will end. Type both into the calculator, leave the target riser at 18 cm unless you have a reason to change it, and read the step count, riser, tread, and angle instantly.
Check the results against the comfort limits: risers between 17 and 19 cm, treads between 25 and 28 cm, and an angle between 30 and 35 degrees. If any number falls outside those bands, change the run or the target riser and watch the results move until they sit inside them.
Everything runs in your browser. Nothing you type is uploaded, stored, or shared, and you can use the calculator as many times as you like without signing up. Screenshot the results to keep them next to your drawing.
Remember that this tool gives you the geometry, not permission to build. Check your local building code for the legal limits on risers, treads, handrails, and landings before cutting anything, and get a professional to check the structure if the staircase carries a load.