Stair Calculator: Rise, Run, Treads and Stringer Length

Updated November 11, 2026 · buildcalc.io editorial team

Stair rise, run & stringer code calculator

1. Finished floor-to-floor dimensions (inches)
Risers
15
Treads
14
Actual riser height
7.2 in
Total horizontal run
143.5 in
Stringer length (nosing line)
179.6 in
Slope angle & 2x12 throat
35.1° · 5.4" throat

IRC R311.7 limits residential stair risers to 7.75 in maximum, treads to 10.0 in minimum (with nosing where required), and 6 ft 8 in minimum headroom.

Enter the total rise from finished floor to finished floor, the riser height you are aiming for and the tread depth. The calculator chooses the whole number of risers that gets closest to your target, finds the exact riser height, and gives the total run, the stringer length and the angle. It then checks the result against the residential limits in the 2021 International Residential Code or the workplace limits in OSHA’s stair standard.

Why the numbers come out the way they do

Every step in a flight must be the same height, so the total rise has to divide into equal risers. You cannot pick 7 inches and 7 inches only, because the floor-to-floor height is fixed. You pick a whole number of risers and let the riser height fall out of the division.

risers = round( total rise ÷ target riser height ) riser height = total rise ÷ risers treads = risers − 1 total run = treads × tread depth stringer length = sqrt( total rise² + total run² ) angle = atan( riser height ÷ tread depth )

The calculator also keeps the riser under the code limit. If rounding would leave the riser taller than the maximum, it adds a riser.

The code limits it checks

For houses, the 2021 IRC section R311.7 sets, among other things:

  • Riser height: not more than 7 3/4 inches, measured vertically between the leading edges of adjacent treads.
  • Tread depth: not less than 10 inches, measured horizontally between the vertical planes of the foremost projection of adjacent treads.
  • Uniformity: the greatest riser in a flight cannot exceed the smallest by more than 3/8 inch, and the same goes for tread depth.
  • Vertical rise: a flight cannot rise more than 12 feet 7 inches between floor levels or landings.
  • Width: at least 36 inches clear above the handrail height and below the headroom height.
  • Headroom: at least 6 feet 8 inches, measured vertically from the sloped line adjoining the tread nosings.
  • Nosings: a projection of at least 3/4 inch and no more than 1 1/4 inches, not required where the tread is 11 inches deep or more.
  • Handrail: on at least one side of any flight with four or more risers, 34 to 38 inches high measured from the sloped plane of the nosings.
  • Landings: a floor or landing at the top and bottom of each stairway, at least as wide as the flight.

Those are minimums for one- and two-family dwellings under the model code. Your jurisdiction may have adopted a different edition or amended these numbers, so check with your building department.

For workplaces, OSHA’s 29 CFR 1910.25 requires standard stairs to be installed at angles between 30 and 50 degrees from the horizontal, with a maximum riser of 9.5 inches and a minimum tread depth of 9.5 inches, uniform riser heights and tread depths between landings, and vertical clearance of at least 6 feet 8 inches. OSHA’s Table D-1 pairs the riser and tread run, for example a 7 inch riser with a 10 1/2 inch tread run at 33°41’. Use the selector at the top of the calculator to switch between the two rule sets.

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

Total rise 108 in, target riser 7 in, tread 10 in:

  • 108 ÷ 7 = 15.43, so 15 risers
  • riser height = 108 ÷ 15 = 7.2 in, under the 7 3/4 in limit
  • treads = 14, and total run = 14 × 10 = 140 in (11 ft 8 in)
  • stringer = sqrt(108² + 140²) = 176.8 in, about 14 ft 9 in tip to tip
  • angle = atan(7.2 ÷ 10) = 35.8°

Worked example 2: a rise that does not divide evenly

Total rise 111 1/4 in (111.25), target riser 7 in, tread 10 1/2 in:

  • 111.25 ÷ 7 = 15.89, so 16 risers of 6.953 in
  • 15 treads × 10.5 = 157.5 in of run
  • stringer = 192.8 in, and the angle is 33.5°

Compare the other rounding: 15 risers would be 7.417 in, still legal. The calculator picks the whole number nearest your target. If you prefer a gentler or steeper stair, change the target and watch the number of risers step up or down.

Worked example 3: a deck 30 inches off the ground

Total rise 30 in, target riser 7 in, tread 10 in:

  • 30 ÷ 7 = 4.29, so 4 risers of 7.5 in and 3 treads, giving a 30 in run
  • four risers is the point at which the IRC requires a handrail on at least one side

A deck at 28 in would produce a 7 in riser with four risers, and one at 20 in gives three risers, which falls below the handrail trigger.

Worked example 4: a rise that is too tall for one flight

Total rise 156 in (13 ft):

  • the calculator warns that the rise is over 151 in, the 12 ft 7 in limit between floors or landings
  • add an intermediate landing and split the rise, for example into two flights of 78 in
  • each 78 in flight gives 11 risers of 7.09 in, 10 treads and 100 in of run

Measuring the total rise

Measure from the finished floor at the bottom to the finished floor at the top. If either floor is not finished yet, add the thickness of the flooring that is still to go down, or the riser heights will not match once it is installed. Measure at the point where the stair will land, not at the wall, because slabs and framed floors are not always level.

