Stair Stringer Calculator
Enter the total rise and your step size. You get the number of risers, the exact riser height, total run, stringer length and an IRC check.
Your estimate
- Number of risers
- 6 risers
- Riser height
- 7 in
- Stringer diagonal length
- 5 ft 7 1/4 in
- Number of treads
- 5 treads
- Total run
- 52 1/2 in
- Stair angle
- 33.7 °
- Stringers needed
- 4 stringers
- Stringer board length to buy
- 8 ft boards
- Wood left below the cuts (throat)
- 5 7/16 in
- 2 × riser + tread
- 24 1/2 in
Marked lines go on the copied shopping list.
Quick answer
For a total rise of 42 in. with a 7 3/4 in. maximum riser, you need 6 risers of exactly 7 in. With 10 1/2 in. treads that makes 5 treads and 52 1/2 in of total run. Each stringer measures 5 ft 7 1/4 in along the diagonal, so buy 8 ft boards.
Worked out with this calculator using its default inputs. Change any input above to get your own numbers.
How it is calculated
Risers = ⌈Total rise ÷ Max riser⌉ · Riser = Total rise ÷ Risers · Stringer = √(Rise² + Run²)
- Divide the total rise by the maximum riser height and round up. That is the number of risers.
- Divide the total rise by the number of risers to get the exact, equal riser height.
- Treads = risers − 1, because the deck or floor at the top serves as the last step.
- Total run = treads × tread depth.
- Stringer diagonal = √(total rise² + total run²). We add 12 in. of working allowance and pick the next stock length up.
Assumptions and defaults
- The top of the stair lands on the deck or upper floor, so there is one tread fewer than risers.
- The 7 3/4 in. maximum riser and 10 in. minimum tread come from IRC R311.7.5. Many jurisdictions adopt the IRC with local amendments, so confirm with your building department.
- The board length adds 12 in. to the diagonal for end cuts. That allowance is our assumption; check it against your own layout.
- Stringer count assumes stringers at both edges plus enough in between to stay within the spacing you enter. The right spacing depends on your tread material.
- Headroom, handrails, guards, nosing and landings are outside this calculator. They are covered by the same code section and by DCA 6 for deck stairs.
Worked examples
Each row is computed with this calculator, using the default values for anything not listed (waste, weights and bag sizes shown in the inputs above).
| Project | Number of risers | Riser height | Total run | Stringer diagonal length |
|---|---|---|---|---|
| Low deck, 30 in. total rise | 4 risers | 7 1/2 in | 31 1/2 in | 3 ft 7 1/2 in |
| Porch, 54 in. total rise, 11 in. treads | 7 risers | 7 11/16 in | 66 in | 7 ft 1 1/4 in |
| Basement stair, 108 in. total rise, 10 in. treads | 14 risers | 7 11/16 in | 130 in | 14 ft 1 in |
Before you order
Measure the rise where the stair lands
Ground slopes. Measure from the top surface straight down to the exact spot where the bottom step will sit, not from where you stand.
Keep every riser the same
Uneven steps trip people. The IRC also limits the difference between the tallest and shortest riser in a flight to 3/8 in.
Adjust the bottom riser for the tread thickness
When you lay out a cut stringer, the bottom riser is shortened by the thickness of one tread so the first step ends up the same height as the others.
Check the wood left under the cuts
The throat figure shows how much board remains below the notches. A wider board leaves more wood; a professional can confirm what your span needs.
Frequently asked questions
How many steps do I need for a 30 in. rise?
At a 7 3/4 in. maximum riser, 30 ÷ 7.75 = 3.87, which rounds up to 4 risers of 7 1/2 in. each. That gives 3 treads, since the deck surface is the top step.
What is the maximum stair riser height?
The 2021 International Residential Code (R311.7.5.1) sets a maximum riser height of 7 3/4 in. for homes, and R311.7.5.2 sets a minimum tread depth of 10 in. Your local code may differ.
How long should a stair stringer be?
The stringer follows the diagonal of the stair: √(total rise² + total run²). Buy a board longer than that so the top and bottom cuts fit; the calculator adds 12 in. and picks the next stock length.
How many stringers do I need?
One at each side plus enough in between to keep within the spacing your tread material allows. The calculator uses the spacing you enter; check the tread manufacturer and DCA 6 for deck stairs.
What is the 2R + T rule?
A traditional comfort rule, attributed to the 17th-century French architect François Blondel, says two risers plus one tread should match a natural stride, usually quoted as about 24 to 25 in. It is a comfort check, not a code requirement.
Sources and method
Sources checked November 29, 2026. The calculation code is tested against hand-worked examples. See our editorial policy.
- International Code Council 2021 International Residential Code, R311.7.5 Stair treads and risers (opens in a new tab) Riser and tread requirements for stairs in one- and two-family homes.
- International Code Council 2021 International Residential Code, R311.7.5.1 Risers (opens in a new tab) Maximum riser height of 7 3/4 in., used as the default maximum and in the code check.
- American Wood Council DCA 6: Prescriptive Residential Wood Deck Construction Guide (2015 IRC edition) (opens in a new tab) Prescriptive framing, footing, stair and decking details for single-level wood decks. We point to it for anything structural.
- National Institute of Standards and Technology NIST Special Publication 811: Guide for the Use of the International System of Units (2008) (opens in a new tab) Exact conversion factors behind the metric switch (1 ft = 0.3048 m, 1 lb = 0.45359237 kg).