Skip to main content

Stair Calculator

Design code-compliant stairs with the right rise, run, and materials

EVT·T167
IRC-Compliant Stair Designer

About the Stair Calculator

The Stair Calculator computes uniform rise, tread depth, step count, stringer length, and total run for any floor-to-floor height, then validates every dimension against IRC R311.7 residential code (max 7.75" rise, min 10" tread, ≤3/8" variation between any two risers, 36" minimum landing, 6′8" headroom). A real-time side-view diagram draws on HTML5 Canvas as you type, with color-coded pass/fail indicators on each constraint. The Blondel comfort formula (2R + T = 25 in) flags geometries that pass code but feel steep underfoot.

It is built for DIY homeowners adding a deck or basement stair, contractors sanity-checking dimensions before cutting stringers, designers laying out interior stairs in early plans, and homeowners-association reviewers verifying contractor submittals meet code before approval.

All calculation and rendering runs locally in JavaScript. Floor heights, run lengths, and dimensional inputs never leave the device — the page makes no network call after first load, and the canvas diagram is drawn entirely client-side.

Output is for planning, not permitting. Local jurisdictions often amend IRC — some require 7" max rise instead of 7.75, some add winder-tread restrictions for spirals, some require code-compliant guards for any drop > 30". Pull a permit and consult your local building department before cutting stringers. Measure floor-to-floor finished surface to finished surface (after flooring is installed); a 3/4" hardwood layer not accounted for is the classic source of an out-of-spec top riser. The headroom and handrail checks in premium mode are required by IRC and frequently fail in basement-stair retrofits.

Privacy100% client-side · no measurements transmitted
CodeIRC R311.7 · Blondel comfort formula
Last reviewed2026-05-14 by Dennis Traina
in
in
Available run (leave blank for optimal)
in
Tread thickness
in
Nosing projection
Stringer mount type
Number of Risers
0
Riser Height
0.00 in
Tread Depth
0.00 in
Stair Angle
0.0°
Total Run
0.00 in
Stringer Length
0.00 in
Number of Treads
0
IRC Code Check Requirement Your Value Status
Max Riser Height ≤ 7.75 in -- --
Min Tread Depth ≥ 10 in -- --
Max Nosing ≤ 1.25 in -- --
2R+T Comfort Rule 24–25 in -- --
R+T Rule 17–18 in -- --

Materials Shopping List

Materials shopping list requires subscription

Headroom Clearance Check

in
Ceiling height above stair start
Headroom clearance check requires subscription

Handrail & Baluster Calculator

Handrail & baluster calculator requires subscription
Save requires subscription
137 Foundry — custom app building studio

How to Use the Stair Calculator

Start by entering your total rise — the vertical distance from one finished floor level to the next. This single measurement drives every other calculation. If you know the horizontal space available for the stairway, enter the available run as well; otherwise leave it blank and the calculator will determine the optimal run based on code-compliant tread depth. Adjust tread thickness and nosing projection to match your lumber choices, then watch the side-view diagram and code compliance table update instantly.

Understanding Riser Height and Tread Depth

The riser is the vertical face of each step, while the tread is the horizontal surface you walk on. The International Residential Code (IRC Section R311.7.5) sets a maximum riser height of 7.75 inches (196.85 mm) and a minimum tread depth of 10 inches (254 mm), measured from nosing to nosing. These limits exist because stairs outside this range become either uncomfortably steep or dangerously shallow. Residential stairs typically land between 7 and 7.5 inches per riser with 10 to 11 inches of tread — a sweet spot that most adults navigate without conscious effort.

When the calculator divides total rise by a trial number of risers and the result exceeds 7.75 inches, it automatically adds another riser until the height per step falls within code. This iterative approach guarantees every design it produces is buildable without a variance.

The Comfort Rules: 2R+T and R+T

Building code compliance is the legal minimum, but comfort rules separate a staircase people tolerate from one they enjoy using. The 2R+T rule adds twice the riser height to one tread depth — the ideal result falls between 24 and 25 inches. A staircase at 2R+T = 24.5 inches matches the natural stride length of an average adult, reducing fatigue and perceived steepness. The R+T rule simply adds the riser and tread together, targeting 17 to 18 inches. Both rules originated from 17th-century French architect François Blondel, and modern ergonomic research continues to validate his proportions.

Stringer Layout and Cutting

The stringer is the diagonal structural member that supports the treads and risers. Its length is determined by the Pythagorean theorem — the square root of total rise squared plus total run squared. A standard 2×12 board is 11.25 inches wide; after cutting the triangular notches for each step, the remaining wood at the narrowest point (called the throat) must be at least 3.5 inches to maintain structural integrity. If your riser height and tread depth combination leaves less than 3.5 inches of throat, you need a deeper starting board or an engineered solution.

The mount type matters at the top of the staircase. A top flush mount means the last riser is cut at the same height as every other riser and the upper floor acts as the final tread. A top overlap mount adds one additional tread that sits level with the upper floor — common when the landing is framed separately from the stair carriage.

Nosing Requirements

Nosing is the portion of the tread that overhangs the riser below. IRC Section R311.7.5.3 limits nosing projection to a maximum of 1.25 inches and requires a minimum of 0.75 inches when nosing is provided. The standard 1-inch nosing used in most residential construction falls comfortably within code. Nosing improves foot placement on descent — your heel catches the overhang if you misstep — but excessive nosing creates a trip hazard because the toe can catch under the lip during ascent.

Headroom and Clearance

IRC Section R311.7.2 requires a minimum of 6 feet 8 inches (80 inches) of headroom measured vertically from any tread nosing to the ceiling or any obstruction above. This measurement must be maintained along the entire run of the stairway, not just at the top or bottom. In practice, the critical point is usually where the stairwell opening begins — the further you walk under the upper floor, the lower the effective ceiling becomes. Subscribers can enter their ceiling height above the stair start and this tool will check whether minimum headroom is maintained at every point along the run.

Common Mistakes to Avoid

  • Forgetting floor finish thickness — If the upper floor will have tile or hardwood added later, that changes total rise. Measure from where the finished surfaces will be.
  • Inconsistent risers — IRC R311.7.5.1 requires that the tallest riser and shortest riser differ by no more than 3/8 inch. Plan carefully so framing tolerances do not push the top or bottom step out of range.
  • Ignoring the bottom riser — Tread thickness affects the first riser. If your treads are 1 inch thick, the bottom stringer notch needs to be reduced by 1 inch so the first step matches the rest after the tread board is installed.
  • Underestimating stringer length — Always buy lumber longer than the calculated stringer length. You need extra material at both ends for secure attachment to the header and the landing pad.

For related home improvement calculations, try the Flooring Calculator for materials estimates or the Concrete Calculator for landing pads and footings. Browse all Home & Real Estate tools for more project planning calculators.

Frequently Asked Questions

What's the maximum rise for a stair step?

IRC Section R311.7.5.1 sets the maximum riser height at 7.75 inches for residential stairs. Commercial stairs (IBC) cap at 7 inches. Minimum riser is 4 inches. Variation between risers in a single flight cannot exceed 3/8 inch.

What's the minimum tread depth for stairs?

IRC requires a minimum 10-inch tread depth, measured from nosing to nosing (the horizontal distance you actually walk on). Commercial stairs require 11 inches. Add nosing projection of 3/4 to 1-1/4 inch beyond the riser face for safety. The tread itself can be wider than 10 inches if you skip the nosing.

How many stairs do I need for 9 feet of rise?

9 feet equals 108 inches. Divided by a 7.5 inch target riser gives 14.4, round to 14 risers at 7.71 inches each - code compliant. 14 risers means 13 treads. Total run at 10 inches per tread is 130 inches (10 feet 10 inches). Add landing requirements if the total run exceeds 147 inches.

What is the ideal stair rise-to-run ratio?

The Blondel formula (2R + T = 25 inches) defines the most comfortable geometry, where R is rise and T is tread. A 7-inch rise with an 11-inch tread (2x7+11=25) is ideal. A 7.5-inch rise with a 10-inch tread (2x7.5+10=25) is the code-minimum comfortable ratio. Steeper combinations like 8 and 9 violate code.

Do stairs need a landing?

IRC requires a landing at the top and bottom of every stair flight. Landings must be at least as wide as the stairs and at least 36 inches in the direction of travel. Additional intermediate landings are required every 12 feet of vertical rise. Exterior stairs with three or fewer risers can sometimes skip the bottom landing.

Honey-Do Tracker — home maintenance for landlords and property managers
Honey-Do Tracker — home maintenance for landlords and property managers
137 Foundry — custom app building studio
Link copied to clipboard!