Blog /

Stair Calculator: Rise, Run, and Stringer Layout

The Code Numbers You Can’t Fudge

IRC R311.7 gives you a narrow window. Max riser height: 7-3/4 inches. Min tread depth: 10 inches. Max variation between any two risers or any two treads: 3/8 inch. That last one catches more people than the first two.

An inspector doesn’t care that your average riser is 7-1/2”. If one riser measures 7-1/4” and the one above it measures 7-3/4”, that’s a 1/2” difference. You’re over the 3/8” tolerance. Red tag.

I’ve seen guys rip out finished stairs over this. Granite treads already set. Railing posts anchored. All of it torn out because the framer didn’t measure total rise from finished floor to finished floor.

Calculating Rise and Run

Start with total rise. That’s the vertical distance from one finished floor surface to the next finished floor surface. Not subfloor to subfloor. Finished to finished. Measure it twice.

Say your total rise is 108 inches (9 feet floor-to-floor). Divide by your target riser height to get the number of risers.

108” / 7.5” = 14.4

You can’t have 0.4 of a step. Round to 14 risers.

108” / 14 = 7.714”

That’s 7-11/16”, which is under the 7-3/4” max. Good.

Now for run. You need one fewer tread than risers (the top floor acts as the final tread). So 14 risers means 13 treads.

At 10” per tread (code minimum), your total run is 130 inches, or 10 feet 10 inches. At 11” per tread (more comfortable), total run hits 143 inches, just under 12 feet.

That total run number matters. It tells you how much floor space the stairwell eats. On a tight floor plan, 12 feet of horizontal run might not exist. You’d need a landing with a turn, which changes everything.

A Real Stair Layout

Here’s a concrete example. Two-story house, 9’1” ceilings, 2x10 floor joists with 3/4” subfloor and 3/8” hardwood on both levels.

Total rise calculation:

  • Ceiling height: 109” (9’1”)
  • Joist depth: 9-1/4”
  • Subfloor: 3/4”
  • Finish floor (upper): 3/8”
  • Finish floor (lower): 3/8” (this one gets subtracted from nothing, it’s your starting point)

Total rise: 109 + 9.25 + 0.75 + 0.375 = 119.375”

119.375” / 15 risers = 7.958”

That’s over 7-3/4”. Won’t pass.

119.375” / 16 risers = 7.461”

That’s 7.461”, about 7-15/32”. Comfortable. Legal. Done.

Treads: 16 risers means 15 treads. At 10.5” each, total run is 157.5”, or 13 feet 1-1/2”. You need that much horizontal space plus the width of the upper stairwell opening.

Stringer Length

This is just the Pythagorean theorem. Total rise squared plus total run squared, take the square root.

Stringer length = sqrt(total rise^2 + total run^2)

Using our example:

  • Total rise: 119.375”
  • Total run: 157.5”

119.375^2 = 14,250.39

157.5^2 = 24,806.25

14,250.39 + 24,806.25 = 39,056.64

sqrt(39,056.64) = 197.6” = 16 feet 5.6 inches

You need a stringer board at least that long. A 2x12 x 16’ won’t do it. You’d need an 18-footer, or you’d need to scab two boards together (which most codes allow for non-structural carriage stringers, but not for the cut stringers themselves).

Buy the longest, straightest 2x12s the yard has. Crown doesn’t matter as much as twist. A twisted stringer makes every tread rock.

The Finish Floor Problem

This is where most stair calculator mistakes happen. People measure total rise from subfloor to subfloor. Then the tile guy shows up and puts 1/2” tile on the upper landing. Now your top riser is 1/2” shorter than the rest.

Or worse, the lower floor gets 3/4” hardwood and the upper gets carpet with 3/8” pad. Your bottom riser is now 3/4” taller than designed. Your top riser is 3/8” shorter.

The fix is simple but requires discipline. Know your finish floor specs before you frame stairs. Write the actual thicknesses on the stud wall next to the stair opening. If the finish floors aren’t decided yet, frame the stairs for the subfloor heights and plan to adjust the bottom tread with a filler strip later. Some framers leave the bottom riser intentionally tall by the expected finish floor thickness.

