# Stair Calculator

> Stair calculator: number of risers and treads, exact riser height, total run, stringer length and angle, with IRC or metric code checks and a diagram.

Interactive calculator: https://calculatorsplatform.com/c/stairs/
Category: Home, Construction & DIY Calculators
Calculations run in the browser; inputs can be prefilled through URL parameters and shared with the Share button.

## How stair dimensions are worked out

Every straight stair starts with one measurement: the **total rise**, the vertical distance from the finished lower floor to the finished upper floor. Measure it with finished flooring in mind, because an extra layer of tile or hardwood changes the first or last step and makes it non-uniform.

The rise is divided into equal steps. The minimum number of risers is the total rise divided by the maximum riser height allowed, rounded up:

> risers = ⌈total rise ÷ max riser⌉, riser height = total rise ÷ risers

Because the upper floor acts as the last step, a stair always has one tread fewer than it has risers. The total run (the horizontal length of the stair) is the number of treads times the tread depth, measured nosing to nosing. The stringer length shown is the length of the pitch line, √(rise² + run²); buy stringer stock at least one tread longer to allow for the top and bottom cuts.

## Code limits: IRC and GB 50096

In the United States, the International Residential Code (IRC, section R311.7) limits a riser to **7¾ in** and requires a tread of at least **10 in**. Where treads are less than 11 in deep, a nosing of ¾ to 1¼ in is required. Headroom must be at least **6 ft 8 in**, measured vertically from the sloped line through the nosings, and the largest riser or tread in a flight may not exceed the smallest by more than ⅜ in.

For homes in mainland China, GB 50096 (Design code for residential buildings) limits a riser to **175 mm** and requires a tread of at least **260 mm**; the general standard GB 50352 asks for at least 2.2 m clear headroom over a flight. Choose *Custom limits* for other codes, or for a deck or attic stair with its own rules.

| Rule | IRC | GB 50096 / 50352 |
|---|---|---|
| Max riser | 7¾ in (197 mm) | 175 mm |
| Min tread | 10 in (254 mm) | 260 mm |
| Min headroom | 6 ft 8 in (2.03 m) | 2.2 m |

The minimum stairwell opening is the horizontal distance, measured back from the top nosing, over which the upper floor must be cut away so that headroom plus floor thickness fits above the pitch line: (headroom + floor thickness) × tread ÷ riser.

## Worked example

A basement stair has a total rise of 105 in (8 ft 9 in) and will use 10 in treads under the IRC.

1. Risers: 105 ÷ 7.75 = 13.55, rounded up to **14 risers**.
2. Riser height: 105 ÷ 14 = **7½ in**, under the 7¾ in limit.
3. Treads: 14 − 1 = **13 treads**, so the total run is 13 × 10 = **130 in** (10 ft 10 in).
4. Angle: atan(7.5 ÷ 10) = **36.9°**, and the pitch line is √(105² + 130²) ≈ 167 in (13 ft 11 in).
5. Comfort: 2 × 7.5 + 10 = **25 in**, right on the classic 24–25 in rule.
6. With a 10 in thick upper floor, the opening must extend (80 + 10) × 10 ÷ 7.5 = **120 in** back from the top nosing for 6 ft 8 in headroom.

In metric with GB 50096, a 2,800 mm rise gives 16 risers of exactly 175 mm; with 270 mm treads the run is 15 × 270 = 4,050 mm.

## Tips for comfortable, safe stairs

- **Uniformity matters more than the exact numbers.** People set their stride on the first two steps; an odd riser at the top or bottom causes trips.
- **Use the comfort rule** 2R + T ≈ 24–25 in (610–635 mm). Shallow risers need deeper treads and vice versa.
- **Angles between about 30° and 37°** feel natural for a main stair; steeper stairs save space but are harder to descend.
- **Check the space first.** If the total run is too long, consider a landing and an L- or U-shaped stair rather than squeezing the treads.
- Width, handrails, guards, landings and winders all have their own rules. This calculator gives planning numbers only — confirm the design with your local building department.

## Frequently asked questions

### How many steps do I need for a 9 ft ceiling?

Floor-to-floor rise is ceiling height plus floor structure, often about 9 ft 10 in (118 in) for a 9 ft ceiling. Under the IRC that needs ⌈118 ÷ 7.75⌉ = 16 risers of about 7⅜ in, and 15 treads.

### What is the difference between a riser and a tread?

The riser is the vertical height of one step; the tread is the horizontal depth you stand on, measured from nosing to nosing. A stair has one more riser than treads when the upper floor serves as the top step.

### How long should a stair stringer be?

The pitch line length is √(rise² + run²). Add at least one tread depth for the top and bottom cuts, then round up to the next standard board length — a 2×12 is the usual stringer stock for wood stairs.

### Why does my stair fail the tread check when I enter a total run?

The run is shared by the treads, so a short run divided by many treads gives shallow steps. Increase the run, reduce the riser count (taller risers, within the limit) or add a landing to turn the stair.

### What is a comfortable stair angle?

Roughly 30° to 37°. The IRC maximum (7¾ in riser on a 10 in tread) is about 37.8°; commercial stairs with 7 in risers and 11 in treads are about 32.5°.

*Disclaimer: Estimates assume typical product coverage and waste allowances. Always check the manufacturer’s specifications and local building codes, and buy a little extra material.*

## Related calculators

- [Deck Calculator](https://calculatorsplatform.com/c/deck/index.md)
- [Board Foot Calculator](https://calculatorsplatform.com/c/board-feet/index.md)
- [Concrete Calculator](https://calculatorsplatform.com/c/concrete/index.md)
- [Flooring & Tile Calculator](https://calculatorsplatform.com/c/flooring/index.md)
- [Drywall Calculator](https://calculatorsplatform.com/c/drywall/index.md)
- [Square Footage Calculator](https://calculatorsplatform.com/c/square-footage/index.md)
- [Triangle Calculator](https://calculatorsplatform.com/c/triangle/index.md)

---
Source: CalculatorsPlatform (https://calculatorsplatform.com/c/stairs/). Last reviewed 2026-11-25. Please link to the calculator page when citing.
