More games at WuGames.ioSponsoredDiscover free browser games — play instantly, no download, no sign-up.Play

Stair Calculator

Stair calculator with IRC/IBC code pass-fail checks. Get riser count, rise, run, stringer length, pitch angle and headroom compliance for safe stair design.

The Stair Calculator helps you design safe and comfortable staircases by calculating the number of steps, rise, run, and verifying compliance with building codes.
Staircase Parameters
Vertical height from bottom to top floor

mm
mm
mm
RunRiseTotal RunTotal Rise

What is a Stair Calculator?

A Stair Calculator is an essential tool for architects, builders, and homeowners to design safe and comfortable staircases. It calculates the optimal number of steps, rise height, run depth, total horizontal length, staircase angle, and verifies compliance with building codes. Proper stair design is crucial for safety, accessibility, and user comfort.

Building Code Standards (General Guidelines)

  • Rise (vertical height of each step): 150mm - 220mm
  • Run/Going (depth of each step): 220mm - 355mm
  • Comfort formula: 2 × Rise + Run = 600-650mm
  • Maximum rise variation between steps: ±5mm
  • Minimum stair width: 800mm (residential), 1000mm (commercial)
  • Minimum headroom clearance: 2000mm
  • Maximum angle: 42° for residential stairs
  • Handrail required for stairs with more than 3 risers

Calculation Formulas

Number of Risers:

Number of Risers = Total Rise / Ideal Rise (rounded)

Actual Rise per Step:

Actual Rise = Total Rise / Number of Risers

Total Run (Horizontal Length):

Total Run = (Number of Risers - 1) × Run

Comfort Formula:

2 × Rise + Run = 600-650mm (comfort rule)

Tips for Stair Design

  • Ideal rise is typically 175mm for comfortable climbing
  • Ideal run is typically 280mm for adequate foot space
  • The 2R+G rule (600-650mm) ensures comfortable stairs
  • Steeper stairs (higher rise, shorter run) are harder to climb
  • Gentler stairs (lower rise, longer run) are easier but take more space
  • Always maintain consistent rise and run throughout the staircase
  • Consider adding a landing for stairs with more than 16 steps
  • Local building codes may have specific requirements - always check

Staircase Terminology

  • Rise: The vertical height of each step, measured from the top of one tread to the top of the next
  • Run (Going): The horizontal depth of each step where you place your foot
  • Total Going: The total horizontal length of the staircase from first to last step
  • Pitch (Angle): The angle of the staircase relative to the horizontal, typically 30-42° for residential stairs
  • Headroom: The vertical clearance from the tread nosing to the ceiling or obstruction above, minimum 2000mm

Frequently Asked Questions

A stair calculator turns the total rise (vertical height between floors) into a set of stair dimensions: number of risers, rise per step, tread depth, stringer length, and total run. You enter the floor-to-floor height and either the desired rise or tread depth (or both, in which case the calculator checks code compliance). It returns the stair geometry plus a side-view diagram. This saves you from the classic mistake of building a stair where the last riser is too tall (a guaranteed trip hazard and a code violation that fails inspection).

Use it for any stair project: deck stairs, basement stairs, second floor access, exterior porches, or commercial assemblies. Stair design is governed by tight code limits (rise 4 to 7 3/4 inches, tread 10+ inches in IRC; even stricter in IBC commercial). Math errors compound: missing one riser changes total rise by the rise per step, which usually fails code. The calculator is essential for retrofits where floor heights are awkward, deck stairs where ground level varies, and switchback stairs where landings must fit available space.

US calculators accept inches (sometimes feet plus inches) with output in inches and degrees of slope. Metric calculators use millimeters and centimeters with output in millimeters and degrees. Total rise is the most important input: measure floor surface to floor surface (including any finish flooring), not subfloor to subfloor. Verify by measuring at multiple points because floors are rarely perfectly level. Rise per step in the US must be 4 to 7 3/4 inches (102 to 197 mm); in IBC commercial 4 to 7 inches. Tread depth must be 10 inches minimum (254 mm) residential, 11 inches commercial.

