Stair Calculator (Rise, Run, Stringer & Incline Layout)

Calculate exact riser heights, tread depths, stringer lumber lengths, slope pitch angles, total run, and headroom clearance. Built to comply with US International Residential Code (IRC), Canadian NBC, and British Approved Document K standards.

Complete Architectural Guide to Stair Sizing, Rise, Run & Stringer Geometry

Building an interior staircase or exterior deck stairway is among the most demanding tasks in residential carpentry. Unlike walls or floors that forgive small fractional errors, staircases require millimeter precision. Because human beings navigate steps largely by muscle memory, even an irregularity of 3/8 of an inch between consecutive steps creates an immediate tripping hazard.

Whether you are constructing a standard straight flight, an outdoor porch stair, or an enclosed basement staircase in the United States, Canada, or the United Kingdom, mastering stair math ensures compliance with local building inspections and safety for your family. If you are framing adjacent floor framing or laying deck boards, integrate this tool with our Stair Stringer Calculator and Deck Material Calculator.

International Residential Building Codes (IRC) for Staircases

Modern residential stair building codes are strictly enforced to eliminate falls and head injuries. The primary guidelines codified in the International Residential Code (IRC Section R311.7) mandate the following tolerances:

  • Maximum Riser Height: The maximum riser height is 7-3/4 inches (196 mm). In Canada and the UK, residential standards generally cap risers at 7-7/8 inches (200 mm) or 220 mm under British Approved Document K.
  • Minimum Tread Depth: The minimum tread run depth is 10 inches (254 mm) measured horizontally from the nosing of one step to the nosing of the next. When treads do not feature a protruding nosing, the minimum run depth increases to 11 inches.
  • Riser & Tread Uniformity: The greatest riser height within any flight of stairs shall not exceed the smallest by more than 3/8 inch (9.5 mm). The same strict 3/8-inch maximum variation applies to tread depths.
  • Minimum Headroom Clearance: A continuous vertical clearance of not less than 6 feet 8 inches (80 inches / 2032 mm) must be maintained. This distance is measured vertically from the sloped plane tangent to the tread nosings up to the ceiling or header above.
  • Minimum Stair Width: Residential stairs must provide a clear finished walking width of not less than 36 inches (914 mm) above the handrail level.

The Geometry of Stair Mathematics: Core Formulas

A staircase forms a right-angled triangle where the vertical leg is the Total Rise, the horizontal leg is the Total Run, and the hypotenuse is the Diagonal Stringer Length.

1. Calculating Riser Count and Individual Riser Height

To determine how many steps are needed, take the exact floor-to-floor vertical distance (Total Rise) and divide by an optimal target riser height (typically 7.5 inches):