The IRC says dimensions for these checks are exclusive of carpets, rugs or runners. A thick tread or carpet therefore does not change the measurement the inspector uses. The code also measures the risers and treads to the leading edges, so measure at the nosing.

Cutting the stringer

The stringer length from the calculator is the straight-line distance between the nosing points. A real board needs to be longer, because the cuts at the top and bottom and the depth of the notches take extra length. A stringer that is the same size as the straight line leaves no room for the cuts, so buy a board with the extra, and mark the notches using a framing square set to the riser and tread. For a riser of 7.2 in and a tread of 10 in, the square is set to 7 3/16 and 10 at the nearest 1/16 (7.2 in is 7 3/16 rounded to a sixteenth).

Bottom and top steps need an allowance for the thickness of the tread material, because the first riser is measured from the floor and the others are measured from the top of the tread below. If you do not make that allowance, the first riser will be too tall or too short by the thickness of a tread, and the code’s 3/8 inch uniformity limit is quickly used up.

Common mistakes

  • Counting treads as risers. There is always one fewer tread than riser.
  • Measuring the rise before the finished floor is down. Add the thickness of the flooring you are missing.
  • Rounding the riser height by hand. A small error multiplied by 15 steps can be an inch at the top. Let the calculator divide the total.
  • Forgetting headroom. 6 ft 8 in of clear height is measured vertically from the sloped line along the nosings.
  • Using a stair with no landing for a very tall rise. The IRC stops at 12 ft 7 in.

If you are framing the walls around the stair, the stud spacing calculator counts studs, and the fence post calculator helps with the railing posts on a deck. For the roof above, see the rafter length calculator. The framing hub has the rest.

PartnerJobsite Tool & Fastener Spec Strip
Supplier links may earn a commission at zero extra cost to you · Disclosure
16" × 24" Anodized Framing Square + Tall Brass Stair Gauges

Locks exact unit rise & unit run repeatability across every stringer

Adjustable Aluminum Stair Tread & Riser Template Jig

Captures out-of-square wall angles for tight finished treads

Concealed Stringer-to-Header Metal Strap Connectors

IRC-compliant bearing support at top ledger & landing header

Dimensional Lumber & LVL Section Properties (AWC NDS / PS 20)

Nominal vs. actual dressed dimensions, cross-sectional area A, section modulus S, moment of inertia I, board-foot factor, and unit weights.

Nominal Size Actual (b × d) Area A (in²) Section Mod. S (in³) Inertia I (in⁴) BF / lin ft Dry Wt (lb/ft)
2x41.5" × 3.5"5.253.0635.3590.66671.28
2x61.5" × 5.5"8.257.56320.79712.01
2x81.5" × 7.25"10.87513.14147.6351.33332.64
2x101.5" × 9.25"13.87521.39198.9321.66673.37
2x121.5" × 11.25"16.87531.641177.97924.1
4x43.5" × 3.5"12.257.14612.5051.33332.98
4x63.5" × 5.5"19.2517.64648.52624.68
6x65.5" × 5.5"30.2527.72976.25537.35
1-3/4x9-1/2 LVL1.75" × 9.5"16.62526.323125.0341.66674.85
1-3/4x11-7/8 LVL1.75" × 11.875"20.78141.13244.20726.06
1-3/4x14 LVL1.75" × 14"24.557.167400.1672.33337.15

Reference standard: AWC National Design Specification (NDS) Supplement & NIST PS 20. Click any column header to sort or click a highlighted preset pill inside the calculator to auto-fill values.

PartnerHiring Out This Stair Job?
Free quote matching · Zero PII stored on buildcalc.io · Disclosure

Enter your ZIP or postal code to compare bids from vetted local finish & stair framing carpenters matched to your calculated scope.

Frequently asked questions

How do you calculate the number of stair risers?

Divide the total rise, floor to floor, by the riser height you want, and round to the nearest whole number. Then divide the total rise by that whole number to get the exact riser height. A 108 in rise at a 7 in target gives 15.4, so 15 risers of 7.2 in each.

How many treads are there compared with risers?

One fewer. The top riser ends at the upper floor, which acts as the last tread. Fifteen risers means 14 treads.

What is the maximum riser height for a home?

The 2021 International Residential Code sets it at 7 3/4 inches, measured vertically between the leading edges of adjacent treads. The tread depth must be at least 10 inches. The tallest riser in a flight cannot exceed the shortest by more than 3/8 inch, and the same limit applies to treads.

How high can one flight of stairs go?

The IRC limits a flight to a vertical rise of 12 feet 7 inches between floor levels or landings. A taller rise needs an intermediate landing.

Do I need a handrail?

The IRC requires a handrail on at least one side of every flight with four or more risers, at a height of 34 to 38 inches measured vertically from the sloped line along the tread nosings. Check your local code, which may add requirements.

Sources

  1. 2021 International Residential Code, Chapter 3, section R311.7 Stairways (width, headroom, vertical rise, risers, treads, nosings, landings, handrails), International Code Council, accessed November 2026.
  2. 29 CFR 1910.25 Stairways (workplace stair angle, riser and tread limits, Table D-1), Occupational Safety and Health Administration, accessed November 2026.