Stair Calculator

Total rise to number of steps, riser height, total run and stringer length, checked against IRC limits.

Your estimate

Results update as you type. Round up when ordering.

  • Formula checked against manufacturer specs
  • Rounded up to whole units
  • Runs in your browser

Stair math

Divide total rise by the maximum riser height and round up to get the number of risers; then divide total rise by that number for the actual (equal) riser height. Treads = risers − 1 when the top floor acts as the last step. Total run = treads × tread depth, and the stringer is roughly √(rise² + run²).

Example: 108 in rise ÷ 7.75 = 13.9 → 14 risers of 7.71 in; 13 treads × 10 in = 130 in run; stringer ≈ √(108² + 130²) = 169 in.

Code limits (IRC residential)

  • Maximum riser height 7¾ in; minimum tread depth 10 in
  • Variation between risers or treads no more than 3/8 in
  • Minimum headroom 6 ft 8 in

Local codes may differ—check with your building department before cutting stringers. Add stringer length for the top connection and bottom cut.

✓ Formula reviewed and tested · Updated Oct 2026

Related calculators

FAQ

How accurate is the stair calculator?

It uses the standard formula shown on this page and rounds bags, boxes and pieces up to whole units. Product sizes vary by brand, so confirm with the label or your supplier before you buy.

Should I buy extra material?

Yes. A 5–10% allowance covers cuts, spills and uneven surfaces; running short mid-job usually costs more than a few leftovers.

Is this calculator free?

Yes. Every PorchMath calculator is free, needs no account and runs entirely in your browser.