Stair Calculator
Enter the total rise of your stairs to see how many risers and treads, the exact riser height, the stringer length and the boards to buy, with the common code checks.
Quick answer
8 risers of 7 1/8 in — 7 treads of 10 1/2 in, 3 stringers
Within the common US code limits.
8 risers of 7 1/8 in — 7 treads of 10 1/2 in, 3 stringers
Your measurements
- Total rise
- 57 in
- Tallest riser you want
- 7.5 in
- Tread depth (run)
- 10.5 in
- Stair width
- 36 in
- Boards per tread
- 2
- Tread board length
- 12 ft
- Add riser boards
- No
Buy list
Stringers (2 × 12, 8 ft)
3 boards
One stringer per board, each cut 93 in long
Tread boards (12 ft)
4 boards
14 pieces of 36 in, 4 per board
Add your local prices to see a total.
Project figures
- Risers
- 8 × 7 1/8 in
- Treads
- 7 × 10 1/2 in
- Total rise
- 57 in
- Total run
- 73 1/2 in
- Stringer length
- 93 in (8 ft 2 × 12)
- Stair angle
- 34.16°
- Stringers
- 3
- Code check: riser height
- Pass: 7 1/8 in (at most 7 3/4 in)
- Code check: tread depth
- Pass: 10 1/2 in (at least 10 in)
- Code check: stair width
- Pass: 36 in (at least 36 in)
- Code check: rise of one flight
- Pass: 57 in (at most 151 in)
Diagram
Not to scale where a dimension is very thin or long.
Show the math
- Risers = 57 in ÷ the tallest riser, rounded up = 8.
- Riser height = 57 in ÷ 8 = 7 1/8 in.
- Treads = 8 risers − 1 (the upper floor is the last step) = 7.
- Total run = 7 × 10 1/2 in = 73 1/2 in.
- Stringer = √(rise² + run²) = 93 in (7.75 ft).
- Stringers = 3 up to 36 in wide, + 1 per further 16 in = 3.
- Tread pieces = 7 × boards per tread = 14; 4 per 12 ft board, so 4 boards.
- Stair angle = the slope of one riser over one tread = 34.16°.
Assumptions and notes
- Headroom: at least 6 ft 8 in above the steps.
- These are the common US limits (IRC R311.7). Your local code can differ. Check before you cut.
- Cut the bottom of each stringer shorter by the thickness of one tread, so the first step is as tall as the rest.
- This page counts boards. It does not size stringers for load: ask your building department.
- Quantities and cost only. For structural, load or code questions, check your local building code and a qualified professional.
How it works
A straight stair is a set of equal steps between two floors. Every riser must be the same height and every tread the same depth, because a step that differs by even a fraction of an inch is the one people trip on. This calculator starts from the one measurement you can take, the total rise, and works out the rest: how many risers, their exact height to the nearest 1/16 in, the treads, the length of the stringers and the boards to buy.
Risers and treads
The calculator divides the total rise by the tallest riser you want, 7.5 in unless you change it, and rounds up to whole risers. The rise is then shared equally among them. A 57 in rise is 7.6 risers of 7.5 in, so it takes 8, and each is 7 1/8 in. A 62 in rise with 7 3/4 in risers is exactly 8, and the calculator recognizes that rather than adding a ninth. There is one tread fewer than risers, because the upper floor or deck is the last step, so 8 risers make 7 treads. With 10.5 in treads the stair runs 73 1/2 in out from the deck.
Stringers
The stringers are the sloped boards the steps are cut into. Each one runs along the diagonal of the rise and the run, so its length is the square root of the rise squared plus the run squared: 93 in for the example, which fits in an 8 ft 2 × 12. Stringers longer than 16 ft are hard to buy and to handle, and the stair is better split with a landing. A stair up to 36 in wide gets 3 stringers, and each further 16 in of width, or part of it, adds one. The calculator gives the stringer count but never sizes them for load.
Tread and riser boards
Each tread is usually 2 deck boards side by side, each cut as long as the stair is wide. The calculator counts how many tread pieces one board gives, so a 12 ft board makes four 36 in treads and an 8 ft board only two, and rounds up to whole boards: 4 boards of 12 ft for the example, or 7 of 8 ft. Riser boards, when you want closed steps, are one piece per riser.
The code checks
Most US codes follow the International Residential Code: risers at most 7 3/4 in, treads at least 10 in deep, stairs at least 36 in wide, at most 151 in of rise in one flight, and 6 ft 8 in of headroom. The calculator shows each check with its number and still gives the results when one fails, so you can see what to change. Your local code can differ, so check it before you cut.
Measuring tips
- Measure the rise from where the bottom step will land, not from the ground nearby.
- Measure to the top of the finished deck boards or floor, not to the joists.
- On a slope, measure the rise at the point where the stair will end.
These figures are estimates. Read the disclaimer before you buy or build.
Common questions
How do I work out the riser height for stairs?
Measure the total rise from the landing to the top of the deck boards, divide it by the tallest riser you want, and round up to whole risers. Then divide the rise by that number. A 57 in rise with risers of at most 7.5 in needs 8 risers of 7 1/8 in each.
What are the code limits for stair risers and treads?
Most US codes follow the IRC: each riser at most 7 3/4 in tall, each tread at least 10 in deep, the stair at least 36 in wide, one flight at most 151 in high, and at least 6 ft 8 in of headroom. Your local code can differ, so check it before you cut.
How many stringers do deck stairs need?
Three for a stair up to 36 in wide, and one more for each further 16 in or part of it, so a 48 in stair needs 4 and a 60 in stair needs 5. Composite and 5/4 treads often need the stringers closer together; check the maker's guide.
Why is the bottom of a stair stringer cut shorter?
Every tread adds its thickness to the top of a step. The steps above are all raised by the same amount, but the first one starts from the landing, so it would end up taller than the rest. Cutting the bottom of each stringer shorter by one tread's thickness keeps every riser the same, 7 1/8 in for a 57 in rise.
How long does a stair stringer need to be?
The stringer runs along the slope, so its length is the square root of the rise squared plus the run squared. For a 57 in rise and 7 treads of 10.5 in it is 93.01 in, cut from an 8 ft 2 × 12. Stairs that need a stringer over 16 ft should be split with a landing.
Sources
Where the reference numbers on this page come from.
- Knox County, Tennessee: Stairs handout (quotes the International Residential Code) (opens in a new tab) (PDF)Quotes the International Residential Code, section R311.7: risers at most 7 3/4 in, treads at least 10 in, stairs at least 36 in wide and 6 ft 8 in of headroom.
- City of Boise: Treads and risers handout (quotes the International Residential Code) (opens in a new tab) (PDF)Quotes the same code on risers and treads.
- Decks.com: How to lay out deck stair stringers (opens in a new tab)Stringers no more than 16 in apart, and at least four on stairs wider than 36 in.
Sizes and coverage differ between products. Check the label on yours and change the fields above to match.
Numbers checked: . All sources
Something wrong, or a calculator you'd like us to add? Tell us by email. We read every message.