ProBuildermuse Pro is live — Fire sale: Pro for $1.99/mo.Get Pro
Buildermuse
Residential

How to Calculate Stairs: Rise, Run, and Stringer Layout

Mike Callahan·June 30, 2026·Updated October 29, 2026·13 min read

Share this with your estimator.

How to Calculate Stairs: Rise, Run, and Stringer Layout

Most stair problems I get called about were lost before anybody cut a board. Somebody measured total rise off the plans instead of the floor, or measured subfloor to subfloor and forgot the finish flooring, and the whole flight ended up an inch or two off. An inch of error in total rise does not disappear. It shows up as a short bottom riser, a tall top riser, or a top tread that lands shy of legal headroom under the header, and you find out mid-framing, not mid-design. Get the total rise locked in before you cut a single board.

Here's the deal: stairs are pure math. Total rise divided by a target riser height gives you the riser count. Riser count minus one gives you the tread count. Tread count times run per tread gives you total run. The Pythagorean theorem gives you stringer length. Miss any step and the stair either doesn't fit the space or violates IRC Section R311.7. I'm walking you through the formulas and the code so you never guess on stairs again.

Total Rise: Measure from Finished Floor to Finished Floor

Total rise is the vertical distance from the finished floor of one level to the finished floor of the next level (or landing). Measure it in inches, and measure it between finished surfaces. If you measure from bare subfloor to bare subfloor and then somebody installs 3/4-inch hardwood upstairs and tile downstairs, your rise just changed.

The formula is simple:

Total rise = distance from finished floor below to finished floor above (in inches)

Here's how that stacks up on a typical two-story house with 8-foot ceilings on the first floor:

  1. First-floor finished surface to underside of the second-floor joists: 8 feet = 96 inches
  2. Second-floor joists (2x10 or 9-1/2 inch I-joist): 9.5 inches
  3. Second-floor subfloor: 0.75 inches
  4. Second-floor finish flooring (hardwood): 0.75 inches
  5. Total rise, finish to finish: 96 + 9.5 + 0.75 + 0.75 = 107 inches

If the second floor gets 3/4-inch hardwood and the first floor gets 3/8-inch engineered flooring over the subfloor you measured from, adjust for that too. The point is that both ends of the measurement are the surfaces people will actually walk on.

Measure this on site with a laser or a long level and a tape. Don't estimate from blueprints. One inch of error cascades into every calculation that follows.

Calculate Riser Height: Target 7 to 7-1/2 Inches

The IRC caps riser height at 7-3/4 inches (R311.7.5.1) and limits the difference between the tallest and shortest riser in a flight to 3/8 inch. The IRC does not set a minimum riser height; the 4-inch minimum you may have heard about is from the International Building Code and the ADA standards for commercial stairs. Most residential builders target 7 to 7-1/4 inches because it's comfortable to climb and leaves margin under the maximum.

The formula is:

Number of risers = total rise ÷ target riser height, rounded to a whole number

Using a 108-inch total rise as a round example:

  1. Try a 7-inch riser: 108 ÷ 7 = 15.43 risers
  2. Try a 7-1/4-inch riser: 108 ÷ 7.25 = 14.9, round to 15 risers
  3. Actual riser with 15 risers: 108 ÷ 15 = 7.2 inches per riser, which is under 7-3/4 and comfortable

That's your answer: 15 risers at 7.2 inches each. If you had rounded down to 14 risers, each would be 108 ÷ 14 = 7.71 inches. That's technically legal but right at the limit, and any error in your rise measurement pushes you over. Rounding up to more risers is the safer direction.

Make all the risers the same height. The 3/8-inch tolerance is for the inevitable variation in framing and finish, not a license to make one riser tall to absorb your rounding.

Tread Depth: Run Per Step

The tread is the horizontal surface you stand on. The run is the horizontal distance from the face of one riser to the face of the next. The IRC minimum tread depth is 10 inches, measured horizontally from nosing to nosing (R311.7.5.2), and the tolerance between treads is the same 3/8 inch.

Most residential builders use 10-1/2 to 11 inches of run because it's comfortable and because of the nosing rule: under R311.7.5.3, a tread less than 11 inches deep needs a nosing that projects 3/4 inch to 1-1/4 inches past the riser below. At 11 inches, no nosing is required. Commercial stairs under the IBC require 11 inches minimum, which is where the 11-inch habit comes from.

The formula is:

Total run = number of treads × run per tread

With 15 risers you have 14 treads, because the top landing or floor serves as the last walking surface. Using 11 inches per tread:

  1. Total run: 14 treads × 11 inches = 154 inches = 12 feet 10 inches

