Stair Calculator
Risers, riser height, treads, going, stringer and slope angle from a total rise.
What the stair calculator does
It turns a total rise into a whole number of equal risers. Risers = ceil(rise / riser height), the actual riser height = rise / risers, and treads = risers - 1. A 2.7 m rise with a 0.18 m riser you want gives 15 risers of exactly 0.18 m and 14 treads; at a 0.28 m tread the going is 3.92 m.
The stringer is the hypotenuse of the rise and the going, √(2.7² + 3.92²) = 4.7599 m, and the slope angle is printed beside it. Rounding is tolerant: a quotient within a billionth of a whole number is treated as that whole number, so 2.7 ÷ 0.18 counts 15 risers rather than 16 with a 1.4 mm sliver at the top.
This is arithmetic, not a building-code check. It does not know a jurisdiction's maximum riser, minimum tread, headroom or handrail rule, and it does not claim one. The page refuses a riser outside 0.02 to 0.5 m, a tread outside 0.05 to 1 m, a rise above 20 m, and a riser taller than the rise itself.
Figures print to up to four decimal places with trailing zeros trimmed.
How to use it
Set Total rise in metres, from the finished floor below to the finished floor above.
Set Riser height you want and Tread depth, then press Run. The result prints the riser count, the actual riser height, the treads, the going, the stringer and the slope.
Worked example
Input with the defaults:
Total rise 2.7 m, riser 0.18 m, tread 0.28 m
Output:
Risers: 15 (ceil(2.7 ÷ 0.18))
Riser height: 0.18 m (2.7 ÷ 15)
Treads: 14 (one fewer than the risers)
Stringer: 4.7599 m (√(2.7² + 3.92²))
Why it runs in your browser
The counts and the stringer are computed in this tab. Nothing you type is uploaded.
The page turns a total rise into a whole number of equal risers. Risers = ⌈rise / riser height⌉, the actual riser height is the rise divided by that count, and the treads are one fewer than the risers.
A 2.7 m rise with a 0.18 m riser gives 15 risers of exactly 0.18 m and 14 treads. At a 0.28 m tread the going is 3.92 m, the stringer is 4.7599 m and the slope is about 34.56°.
Risers must be equal, so the height you ask for is a target and the count is rounded up: the exact riser is the rise divided by the count. That is why the page prints both the count and the resulting height.
Rise, riser, tread and going
The total rise is the floor-to-floor height. A riser is one step up, and every riser must be the same height or the stair trips people. The tread is the depth of one step, and the going is the summed depth of all treads, which is the horizontal distance the stair covers.
Treads are one fewer than risers because the last riser lands on the upper floor rather than on a tread. The page prints that relation with the counts, so a plan can be checked against the stair it describes.
The stringer and the rounding guard
The stringer is the sloping board under the steps, and its length is the hypotenuse of the rise and the going: √(rise² + going²). The slope angle comes from the same triangle, which is why both are printed together.
The count uses a tolerant ceiling. In binary floating point 2.7 ÷ 0.18 is 15.000000000000002, so a plain ceiling would count a sixteenth riser of 1.4 mm at the top. A quotient within a billionth of a whole number is treated as that number.
How to use Stair Calculator
Set Total rise in metres, from the finished floor below to the finished floor above.
Set Riser height you want and Tread depth; the riser is a target and the page will round the count to fit it.
Press Run. The result prints the risers, the actual riser height, the treads, the going, the stringer and the slope angle.
What to Expect
Best for
- Turning a floor-to-floor rise into equal risers
- The stringer length and slope for a planned stair
- Checking a stair's riser and tread counts
Not ideal for
- A building-code check, which varies by jurisdiction and is not this page
- A stair with a landing or a winder, whose treads are not all the same
What this tool keeps
- The rise, the riser you asked for and the tread depth
- The count and the exact riser height, so the rounding is visible
What may need cleanup
- A rise measured to the subfloor rather than the finished floor
- A tread depth in inches, which has to be converted to metres
Common errors
- Expecting the typed riser height to survive unchanged, when the count rounds it
- Counting a tread on the top floor, which is the landing
Example use cases
- Planning a staircase before cutting stringers
- Checking a carpenter's riser count
- Estimating the floor space a stair needs
Sample input
Rise 2.7 m, riser 0.18 m, tread 0.28 m.
Sample output
15 risers at 0.18 m, 14 treads, going 3.92 m, stringer 4.7599 m.
Who this is for
- Carpenters and DIY builders planning a stair
- Anyone checking a riser count
Frequently asked questions
Why is the riser height different from what I typed?
Every riser must be equal and the count is a whole number, so the page rounds the count up and divides the rise by it. The printed riser height is the one the stair will actually have.
Why are there fewer treads than risers?
The last riser steps onto the upper floor, which is the landing rather than a tread. A stair with 15 risers therefore has 14 treads.
Is this stair legal where I live?
The page cannot say. Maximum riser, minimum tread, headroom and handrail rules are set by a jurisdiction and a code; the page is arithmetic and states that it is not a code check.
How is the stringer measured?
As the hypotenuse of the total rise and the total going: √(rise² + going²). It is the straight-line length of the sloping board before any notch is cut.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.