Stair Calculator

Calculate stair dimensions, rise, run, angle, stringer length, headroom, tread sizing, and building-code-friendly stair layouts with advanced visualization tools.

Stair Inputs

Quickly compute stair rise, run, angle, and stringer length from a total rise and run.

floor to floor
in
in
IRC max 7¾″ residential
in

Real-world templates

What Is a Stair Calculator?

A stair calculator is an architectural planning tool that converts a vertical rise and a desired stair length into a precise step-by-step layout — number of risers, individual rise height, tread depth, stair angle, stringer length, headroom, and footprint. It replaces tedious paper math and prevents the small arithmetic errors that turn a stair into a code violation, a tripping hazard, or a budget overrun on materials.

This planner runs five integrated modes — a quick Basic calculator for first-pass layouts, a Comprehensive Planner with tread thickness, mount type, headroom and floor structure, a Stringer Calculator with cut-by-cut guides, a Spiral Stair calculator for circular flights, and a Building Code Checker that grades any layout against IRC residential and IBC commercial thresholds. Use it alongside our unit converter when switching between feet, inches, and metric, or our scientific calculator for related construction math.

How Stair Geometry Works

Rise vs run

Rise is the vertical distance between two consecutive tread surfaces. Run is the horizontal distance you cover with each step. Total rise is floor-to-floor; total run is the projected horizontal length of the stair.

Number of steps

Stairs feel comfortable when each rise lands close to a target between 6 and 7¾ inches. Number of steps = round(total rise ÷ preferred rise). Once you pick the count, rise = total rise ÷ steps.

Stringer geometry

The stringer is the diagonal board that supports each tread. Its length is the hypotenuse of the rise-and-run triangle: stringer = √(totalRise² + totalRun²). Its slope sets the stair angle.

Blondel comfort

Architect François Blondel observed in 1675 that the most comfortable stairs satisfy 2R + T ≈ 24–25 inches. The rule still holds: trade rise for tread on a 2:1 basis to stay comfortable.

Six Ways to Use This Calculator

  1. 1

    Quick rise + run check

    Punch in the floor-to-floor rise and a tread you like; the Basic mode tells you exactly how many steps you need and how steep the result is.

  2. 2

    Plan a full residential stair

    Comprehensive mode adds tread thickness, mount type, floor opening, headroom, and width — the inputs an architect or builder actually has.

  3. 3

    Frame a stair stringer

    Stringer mode shows the cut-by-cut layout you transfer onto a 2×12 board with a framing square. Skip the guess-work on rough framing.

  4. 4

    Design a spiral stair

    Spiral mode handles diameter, pole, rotation, and walk-line geometry for tight residential flights, lofts, and decorative architectural spirals.

  5. 5

    Validate code compliance

    Code Checker mode grades any layout against IRC R311 and IBC 1011 — rise, tread, headroom, angle, and Blondel comfort — with pass/warn/fail signals.

  6. 6

    Export a clean report

    Every result has a one-click printable report — drop it into permits, project plans, or contractor handoffs without retyping a single dimension.

Stair Design Best Practices

  • Stay inside 30°–37°. The natural human walking slope. Anything steeper feels like a ladder; anything shallower wastes floor space.
  • Pick a tread depth ≥ 11″ when space allows. Two extra inches of tread is the single largest comfort win on residential stairs.
  • Hold every riser within 3⁄8″ of every other. Inconsistent risers are the #1 cause of stair falls; both IRC and IBC enforce the limit.
  • Keep the 80″ headroom clearance. Cut the floor opening longer rather than steeper — a tight opening with a steep stair is dangerous and looks rushed.
  • Use a single 2×12 stringer with a 3½″ throat. The minimum residual depth that's not weakened by repeated triangle cuts.
  • Add a nosing of ¾″–1¼″. Increases effective tread depth, looks balanced, and gives shoes a reliable grip point.

Why Accurate Stair Math Matters

Stairs are one of the few elements of a building that you touch directly with your feet, every single day. A stair that is even half an inch out of proportion will feel wrong — eyes don't lie to feet — and a stair that violates the 3⁄8″ riser-consistency rule is statistically the most dangerous walking surface in the home.

