Stair Calculator
Enter the total rise from floor to floor. The calculator works out how many steps you need, how tall and deep each one is, how long the stringers are, and checks the result against common building-code limits.
- Imperial
- Metric
- Steps shown
- Free
Your measurements
Results
- Risers
- —
- Riser height
- —
- Treads
- —
- Tread depth
- —
- Total run
- —
- Stringer length
- —
- Stair angle
- —
- 2 × riser + tread
- —
Code check (general guidance only)
Limits from .
How we got this
Want your brand in front of people using the Stair Calculator? Sponsor this calculator
Worked example
You’re building a basement stair. The total rise from the basement slab to the finished floor above is 108 inches (9 ft). You want risers no taller than 7 1/2 in and treads 10 1/2 in deep.
- 108 ÷ 7.5 = 14.4, which rounds up to 15 risers.
- 108 ÷ 15 = 7.2 in per riser (about 7 3/16 in on the tape).
- 15 − 1 = 14 treads.
- 14 × 10.5 = 147 in of total run (12 ft 3 in).
- √(108² + 147²) = 182.4 in stringer (about 15 ft 2 7/16 in), so buy 16 ft boards.
- arctan(7.2 ÷ 10.5) = 34.4°, a comfortable angle. 2R + T = 24.9 in, inside the 24–25 in comfort range.
Against the US IRC, the 7.2 in riser is under the 7 3/4 in maximum and the 10 1/2 in tread is over the 10 in minimum, so the stair passes.
How it works: the formula
A straight stair is a series of identical right-angled triangles. The calculator works through it in five steps:
- Number of risers = total rise ÷ target riser height, rounded up to a whole number. Rounding up means no step is ever taller than your target.
- Riser height = total rise ÷ number of risers. Every step comes out exactly the same height.
- Number of treads = risers − 1, because the upper floor is the last step.
- Tread depth = total run ÷ number of treads if you entered a run. Otherwise the tread depth you entered is used, and total run = tread depth × number of treads.
- Stringer length = √(total rise² + total run²), from the Pythagorean theorem. Angle = arctan(riser ÷ tread).
The result is then checked against the limits for the code you pick: maximum and minimum riser, minimum tread, the 2R + T step rule and, for the US, the 151-inch maximum rise for one flight. Codes also cover headroom, handrails, guards and nosings, which this calculator doesn’t check.
Assumptions and limitations
- A straight flight with every riser the same height, and the upper floor acting as the top tread.
- Total rise is finished floor to finished floor. Add flooring thicknesses if they aren't down yet.
- Stringer length is the straight line from the bottom to the top nosing. It doesn't include the plumb and level cuts, nosing overhang or any extension past the header, so buy longer stock.
- The code check covers riser height, tread depth, the 2R + T rule, pitch (UK) and maximum flight rise (US). It doesn't check headroom, handrails, guards, nosings, landings or winders.
- Code limits are general guidance. Local amendments and your building inspector have the final say.
Tools for this job
We may earn a commission if you buy through these links, at no extra cost to you. As an Amazon Associate we earn from qualifying purchases. Read our affiliate disclosure
-
Rafter / speed square (7 in)
Marks plumb and seat cuts by pitch or angle without any maths.
See options on Amazon : Rafter / speed square (7 in) (opens in a new tab) -
Stair gauges for a framing square
Lock your riser and tread on the square so every step is identical.
See options on Amazon : Stair gauges for a framing square (opens in a new tab) -
Steel framing square (16 × 24 in)
The standard tool for laying out stringers and rafters.
See options on Amazon : Steel framing square (16 × 24 in) (opens in a new tab)
Frequently asked questions
What is the maximum riser height for stairs?
In the US, the International Residential Code (IRC) allows a maximum riser of 7 3/4 inches with a minimum tread depth of 10 inches. In England, Approved Document K allows up to 220 mm for a private stair, and in Australia the NCC allows 115 to 190 mm. Local codes can be stricter, so check with your building department.
How do I measure total rise?
Measure vertically from the finished floor at the bottom to the finished floor at the top. If the flooring isn’t down yet, add its thickness at the top and bottom. On sloping ground, use a level and a straight edge to find the true vertical height where the bottom step will land.
Why is there one fewer tread than risers?
The top floor acts as the last step. A stair with 15 risers has 14 treads, because you step from the 14th tread straight onto the upper floor.
How long should my stringer board be?
The calculator gives the straight diagonal length from the bottom to the top of the flight. Buy the next standard length up, because you also need material for the plumb cut at the top, the level cut at the bottom and any nosing. For example, a 15 ft 2 in stringer needs a 16 ft board.
What is the 2R + T rule?
It is a long-standing comfort rule: two risers plus one tread should add up to about 24 to 25 inches (around 610 to 635 mm), which matches a normal walking stride. The UK and Australian codes turn this into a requirement of 550 to 700 mm.
What is a comfortable stair angle?
Most comfortable stairs are between 30° and 37°. Steeper than about 42° starts to feel like a ladder, and 42° is the legal maximum for a private stair in England.
Related calculators
-
Roofing & angles
Roof Pitch & Rafter Calculator
Convert pitch to angle and work out rafter length including overhang.
-
Measurements & conversions
Tape Measure Fraction Calculator
Add and subtract feet, inches and fractions, rounded to the nearest 1/16".
-
Lumber & materials
Board Feet & Lumber Cost Calculator
Add up board feet and total cost for a whole cut list, piece by piece.