# Stair Calculator

URL: https://hifreetools.com/construction/stair-calculator

> Measure the floor-to-floor height, enter the tallest riser you will accept (or the riser you are aiming for) and either the tread depth or the run you have room for. The calculator splits the rise into equal risers and gives the tread count, total run, stringer length and angle. Imperial boxes take tape-measure input such as 9' 1" or 7 1/2.

## Quick answer

Divide the total rise by your maximum riser and round up: a 108 in (9 ft) rise with a 7 1/2 in maximum needs 15 risers of 7.2 in (7 3/16"). A straight stair has one tread fewer than risers, so 14 treads of 10 1/2 in make a 12' 3" run. The 2021 IRC (R311.7.5) allows risers up to 7 3/4 in and treads of at least 10 in; other codes differ.

## Formula

- Risers n = ⌈H ÷ Rmax⌉ (or round(H ÷ Rtarget)); riser R = H ÷ n
- Treads = n − 1; run L = (n − 1) × T, or T = L ÷ (n − 1)
- Stringer = √(H² + L²); angle = atan(R ÷ T); comfort = 2R + T
- IRC 2021 R311.7.5: R ≤ 7¾ in (196.85 mm), T ≥ 10 in (254 mm); headroom ≥ 6 ft 8 in (R311.7.2)

## Inputs

- Total rise, floor to floor (in, or 9' 1"); default 108
- Riser height is a… — one of: Maximum (fewest steps under it), Target (nearest step count); default max
- Riser height (in); default 7 1/2
- Tread depth (in); default 10 1/2
- Total run available (in, or 12' 3"); default 147
- Total rise, floor to floor (mm) (100 to 15000); default 2700
- Riser height (mm) (50 to 400); default 190
- Tread depth / going (mm) (50 to 1000); default 260
- Total run available (mm) (50 to 50000); default 3640

## Worked examples (computed by the page's own function)

- Total rise, floor to floor (in, or 9' 1") = 108, Riser height is a… = max, Riser height (in) = 7 1/2, Tread depth (in) = 10 1/2 → Actual riser height (in) = 7.2, Riser height, nearest 1/16 in = 7 3/16", Number of risers = 15, Number of treads = 14  (n = ⌈108 ÷ 7.5⌉ = 15; R = 108 ÷ 15 = 7.2 in; T = 10.5 in; 2R + T = 24.9 in)
- Total rise, floor to floor (in, or 9' 1") = 9' 1", Riser height is a… = max, Riser height (in) = 7 3/4, Total run available (in, or 12' 3") = 11' 8" → Actual riser height (in) = 7.267, Riser height, nearest 1/16 in = 7 1/4", Number of risers = 15, Number of treads = 14  (n = ⌈109 ÷ 7.75⌉ = 15; R = 109 ÷ 15 = 7.2667 in; T = 10 in; 2R + T = 24.533 in)
- Total rise, floor to floor (mm) = 2700, Riser height is a… = max, Riser height (mm) = 190, Tread depth / going (mm) = 260 → Actual riser height (mm) = 180, Number of risers = 15, Number of treads = 14, Tread depth (IRC min 254 mm) = 260 mm ✓  (n = ⌈2,700 ÷ 190⌉ = 15; R = 2,700 ÷ 15 = 180 mm; T = 260 mm; 2R + T = 620 mm)

## Verification

Checked against 20 reference cases (expected values computed independently). Reviewed 2026-10-30. Latest change 2026-10-30: New: risers, treads, run, stringer and angle from the floor-to-floor rise, in feet-inch fractions or millimetres, checked against IRC 2021 R311.7.5 and the 2R + T comfort rule.

## FAQ

**How many steps do I need for a 9 ft ceiling?**
Use the floor-to-floor height, not the ceiling height. A typical 9 ft ceiling plus a 10–12 in floor structure gives about 118–120 in of rise; at a 7 3/4 in maximum that is 16 risers (7.4–7.5 in each) and 15 treads. Enter your measured rise to get the exact figure.

**What is the maximum riser height allowed?**
Under the 2021 International Residential Code (R311.7.5.1) a residential riser may be up to 7 3/4 in. The International Building Code for commercial buildings allows 4–7 in, and England's Approved Document K allows up to 220 mm for a private stair. Your jurisdiction may amend any of these.

**What is the minimum tread depth?**
10 in under IRC 2021 R311.7.5.2, measured horizontally from nosing to nosing, and 11 in under the IBC for commercial stairs. Treads under 11 in deep also need a nosing of 3/4 to 1 1/4 in under the IRC.

**How do I calculate stringer length?**
Treat the stair as a right triangle: stringer = √(rise² + run²). For a 108 in rise and 147 in run that is 182.41 in, about 15' 2 7/16". Buy a board longer than that so the bottom and top cuts fit.

**What is the 2R + T rule?**
Blondel's 17th-century observation that a comfortable stair matches the length of a normal step: twice the riser plus the tread. US carpenters aim for about 24–25 in, French practice 60–64 cm. It is guidance for comfort, not a code requirement.

**Should I choose a maximum or a target riser?**
Maximum gives the fewest equal risers that stay at or under your limit, which is what you want for code compliance. Target picks the whole number of steps nearest your preferred riser, which may come out slightly taller or shorter; check the band under the result.

**What angle should stairs be?**
Code-compliant residential stairs usually fall between about 30° and 38°: the IRC limits of 7 3/4 in and 10 in give atan(7.75/10) = 37.8°. Approved Document K caps private stairs at 42°.


## Sources

- [ICC — 2021 International Residential Code, Chapter 3, Section R311.7 Stairways](https://codes.iccsafe.org/content/IRC2021P2/chapter-3-building-planning)
- [GOV.UK — Approved Document K: protection from falling, collision and impact (stairs in England)](https://www.gov.uk/government/publications/protection-from-falling-collision-and-impact-approved-document-k)
- [Wikipedia — Stairs (Blondel's step formula 2R + T)](https://en.wikipedia.org/wiki/Stairs)
- [NIST SP 811 — Guide for the Use of the SI (1 in = 25.4 mm exactly)](https://www.nist.gov/pml/special-publication-811)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Stair Calculator", https://hifreetools.com/construction/stair-calculator
