1. Home
  2. Roofing, Decks & Lumber
  3. Stair Calculator
Roofing, Decks & Lumber

Stair Calculator

Enter the total rise and the tread depth. You get the number of steps, the exact riser height, the total run, stringer length and angle, drawn to scale, with checks against common building code limits.

  • No sign-up
  • No personal info
  • Imperial & metric
  • Formulas shown
Stair Calculator illustration

Your project

Quick start

Landing (optional)

Result

Quick answer

Risers = total rise ÷ maximum riser, rounded up; riser height = total rise ÷ risers; treads = risers − 1. A 108 in (9 ft) floor-to-floor rise needs 14 risers of 7 11/16 in and 13 treads; with 10 in treads the stair runs 130 in (10.8 ft) and the stringers are about 14.7 ft long.

How to use the stair calculator

  1. Measure the total rise. From the top of the finished lower floor (or ground, or pad) to the top of the finished upper floor or deck. Include flooring you have not installed yet.
  2. Set the tread depth. The horizontal depth of each step, not counting the nosing.
  3. Set the maximum riser your code allows: 7¾ in under the US IRC, 190 mm in Australia, 220 mm for private stairs in England.
  4. Add a landing if the stair turns or is long: enter the riser after which the landing sits and its depth.

The diagram redraws as you type, so you can see the slope and the landing before you cut anything.

Stair formulas

Risers = ⌈total rise ÷ maximum riser⌉ Riser height = total rise ÷ risers Treads = risers − 1 Total run = treads × tread depth (with a landing: (treads − 1) × tread + landing) Stringer length ≈ √((run + one tread)² + rise²) Angle = atan(riser ÷ tread) Comfort rule: 2 × riser + tread ≈ 24–25 in (600–640 mm)

Example: 108 ÷ 7.75 = 13.9, so 14 risers of 108 ÷ 14 = 7 11/16 in. That gives 13 treads; at 10 in each the total run is 130 in. The angle is 37.6°, and 2 × 7.71 + 10 = 25.4 in, within the comfort range.

How many steps for my stairs?

Total riseRisersRiser heightTreadsTotal runStringer
24 in (61 cm)46 in330 in3.9 ft
36 in (91 cm)57 3/16 in440 in5.1 ft
48 in (122 cm)76 7/8 in660 in7.1 ft
72 in (183 cm)107 3/16 in990 in10.3 ft
96 in (244 cm)137 3/8 in12120 in13.5 ft
102 in (259 cm)147 5/16 in13130 in14.4 ft
108 in (274 cm)147 11/16 in13130 in14.7 ft
114 in (290 cm)157 5/8 in14140 in15.7 ft
120 in (305 cm)167 1/2 in15150 in16.7 ft

7¾ in maximum riser, 10 in treads, no landing.

Common code limits for stairs

RuleUS (IRC, homes)England (Approved Doc K, private)Australia (NCC)
Maximum riser7¾ in (197 mm)220 mm190 mm
Minimum riser—150 mm115 mm
Minimum tread (going)10 in (254 mm)220 mm240 mm
Maximum pitch—42°—
2R + G—550–700 mm550–700 mm
Headroom6 ft 8 in (2.03 m)2.0 m2.0 m

All risers in a flight should be the same height; codes typically allow only a tiny difference (3/8 in in the IRC). Rules for handrails, guards, nosings, winders and open risers also apply. Always check the code your local building department uses.

Cutting stair stringers

  • Use 2 × 12 lumber for cut stringers; 2 × 10 is rarely deep enough after notching.
  • Space stringers no more than about 16–18 in apart for wood treads (check your tread material’s span). A 36 in stair usually needs three stringers.
  • Subtract the tread thickness from the bottom riser of the stringer so the first step matches the others once the treads are on.
  • Mark with a framing square set to the riser and tread, and cut the notches with a circular saw, finishing the corners with a handsaw.

Sources, assumptions and limits

What the calculator assumes

  • All risers in a flight are equal; the number of risers is rounded up so no riser exceeds your maximum.
  • Treads = risers − 1 because the top floor serves as the last step.
  • Stringer length is the diagonal of run plus one tread and the rise; buy the next longer standard board.
  • Code tables summarize common limits; your local code governs.

Where the numbers come from

Checked by the DIY Calc team against the sources above. Products and local rules vary, so treat every result as an estimate. Found an error? Email [email protected].

Frequently asked questions

How many steps do I need for 8 feet?
An 8 ft (96 in) rise needs 13 risers of 7 3/8 in and 12 treads.
What is the ideal riser height and tread depth?
About 7 to 7½ in risers with 10½ to 11 in treads is comfortable for most people. The rule 2 × riser + tread ≈ 24–25 in is a good check.
How do I calculate the rise and run of stairs?
Divide the total rise by your maximum riser height and round up to get the number of risers. Divide the total rise by that number for the exact riser. Treads are one fewer than risers; multiply by the tread depth for the run.
How long should stair stringers be?
Roughly the diagonal of the total run plus one tread and the total rise. For a 9 ft rise with 10 in treads, about 15 ft, so buy 16 ft boards.
When do stairs need a landing?
Codes limit how high a single flight can rise (12 ft 7 in in the IRC) and require landings at doors and turns. Long flights also feel safer with a mid landing.

Last reviewed . Estimates only: see the disclaimer.

Embed this calculator

Free for blogs, schools and contractors. Paste this code into your page. The small “Powered by” line is optional, and we appreciate it if you keep it.