Stair Calculator
Enter the total rise floor to floor and get the number of steps, the exact riser height, the tread depth, the total run, the stringer length, and the angle, with the risers split evenly so they are all equal. It checks each number against the IRC code, adds a stringer cut list, and works for interior and deck stairs. Free to use with no signup.
Pick a comfortable riser height and it solves the number of steps.
Floor to floor, finished surface to finished surface. This is the one number the whole layout hinges on.
Comfort target is 7 to 7.5″. The code cap is 7-3/4″; the real riser is the rise split evenly, so every step is equal.
The run of each step, nosing to nosing. Code minimum is 10″; 11″ or more walks easier. The nosing overhang does not change the run.
Illustration, not to scale
Illustration, not to scale
Your stair layout
14steps7 11/16″ each
108″ of rise split into 14 equal risers of 7 11/16″ (7.7″).
IRC code check
Comfort check (guideline, not code)
aim 24–25
aim 17–18
aim 71–74
Cut one stringer first and test-fit it before cutting the rest. The bottom step is cut shorter by one tread thickness so every finished riser ends up equal. This lays out one straight flight; a rise over 12 ft needs a landing, and headroom, guards, and footings are separate checks.
Building the deck or addition around these stairs?
When you bid the whole job, Easy Takeoffs measures the framing, decking, and footings off your plan PDF to scale and exports a bid-ready list. 14-day trial, no card.
What does code require for stairs?
The IRC sets six main limits for residential stairs: a maximum riser height of 7-3/4 inches, a minimum tread depth of 10 inches, no more than 3/8 inch of variation between the tallest and shortest riser or tread in a flight, at least 6 feet 8 inches of headroom, a minimum width of 36 inches, and a handrail 34 to 38 inches high once a flight has four or more risers. A guard 36 inches high is required where the drop is more than 30 inches. Splitting the rise into equal risers meets the uniformity rule on its own, which is why this calculator always divides evenly.
Stair code at a glance (IRC residential)
| Requirement | Value | Code |
|---|---|---|
| Max riser height | 7-3/4 in | R311.7.5.1 |
| Min tread depth | 10 in | R311.7.5.2 |
| Riser and tread uniformity | Within 3/8 in | R311.7.5.1 |
| Min headroom | 6 ft 8 in (80 in) | R311.7.2 |
| Min stair width | 36 in | R311.7.1 |
| Handrail height (4+ risers) | 34 to 38 in | R311.7.8 |
| Guard height (over a 30 in drop) | 36 in | R312.1 |
| Intermediate landing | Over 12 ft of rise | R311.7.3 |
2021 IRC residential values, unchanged from the 2018 and 2024 editions. Local amendments vary, so confirm with your building department. Headroom is exactly 80 inches, not 6.8 feet.
Residential vs commercial
| Dimension | Residential (IRC) | Commercial (IBC) |
|---|---|---|
| Max riser | 7-3/4 in | 7 in |
| Min tread | 10 in | 11 in |
| Guard height | 36 in | 42 in |
This calculator checks against the residential IRC by default. The commercial IBC numbers are the "famous" 7 and 11, but they are not residential code, so a home or deck stair does not have to hit them.
What makes a comfortable stair? The 7-11 rule and the stride rule
A comfortable stair keeps the riser near 7 to 7.5 inches and the tread at 11 inches or more, the classic 7-11 shape. Three rules of thumb describe the feel: two risers plus a tread should total about 25 inches (the stride rule), a riser plus a tread should total 17 to 18 inches, and a riser times a tread should land between 71 and 74 square inches. They do not all agree at once, so they are guidance, not code. A code-compliant stair can sit just outside a band and still be fine; steeper risers with shallow treads simply walk harder.
Stair comfort rules (advisory)
| Rule | Target | What it means |
|---|---|---|
| 2 × riser + tread | About 25 in | The stride rule (Blondel); matches an average step |
| Riser + tread | 17 to 18 in | A quick single-step comfort check |
| Riser × tread | 71 to 74 sq in | Balances step height against depth |
| Riser height | 7 to 7.5 in | Lower is easier; 7-3/4 in is the code max |
| Tread depth | 10 to 11 in | 11 in fits a foot; 10 in is the code min |
Advisory ergonomics from Architectural Graphic Standards and the Blondel stride formula, not building code. A comfortable stair slopes about 30 to 37 degrees per step; the overall angle across the whole flight reads a couple degrees steeper, because the run spans one fewer tread than there are risers.
How do you measure and lay out a stair?
You lay out a stair from the total rise. Measure the vertical height floor to floor, divide it into equal risers near 7.5 inches, set a tread depth of at least 10 inches, and the run and the stringer follow. Cut one stringer, test-fit it, then use it as the template for the rest.
- 1
Measure the total rise straight down, from the finished upper floor to the finished lower floor. Use the true vertical height, not a slope, and include any finish flooring top and bottom.
- 2
Divide the total rise by about 7.5 inches and round to a whole number of risers, then divide the rise back by that count so every riser is exactly equal and stays under the 7-3/4 inch code max.
- 3
Pick a tread depth of at least 10 inches. The number of treads is one less than the number of risers, and the total run is the tread count times the tread depth.
- 4
The stringer length is the diagonal, the square root of the run squared plus the rise squared. Mark it with a framing square, cut the bottom shorter by one tread thickness, and test-fit before cutting the rest.
How do you calculate stairs?
Divide the total rise by about 7.5 inches and round to a whole number of steps, then divide the rise back by that count so every riser is equal and under the 7-3/4 inch code cap. The treads are one fewer than the risers, the run is the treads times the tread depth, and the stringer is the diagonal. Here is the exact math, with a worked example.
- Number of steps
- total rise ÷ target riser (about 7.5 in), rounded to a whole number of risers
- Riser height
- total rise ÷ number of steps, so every riser is equal (7-3/4 in code max)
- Number of treads
- number of steps − 1, because the upper floor is the top tread
- Total run
- number of treads × tread depth (nosing excluded, measured nosing to nosing)
- Stringer length
- the square root of (total run² + total rise²), the diagonal
- Stair angle
- the arctangent of total rise ÷ total run, in degrees
Ordering adjustments
Two details separate a real stair layout from a rough guess. First, the treads are always one fewer than the risers, because the upper floor is the top tread, so a 14-riser stair has 13 treads and its run uses 13, not 14. Second, the nosing overhang does not change the run: the tread depth is measured nosing to nosing, so a 1 inch nosing on a 10 inch tread still lays out on a 10 inch run. When you cut the stringer, drop the bottom notch by one tread thickness so that, once the treads are on, every finished riser ends up equal. Code sets the limits (a 7-3/4 inch riser, a 10 inch tread); the comfort rules are guidance on top.
Worked example
A 9 ft (108 in) floor-to-floor rise, a 7.5 in target riser, and a 10 in tread
- Steps: 108 ÷ 7.5 = 14.4, rounded to 14 risers
- Riser height: 108 ÷ 14 = 7.71 in (7-11/16 in), under the 7-3/4 in code max, and every riser is equal
- Treads: 14 − 1 = 13, because the upper floor is the top tread
- Total run: 13 × 10 = 130 in (10 ft 10 in), using the tread count, not the riser count
- Stringer length: the square root of (130² + 108²) = the square root of 28,564 = 169 in (14 ft 1 in), cut from a 16 ft 2x12
- Stair angle: the arctangent of 108 ÷ 130 = 39.7 degrees
Stairs reference tables
How many steps by total rise
| Total rise | Steps | Riser height | Total run |
|---|---|---|---|
| 2 ft (24 in) | 4 | 6 in | 2 ft 6 in |
| 3 ft (36 in) | 5 | 7-3/16 in | 3 ft 4 in |
| 4 ft (48 in) | 7 | 6-7/8 in | 5 ft |
| 5 ft (60 in) | 8 | 7-1/2 in | 5 ft 10 in |
| 6 ft (72 in) | 10 | 7-3/16 in | 7 ft 6 in |
| 7 ft (84 in) | 11 | 7-5/8 in | 8 ft 4 in |
| 8 ft (96 in) | 13 | 7-3/8 in | 10 ft |
| 9 ft (108 in) | 14 | 7-11/16 in | 10 ft 10 in |
| 10 ft (120 in) | 16 | 7-1/2 in | 12 ft 6 in |
Using a 7.5 inch target riser and a 10 inch tread. The riser is the rise split evenly, so it lands under the 7-3/4 inch code max; a 2 ft or 4 ft rise rounds to shorter risers to stay under the cap. Change the target riser or tread depth for your own numbers.
Standard stair dimensions
| Part | Typical | Notes |
|---|---|---|
| Riser height | 7 to 7-3/4 in | Lower walks easier; 7-3/4 in is the code max |
| Tread depth | 10 to 11 in | Nosing to nosing; the run of one step |
| Nosing | 3/4 to 1-1/4 in | Overhang on solid risers; does not change the run |
| Stair width | 36 in min | Decks are often 48 in |
| Stringer stock | 2x12 | Leaves enough wood behind the notch |
| Handrail height | 34 to 38 in | Above the nosing line, 4+ risers |
Residential figures. A single flight over 12 feet of rise needs an intermediate landing.
Stringer stock: 2x12 vs 2x10
| Stock | Actual width | Wood behind notch | Passes |
|---|---|---|---|
| 2x12 | 11-1/4 in | About 5.1 in | Yes |
| 2x10 | 9-1/4 in | About 3.1 in | No |
For a 7-3/4 inch riser and a 10 inch tread, the notch cuts about 6.1 inches into the board. A cut stringer needs at least 3-1/2 inches left behind the notch (5 inches for a deck), so it is cut from a 2x12, not a 2x10. Solid-mount stringers that are not notched can be smaller.
Stair Calculator Questions
Start Your Construction Takeoff Today
Upload your first PDF plan set, set the scale, and pull accurate quantities before lunch. $39 a month after the trial, less than every dedicated competitor.