Stair Calculator
Lay out a straight flight of stairs from its total rise: how many risers, how tall each one is, the treads and total run, and the length and number of stringers.
From the finished floor (or ground) to the finished floor (or deck) above.
7¾ in under the IRC. Check your local code.
Nosing to nosing. At least 10 in; 11 in needs no nosing.
For the number of stringers. At least 36 in.
Risers (steps up)
Enter your measurements to see a result.
Measure the total rise straight down from the top finished floor (or the deck surface) to the finished floor or ground where the stairs will land. Measure where the bottom step will be: ground is rarely level. Building steps down from a deck? The deck calculator covers the boards and joists.
Worked example
A 9 ft floor-to-floor stair, 108 in of rise
| Total rise | 9 ft |
|---|---|
| Risers (total rise ÷ tallest riser, rounded up) | 14 risers |
| Riser height (total rise ÷ risers) | 7.71 in |
| Treads (one fewer than the risers) | 13 treads |
| Tread depth | 10 in |
| Total run (treads × tread depth) | 10 ft 10 in |
| Stair angle | 37.6° |
| Stringer length along the slope √(rise² + run²) | 14 ft 1 in |
| Stringer board: length + 6 in for the end cuts (Fine Homebuilding) | 14 ft 7 in |
Answer: 14 risers of 7.71 in. The rise is divided into equal risers no taller than the limit, with one tread fewer than the risers.
Formula and method
risers = ⌈ total rise ÷ tallest riser ⌉
riser height = total rise ÷ risers
treads = risers − 1 · total run = treads × tread depth
stringer length = √(total rise² + total run²)
Dividing by the tallest riser allowed and rounding up gives the fewest equal risers that stay under it; rounding down would make them too tall. A straight flight has one tread fewer than its risers, because the top step is the floor or deck itself (Fine Homebuilding). The stringer runs along the slope, so its length is the diagonal of the rise and run; buy a board about 6 in longer for the cuts at each end.
Building code limits
- Risers: at most 7.75 in, all within 3/8 in of each other (IRC R311.7.5.1).
- Treads: at least 10 in deep, within 3/8 in of each other; under 11 in, a nosing of ¾ to 1¼ in is required (R311.7.5.2, R311.7.5.3).
- Width and headroom: at least 36 in wide and 6 ft 8 in of headroom (R311.7.1, R311.7.2).
- One flight: at most 12 ft 7 in of rise between floors or landings (R311.7.3 in the 2018 and 2021 editions; 147 in in the 2015 edition). For deck stairs, the American Wood Council's DCA 6 (2015 IRC edition) asks for a landing once the stair rises more than 12 ft; choose “Deck or outdoor stairs” to check it.
- Handrail: on at least one side once there are 4 or more risers (R311.7.8).
These are the International Residential Code's limits (2018 and 2021 editions). Your town may have adopted another edition or changed them, so type your local limit in the calculator if it differs. The calculator checks dimensions only: it is not a structural design or proof that the stairs meet your code.
Risers and run for common heights
| Total rise | Risers | Riser height | Treads | Total run |
|---|---|---|---|---|
| 1 ft 6 in | 3 | 6 in | 2 | 1 ft 8 in |
| 2 ft | 4 | 6 in | 3 | 2 ft 6 in |
| 2 ft 6 in | 4 | 7.5 in | 3 | 2 ft 6 in |
| 3 ft | 5 | 7.2 in | 4 | 3 ft 4 in |
| 4 ft | 7 | 6.86 in | 6 | 5 ft |
| 5 ft | 8 | 7.5 in | 7 | 5 ft 10 in |
| 8 ft | 13 | 7.38 in | 12 | 10 ft |
| 8 ft 6 in | 14 | 7.29 in | 13 | 10 ft 10 in |
| 9 ft | 14 | 7.71 in | 13 | 10 ft 10 in |
| 9 ft 6 in | 15 | 7.6 in | 14 | 11 ft 8 in |
| 10 ft | 16 | 7.5 in | 15 | 12 ft 6 in |
With risers of at most 7.75 in and treads 10 in deep. A 9 ft floor-to-floor height (108 in) takes 14 risers of 7.71 in.
Stringers
For deck stairs, DCA 6 calls for 2 × 12 stringers, at least three when they are cut, no more than 18 in apart; a cut stringer can span at most 6 ft, or needs a post under it, and keeps at least 5 in of wood behind the notches (Figure 28). The calculator checks that on a 2 × 12 (11.25 in deep): deep treads with tall risers leave less. DCA 6 also calls for a guard once deck stairs rise 30 in or more. For indoor stairs, the calculator gives the stringer length only; follow your plans for their number and size. Before cutting, take one tread's thickness off the bottom of each stringer, or the first step will be taller than the rest.
Pouring concrete steps instead? The concrete calculator works out the volume, and concrete for footings and steps covers the forms.
Comfortable stairs
A common rule from Fine Homebuilding: twice the riser plus the tread should be within an inch of 25 in. Deck steps with 30 in of rise come out at 4 risers of 7.5 in; with 10 in treads that is 25 in. The calculator warns when a layout falls outside 24 to 26 in.
Common mistakes
- Measuring the rise from the wrong surface. Use the finished floors (or the deck boards), not the subfloor or framing.
- Counting treads as risers. There is one tread fewer than risers.
- Forgetting to drop the stringer. Without it, the bottom riser ends up a tread thickness taller.
- Rounding the riser count down. The risers come out taller than the code allows.
Frequently asked questions
How many steps do I need for a 9 ft ceiling?
Measure the total rise floor to floor, which includes the floor framing above. For 108 in, 14 risers and 13 treads.
What is the maximum riser height?
7.75 in under the IRC, unless your local code says otherwise.
Related tools and guides
- CalculatorDeck CalculatorWork out the deck boards, joists and screws or hidden fasteners for a deck, with board gaps, joist spacing and a joist span check from a published table.
- CalculatorConcrete CalculatorWork out the concrete for a slab, footings, post holes or steps: cubic yards with waste, the ready-mix order, and how many 40, 60 or 80 lb bags to buy.
- GuideHow Much Concrete for Footings, Post Holes and StepsHow to measure footings, post holes, tubes and steps for concrete, the code minimums for footings and stairs, and how many bags each one takes, step by step.
- GuideDeck Joist Spacing, Joist Spans and Board GapsHow far apart deck joists go for composite and wood decking, how far each joist size can span, how wide to gap deck boards, and how many boards you need.