Beyond comfort, stair math drives material order quantities. Stringers, treads, risers, finish boards, and balusters all scale off the same handful of numbers. A 1″ error compounds across all of them; a 5° angle error can mean ordering the wrong stringer length entirely. Get the math right once, on paper, and every downstream choice — framing, finishing, code review, even handrails — follows naturally.

Tricky Stair Cases

Out-of-spec finished floors

Real construction rarely lands the upper floor exactly where the drawings expected. Measure the actual finished-floor-to-finished-floor rise and recompute — a ½″ deviation across 14 steps is a real comfort and code problem.

Landings mid-flight

Long flights require an intermediate landing every 12 feet of vertical rise per IRC R311.7.6. Split the calculation into two stairs that share the landing as their common reference plane.

Winders and turned stairs

Winders (pie-shaped treads in a turn) must meet the IRC 6″ walk-line minimum at the narrow end and full tread depth at the walk-line. Treat each winder section as its own stair.

Open-sided stringers

An open stringer notch removes wood from the stringer's structural cross-section. Maintain at least a 3½″ throat below every cut, and select a beefier board (2×14 or LVL) for stairs wider than 42″.

Deck stairs with frost heave

Outdoor stairs sit on footings that move seasonally. Allow ½″ of vertical adjustment between the deck and the bottom landing — and detail it with a bolt-on stringer base, not a permanent ledger.

Tiny-home alternating-tread

Alternating-tread stairs sneak under 8″ of footprint per step and exceed IRC 38°. Allowed only where loft access is granted; treat them as a specialty fixture, not a primary stair.

Core Stair Formulas

Every number this calculator produces comes from a small set of closed-form equations. Total rise (H) is the floor-to-floor vertical distance; total run (L) is the horizontal projection; N is the number of risers (steps).

Number of steps

N = round(H ÷ R_target)

Pick a target rise (commonly 7″) and round the rise count up or down to the nearest whole number.

Rise per step

R = H ÷ N

Once N is fixed, rise is exactly the total rise divided by the count. Round in the calculator, not in the head.

Tread depth

T = L ÷ (N − 1)

Stairs have one fewer tread than rise because the top step is the landing surface itself.

Stair angle

θ = atan(H ÷ L)

The pitch of the stair — must stay below the IRC 38° maximum and ideally inside 30–37°.

Stringer length

S = √(H² + L²)

Hypotenuse of the rise-and-run triangle. Add 2–4″ at each end for mounting cuts and a bottom plate.

Blondel comfort

2R + T ≈ 24–25″

Trade rise for tread on a 2:1 basis. A 7″ rise pairs naturally with a 10–11″ tread; an 8″ rise wants a 8–9″ tread.

Common Stair Design Mistakes

Using one fewer or one more step

Off-by-one is the most common stair error. The relationship between rise count and tread count is always treads = steps − 1; getting it wrong changes total run by a full tread.

Forgetting the finished floor

Plans measure from sub-floor to sub-floor. Add the thickness of finished flooring on both levels — a ¾″ hardwood plus ½″ underlayment can move total rise by more than an inch.

Skipping the nosing in tread depth

Tread depth is the horizontal distance from one riser face to the next — not including the nosing overhang. Counting the nosing inflates the depth and lowers your code margin.

Designing past the headroom

A stair that's geometrically sound can still trap heads against the upper floor opening. Always sanity-check the 80″ headroom along the entire stair line, not just at one point.

Cutting all stringers at once

Mark and cut one stringer, drop it in place, and verify against the actual rise. Then transfer to the remaining boards. Subtle floor variations make pre-batched stringers a recipe for misaligned treads.

Ignoring local amendments

IRC and IBC are model codes — many jurisdictions amend them. California Title 24, NYC Building Code, and Massachusetts 780 CMR each add stricter rise/run rules. Check the actual code adopted in your jurisdiction.

Built for architects, builders, designers, inspectors, and serious DIY remodelers.

