Project calculator

Stair Calculator: Risers, Treads & Stringer Layout

A staircase is the one project where a quarter-inch error compounds thirteen times. This calculator divides your floor-to-floor rise into equal risers, checks the result against common residential code ranges, computes the stringer length and board size to buy, and prints a step-by-step layout table you can mark directly on the stringer. Enter one measurement — total rise — and get a buildable stair.

Stair calculator

Enter a number 0 or higher.
Enter a number 0 or higher.
Enter a number 0 or higher.
Enter a number 0 or higher.
Enter a number 0 or higher.

Your results

Risers
—
equal height
Riser height
—
each step up
Treads
—
risers − 1
Total run
—
floor space needed
Stringer length
—
exact
Board to buy
—
2×12, per stringer
Stair angle
—
Comfort 2R+T
—
24–26 in is comfortable

Enter your total rise to lay out the stair.

How to use this calculator

Measure total rise from finished floor to finished floor — not subfloor to subfloor, and not to the top of the joists. If flooring is not down yet, add its thickness to both ends. That single number drives everything: the calculator divides it by your target riser height (7.5 in default), rounds to a whole number of risers, and divides back so every riser is identical. Set the tread run (10.5 in is a comfortable default; 10 in is the common code minimum), your stair width, and the headroom available where the stair passes under the upper floor or ceiling.

Read the warnings before the numbers. If the riser comes out over 7¾ in, the fix is one more riser (lower the target), not a steeper stair. If the total run does not fit your space, the honest options are a landing, an L-turn, or a different stair location — shrinking treads below code minimum is how stairs become dangerous.

Worked example: a 9 ft floor-to-floor rise

Suppose finished floor to finished floor is 108 in. Divide by the 7.5 in target: 14.4, which rounds to 14 risers. Actual riser height: 108 ÷ 14 = 7.71 in — under the 7¾ in maximum, but close enough that a thick floor finish upstairs would break it, which is why finished floors are the measuring datum. Treads: 14 − 1 = 13. At a 10.5 in run, total run is 13 × 10.5 = 136.5 in (11 ft 4½ in of floor space). Stringer length: √(108² + 136.5²) = 174 in ≈ 14.5 ft, so buy 16 ft 2×12 boards — three of them for a typical stair. The angle is 36.3°, and the comfort check 2 × 7.71 + 10.5 = 25.9 in sits inside the comfortable 24–26 in band. The layout table lists each step's cumulative rise and run for marking the stringer.

The formula, explained

Risers = round(total rise ÷ target riser), then riser height = total rise ÷ risers — the rounding is what guarantees equal risers. Treads = risers − 1 because the upper floor is the final step surface. Total run = treads × tread run. Stringer length = √(total rise² + total run²), rounded up to the next even foot for the board you buy. The angle is atan(riser ÷ run), and the comfort check is Blondel's 2R + T, comfortable between 24 and 26 in. Code-range flags use the common IRC residential limits: riser ≤ 7¾ in, tread ≥ 10 in, width ≥ 36 in, headroom ≥ 80 in.

Reading your results — and their limits

Verify against your local building code before building. The warnings here use widely adopted IRC residential limits, but local amendments, existing-stair rules, and commercial requirements differ, and this calculator does not check guards, handrails, nosing profile, or landing dimensions — all of which code regulates. Two build details the numbers assume you know: drop the first riser by the tread thickness when cutting stringers (the first tread sits on top of the stringer), and leave at least 3½–4 in of uncut wood below the deepest notch or the stringer weakens. Headroom is checked only against the single value you enter; on a real stair it is measured vertically from the tread nosing line to the ceiling above, and the critical point is usually where the stair passes the floor opening edge. When in doubt, frame the opening generously and confirm with your building department — stairs are inspected, and rebuilding one is the most expensive outcome of all.

Frequently asked questions

How do I calculate the number of risers for a staircase?

Divide the total rise (finished floor to finished floor) by a target riser height of about 7.5 in, then round to a whole number. A 108 in rise ÷ 7.5 = 14.4, so 14 risers, and the actual riser height becomes 108 ÷ 14 = 7.71 in. Every riser must then be identical — varying riser heights are a trip hazard and a code violation. Treads are always risers minus one, because the top riser lands on the upper floor.

What is the maximum riser height and minimum tread depth?

Under the International Residential Code (R311.7.5), the common limits are a maximum riser of 7¾ in and a minimum tread run of 10 in (nosing excluded), with risers varying no more than ⅜ in within a flight. Headroom must be at least 6 ft 8 in and clear width at least 36 in. Local amendments exist, so verify with your building department before cutting — this calculator flags these common limits but cannot know your jurisdiction.

How long does my stringer board need to be?

Stringer length is the hypotenuse of total rise and total run: √(rise² + run²). For a 108 in rise and 136.5 in run, that is about 174 in — 14.5 ft — so you buy 16 ft 2×12 boards (lumber comes in 2 ft steps, and you need meat beyond the first and last cuts). The calculator shows both the exact stringer length and the board length to buy.

What is the 2R + T comfort rule?

The classic stair-comfort formula says twice the riser plus the tread should total 24–26 in (Blondel's formula). At a 7.71 in riser and 10.5 in tread, 2R + T = 25.9 in — comfortable. Much below 24 feels like a ladder; much above 26 forces a shuffle. If your numbers fall outside the range, the calculator warns you before you build an uncomfortable stair.

How many stringers do I need?

Two stringers minimum for a narrow stair, three for most residential stairs (one at each side plus a center), and four for wide or composite-tread stairs where tread flex matters. Spacing should generally not exceed about 16–18 in for 1 in tread stock. Enter your stringer count above and the order sheet multiplies the board count.

Can I use this for deck stairs?

Yes — deck stairs use the same rise/run math, measured from the deck surface to the grade or landing where the stair ends. Outdoor stairs add two considerations this calculator does not price: stringer material must be pressure-treated or otherwise rated for exterior use, and the bottom riser often needs adjustment for the footing or pad thickness. Code limits for guards and handrails also apply outdoors; verify local requirements.

Want the full planner?

The calculator lays out one straight flight. The Deck & Stair Planner covers the projects stairs actually live in: deck framing layouts, L-shaped and landing stairs, railing and baluster counts, and footing placement.

  • Straight, L-shaped & landing stair layouts
  • Deck framing & footing planner
  • Railing, baluster & handrail counts
  • Cut list for stringers, treads & risers

Get the Deck & Stair Planner on Etsy

Digital download · Print at home or use in Google Sheets/Excel · The free calculator above stays free either way.

Related tools