Number of risers equals total rise divided by ideal rise (7 inches typically), rounded to whole number. Rise per step equals total rise divided by number of risers. Number of treads equals number of risers minus one. Total run equals number of treads times tread depth. Example: floor-to-floor 108 inches, ideal rise 7 inches: 108/7 = 15.43, round to 15 risers, rise per step = 108/15 = 7.2 inches. With 11 inch tread: 14 treads × 11 = 154 inches total run. Stringer length = sqrt(total rise² + total run²) = sqrt(108² + 154²) = 188 inches. The 2R+T rule of thumb says 2 × rise + tread should equal 24 to 26 inches for comfortable stairs.

Three reasons: first, code rounding. Some calculators round rise to nearest 1/8 inch (carpentry standard), others to nearest 1/16, leading to small differences. Second, riser-vs-tread count confusion: stairs always have one more riser than tread (the top tread is the floor above), so a 'rise 15' answer could mean 15 risers or 14 treads + 1 floor. Third, code edition. IRC 2015 limited rise to 7.75 inches; IRC 2021 keeps that for residential but IBC commercial is 7 inches. Always verify which code your calculator uses, especially for commercial work.

Three common gotchas: first, inconsistent risers. Code requires risers to vary by no more than 3/8 inch (9.5 mm) total in a flight, but DIY builds often have a final short riser that throws off pedestrians. Second, nose overhang. Treads should project 3/4 to 1 1/4 inch beyond the riser below (nosing) for comfortable foot placement; flush risers feel like climbing a ladder. Third, slope outside ideal range. A stair with 7 inch rise and 11 inch tread (2R+T = 25) feels natural; a stair with 8 inch rise and 9 inch tread (2R+T = 25, but steep angle) feels treacherous. Aim for 30 to 37 degrees of slope.

IRC R311.7 requires minimum headroom of 6 ft 8 inches (203 cm) measured vertically from the nosing line. IBC commercial requires 6 ft 8 inches (203 cm) as well. Stair width minimum is 36 inches (914 mm) residential between walls, 44 inches (1118 mm) commercial unless occupant load is small. Handrails required on at least one side for stairs with 4 or more risers, two sides commercial. Handrail height 34 to 38 inches above nosing. Guard rails required where drop exceeds 30 inches (762 mm), with 36 inch (914 mm) minimum guard height residential. Spindles spaced so a 4 inch (102 mm) sphere cannot pass. ADA accessible stairs have stricter requirements: 7 inch max rise, 11 inch min tread, contrasting nosing stripe.

Yes. In the US, residential stairs follow IRC R311.7 and IRC R311.8 (winders and spiral). Commercial stairs follow IBC 1011 (means of egress). Both codes specify rise, run, headroom, width, handrails, and guards. NFPA 101 Life Safety Code applies in many facility types. Internationally, Eurocode and EN ISO 14122-3 cover industrial stairs (rise 100-300 mm, run 200-300 mm depending on slope class). UK Building Regulations Part K limits private stairs to 220 mm rise and 220 mm tread minimum. Workplace stairs (OSHA 1910.25 in US) require 30 to 50 degree slope, 9.5 inch min tread, 9.5 inch max rise. Always verify your jurisdiction's adopted code and amendments, especially for commercial work where inspectors are strict.

Use the Code Standard selector at the top of the calculator to choose the governing code, then run the calculation. The tool evaluates your design parameter by parameter and shows a PASS or FAIL badge for each: rise per step, run/going, stair width, headroom, pitch angle, and the 2R+G comfort rule. The limits change with the code you pick. IRC Residential allows up to 197 mm (7 3/4 in) rise, 254 mm (10 in) minimum tread, 914 mm (36 in) width, and up to 42 degrees. IBC Commercial tightens this to 178 mm (7 in) max rise, 279 mm (11 in) minimum tread, and 1118 mm (44 in) width. OSHA Industrial permits up to 241 mm (9.5 in) rise with a 30-50 degree slope window. Eurocode/EN uses 100-200 mm rise and 800 mm minimum width. The headroom field (default 2032 mm / 6 ft 8 in) is now checked against the selected code's minimum, so you get an inspection-ready compliance summary stating which code was evaluated.
Stair Calculator — Stair calculator with IRC/IBC code pass-fail checks. Get riser count, rise, run, stringer length, pitch angle and headro
Stair Calculator