Stair Calculator

Find the number of steps, the exact riser height, total run, stringer length and angle of a stair, checked against the US IRC riser and tread limits.

Reviewed · How we build and check our calculators

Your details

Units
in

From the finished floor below to the finished floor above.

in

The calculator uses this height or a little less. 7 to 7.5 in (18 to 19 cm) is comfortable.

in

Front to back, without the nosing overhang.

Number of steps

15 risers

14 treads, each riser 7.2 in; meets the US IRC limits

Actual riser height
7.2 in
Total run
11 ft 8 in (140 in)
14 treads × 10 in
Stringer length
14 ft 8.75 in (176.8 in)
Diagonal from the floor to the top; buy the next longer board
Stair angle
35.8°
Comfort rule (2 risers + 1 tread)
24.4 in
Within the comfortable 24 to 25 in
IRC riser limit
Passes
7.2 in against at most 7.75 in
IRC tread limit
Passes
10 in against at least 10 in

Stair angle in degrees

  • Gentle
  • Typical house stair
  • Steep
  • Ladder-like

What if you change the number of risers

  • With 14 risers

    7.71 in risers, 10 ft 10 in (130 in) run

    Meets the IRC limits

  • With 16 risers

    6.75 in risers, 12 ft 6 in (150 in) run

    Meets the IRC limits

These stairs meet the US IRC riser and tread limits. Local codes may differ. The IRC also asks for 6 ft 8 in of headroom and a stair at least 36 in wide. A handrail is required with 4 or more risers.

Stringer layout: top of each tread

StepHeight above the floorDistance from the first riser
Step 17.2 in10 in
Step 214.4 in20 in
Step 321.6 in30 in
Step 428.8 in40 in
Step 536 in50 in

How the stair calculator works

Enter the total rise from floor to floor, the riser height you would like and the tread depth. The calculator gives the number of steps, the exact riser height, the total run, the stringer length and the angle, and checks them against the US International Residential Code limits.

Formula

Risers = total rise ÷ preferred riser, rounded up. Actual riser = total rise ÷ risers. Treads = risers − 1. Total run = treads × tread depth. Stringer = √(rise² + run²). Angle = arctan(riser ÷ tread). 2021 IRC R311.7.5: riser at most 7 3/4 in (19.7 cm), tread at least 10 in (25.4 cm).

  1. 1

    Count the risers

    108 in ÷ 7.5 in = 14.4, so 15 risers of 108 ÷ 15 = 7.2 in each.

  2. 2

    Count the treads and the run

    15 risers need 14 treads; 14 × 10 in = 140 in, a run of 11 ft 8 in.

  3. 3

    Size the stringer

    √(108² + 140²) = 176.8 in, about 14 ft 8 3/4 in, so buy 16 ft stringer boards. The stair angle is 35.8°.

  4. 4

    Check the code

    7.2 in is under the 7.75 in limit and 10 in treads meet the 10 in minimum; 2 × 7.2 + 10 = 24.4 in is comfortable.

Worked example

The calculator opens with these values

Units
Feet and inches
Total rise
108 in
Preferred riser height
7.5 in
Tread depth
10 in

Number of steps

15 risers

Risers and run for common floor heights

Each row comes from the calculator's own maths. The short rises suit deck and porch steps; 96 to 120 in covers most floor-to-floor heights in houses with 8 to 10 ft ceilings, once the floor framing is added.

The run is the floor space the stair takes from the first riser to the top. Leave room for a landing at the bottom.

Stairs with a preferred riser of 7.5 in and 10 in treads
Total riseRisersRiser heightTreadsTotal run
18 in36 in220 in
24 in46 in330 in
30 in47.5 in330 in
36 in57.2 in440 in
48 in76.86 in660 in
96 in137.38 in12120 in
102 in147.29 in13130 in
108 in157.2 in14140 in
114 in167.13 in15150 in
120 in167.5 in15150 in

Other stair rules in the 2021 IRC

Riser and tread limits are only part of the code. These rules of the 2021 International Residential Code also decide whether a stair fits the space. Local codes can differ, so confirm with your building department.

  • Nosing: treads less than 11 in deep need a nosing of 3/4 to 1 1/4 in (R311.7.5.3).
  • Handrail height: 34 to 38 in, measured straight up from the nosings (R311.7.8.1).
  • Landings: one at the top and bottom of each stair, at least as wide as the stair and 36 in deep in the direction of travel (R311.7.6).
  • Flight height: no more than 151 in of rise between floors or landings (R311.7.3).
  • Guards: open sides more than 30 in above the floor below need a guard (R312.1.1).

Laying out and cutting stringers

A small error on the first stringer repeats on every step, so check it before you cut the rest.

  • Measure the total rise between finished floors, adding flooring that is not installed yet.
  • Cut the bottom of the stringer shorter by one tread thickness, so the first step is not taller than the others.
  • Clamp stair gauges to a framing square at the riser and tread marks, so every step is marked the same.
  • Cut one stringer, test it in place, then trace it onto the other boards.
  • Use 2 × 12 lumber for cut stringers: a narrower board leaves too little solid wood below the notches.

Common questions

What are the US code limits for stair risers and treads?

The 2021 International Residential Code (R311.7.5) allows risers up to 7 3/4 in and requires treads of at least 10 in, with no more than 3/8 in of difference between risers in a flight. Many states and towns adopt the IRC with changes, so check with your local building department.

Why is there one tread fewer than risers?

The floor at the top acts as the last step. A stair with 15 risers has 14 treads, so the run is 14 tread depths, not 15.

What is the most comfortable stair?

A common rule is that two risers plus one tread should add up to 24 to 25 in (61 to 63.5 cm), for example 7 in risers with 11 in treads. Steps that follow it match a normal walking stride.

How long should the stringer board be?

At least the stringer length shown, which runs from the floor to the top landing along the slope. Buy the next standard length up, since the cut at each end needs some extra board.

Deck Calculator

Deck boards by board length, joists and screws for a rectangular deck

Add this calculator to your website

Free for blogs, schools and businesses. Paste this code into your page; the calculator works inside it, with no ads and no tracking. Please keep the credit line.