Skip to content

Stair Calculator: Risers, Treads, Run and Stringer Length

Calculate the number of risers and treads, exact riser height, total run, stringer length and stair angle from the floor-to-floor rise, with building code comfort checks.

3 min read

A comfortable, safe staircase depends on getting the numbers right. Every riser must be the same height, the treads must be deep enough, and the whole flight has to fit the space. Our stair calculator works out the number of steps, the exact riser height, the total run, the stringer length and the angle, and checks the result against common building code guidance. This guide explains the calculations and the rules behind them.

How to use the calculator

  1. Total rise (in): the vertical distance from finished floor to finished floor.
  2. Maximum riser (in): the highest step allowed, often 7.75 in under the US International Residential Code (IRC).
  3. Tread depth (in): the horizontal depth of each step, often 10 in or more.

With the defaults, a 108 in rise, a 7.75 in maximum riser and 10.5 in treads:

  • Steps: 14 risers, 13 treads
  • Riser height: 7.714 in
  • Total run: 136.5 in
  • Stringer length: 174.06 in
  • Angle: 36.3°
  • Comfort check: 2R + T = 25.9 in

How it is calculated

  1. Number of risers: total rise ÷ maximum riser, rounded up. 108 ÷ 7.75 = 13.9, so 14 risers.
  2. Exact riser height: 108 ÷ 14 = 7.714 in. Every riser should be this height.
  3. Number of treads: one fewer than the risers, because the top floor acts as the last step: 13 treads.
  4. Total run: 13 × 10.5 = 136.5 in.
  5. Stringer length: the hypotenuse of the rise and run. √(108² + 136.5²) = 174.06 in. The Pythagorean theorem calculator uses the same maths.
  6. Angle: tan⁻¹(108 ÷ 136.5) = 36.3°.

Building code guidance

Rules vary by country and local code, so always check what applies where you live. Common US IRC residential limits:

ItemTypical requirement
Maximum riser height7.75 in (197 mm)
Minimum tread depth10 in (254 mm)
Minimum headroom6 ft 8 in (2,032 mm)
Minimum stair width36 in (914 mm)
Riser variation in a flightNo more than 3/8 in

In the UK, private stairs allow a maximum rise of 220 mm, a minimum going of 220 mm and a maximum pitch of 42°.

The comfort rule: 2R + T

A traditional rule for comfortable stairs is that twice the riser plus one tread should be about 24 to 25 inches (610 to 635 mm), roughly matching a natural stride.

For the default: 2 × 7.714 + 10.5 = 25.9 in, a little above the ideal. Reducing the tread to 10 in gives 25.4 in, closer to the comfortable range, while still meeting the 10 in minimum.

Why every riser must match

People adjust their stride to the first few steps and then climb without looking. A riser that is even a little different from the others is a common cause of trips and falls. That is why codes limit variation to a few millimetres and why you should account for finished flooring thickness at the top and bottom.

Fitting the space

If the total run is too long for the available space, you can:

  • Use a steeper stair, with taller risers and shorter treads, within code limits.
  • Add a landing and turn the stair (an L or U shape).
  • Use winders, which are tapered steps at the turn, though these have their own rules.

Cutting stringers

Stringers are typically cut from 2 × 12 lumber. Mark the rise and tread on a framing square, step it along the board for each step, and trim the bottom by the thickness of one tread so the first step matches the others. Buy boards longer than the calculated stringer length to allow for the top and bottom cuts.

The right triangle calculator checks angles, the slope calculator handles ramps, and the concrete calculator works out materials for concrete steps.

Frequently asked questions

Why is there one fewer tread than risers?

The top floor acts as the final step, so a flight with 14 risers has 13 treads.

How do I measure the total rise?

Measure vertically from the finished floor at the bottom to the finished floor at the top, including any flooring still to be installed.

What is a comfortable stair angle?

Around 30 to 37 degrees is common for homes. Steeper stairs feel more like ladders and are harder to use safely.

Can I use metric measurements?

The calculator uses inches. Divide millimetres by 25.4 to convert, then convert the results back.

Share

Try it yourself

Run your own numbers with our free tool: Stair calculator. No sign-up, and it works on any device.

Open the calculator