I prefer to know the finish materials upfront. Guessing means rework.

Common Stringer Layout Mistakes

Forgetting to drop the stringer is the classic beginner error. When you set a stringer on the subfloor and drop a tread on top of it, that bottom step is now one tread thickness taller than every other step. You have to cut the bottom of the stringer by the thickness of one tread. If you’re using 1” thick treads, remove 1” from the bottom of every stringer.

Another one: not accounting for the stringer-to-header connection at the top. The stringer needs to bear against the header or a hanger, and that connection point affects where your last riser cut falls. If you’re tight on total run, the header detail can push you out of the stairwell opening.

Notching stringers too deep kills them structurally. After you cut the triangular notches for rise and run, you need at least 3-1/2” of solid wood remaining at the thinnest point. On a 2x12 that’s 11-1/4” wide, with a 7.5” rise and 10.5” run, the throat depth works out to about 5 inches. Comfortable. But push those numbers higher (say 7-3/4” rise and 11” run) and you’re cutting deeper, leaving less material. Always check throat depth.

How Many Stringers

Code requires enough support that the treads don’t flex. For 36” wide stairs (the most common residential width), two stringers on the outside edges work if you’re using 2x tread stock. But I put a center stringer on anything over 30” wide. It takes 20 minutes to cut and the treads feel solid. Squeaky stairs are almost always a stringer spacing problem.

For wider stairs (48” or more), three stringers minimum. Four isn’t overkill. An extra $20 in lumber prevents callbacks.

Headroom

IRC R311.7.2 requires 6 feet 8 inches minimum headroom measured from the nosing line to the ceiling or header above. The nosing line is a diagonal that touches the front edge of every tread. As you walk up the stairs, the ceiling drops relative to you. The tightest point is at the top of the stairwell opening.

If headroom’s tight, you can extend the stairwell opening (cut the header back one joist bay), reduce the riser height (more steps, longer total run), or both. You can’t reduce tread depth below 10” to fix a headroom problem. The math doesn’t work that way anyway, since shallower treads don’t change the nosing line angle much.

The framing for your stairwell opening affects how to size a header above the stair. Double or triple 2x10s are common, depending on span and load path.

Quick Reference

Stairs for…Typical riseTypical runFeels like
Basement (steep, legal)7-3/4”10”Ladder-ish
Standard residential7-1/2”10-1/2”Normal
Comfortable residential7”11”Easy
Deck stairs (exterior)7”11” to 12”Wide open
Commercial / ADA7”11”Regulated

The old carpenter’s rule says rise plus run should equal 17 to 18 inches. A 7.5” rise with a 10.5” run hits 18” exactly. That ratio feels natural to most people. Anything under 17” feels cramped. Over 18.5” feels like you’re stretching.

Laying It Out on the Stringer

Mark your framing square with stair gauges at the rise and run dimensions. Walk the square down the stringer, marking each step. Count your marks. You should have one more riser mark than tread marks.

After marking, measure total rise and total run on the board. They should match your calculated numbers. If they don’t, you made a marking error. Find it before you cut. Checking takes 30 seconds. Replacing a 16-foot 2x12 costs $40 and half an hour.

The number of studs in the wall beside your stair opening follows the same counting logic as any wall layout. If you’re building the surrounding walls at the same time, the stud count calculator covers that math.

Getting It Right the First Time

Stair framing isn’t forgiving. A wall that’s 1/4” out of plumb is invisible. A riser that’s 1/4” off from its neighbors will trip people for the life of the building. Measure total rise from finished floor to finished floor. Account for every layer of material. Check your stringer layout against the calculated numbers before cutting.

SiteCalc’s stair calculator handles rise, run, stringer length, and tread count from your total rise input. Plug in the numbers on site instead of scratching Pythagorean math on a scrap of plywood.


85 construction calculators. No subscription.