Buildora
Framing & LumberIRC / IBC FormulasInstant Calculation

Stair Calculator

Free stair calculator with IRC & IBC code compliance. Calculate exact riser height, number of steps, tread depth, stringer 2×12 cut length, pitch angle, and headroom clearance.

2026 Planning Cost & Code GuidanceLive Imperial & Metric ConversionInstant PDF & Print Spec Export

Your Project

in

Total vertical height measured from the lower finished floor to the upper finished floor surface (e.g. 105 in for standard 8 ft ceiling + joist).

Standard residential (IRC §R311.7) permits up to 7¾" riser height. Commercial (IBC §1011.5) allows up to 7".

in

Desired height per step (typical ideal is 7.0" to 7.5"). The exact riser height is computed automatically.

in

Horizontal depth of each step run excluding nosing (min 10" for IRC; min 11" for IBC commercial).

in

Width of stair flight (IRC requires minimum 36 inches clear width for residential stairs).

Standard residential framing drops the top tread one riser below the upper subfloor.

in

Overhang past the riser face (IRC requires ¾" to 1¼" nosing on treads with less than 11" run).

in

Spacing between stringers (typically 16" o.c. for wood treads; 12" o.c. for composite decking).

in

Thickness of upper floor structure (e.g. 9¼" 2×10 joist + ¾" subfloor = 10½ in). Used for headroom calculation.

in

Minimum vertical clearance (IRC §R311.7.2 requires min 80 in / 6 ft 8 in).

/step

Optional — enter materials or labor budget per step to estimate total stair cost.

Calculation Results

Ready
Primary Metric

Total Number of Risers

14 risers
Specification Breakdown
Exact Riser Height
7.5 in
Total Number of Treads
13 treads
Tread Run (Depth)
10.5 in
Tread Depth (with Nosing)
11.5 in
Total Horizontal Run
136.5 in
Total Run in Feet
11.38 ft
Incline Pitch Angle
35.5 °
Recommended Stringer Stock
2×12 × 16 ft
Stringer Diagonal Cut Length
172.21 in
Number of Stringers Needed
4 stringers
Stringer Throat Depth (2×12)
7 in
Minimum Stairwell Ceiling Opening
116.2 in
Blondel's Ergonomic Score (2R+T)
25.5 in
Estimated Handrail Length
15.35 ft
Balusters Required (4" max gap)
39 balusters
📐Estimation Note: Code references are provided for educational context and do not determine whether a specific project complies with local requirements. Allow 10–15% contingency for site conditions and unforeseen issues.
Total Number of Risers14 risers
Technical Guide & Methodology

Stair Calculator — Specifications & Reference Guide

Verified Industry Standards

Stair Calculator — Complete Stair Framing & Building Code Guide

How to Calculate Stairs: Step-by-Step (IRC & IBC Code Compliant)

Stair design and framing is governed by precise geometric rules and mandatory building code requirements in every jurisdiction in the United States, Canada, and the UK. Poorly designed stairs cause more residential injuries than any other structural element in the home.

Our free stair calculator computes exact riser height, tread depth, stringer length, incline angle, headroom clearance, handrail linear footage, and baluster counts — fully compliant with IRC §R311.7 (residential) and IBC §1011 (commercial).


Key Stair Terminology

Term Definition
Total Rise Total vertical height from the lower finished floor to the upper finished floor. This is the only input measurement required.
Riser The vertical face of each step (the "height" of each step).
Tread The horizontal surface of each step you walk on (the "depth" of each step).
Nosing The overhanging edge of the tread projecting beyond the riser face (typically ¾" to 1¼").
Stringer The diagonal structural member (usually 2×12 lumber) cut in a sawtooth pattern to support the treads and risers.
Throat Depth The minimum perpendicular distance remaining on the stringer after the tread and riser notches are cut. Must be ≥ 3.5 in (IRC §R311.7.10).
Pitch / Incline Angle The angle of the stringer diagonal from horizontal. Ideal comfort range is 30° to 37°.
Headroom The vertical clearance measured from the nosing of any tread to the nearest obstruction directly above (ceiling, soffit, or joist). IRC requires minimum 80 in (6 ft 8 in).
Run The horizontal distance covered by the entire stair flight (Tread Depth × Number of Treads).
Blondel's Rule The classic ergonomic comfort formula: 2 × Riser Height + Tread Depth = 24 to 25 in (600 to 635 mm).

Step 1 — Determine Total Rise (Most Critical Measurement)

Total Rise is the only site measurement required before any calculation:

Total Rise = Upper Finished Floor Level − Lower Finished Floor Level

Measure from the finished floor surface to the finished floor surface — not subfloor to subfloor. This accounts for flooring materials (hardwood, tile, carpet) on both levels and prevents accumulated riser height error.

  • Example: A standard 8 ft ceiling home with 2×10 floor joists (9.25 in actual) and 0.75 in subfloor = 105 in total rise.

Step 2 — Calculate Number of Risers

The number of risers is found by dividing Total Rise by your target riser height and rounding to the nearest whole number:

Number of Risers = Round(Total Rise / Target Riser Height)

  • Example: 105 in / 7.5 in = 14 risers (rounded)

[!IMPORTANT] All risers in a single flight must be identical height (within 3/8 in tolerance per IRC §R311.7.5.1). Even a small inconsistency causes trips and falls.


Step 3 — Calculate Exact Riser Height

Once the riser count is fixed, the exact riser height is the total rise divided evenly:

Exact Riser Height = Total Rise / Number of Risers

  • Example: 105 in / 14 risers = 7.5 in per riser (perfectly uniform)

Building Code Limits:

Standard Maximum Riser Height Minimum Tread Depth Typical Application
IRC §R311.7 (Residential) 7.75 in (197 mm) 10.0 in (254 mm) Single-family homes, townhomes, apartments
IBC §1011.5 (Commercial) 7.0 in (178 mm) 11.0 in (279 mm) Offices, retail, hotels, schools, assembly
OSHA 1910.25 (Industrial) 9.5 in (241 mm) 9.5 in (241 mm) Industrial stairs and ladderways

Step 4 — Number of Treads & Total Run

Stairs have one fewer tread than riser in standard residential framing (the upper floor landing acts as the final "tread"):

Number of Treads = Number of Risers − 1 (standard; down-one-riser mounting)

Total Horizontal Run = Number of Treads × Tread Depth

  • Example: 13 treads × 10.5 in = 136.5 in (11.375 ft) total run

Step 5 — Stringer Layout (2×12 Diagonal Cut Length)

The stringer is the critical load-bearing component. Its diagonal length is calculated using the Pythagorean theorem:

Stringer Length = √(Total Rise² + Total Run²)

  • Example: √(105² + 136.5²) = √(11025 + 18632.25) = √29657.25 = 172.2 in (14.35 ft)
  • Recommended lumber: 2×12 × 16 ft (next standard length above 14.35 ft)

Stringer Throat Depth (Minimum 3.5 in)

After cutting the tread and riser notches, the remaining perpendicular depth of the stringer (the "throat") must not be less than 3.5 inches per IRC §R311.7.10. This is the most common cause of stringer failure on steep stairs.


Step 6 — Stair Pitch Angle & Ergonomic Comfort

Pitch Angle

Stair Angle = arctan(Riser Height / Tread Depth)

  • Example: arctan(7.5 / 10.5) = 35.5° (ideal comfort zone)
Angle Range Ergonomic Rating Application
< 25° Very gradual (ramp-like) Accessibility ramps, grand staircases
30° – 37° Ideal comfortable range Standard residential & commercial stairs
37° – 42° Moderate (slightly steep) Basement stairs, deck stairs, loft ladders
> 42° Steep (attic-style) Storage loft stairs, alternating tread stairs

Blondel's Ergonomic Rule (1675 AD)

The Blondel Rule balances the step height and depth for natural human gait. For every stride, the leg rises and also moves forward — the ideal balance is:

2R + T = 24 to 25 in (600 to 635 mm metric)

Where R = Riser Height and T = Tread Depth.

  • Example: 2 × 7.5 + 10.5 = 25.5 in (slightly above ideal — widen tread by 0.25 in for perfect comfort)

Step 7 — Stairwell Opening Length (Headroom Clearance)

IRC §R311.7.2 mandates 80 in (6 ft 8 in) minimum vertical headroom measured from the nosing of each tread to the ceiling or floor joist above. To ensure compliance, the stairwell ceiling opening must be long enough.

Minimum Opening Length = Total Run − ((Total Rise − Min Headroom − Floor Joist Thickness) / tan(Pitch Angle))

This formula calculates how far back from the upper floor edge the stairwell hole must begin to prevent any tread nosing from being within 80 in of the ceiling above.


Step 8 — Handrails & Balusters

Handrail Requirements (IRC §R311.7.8)

  • Required on all stairs with 4 or more risers.
  • Grip diameter: 1.25 in – 2 in (circular) or within 4 in perimeter for non-circular profiles.
  • Height: 34 in – 38 in above tread nosing.
  • Handrail Length ≈ Stringer Length + 12 in (for top and bottom horizontal returns).

Baluster / Spindle Requirements (IRC §R312.1.3)

  • Maximum 4 in sphere must not pass between balusters (prevents child head entrapment).
  • Balusters per Tread = Ceil(Tread Depth / 4 in)
  • Total Balusters = Balusters per Tread × Number of Treads

Worked Example — Full Stair Calculation

Project: Basement stair, 105 in total rise, 36 in wide, IRC residential code, vinyl plank flooring on both levels.

Parameter Calculation Result
Number of Risers Round(105 / 7.5) 14 risers
Exact Riser Height 105 / 14 7.5 in
Number of Treads 14 − 1 13 treads
Total Run 13 × 10.5 136.5 in (11.4 ft)
Stringer Length √(105² + 136.5²) 172.2 in (14.35 ft)
Recommended Lumber Next 2 ft above 14.35 ft 2×12 × 16 ft
Number of Stringers Ceil(36" / 16" o.c.) + 1 3 stringers
Pitch Angle arctan(7.5 / 10.5) 35.5°
Blondel Check 2(7.5) + 10.5 25.5 in (pass, ≤ 25.5 acceptable)
Headroom Opening Calculated at 80" clearance + 10.5" joist ≈ 98 in (8.2 ft)
Handrail Length 172.2 + 12 ≈ 15.4 ft
Baluster Count Ceil(10.5 / 4) × 13 = 3 × 13 39 balusters

Related Construction & Framing Calculators

Help & Guidance

Frequently Asked Questions

QHow many steps do I need for an 8-foot ceiling?

A standard 8 ft (96 in) ceiling with typical floor joists and subfloor results in approximately 105 inches of total vertical rise. Dividing 105 in by an ideal 7.5 in riser height gives exactly 14 risers (13 treads) at 7.5 inches per step.

QWhat is the maximum riser height and minimum tread depth allowed by code?

Under the International Residential Code (IRC §R311.7.5), the maximum riser height is 7¾ inches (197 mm) and the minimum tread depth is 10 inches (254 mm). For commercial buildings under IBC §1011, the maximum riser height is 7.0 inches (178 mm) and the minimum tread depth is 11.0 inches (279 mm).

QWhat is the minimum stringer throat depth?

IRC §R311.7.10 requires a minimum remaining throat depth (the solid wood remaining after cutting tread and riser notches) of at least 3.5 inches (89 mm) on standard 2×12 nominal lumber.

QWhat is Blondel's rule for stair comfort?

Blondel's ergonomic rule states that 2 × Riser Height + 1 × Tread Depth should equal 24 to 25 inches (600 to 635 mm). This formula matches the natural human walking stride when ascending and descending stairs.

QHow much vertical headroom is required for stairs?

IRC §R311.7.2 mandates a minimum vertical headroom clearance of 80 inches (6 ft 8 in / 2,032 mm) measured vertically from the leading edge (nosing) of each tread to the ceiling plane or joist above.

Explore More Trades

Related Calculators

View all 20 calculators →