Stair Calculator
Enter the total height to climb, your target riser height, and tread depth to find the number of steps and the stair's dimensions.
All dimensions in cm. Steps = total height ÷ target riser, rounded to the nearest whole number; there is one tread fewer than risers. A stride of 60–65 cm (2h + t) is usually comfortable; check local building rules.
Enter a height of 1–10,000 cm, a riser of 1–100 cm, a tread of 1–200 cm or a stride of 50–70 cm that leaves a positive tread, and an available length of 0 or more.
How stair dimensions are calculated
The number of steps is the total height divided by your target riser height, rounded to a whole number — since you can't have a fraction of a step, the actual riser height is then recalculated by dividing the total height evenly across that whole number of steps.
A staircase with N steps has N risers but only N−1 treads (the top step usually lands on the floor above, which doesn't need its own tread). Total run is the number of treads times the tread depth, and the stair angle is found from the actual riser and tread depth using the arctangent function.
Frequently asked questions
What's a comfortable riser height for stairs?
Common residential building guidance suggests risers around 15-20 cm (roughly 6-8 inches), with a well-known rule of thumb being that 2× riser + 1× tread should total around 60-65 cm for comfortable stairs.
Why does the actual riser height differ from my target?
Since the number of steps must be a whole number, the exact riser height is recalculated to evenly divide the total height — your target is just a starting point to find a sensible number of steps.
What's a typical stair angle?
Most residential stairs fall between about 30-35 degrees — steeper than that starts to feel uncomfortably steep, and much shallower requires a lot of horizontal space.
How we verified this calculator
The calculator is checked against 4 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Tread depth = Entered tread depth
Total height = 280
Target riser height = 17
Tread depth (run) = 28
Stride length 2h + t (cm) = 63
Available horizontal length (cm, optional) = 400
|
Number of steps: 16
Actual riser height: 17.5 cm
Tread depth: 28 cm
Total horizontal run: 420 cm
|
| 2 |
Tread depth = From the step formula (2h + t)
Total height = 270
Target riser height = 18
Tread depth (run) = 28
Stride length 2h + t (cm) = 63
Available horizontal length (cm, optional) = 400
|
Number of steps: 15
Actual riser height: 18 cm
Tread depth: 27 cm
Total horizontal run: 378 cm
|
| 3 |
Tread depth = Entered tread depth
Total height = 300
Target riser height = 20
Tread depth (run) = 30
Stride length 2h + t (cm) = 63
Available horizontal length (cm, optional) =
|
Number of steps: 15
Actual riser height: 20 cm
Tread depth: 30 cm
Total horizontal run: 420 cm
|
| 4 |
Tread depth = Entered tread depth
Total height = 25.5
Target riser height = 17
Tread depth (run) = 25
Stride length 2h + t (cm) = 63
Available horizontal length (cm, optional) =
|
Number of steps: 2
Actual riser height: 12.75 cm
Tread depth: 25 cm
Total horizontal run: 25 cm
|