So the stairwell footprint for this flight is 12 feet 10 inches long, and the flight climbs 108 inches over that distance.

Stringer Length: The Hypotenuse Calculation

The stringer is the diagonal board that carries the steps. It's the hypotenuse of a right triangle where the vertical leg is total rise (108 inches) and the horizontal leg is total run (154 inches).

The formula is the Pythagorean theorem:

Stringer length = √(total rise² + total run²)

Using our numbers:

  1. Stringer length = √(108² + 154²) = √(11,664 + 23,716) = √35,380 = 188.1 inches = 15 feet 8.1 inches

That's the diagonal from the bottom of the flight to the top. Add stock for the top and bottom cuts and whatever bearing detail you use at the header, and you're ordering 16-foot 2x12s. Pick straight, dry stock. A crowned or twisted stringer transfers every bit of that error into the treads. If you want the board footage and cost of that stringer stock, enter the size and length in the lumber calculator.

Layout and Cutting: Riser and Tread Measurements

Once you have the riser and run dimensions, you lay them out on the stringer with a framing square and a pair of stair gauges (the little brass clamps that lock the square at your rise and run).

The framing square method:

  1. Clamp the gauges at 7.2 inches on the tongue (rise) and 11 inches on the blade (run)
  2. Set the square on the stringer stock and trace the rise and run for the first step
  3. Slide the square so the next rise line starts where the last run line ended, and repeat for every riser

Two details trip people up. First, drop the bottom of the stringer by the thickness of one tread so the bottom riser is not taller than the rest once treads go on. Second, if the stringers bear on finished floor at the bottom and subfloor at the top, account for that difference in the drop. Stair layout apps and our stair calculator do the math, but the layout logic is identical to the square.

Real-World Example: Basement Staircase to a Finished Cellar

Situation: new finished basement. The concrete slab is the bottom finished surface. The first-floor finished flooring is the top.

Step 1: Measure total rise

  • Basement slab to underside of first-floor joists: 96 inches
  • First-floor joists: 9.5 inches
  • First-floor subfloor: 0.75 inches
  • First-floor finish flooring: 0.75 inches
  • Total rise: 96 + 9.5 + 0.75 + 0.75 = 107 inches

If the basement is getting a floating floor or carpet pad over the slab, add that thickness back out of the rise. Finished surface to finished surface, always.

Step 2: Calculate number of risers

  • Target riser: 7 inches
  • 107 ÷ 7 = 15.3, round to 15 risers
  • Actual riser: 107 ÷ 15 = 7.13 inches (under the 7-3/4 inch maximum)

Step 3: Calculate treads and total run

  • Treads: 15 risers − 1 = 14 treads
  • Run per tread: 11 inches
  • Total run: 14 × 11 = 154 inches = 12 feet 10 inches

Step 4: Calculate stringer length

  • √(107² + 154²) = √(11,449 + 23,716) = √35,165 = 187.5 inches = 15 feet 7.5 inches

Step 5: Check headroom

  • IRC R311.7.2 requires at least 6 feet 8 inches (80 inches) of headroom, measured vertically from a sloped line connecting the tread nosings to the ceiling or framing above
  • Basement stairs almost always run under the first-floor framing. Lay out where the flight passes under the stairwell header and verify 80 inches at that point. Ductwork, beams, and soffits are the usual offenders

Step 6: Check width and order stock

  • Clear width above the handrail must be at least 36 inches (R311.7.1), so frame the stairwell opening to allow for drywall and skirt boards
  • Two stringers at just under 15 feet 8 inches means 16-foot 2x12 stock; add a third stringer in the middle if your tread material or local practice calls for it

Run your numbers through our free stair calculator. Enter total rise and run per tread, and it returns riser count, tread count, total run, and stringer length so you can check them against your opening and headroom.

IRC R311.7 Code Limits for Residential Stairs