Calculated Risers = Total Rise / Target Riser (e.g., 7.5")
Number of Risers (N) = Round to Nearest Whole Integer
Exact Individual Riser Height (R) = Total Rise / N

Because every whole flight ends on the upper finished floor surface, there is always exactly one less tread than there are risers:

Number of Treads = N - 1

2. Total Horizontal Run Formula

The total horizontal floor space consumed by the staircase (Total Run) is determined by multiplying the number of treads by the chosen horizontal tread depth:

Total Horizontal Run = (N - 1) × Tread Depth (T)

3. Stringer Length (Pythagorean Theorem)

The minimum raw length of lumber required for the structural 2x12 stringer is derived from the right-triangle hypotenuse:

Stringer Length = Square Root [ (Total Rise)^2 + (Total Run)^2 ]

4. Stair Slope / Incline Pitch Angle

The pitch angle relative to the floor level is calculated via inverse trigonometry:

Incline Pitch Angle (θ) = Arctan (Total Rise / Total Run)

For safe residential use, the ideal stair angle falls between 30 degrees and 37 degrees. Angles exceeding 40 degrees become excessively steep and ladder-like, while angles below 25 degrees waste floor space and disrupt natural walking cadence.

The 7-11 Rule and the Blondel Comfort Formula

Centuries of architectural experience have established mathematical formulas to ensure a stair flight feels comfortable and natural to ascend and descend.

The most common traditional rule of thumb is the 7-11 Rule, which proposes an ideal riser of 7 inches and an ideal tread depth of 11 inches. In French and European architectural tradition, this is formalized as François Blondel's Rule (also known as the 2R + T formula):

2 × Riser Height (R) + 1 × Tread Depth (T) = 24 to 26 Inches (60 to 65 cm)

If the value of (2R + T) is less than 24 inches, the user feels as though they are taking unnatural baby steps. If the value exceeds 26 inches, the staircase requires overstriding, causing early leg fatigue.

Stair Component Dimension Comparison Matrix

Stair Component Standard Dimension (US) IRC Legal Limit UK Approved Document K Primary Material Selection
Riser Height (R) 7.0" - 7.5" Max 7.75" (196 mm) Max 8.66" (220 mm) 1x8 Primed Pine or Hardwood
Tread Depth (T) 10.5" - 11.0" Min 10.0" (254 mm) Min 8.66" (220 mm) 5/4 Bullnose Oak or 2x12 Lumber
Tread Nosing Overhang 0.75" - 1.0" 0.75" to 1.25" Max Min 0.625" (16 mm) Routed Radius Edge Profile
Clear Headroom 84" (7 ft) Min 80.0" (6 ft 8 in) Min 78.75" (2000 mm) Framed Floor Opening Joist Header
Structural Stringer 2x12 Nominal Min 3.5" Throat Depth Closed / Cut Carriage Stringer #2 Structural Douglas Fir / Yellow Pine

How to Use This Stair Calculator

  1. Select Your Design Mode: Choose Standard Total Rise Layout for most interior and deck builds, Constrained Total Run if your hallway or landing has limited horizontal length, or Headroom & Well Opening to plan the ceiling floor opening.
  2. Measure the Exact Total Rise: Place a straight level on the upper floor edge, extend it out over the lower floor, and drop a vertical tape measure down to the finished lower landing floor. Enter this exact number (e.g. 108.5).
  3. Enter Target Dimensions: Leave target riser height at 7.5 inches and tread depth at 10.5 inches, or modify them to match your custom architectural plans.
  4. Click Calculate Stairs: The calculator instantly generates exact riser heights, tread counts, total run, stringer length, incline angles, and code compliance checks.
  5. Review the Elevation Diagram & Print: Inspect the dynamically drawn steps to confirm slope and dimensions. Click the Print button to output an isolated A4 job-site cut sheet with zero screen clutter.

10 Frequently Asked Questions (Stair Carpentry & Code Compliance)

1. What is the standard height for stair risers?
In the United States and Canada, the ideal residential riser height is between 7.0 and 7.5 inches. Under the International Residential Code (IRC Section R311.7.5.1), the absolute maximum allowable riser height is 7-3/4 inches (196 mm).
2. Why does a staircase have one less tread than risers?
Because the final step up from the top tread is the surface of the upper floor landing itself. If a stair has 14 risers, it will always require exactly 13 physical treads.
3. What is the minimum headroom clearance required by code?
The IRC mandates a minimum headroom clearance of 80 inches (6 feet 8 inches or 2032 mm). This is measured vertically from an imaginary sloped line connecting all tread nosings up to the lowest point of the ceiling or floor opening above.
4. What size lumber should be used for stair stringers?
Always use structural 2x12 lumber for cut stair stringers. After cutting out the tread and riser triangles, a minimum of 3.5 to 5.0 inches of solid, uncut wood (known as the stringer throat) must remain to support the required loads without fracturing.
5. How do I adjust the bottom and top of a cut stringer?
You must subtract the thickness of the finished tread material from the bottom of the stringer before installation. If your tread plank is 1 inch thick, cut 1 inch off the bottom foot of the stringer. This ensures the first step and the last step have the exact same riser height as all middle steps.
6. What is the ideal angle for a comfortable residential stair?
The most comfortable stair slope is between 30 and 37 degrees. An angle of 34 to 35 degrees (produced by a 7.5-inch rise and 10.5-inch run) provides the best balance of safety, compact horizontal footprint, and natural climbing rhythm.
7. How many stringers do I need for a 36-inch wide stair?
For standard 36-inch wide residential stairs using 5/4-inch wood treads, building code requires at least three stringers (one on each side and one centered at 16 inches on-center). If composite decking is used for exterior stairs, stringers must often be spaced 12 inches on-center, requiring four stringers.
8. What is Blondel's formula for stair comfort?
Blondel's formula states that two risers plus one tread depth (2R + T) should equal between 24 and 26 inches. For example, two 7.25-inch risers (14.5") plus a 10.5-inch tread equal 25 inches, which falls within the optimal comfort range.
9. What is the difference between stair run and tread depth?
Tread run is the horizontal distance cut on the stringer from riser face to riser face. Total tread depth includes the nosing overhang (typically an additional 0.75" to 1.25" extending past the riser below).
10. Can I build stairs with different riser heights to make up for uneven floors?
No. Building codes strictly forbid variation exceeding 3/8 inch (9.5 mm) anywhere in a flight of stairs. Uneven steps disrupt natural walking cadence and are one of the primary causes of serious household falls.