Stair Calculator: Risers and Treads
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.
- Riser height, nearest 1/16 in
- 7 3/16"
- Number of risers
- 15
- Number of treads
- 14
- Tread depth (IRC min 10 in)
- 10 1/2" ✓
- Total run
- 12' 3"
- Stringer length (diagonal, before cuts)
- 15' 2 7/16"
- Stair angle (°)
- 34.4
- Comfort 2R + T (aim 24–25 in)
- 24.9 in ✓
Meets the US residential riser limit (IRC R311.7.5.1). Your local code may be stricter or looser — check it, plus the 10 in tread, 6 ft 8 in headroom, 36 in width and a landing at least every 151 in (12' 7") of rise.
FreeNo sign-upPrivate — runs in your browser, nothing is uploaded
Estimate only. This calculator lays out a straight stair from the numbers you enter and compares them with IRC 2021 R311.7 and a comfort rule; it is not a design approval. Codes differ by country, state and city and are amended locally, and a safe stair also needs headroom, width, handrails, guards, landings and structural sizing that this tool does not check. Confirm with your local building department or a qualified builder before cutting stringers.
Checked against 20 reference cases · IRC 2021 R311.7, Approved Document K, Wikipedia · Reviewed · How we check
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 & method
Layout
n = ⌈H ÷ Rmax⌉ R = H ÷ n treads = n − 1 L = (n − 1) × T (or T = L ÷ (n − 1))
- H — total rise, finished floor to finished floor
- Rmax — the tallest riser you will accept; with the Target option n = round(H ÷ R) instead
- n — number of risers (all equal)
- T — tread depth (going), nosing to nosing, measured level
- L — total run, face of the first riser to face of the last
The upper floor counts as the last step, so a straight flight has one tread fewer than risers.
Stringer, angle and comfort
stringer = √(H² + L²) angle = atan(R ÷ T) comfort = 2R + T
- stringer — the diagonal the stringer spans; buy stock longer to allow for the cuts at the floor and the header
- 2R + T — Blondel's step rule: about 24–25 in (US carpentry rule of thumb) or 600–640 mm (French practice) feels natural
Checks shown: IRC 2021 R311.7.5.1 riser ≤ 7 3/4 in (196.85 mm), R311.7.5.2 tread ≥ 10 in (254 mm). The comfort range is guidance, not code.
Stair limits in three codes (check the edition your jurisdiction has adopted)
| Code | Riser / tread limits |
|---|---|
| IRC 2021 R311.7 (US homes) | Riser ≤ 7 3/4 in (196 mm in the code); tread ≥ 10 in (254 mm); headroom ≥ 6 ft 8 in; width ≥ 36 in; flight rise ≤ 151 in |
| IRC 2021 R311.7.5 | Largest riser or tread may exceed the smallest in a flight by no more than 3/8 in |
| IBC 2021 1011.5.2 (commercial) | Riser 4–7 in; tread ≥ 11 in |
| Approved Document K (England, private stair) | Rise ≤ 220 mm; going ≥ 220 mm; pitch ≤ 42°; 2R + G between 550 and 700 mm |
| Comfort rule of thumb | 2R + T ≈ 24–25 in (US) or 600–640 mm (Blondel, French practice) |
Examples
Example 1: Basement stair: 9 ft rise, 7 1/2 in maximum riser
- Input
- Rise 108 in, maximum riser 7 1/2 in, tread 10 1/2 in
- Result
- 15 risers of 7.2 in (7 3/16"), 14 treads, run 12' 3", stringer 15' 2 7/16", 34.4°, 2R + T = 24.9 in ✓
- Why
- 108 ÷ 7.5 = 14.4, rounded up to 15 risers, so each riser is 108 ÷ 15 = 7.2 in. 14 treads × 10.5 in = 147 in of run, and √(108² + 147²) = 182.41 in of stringer diagonal. The riser is under the IRC 7 3/4 in limit and 2 × 7.2 + 10.5 = 24.9 in sits in the comfortable 24–25 in band.
Example 2: Fit a stair into a fixed run
- Input
- Rise 9' 1", maximum riser 7 3/4 in, total run 11' 8"
- Result
- 15 risers of 7.267 in (7 1/4"), 14 treads of 10" ✓, 36.0°, stringer 14' 9 7/16"
- Why
- 109 ÷ 7.75 = 14.06 → 15 risers. The 140 in of run is shared by 14 treads, giving exactly 10 in, the IRC minimum. 2R + T = 24.53 in, inside the comfort band.
Example 3: Metric house stair
- Input
- Rise 2700 mm, maximum riser 190 mm, going 260 mm
- Result
- 15 risers of 180 mm, 14 treads, run 3640 mm, stringer 4532.1 mm, 34.7°, 2R + T = 620 mm ✓
- Why
- 2700 ÷ 190 = 14.2 → 15 risers of 180 mm. 14 × 260 = 3640 mm of run. 2 × 180 + 260 = 620 mm, in the 600–640 mm band.
Example 4: Why codes matter: a steep 220 mm stair
- Input
- Rise 2600 mm, maximum riser 220 mm, going 220 mm
- Result
- 12 risers of 216.7 mm (over the IRC maximum), tread 220 mm ✗, 44.6°, 2R + T = 653.3 mm ✗
- Why
- 220 mm is the largest rise and smallest going England's Approved Document K allows for a private stair, but that document also caps the pitch at 42°, and this layout is 44.6°. It also fails the IRC's 196.85 mm riser and 254 mm tread. Add risers or deepen the treads.
When to use this tool
- Planning a deck, basement or loft stair and checking whether the run you have is long enough.
- Laying out stringers: the riser and tread marks as tape-measure fractions or millimetres.
- Checking an existing or proposed stair against the 2021 IRC riser and tread limits before talking to an inspector.
Common mistakes
- Measuring rough floor to rough floor. Measure finished floor to finished floor, or add the flooring thickness at the top and bottom, otherwise the first or last riser ends up a different height from the rest.
- Counting treads equal to risers. In a normal flight the upper floor is the top step, so treads = risers − 1.
- Rounding the riser before multiplying. Lay out with the exact riser (108 ÷ 15 = 7.2 in) and only round each mark to your tape; the IRC allows just 3/8 in difference between the largest and smallest riser.
- Cutting a board only as long as the diagonal. The stringer length shown is the line from floor to header; the board also has to reach past the cuts at both ends.
- Forgetting headroom. The IRC requires 6 ft 8 in measured vertically from the line of the nosings; a long run under a low beam can pass every riser check and still fail headroom.
Assumptions
What the result takes for granted:
- A straight flight with equal risers and treads, no winders and no intermediate landing.
- The upper floor serves as the top tread, so treads = risers − 1.
- Inch input: a plain number is inches; 1 in = 25.4 mm exactly.
Limitations
Where this tool stops — and what to use instead:
- It does not check headroom, width, handrails, guards, landings, nosing projection or open-riser rules; those are listed in R311.7 and your local code.
- It does not size stringers or treads structurally (span, species, grade, notch depth).
- Codes are amended locally and differ by country; the IRC check is a reference, not an approval.
Frequently asked questions
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 & references
- ICC — 2021 International Residential Code, Section R311.7 Stairways
- GOV.UK — Approved Document K: protection from falling, collision and impact (England)
- Wikipedia — Stairs (Blondel's step formula, rise and going)
- NIST SP 811 — Guide for the Use of the International System of Units (inch = 25.4 mm exactly)
External references open in a new tab. We are independent and not affiliated with these organizations.
Disclaimer
This calculator lays out a straight stair from the numbers you enter and compares them with IRC 2021 R311.7 and a comfort rule; it is not a design approval. Codes differ by country, state and city and are amended locally, and a safe stair also needs headroom, width, handrails, guards, landings and structural sizing that this tool does not check. Confirm with your local building department or a qualified builder before cutting stringers.
- Free
- No sign-up
- Runs entirely in your browser — nothing is uploaded.
- Formula and method shown above
Provided “as is” for general information only — results may be inaccurate, so verify before you rely on them. No warranty; use at your own risk.
Built and reviewed by HIFreeTools against the formula shown above and any authoritative references cited on this page. See our methodology and editorial standards below.
Related tools
- Roof Pitch CalculatorConstruction
- Tape Measure Calculator (Feet, Inches & Fractions)Construction
- Board Foot CalculatorConstruction
- Pythagorean Theorem CalculatorMath
- Slope CalculatorMath
- Trigonometry CalculatorMath
- Fraction CalculatorMath
- Concrete CalculatorMath
- Brick and Block CalculatorConstruction
- BTU CalculatorConstruction
Embed this tool on your site
Free to embed, no sign-up. Paste this code where you want the tool to appear: