Stair Calculator

Calculate stair dimensions with riser height, tread depth, and stringer length. Checks building code compliance.

By Konstantin Iakovlev · Updated September 2026 · Source: 2021 International Residential Code, Section R311.7 (Stairways)

in
in
in
in

Number of Risers

14

Number of Treads

13

Actual Riser Height

7.71"

Stair Dimensions

Number of Risers14
Number of Treads13
Actual Riser Height7.714"
Tread Depth10.0"
Total Run130.0" (10.8 ft)
Stringer Length169.0" (14.1 ft)
Stair Angle39.7°
Comfort Rule (riser + tread)17.7" (ideal: 17-18")

Code Compliance (IRC Residential)

Max Riser Height (7.75")PASS
Min Tread Depth (10")PASS
Min Width (36")PASS
Max Rise per Flight (151")PASS
These Four ChecksAll four passed

Headroom (6 ft 8 in), nosings on treads under 11 inches, handrails on flights of four or more risers and landing sizes are not checked here; your local building department applies the code edition it has adopted.

Use the Stair Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only. Results are estimates from the numbers you enter and the assumptions described on this page; check them against local building codes, product specifications and current prices, and have structural, electrical or gas work designed or checked by a licensed professional.

How It Works

Getting a staircase right comes down to three measurements working together: riser height, tread depth, and stringer length. Enter your total rise and run, and the calculator works out each value so that every step lands at the same slope, the foundation of a stairway that feels natural underfoot and passes inspection on a renovation or new build.

The math here follows the International Residential Code limits: risers no taller than 7.75 inches, treads at least 10 inches deep, and at least 6 feet 8 inches of headroom measured straight up from the line of the stair nosings (IRC R311.7). With your total rise and run in hand, the tool applies basic trigonometry to derive the stringer length, holding the angle constant across the full run so no single step feels off.

Local jurisdictions sometimes tighten these IRC figures, so confirm what your building department enforces before you cut lumber. Landings deserve the same attention as the steps themselves: keep each one at least as wide as the stairway and no less than 36 inches deep in the direction of travel. Skip that and you invite both failed inspections and a real tripping hazard. Beyond riser, tread and width, the IRC also caps a single flight at 12 feet 7 inches (151 inches) of rise between floors or landings (R311.7.3), requires a 3/4 to 1 1/4 inch nosing on treads shallower than 11 inches (R311.7.5.3), and requires a handrail 34 to 38 inches above the nosings on any flight with four or more risers (R311.7.8), so check those on your plan as well.

Example: Building a Deck Staircase

  1. 1 Input: total rise 68 inches (ground to a 5'8" deck surface), desired riser height 7.5 inches, tread depth 10.5 inches, stair width 36 inches.
  2. 2 Risers: 68 / 7.5 = 9.07, rounded to 9 risers, so each is 68 / 9 = 7.56 inches. Treads: a stair has one fewer tread than risers, so 8 treads × 10.5 inches = 84 inches of total run.
  3. 3 Stringer length: √(68² + 84²) = √11,680 = 108.1 inches (9.0 ft), at a 39.0° angle. Riser plus tread is 7.56 + 10.5 = 18.1 inches, just outside the 17-18 inch comfort band the calculator flags.
  4. 4 Code check: 7.56 inches is under the 7.75-inch maximum, 10.5 inches meets the 10-inch minimum and 36 inches meets the width minimum, so all three checks pass. Because the treads are under 11 inches the IRC also requires a 3/4 to 1 1/4 inch nosing, and with nine risers the flight needs a handrail 34 to 38 inches high.

Source: 2021 International Residential Code, Section R311.7 (Stairways) · Last updated: September 2026

Frequently Asked Questions

What is the standard stair riser height and tread depth?
The IRC building code requires a maximum riser height of 7.75 inches and minimum tread depth of 10 inches. The ideal comfortable ratio is a 7-inch riser with an 11-inch tread.
How do I calculate the number of stairs I need?
Divide the total rise (floor-to-floor height) by your desired riser height. For example, a 9-foot (108-inch) floor height divided by 7-inch risers equals about 15-16 steps.
What is the 7-11 rule for stairs?
The 7-11 rule is a guideline recommending a 7-inch riser height and 11-inch tread depth for comfortable, code-compliant stairs. Another common formula is that the riser plus tread should equal 17 to 18 inches.