Stair Stringer Calculator
One measurement — total rise — and the layout falls out: riser count and exact height, treads, run, stringer length, plus the comfort check that makes stairs feel right.
Verified against independent hand calculation · sources cited below
4 risers of 7.50″
- Treads to cut
- 3 × 10.0″
- Total run
- 30.0″
- Stringer length (min)
- 42.4″
- Comfort (2R + T)
- 25.0″
Defaults follow common US residential limits (riser ≤ 7¾″, tread ≥ 10″) — your local code wins, and inspectors measure. Buy stringer stock longer than the minimum for end cuts and mounting. Riser count × height must land exactly on the total rise — never round it.
How do you calculate stair stringers? Step by step
Everything starts from the total rise. Here is the full calculation for a 105″ rise with 10″ treads and risers capped at 7¾″ — the calculator’s own defaults, so you can type 105 into it and check every line.
- Measure the total rise — finished floor to finished floor: 105″.
- Count the risers. 105 ÷ 7.75 = 13.55; round up to 14 risers.
- Find the riser height. 105 ÷ 14 = 7.5″ — every riser identical.
- Count the treads. One fewer than the risers, because the upper floor is the last step: 14 − 1 = 13 treads.
- Total run. 13 × 10″ = 130″ (10 ft 10 in).
- Stringer length. √(105² + 130²) = 167.1″ (13 ft 11 in) of board along the nosing line, before end cuts.
- Check it. 7.5″ is under the 7¾″ riser limit and 10″ meets the 10″ tread minimum; 2 × 7.5 + 10 = 25″ sits in the 24–25″ comfort window; and a 2×12 keeps 5.25″ at the throat (see below).
Why riser height is a division, not a choice
Stairs must land exactly on the upper floor, so riser height is always total rise ÷ number of risers — you pick the count, the height follows. Divide by the code maximum, round up, and every riser comes out identical and legal. A flight with one odd step at the top is the trip hazard building codes exist to prevent, which is why the 3/8″ variation rule gets measured.
From numbers to layout
- Set a framing square to riser × tread with stair gauges and walk it down the stringer — the calculator’s two numbers are exactly the square’s two legs.
- Drop the bottom riser by one tread-board thickness so the first step matches the rest after treads go on.
- Check the throat after marking: the wood left behind the notches carries the load.
- Dry-fit one stringer and check the top and bottom step heights in place before cutting its siblings.
IRC residential stair limits (R311.7)
These are the stair limits as written in R311.7 of the model code, before any state or local amendments:
| Dimension | Limit | Section |
|---|---|---|
| Riser height | Max 7¾″, measured vertically between leading edges of adjacent treads | R311.7.5.1 |
| Tread depth | Min 10″, measured horizontally between the foremost projections of adjacent treads | R311.7.5.2 |
| Variation in a flight | Tallest riser no more than 3/8″ over the shortest; deepest tread no more than 3/8″ over the shallowest | R311.7.5.1, .2 |
| Nosing | 3/4″ to 1¼″ projection, not required where treads are 11″ or deeper | R311.7.5.3 |
| Clear width | Min 36″ above handrail height (31½″ below it with one handrail, 27″ with handrails on both sides) | R311.7.1 |
| Height of one flight | Max 12 ft 7 in (151″) of rise between floors or landings | R311.7.3 |
Turn the first two rows into a layout rule: the fewest risers a rise can use is total rise ÷ 7.75, rounded up. A 105″ rise needs at least 14; a 30″ rise needs 4.
Check your jurisdiction before cutting. Fine Homebuilding’s 2024 stair-code article starts from the same 7¾″ and 10″ figures and points out that some government-amended codes allow risers of 8¼″ and even 9″. The calculator’s Max riser height field is editable for exactly that reason, and the inspector’s edition is the one that counts.
How long of a 2x12 do I need for a stair stringer?
Stringer length is the hypotenuse of the staircase triangle, so it grows with both rise and run. For a 105″ rise the minimum is 13.9 ft of 2×12. The table runs the same math for common rises, with 10″ treads and risers capped at 7¾″.
| Total rise | Risers | Riser height | Total run | Min stringer length | Run over 6 ft? |
|---|---|---|---|---|---|
| 30″ | 4 | 7.5″ | 30″ | 42.4″ (3.5 ft) | No |
| 42″ | 6 | 7″ | 50″ | 65.3″ (5.4 ft) | No |
| 54″ | 7 | 7.71″ | 60″ | 80.7″ (6.7 ft) | No |
| 66″ | 9 | 7.33″ | 80″ | 103.7″ (8.6 ft) | Yes |
| 78″ | 11 | 7.09″ | 100″ | 126.8″ (10.6 ft) | Yes |
| 90″ | 12 | 7.5″ | 110″ | 142.1″ (11.8 ft) | Yes |
| 105″ | 14 | 7.5″ | 130″ | 167.1″ (13.9 ft) | Yes |
| 120″ | 16 | 7.5″ | 150″ | 192.1″ (16 ft) | Yes |
Treat the length as a minimum. It is the line along the nosings; the board also has to hold the plumb cut at the top and the seat cut at the bottom. In the 105″ example, a 14 ft board covers the 13.9 ft minimum with just 0.9″ to spare, which is not enough for the end cuts. Round up to the next length your yard stocks, and go one longer when the minimum lands close to a stock length.
The last column matters for decks. The AWC deck guide (DCA 6) limits a cut 2×12 stringer to about 6 ft of horizontal span between supports; past that, it says to shorten the span with a post under the stringer or an intermediate landing. Rises that need more than 6 ft of run are marked Yes. That is a deck-stair provision; interior stairs are supported by the framing around them and follow local code.
2x10 or 2x12 stair stringers?
Use 2×12s. A stringer is a beam with notches cut out of it, and the part that carries the load is the wood left behind the notch, the throat. The American Wood Council’s deck guide requires stringers of at least 2×12 and shows a minimum remaining depth of 5″ measured square to the board. (The IRC’s stair section, R311.7, sets riser and tread dimensions but, in the text we read, no stringer size or throat depth, so this rule comes from AWC.)
The throat is the board’s actual depth minus the notch depth, where notch depth is riser × tread ÷ √(riser² + tread²). At the code-maximum 7¾″ × 10″ notch that is 6.13″, and a 2×12 keeps 5.12″, matching the 5.1″ AWC uses for the same ratio in its commentary.
| Lumber | Actual depth | Throat at 7¾″ × 10″ | Throat at 7.5″ × 10″ | Meets 5″? |
|---|---|---|---|---|
| 2×8 | 7.25″ | 1.12″ | 1.25″ | No |
| 2×10 | 9.25″ | 3.12″ | 3.25″ | No |
| 2×12 | 11.25″ | 5.12″ | 5.25″ | Yes |
A 2×10 reaches 5″ only if the notch is shallower than 4.25″, which with a 10″ tread means risers under about 4.7″ — far below the 7¾″ code limit and the 7.5″ risers in the example. On ordinary stairs the 2×12 is the smallest board that works.
Count and spacing: for deck stairs, DCA 6 asks for at least three cut stringers on a 36″-wide stair, or cut and solid stringers no more than 18″ on center on wider ones. Pick straight stock, crown all the stringers the same way, and confirm the layout with a dry-fitted stringer before cutting the rest.
The comfort rules, and what the “27 rule” is
Code sets the limits; two stride rules tune the feel. 2 × riser + tread should land near 24–25″, and riser + tread near 17–18″. Fine Homebuilding puts the targets at 25″ and 18″ and notes that the code maximums of 7¾″ and 10″ give 17.75″ and 25.5″ — legal, but at the steep end. Your 105″ example scores 25″ and 17.5″. The 2R + T formula is usually credited to the 17th-century architect Nicolas-François Blondel.
What about the “27 rule”? It is not in the IRC’s stair provisions, and we found no standard that defines it. The one place that 27 appears as a requirement in the stair text we read is the minimum clear width at and below handrail height when handrails run on both sides (R311.7.1). Informal guides use the name for several unrelated rules, so if a source cites it, check what it means. For layout, use the code limits and the two comfort sums above.
Frequently asked questions
How do I calculate stair stringers?
Measure the total rise (finished floor to finished floor), divide by the maximum riser height and round up to get the number of risers, then divide the rise by that count for the exact riser height. Treads are one fewer than risers, total run is treads × tread depth, and stringer length is √(rise² + run²). Example: 105″ of rise ÷ 7¾″ = 13.55, rounded up to 14 risers of 7.5″; 13 treads of 10″ make 130″ of run; the stringer is at least 167.1″ (13 ft 11 in) long. The calculator above runs this for your own rise.
How long of a 2x12 do I need for a stair stringer?
Stringer length is the diagonal of the staircase, √(total rise² + total run²). With 10″ treads and risers at or under 7¾″, a 30″ rise needs at least 3.5 ft of 2×12, a 66″ rise 8.6 ft, and a 105″ rise 13.9 ft. That diagonal is a floor, not a shopping list: the board also has to cover the end cuts, so a 14 ft board for the 105″ example would leave only 0.9″ to spare. Round up to the next stocked length, and step up again when the minimum lands within a few inches of one.
Should stair stringers be 2x10 or 2x12?
2×12. The American Wood Council’s deck guide (DCA 6) calls for stringers of at least 2×12 and at least 5″ of wood left at the throat behind each notch. A 2×12 is 11.25″ deep, so a 7¾″ × 10″ notch (the code maximum riser with the minimum tread) leaves 5.1″; a 2×10 is 9.25″ deep and leaves only 3.1″. With a 10″ tread a 2×10 keeps 5″ only for risers under about 4.7″. For deck stairs, DCA 6 also asks for at least three cut stringers; on stairs wider than 36″ it allows cut and solid stringers at no more than 18″ on center. Interior stairs follow your local code.
What is the 27 rule for stairs?
It isn’t a building-code rule, and we couldn’t find a standard that defines it. The stair comfort rules that are real are 2 × riser + tread ≈ 24–25″ and riser + tread ≈ 17–18″: a 7.5″ riser with a 10″ tread gives 25″ and 17.5″. In the IRC stair text we read, 27 appears once as a requirement, for width: a 27″ minimum clear width at and below handrail height when handrails are on both sides. Some informal guides attach “27” to other rules, so check which one a source means.
What are the code limits for risers and treads?
Common US residential (IRC) limits: risers max 7¾″, treads min 10″, and no more than 3/8″ variation between the tallest and shortest riser (or the deepest and shallowest tread) in a flight. Some states and cities amend these numbers, and commercial codes differ — the calculator defaults to IRC numbers, but your local code and inspector always win.
What is the 2R + T comfort rule?
Twice the riser plus the tread should land around 24–25″, and riser plus tread around 17–18″ — rules that match the human stride and trace back to the 17th-century architect Blondel. 7.5″ risers with 10″ treads give 25″ and 17.5″; the code-maximum 7¾″ and 10″ give 25.5″ and 17.75″ — legal, but at the steep end. Outside the window stairs feel cramped (low value) or leggy (high value) even when they pass code.
How do I measure total rise correctly?
Finished floor to finished floor, measured vertically — not along the slope, and including any flooring still to be installed on either level. A 3/4″ flooring change on one end alters every riser; this is the most common stair-layout mistake, and inspectors catch it because the top and bottom steps come out odd.
Sources & further reading
- International Code Council, IRC Code and Commentary, Vol. 1, Ch. 3, R311.7 Stairways (copy hosted by Routt County, CO) — read for R311.7.5.1 riser, R311.7.5.2 tread, R311.7.5.3 nosing, R311.7.1 width, R311.7.3 vertical rise
- City of Boise, IRC Code Handout #437 (02/2022), “IRC Section R311.7.5: Stair Treads & Risers” — reproduces the riser and tread text, including the 3/8 in variation limits
- Fine Homebuilding, “Residential Stair Code Basics” (Oct. 14, 2024) — IRC 7-3/4 in maximum riser and 10 in minimum tread, 3/8 in uniformity; notes some government-amended codes allow 8-1/4 in and even 9 in risers
- American Wood Council, DCA 6 Prescriptive Residential Wood Deck Construction Guide (2015 IRC basis), Stair Requirements and Figure 28 — 2×12 minimum, 5 in minimum throat, 6 ft cut-stringer span, three cut stringers, 18 in spacing; commentary p. C12 for the 5.1 in throat at 7.75:10
- American Wood Council, Span Tables for Joists and Rafters (2021), Explanation of Tables sec. 3 — actual sizes of 2×8, 2×10 and 2×12 (American Softwood Lumber Standard PS 20-20)
- Michael Maines, “2 Rules for Building Comfortable Stairs,” Fine Homebuilding — rise + run about 18 in, 2 × rise + run about 25 in; the code limits give 17-3/4 in and 25-1/2 in
- This Old House, “All About Stairs” (updated Oct. 2024) — two risers plus one tread between 24 and 25 in; stringers laid out on 2×12 boards
- Wikipedia, “Stairs” — Blondel formula: Nicolas-François Blondel, Cours d’architecture (1675–1683), 2 × riser + tread (general reference)
- StaircaseCalculator.com, “What Is the 27 Rule for Stairs?” — an informal guide that applies the name to several different rules and cites no code (listed to show what the name is used for online; not an authority)
Embed this calculator
Add this calculator to your site — copy the snippet below. Reword the credit or add rel="nofollow" to its link if you prefer.
Dark site? Append ?theme=dark to the iframe src.