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
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

Frequently Asked Questions

How many steps do I need for 8 ft ceilings?

A standard 8 ft (96 in) ceiling with typical floor structure results in approximately 105 in total rise (including floor joists, subfloor, and upper flooring). This typically produces 14 risers at 7.5 in each.

What is the ideal riser height?

The ideal riser height for comfortable residential stairs is 7 in to 7.5 in. IRC maximum is 7.75 in; going above this creates a steeper, more fatiguing stair. IBC commercial maximum is 7.0 in.

How do I calculate stair stringers for deck stairs?

Deck stairs often have a larger total rise depending on deck height. Use the same formula: divide total rise by your target riser height, round to the nearest whole number for riser count, then multiply tread count by 10 in to 11 in for total run. Cut 2×12 stringers using a framing square set to your exact riser and tread dimensions.

What size lumber do I need for stringers?

Standard cut stringers use 2×12 dimensional lumber (actual width 11.25 in). The remaining throat depth after cutting must be at least 3.5 in. For very long or steep stairs, consult a structural engineer for LVL (Laminated Veneer Lumber) stringers.

How do I calculate headroom for basement stairs?

Measure from the floor joist bottom (not the drywall ceiling) to the step nosing along the stair pitch line. If the lowest nosing-to-joist measurement is under 80 in (IRC), you need to either relocate the stair opening or reduce the number of risers to reduce the stair angle.


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 →