The International Residential Code, Section R311.7, governs stairs in one- and two-family dwellings. The numbers below have been stable across the 2015, 2018, 2021, and 2024 editions, but your jurisdiction's adopted edition and amendments control, so confirm them with your building department.

  • Riser height: maximum 7-3/4 inches, with no more than 3/8 inch variation between the tallest and shortest riser in a flight (R311.7.5.1).
  • Tread depth: minimum 10 inches, measured horizontally from nosing to nosing, with no more than 3/8 inch variation (R311.7.5.2).
  • Nosing: where treads are less than 11 inches deep, the nosing must project 3/4 inch to 1-1/4 inches (R311.7.5.3).
  • Headroom: minimum 6 feet 8 inches, measured vertically from the sloped line of the nosings (R311.7.2).
  • Width: minimum 36 inches clear above the handrail height (R311.7.1).
  • Handrails: required on at least one side of any flight with four or more risers, at 34 to 38 inches above the nosings (R311.7.8).
  • Guards: required where a walking surface is more than 30 inches above the floor or grade below, at least 36 inches high at landings, with openings that won't pass a 4-inch sphere (R312.1).
  • Landings: a floor or landing is required at the top and bottom of each flight, as wide as the stair and at least 36 inches in the direction of travel (R311.7.6).

These aren't optional. If a riser comes in at 8 inches, the stair fails inspection and you rebuild it. If a tread comes in at 9-1/2 inches, same result.

Frequently Asked Questions

What if my total rise doesn't divide evenly?

It almost never does. Divide by your target riser, round to a whole number of risers, and divide the total rise by that count to get the actual riser height. Every riser gets that same number. If 107 inches over 15 risers gives you 7.13 inches, lay out 7.13 inches (call it 7-1/8) on every step. Do not make 14 risers at 7 inches and one at 9 inches to absorb the remainder; that violates the 3/8-inch tolerance and it's the step people fall on.

Can I build a steeper staircase to save space?

Within the code limits, yes. A 7-3/4 inch riser with a 10-inch tread is the steepest conventional stair the IRC allows, and it saves roughly a foot of run compared with a 7-inch riser and 11-inch tread on a typical flight. It is noticeably more tiring to climb. Spiral stairs have their own limits in R311.7.10.1, and alternating-tread devices and ship ladders are only allowed for limited uses under R311.7.11 and R311.7.12.

How do I account for the landing at the top?

The upper floor is the last walking surface, so it's not counted as a tread. Tread count is riser count minus one: 15 risers means 14 treads plus the floor above. If the flight turns at an intermediate landing, each flight is calculated separately and the landing has to be at least as wide as the stair and at least 36 inches long in the direction of travel.

What if I can't fit the stairs in the space I calculated?

You have options, in roughly this order:

  1. Reduce run per tread toward the 10-inch minimum. Going from 11 to 10 inches saves 14 inches of total run on a 14-tread flight.
  2. Reduce the riser count by increasing riser height toward 7-3/4 inches. Fewer risers means fewer treads and less run.
  3. Add an intermediate landing and turn the flight 90 or 180 degrees.
  4. Redesign the floor plan around the stair. It's cheaper on paper than on site.

Most builders end up at option 3 or 4. Options 1 and 2 together give you a flight that's legal but not pleasant.

Why is headroom critical?

Because people hit their heads, and because it's the dimension most often missed at framing. The IRC minimum is 80 inches, measured vertically from a line through the tread nosings up to the lowest obstruction. Check it at every point along the flight, especially where the stair passes under the stairwell header or a dropped beam, and remember that finished ceiling material and any trim at the header come out of that 80 inches.

How do I check a staircase against code before building it?

Verify four things: riser height (7-3/4 inch maximum and all risers within 3/8 inch of each other), tread depth (10 inches minimum, nosing if under 11 inches), headroom (80 inches everywhere), and width (36 inches clear). Then confirm handrails and guards are specified where required. If all of that passes, the geometry meets the IRC. I like to leave margin on riser height; a 7 to 7-1/4 inch target instead of 7-3/4 keeps you legal even if the finish flooring thickness changes after you cut.

Your Action Item for This Week

If you have a staircase on your schedule, measure the total rise on site now. Laser-measure from finished floor to finished floor, and write down what each finished surface will be so you can adjust if the flooring spec changes. That number is the anchor for everything else.

Once total rise is locked, run it through our free stair calculator with your preferred run (11 inches avoids the nosing requirement). The calculator outputs riser count, tread count, total run, and stringer length. Lay that out against your stairwell opening and check headroom under the header.

Before you order stock or cut the first board, confirm the code limits with your jurisdiction. Most follow IRC R311.7, but local amendments exist, and your building department can tell you which IRC edition is in force. There is no "2026 IRC"; what's being adopted around the country in 2026 is the 2024 edition. Our rundown of what the 2024 IRC actually changed for residential builders covers that, and our piece on residential framing labor rates covers what the carpenters cutting those stringers are earning.

MC

Mike Callahan

20-Year General Contractor

More from Mike Callahan→
attach_money

Track material prices for your next project

Lumber, rebar, concrete, and more — live BLS pricing updated monthly.

Track prices free