How to Calculate Stair Rise and Run for a Code-Compliant Stair

How to Calculate Stair Rise and Run for a Code-Compliant Stair

Editorial Team |

Last Updated: November 28, 2026

Quick Summary

To calculate stair rise and run, divide the total rise by your target riser height, round to the nearest whole number of risers, then divide again for the exact riser height. Total run equals tread depth times the number of treads, and every riser must stay identical.

  • Total rise is the finished floor height minus the finished floor height below.
  • A 32-inch total rise divided by 7 gives 4.57, so round to 5 risers at 6.4 inches.
  • Typical code limits are a 7.75-inch maximum riser and a 10-inch minimum tread depth.
  • Stringer length equals the square root of total rise squared plus total run squared.
  • Many codes limit variation between the tallest and shortest riser to about 3/8 inch.
Ready to build a code-compliant stair?Westfire Stair Parts stocks treads, risers, and stringers with expert design help.
Shop Stair Parts

Table of Contents

Stair Rise and Run Formula: The Two Numbers That Drive Every Layout

Every safe staircase comes down to two measurements. Stair rise is the total height the stairs climb, and stair run is the total depth they travel. Get your stair rise and run right and the rest of the layout falls into place.

  • Total rise = finished floor height minus finished floor height below
  • Riser height = total rise ÷ number of risers
  • Total run = tread depth × number of treads

Every experienced builder knows the same thing: measure twice, cut once, and never trust a rough opening to be square.

The International Residential Code sets the limits most inspectors enforce. We will walk through each step below, from measurement to stringer layout, so your stair passes inspection the first time.

How to Measure Stair Stringers After You Set Riser Height and Tread Depth

A stair stringer is the angled board that carries the treads and risers. To measure one, you need total rise, total run, and stringer length, the first two from the calculations above, the third from the Pythagorean theorem.

Carpenter marking riser and tread lines on a wooden stair stringer with a framing square in a workshop
Carpenter marking riser and tread lines on a wooden stair stringer with a framing square in a workshop

Here is the process, using a worked example: total rise 35 inches, riser height 7 inches, tread depth 10 inches, 5 risers and 4 treads.

  1. Confirm the count. 35 ÷ 7 = 5 risers. Because the top tread is the finished floor, the stringer carries 4 treads. Total run = 10 × 4 = 40 inches.
  2. Set the framing square. Set the tongue to the riser height (7 inches) and the blade to the tread depth (10 inches). Clamp a stair gauge on each leg.
  3. Step the square down the board. Mark the riser line on the tongue and the tread line on the blade, then slide the square down so the tread mark meets the previous riser mark. Repeat for every riser and tread.
  4. Count the marks. You should have one more riser line than tread line. If not, recheck the square setting before cutting.
  5. Measure the diagonal for stringer length. Stringer length = √(total rise² + total run²). For the example: √(35² + 40²) = √2,825 ≈ 53.2 inches. Add 6 to 12 inches of tail at the top and bottom.

A common mistake is forgetting the tread thickness. The top riser is shorter by the thickness of the tread you install, so the stringer layout must account for that drop before you cut the first riser line. If you are buying treads and risers together, browse our stair parts, stair treads and risers to match thickness before you cut.

Watch out: if you mark the stringer from the top down without accounting for the top tread thickness, the first riser will be short and the top step will feel like a trip ledge, mark the top cut last.

Number of Stairs for a 32-Inch Rise and Other Awkward Heights

A 32-inch total rise is a good example of an awkward height. Divide 32 by a target riser of 7 inches and you get 4.57. Round to 5 risers, giving a riser height of 6.4 inches, comfortably inside code.

  • Riser: the vertical distance from the top of one tread to the top of the next tread (also the vertical face board).
  • Step: one riser plus one tread, the unit you actually climb.
  • Tread: the horizontal surface you step on.
  • Total run: the horizontal distance from the face of the first riser to the face of the last riser, equal to tread depth × number of treads.
  1. Divide total rise by your target riser height.
  2. Round to the nearest whole number of risers.
  3. Divide again to get the exact riser height.
  4. Keep every riser identical.

Here is how that plays out across a few heights, using a 7-inch target and a 7.75-inch code maximum:

Total rise ÷ 7 Rounded risers Exact riser height Verdict
32 in 4.57 5 6.40 in Comfortable
36 in 5.14 5 7.20 in Within code
42 in 6.00 6 7.00 in Ideal
45 in 6.43 6 7.50 in Within code, near limit
48 in 6.86 7 6.86 in Comfortable
54 in 7.71 7 7.71 in At the code limit, verify locally

Two patterns are worth noticing. When the division lands close to a half step (like 4.57 or 6.43), rounding up usually produces a shorter, more comfortable riser; rounding down produces a taller one that may crowd the code maximum. When the exact riser height lands within about 1/8 inch of the 7.75-inch maximum, check with your inspector before cutting.

Uneven risers are a common trip hazard on home stairs, and many codes limit variation between the tallest and shortest riser to about 3/8 inch. Once you have your count, pick a matching riser. Our 8075 red oak stair riser is a solid choice for a clean, code-compliant finish.

8075 Red Oak Stair Riser
8075 Red Oak Stair Riser

Exact riser height for different total rises

32 in total rise 6.40 in
36 in total rise 7.20 in
42 in total rise 7.00 in
45 in total rise 7.50 in
48 in total rise 6.86 in
54 in total rise 7.71 in

Checking Your Rise and Run Against Building Code Before You Cut

Building code is not optional. The International Code Council sets model rules, but your local authority has the final say. Always confirm with your inspector before cutting.

The standard limits most jurisdictions follow:

Measurement Typical Code Limit
Maximum riser height 7.75 inches
Minimum tread depth 10 inches
Maximum riser variation 3/8 inch
Minimum headroom 6 feet 8 inches

Before you cut, verify your tread depth and riser height against these limits. Then order the correct tread to cut and install, such as our 8070 red oak stair tread.

8070 Red Oak Stair Tread
8070 Red Oak Stair Tread

Watch out: a stair that passes on paper can still fail inspection if the first and last risers do not match the finished flooring. Check your floor thickness before you finalize the numbers.


Getting stair rise and run right is the difference between a staircase that passes inspection and one that gets torn out. At Westfire Stair Parts, we stock over 11,000 stair components, offer custom manufacturing to your specs, and provide expert design help from people who have done this for three decades. Get started with Westfire Stair Parts and build a staircase that is both beautiful and code-compliant.

Frequently Asked Questions

How do I calculate rise and run for stairs?

Measure the total rise from finished floor to finished floor, then divide by a target riser height near 7 inches. Round to a whole number of risers and divide again to get the exact riser height. For the run, pick a tread depth of at least 10 inches and multiply by the number of treads, which is one fewer than the number of risers. That gives your total run and the rise-and-run pair you use for stringer layout.

How many stairs do I need for a 32-inch rise?

A 32-inch rise works out to four risers at 8 inches each, or five risers at 6.4 inches each. Four risers means three treads, which is a short, steep flight that most residential codes will reject because the riser exceeds the usual 7.75-inch maximum. Five risers at 6.4 inches is within typical limits and gives you four treads. Confirm the maximum riser height in your local code before you commit.

What is the 7-11 rule for stairs?

The 7-11 rule is a shorthand for a comfortable stair: roughly 7-inch risers paired with 11-inch treads. It comes from the idea that one riser plus one tread should total about 17 to 18 inches, which matches an average stride. It is a design guideline, not a code requirement. Codes set maximum riser height and minimum tread depth, so check those numbers locally and treat 7-11 as a comfort target rather than a rule you must hit.