Code thresholds cross-checked against the 2024 IRC and 2024 IBC — see our methodology and editorial policy. Educational only — always have a final stair design reviewed by a licensed designer, contractor, or your local building authority.

Frequently Asked Questions

Start with the total rise (floor-to-floor vertical distance) and pick a target rise per step — usually 7 inches for residential. Number of steps = round(total rise ÷ target rise). Rise per step = total rise ÷ number of steps. Tread depth = total run ÷ (number of steps − 1), because the top step is the landing surface. Stringer length is the hypotenuse: √(rise² + run²). Stair angle is atan(rise ÷ run).

Rise is the vertical distance from the top of one tread to the top of the next. Run is the horizontal depth of one tread. Total rise is the floor-to-floor vertical distance; total run is the horizontal length of the entire stair. Building codes set both: IRC limits residential rise to 7¾ inches and requires at least 10 inches of tread; IBC for commercial sets a 7-inch rise and 11-inch tread.

A stringer is the diagonal structural board that runs from the bottom landing to the top, supporting each tread. Open-cut stringers have triangular notches cut for each step; closed stringers are routed or dado-grooved. Most residential stairs use two outer stringers plus a center stringer for treads wider than 36 inches. A 2×12 with a 3½ inch throat is the standard board.

Between 30° and 37°. Below 30° feels long but easy; above 37° starts to feel like a ladder. The IRC residential code caps the angle at 38° (combination of 7¾ inch rise and 10 inch tread); IBC commercial caps it nearer 32° (7 inch rise, 11 inch tread). A 37° pitch with a 7 inch rise and 9¼ inch tread is a typical compact residential layout; a 32° pitch with a 7 inch rise and 11 inch tread is the comfortable commercial standard.

Divide the total floor-to-floor rise by your preferred rise per step and round. For a standard 9-foot ceiling with 12 inches of floor structure (108 inches total) and a 7 inch target rise, you'd land on 108 ÷ 7 ≈ 15.4 → 15 steps. Each step then becomes 108 ÷ 15 = 7.2 inches — comfortably within IRC's 7¾ inch maximum.

The vertical clearance from any point on the stair surface to whatever is directly above — usually the underside of the upper floor opening. IRC R311.7.2 and IBC 1011.3 both require a minimum of 6 feet 8 inches (80 inches, 2032 mm). Headroom is checked perpendicular to the slope; the most common failure is a floor opening that is too short, forcing the stair past someone's head height as they descend.

The horizontal distance from one riser face to the next — not including the nosing overhang. IRC requires at least 10 inches of tread depth for residential stairs; IBC requires 11 inches for most commercial occupancies. Deeper treads are dramatically safer: shoe length is roughly 11 inches, so a tread less than 10 inches forces the heel to overhang the next riser, which is the geometry that causes most stair falls.

Seven inches is the default residential target — Andrea Palladio recommended it 450 years ago and modern ergonomics back him up. The IRC R311.7.5.1 maximum is 7¾ inches; the IBC commercial maximum is 7 inches. Rises shorter than about 4 inches feel shuffly and add unnecessary length to the stair. Consistency matters even more than the value itself: all rises in a single flight must be within ⅜ inch of each other.

Closed-form geometry is exact to within the precision of your inputs — the rise, run, and angle outputs carry no error beyond rounding. Code-compliance results are based on the 2024 IRC and 2024 IBC and assume the most-common occupancy and ramp classifications. Field stairs are always subject to local amendments, finished-floor variations, and inspector judgement; treat the calculator as a high-quality design tool and confirm any permit-stage geometry against the code edition adopted in your jurisdiction.

In the United States the two dominant references are the IRC (International Residential Code, used for one- and two-family dwellings) and the IBC (International Building Code, used for commercial, multifamily, and institutional buildings). Both set rise (≤ 7¾ inches IRC, ≤ 7 inches IBC), tread (≥ 10 inches IRC, ≥ 11 inches IBC), headroom (≥ 80 inches), and stringer spacing rules. State and city amendments — California Title 24, NYC Building Code, Massachusetts 780 CMR — can override the model code. The OSHA workplace standard 1910.25 imposes a separate set of rules for industrial stairs.