Stair Calculator

Design building stairs compliant with riser height, tread depth, comfort rules, and stair pitch angle codes.

ArchitectureBuilding Codes
1

Design Parameters

Total Rise (Floor to Floor) must be entered.

Quick Presets

Standard Residential Stair (IRC)
Riser height around 190mm (7.5"), tread run 254mm (10").
Standard Commercial Stair (IBC)
Riser height around 170mm (6.7"), tread run 280mm (11").
Public Stair with Landing
Includes 1 horizontal landing in the path of travel.

Calculated Outputs

CHECK CODE LIMITS

One or more dimensions exceed standard code limitations. Please review and adjust:

  • Total rise and target riser must be greater than zero.
Total Risers Vertical Steps
0.00
Actual Riser Height
0.0 mm
Total Treads Horizontal steps
0.00
Total Run Length
0.00 m
Stair Pitch Angle Degrees
0.0
Stringer Length
0.00 m
Slope Ratio (Rise/Run) ratio
0.000
Comfort Score (2R+T) mm
0

Building Code Staircase Design Guide

Designing a safe, comfortable, and code-compliant staircase is one of the most critical challenges in architecture. A staircase must bridge vertical heights smoothly while minimizing tripping hazards, maintaining egress clearances, and establishing an intuitive rhythm for the climber.

Our professional stair calculator helps you analyze riser and tread relationships, calculate stair stringer length, determine stair pitch angle, and check comfort metrics (such as Blondel's 2R+T rule). Use preset configurations for Residential and Commercial codes or input custom limits.

Stair Anatomy Illustration of riser height, tread depth, nosing, and slope angle.

How to Use the Stair Calculator

To design building stairs using this tool, follow these steps:

  1. Total Rise: Enter the vertical floor-to-floor height (the distance from the lower finished floor level to the upper finished floor level).
  2. Stair Standard: Select from Residential (IRC), Commercial/Public (IBC), or Custom. This sets maximum riser height and minimum tread depth guidelines.
  3. Target Riser & Tread: Input the preferred riser height and tread depth. Default values are set to typical standards (e.g. 170 mm riser and 280 mm tread).
  4. Advanced Settings: Toggle these to include nosing, stair width, a landing run length, or to input your own custom code thresholds.

Stair Rise and Run Explained

Stair rise and run are the two primary dimensions of a staircase step:

  • Riser Height (R): The vertical height between two consecutive tread surfaces.
  • Tread Depth (T): The horizontal surface width of a single step, measured from the front edge to the riser, excluding the nosing.
  • Total Rise: The absolute vertical height spanned by the entire flight of stairs.
  • Total Run: The total horizontal footprint length of the staircase flight from the face of the first riser to the face of the last riser.

Stair Calculator Formulas

Architects and builders calculate stair geometry using these standard mathematical formulas:

  • Number of Risers: Calculated by dividing the total rise by the target riser height and rounding to the nearest whole step:
    Number of Risers = Round(Total Rise ÷ Target Riser Height)
  • Actual Riser Height: Calculated by dividing the total rise by the rounded number of risers:
    Actual Riser Height = Total Rise ÷ Number of Risers
  • Number of Treads: In a straight flight of stairs, the number of treads is always one less than the number of risers:
    Number of Treads = Number of Risers - 1
  • Total Run: The total horizontal footprint length, including landing lengths if applicable:
    Total Run = (Number of Treads × Tread Depth) + (Landing Length × Landings)
  • Stringer Length: The diagonal structural board supporting the treads and risers (calculated using the Pythagorean theorem):
    Stringer Length = √(Total Rise² + (Number of Treads × Tread Depth)²)

Stair Angle and Comfort Range

Climber comfort is assessed using Blondel's stride formula, which establishes an ergonomic relationship between step rise and tread run:

600 mm ≤ (2 × Riser Height) + Tread Depth ≤ 640 mm
(24 in to 25 in)

If the sum of twice the riser plus one tread is below 600 mm, the stairs feel too shallow and the stride feels unnaturally short. If it exceeds 640 mm, it requires an excessive stride length, leading to fatigue and tripping hazards.

In addition, the ideal pitch angle for standard staircases is between 30 and 37 degrees. Slopes steeper than 40 degrees are dangerous for typical public occupancy, while slopes below 20 degrees are too shallow and should be replaced by a ramp.

Stair Calculator Example

To clarify how these steps and equations work in practice, let's walk through a typical design example for a residential building.

Example Calculation (3.0m Total Rise):

1. Number of Risers: 3000 mm ÷ 175 mm (target) = 17.14, which rounds to 17 risers.

2. Actual Riser Height: 3000 mm ÷ 17 = 176.5 mm (Complies with the IRC max limit of 196.8 mm / 7.75 inches).

3. Number of Treads: 17 risers - 1 = 16 treads.

4. Total Run: 16 treads × 254 mm (tread depth) = 4064 mm (4.06 meters).

5. Stair Angle: arctan(176.5 / 254) = 34.8° (Perfect comfortable angle within the 30° to 37° range).

6. Stringer Length: √(3000² + 4064²) = 5051 mm (5.05 meters).

Result: A staircase with 17 risers of 176.5 mm, 16 treads of 254 mm, and a total horizontal run of 4.06 meters.

Residential vs Commercial Stair Assumptions

Stairway safety codes differ significantly between residential and public buildings to balance space efficiency and crowd accessibility:

  • Residential (IRC): Stairs in private single-family homes can be steeper to save footprint. The maximum riser height is 7.75 inches (196.8 mm), and the minimum tread depth is 10 inches (254 mm).
  • Commercial (IBC): Stairs in public spaces require flatter runs for crowd safety, egress speed, and accessibility. The maximum riser height is 7 inches (177.8 mm), the minimum riser height is 4 inches (101.6 mm), and the minimum tread depth is 11 inches (279.4 mm).

Important Stair Design Notes & Disclaimer

Stair layouts must prioritize occupant safety and conform to local design codes. Remember that minor changes in riser or tread dimensions can significantly impact the ease of climbing and local compliance.

Warning: Stair requirements vary by country, city, occupancy type, and building code. This calculator is intended for early design, estimation, and planning. Final stair layouts must be checked against local building codes and reviewed by a qualified professional before construction begins.

Frequently asked questions

How do you calculate stair risers?

Divide the total rise by your target riser height. Round the result to get the number of risers. Then divide the total rise by this number to find the actual riser height.

How do you calculate stair treads?

For a straight flight, the number of treads is the number of risers minus one (Treads = Risers - 1).

What is the ideal stair angle?

The ideal stair angle is between 30 and 37 degrees. Steeper angles are hard to walk on, and flatter angles are better served by a ramp.

What is the 2R + T stair rule?

It is a comfort check: twice the riser height plus the tread depth should equal between 600mm and 640mm (24 to 25 inches).

How do you calculate stair stringer length?

Use the Pythagorean theorem: Stringer = sqrt(Total Rise^2 + Tread Run^2).

Can this stair calculator be used for building code compliance?

No. Codes vary locally. Results are preliminary and must be verified by a licensed professional against local regulations.