Stair Calculator

Enter the floor-to-floor height to get the number of steps, riser height, tread count, total run, stringer length and stair angle, with a stringer layout and a check against the residential building code.

  • Rise and run
  • Stringer layout
  • IRC code check

Stair Calculator

Total rise in, steps and stringer layout out, checked against the IRC.

ft
in
in
IRC maximum is 7¾ in
in
IRC minimum is 10 in
in
For the cut height of the first step
Top of the stairs

Your stairs

–

Riser height–
Number of treads–
Total run–
Stringer length–
Stair angle–
2 risers + 1 tread–

Code and comfort check (2021 IRC)

Stringer layout

StepHeight to top of treadDistance from first riser

Your numbers stay in your browser. Nothing is sent or saved.

How to Calculate Stairs

  1. Measure the total rise from the finished floor at the bottom to the finished floor at the top, in inches.
  2. Find the number of risers: divide the total rise by the maximum riser height (7¾ in under the IRC) and round up.
  3. Find the riser height: total rise ÷ number of risers. Every riser must be the same within ⅜ in.
  4. Find the treads: when the upper floor is the top step, treads = risers − 1.
  5. Find the total run: treads × tread depth.
  6. Find the stringer length: √(total rise² + total run²), then buy the next longer board.
Example: total rise 9 ft (108 in), 10 in treads 108 ÷ 7.75 = 13.9, round up to 14 risers Riser height = 108 ÷ 14 = 7.71 in (7 11/16 in) Treads = 14 − 1 = 13; total run = 13 × 10 = 130 in (10 ft 10 in) Stringer = √(108² + 130²) = 169 in (14 ft 1 in): use 16 ft boards Angle = arctan(7.71 ÷ 10) = 37.6°

Stair Rise and Run Table

Steps for common floor heights at the 7¾ in maximum riser:

Total riseRisersRiser heightTreadsRun at 10 in treads
2 ft (24 in)46.00 in330 in
3 ft (36 in)57.20 in440 in
4 ft (48 in)76.86 in660 in
5 ft (60 in)87.50 in770 in
6 ft (72 in)107.20 in990 in
7 ft (84 in)117.64 in10100 in
8 ft (96 in)137.38 in12120 in
9 ft (108 in)147.71 in13130 in
10 ft (120 in)167.50 in15150 in

Residential Stair Code (IRC)

RuleRequirementIRC section
Riser height7¾ in maximumR311.7.5.1
Tread depth10 in minimum, nosing to nosingR311.7.5.2
Variation⅜ in max between largest and smallest riser or tread in a flightR311.7.5.1–.2
Headroom6 ft 8 in minimumR311.7.2
Vertical rise151 in max between floor levels or landingsR311.7.3
Width36 in minimum above the handrailR311.7.1
Handrail height34–38 in above the nosingsR311.7.8.1

Local codes can amend the IRC, and commercial stairs follow the stricter International Building Code (7 in max riser, 11 in min tread), so check with your building department before you cut.

Comfortable Stairs: the 2R + T Rule

A step feels natural when two risers plus one tread add up to about 24–25 in, a rule from the 17th-century architect François Blondel. A 7½ in riser with a 10 in tread gives 25 in; a 7 in riser with an 11 in tread also gives 25 in and makes a gentler stair. Lower risers need more steps and more floor space, so try a smaller maximum riser in the calculator and compare the total run.

Deck Stairs and Stringers

Deck stairs follow the same math. Measure the rise from the top of the deck boards straight down to the ground or pad where the bottom step will land, since a sloped yard changes the number. The first step on a stringer is cut shorter by the tread thickness, because every other step gets its height from the tread above. Enter the tread thickness to get that cut height. Pouring a pad for the bottom of the stairs? The cubic yard calculator gives the concrete volume.

Frequently Asked Questions

How many stairs do I need for 8 feet?

96 in ÷ 7.75 = 12.4, so 13 risers of about 7.38 in and 12 treads. At 10 in treads the run is 10 ft.

What is the standard rise and run for stairs?

Under the IRC a residential riser can be up to 7¾ in and a tread must be at least 10 in deep. Many builders aim for about 7–7½ in risers and 10½–11 in treads.

How do I calculate stair stringer length?

Use the Pythagorean theorem: √(total rise² + total run²). 108 in of rise and 130 in of run need a 169 in (14 ft 1 in) stringer, so buy a 16 ft board.

How do I calculate the number of steps?

Divide the total rise by your maximum riser height and round up. That is the number of risers; with the upper floor as the top step, treads are one fewer.

What is a good stair angle?

The IRC limits (7¾ in riser, 10 in tread) make the steepest allowed stair about 37.8°. A 7 in riser with an 11 in tread gives a gentler 32.5°.

What is the maximum stair height without a landing?

151 in (12 ft 7 in) of vertical rise between floor levels or landings under the 2021 IRC.

Related Calculators

Sources

  • International Code Council. 2021 International Residential Code, Section R311.7 Stairways (R311.7.2 headroom 6 ft 8 in; R311.7.3 vertical rise 151 in between floor levels or landings; R311.7.5.1 riser height 7¾ in maximum; R311.7.5.2 tread depth 10 in minimum; ⅜ in maximum variation).
  • International Code Council. 2021 International Building Code, Section 1011.5.2 Riser height and tread depth (7 in maximum riser, 11 in minimum tread).
  • Blondel F. Cours d’architecture. Paris; 1675 (step rule: two risers plus one tread equals one pace, about 24–25 in or 60–65 cm).

For planning only. Building codes are adopted and amended locally; confirm requirements with your building department and follow manufacturer and engineer guidance for structural parts.

Scroll to Top