Stair Calculator
Work out the number of steps, riser height, tread depth, total run, stringer length and angle — and check them against common code limits.
- Free
- No sign-up
- Formula shown
- US & metric
Your estimate
Risers (steps)
14 risers × 7.71 in
- Treads
- 13
- Total run
- 130 in (10.83 ft)
- Stringer length (approx.)
- 169 in
- Angle
- 37.6°
- 2R + G (comfort, 550–700 mm)
- 25.43 in
- Codes also govern headroom, nosings, handrails and guards — confirm with your local building authority.
Show the math
- Risers = total rise ÷ max riser = 13.94 → 14
- Actual riser = 108 in ÷ 14 = 7.71 in
- Treads = risers − 1 = 13; run = treads × going = 130 in
- Stringer ≈ √(rise² + run²) = 169.01 in (buy longer stock to allow for cuts)
Shopping list & cost
| Item | Spec | Qty | Cost |
|---|---|---|---|
| Stringer stock | 2×12 typical | 3 × 16 ft | — |
| Treads | per design | 13 | — |
| Risers (if closed) | per design | 14 | — |
Prices are what you enter under Advanced options. Estimates only — check stock and pricing with your supplier.
Quick answer A 108 in (9 ft) floor-to-floor rise with a 7¾ in maximum riser needs 14 risers × 7.71 in and 13 treads; at 10 in treads the total run is 130 in (10.83 ft) and the stringer about 169 in. A 2,700 mm rise at 190 mm max needs 15 risers × 180 mm. Risers = total rise ÷ maximum riser, rounded up.
Diagram
How to use this calculator
- Measure total rise from finished floor to finished floor (include flooring you will add).
- Enter the maximum riser your code allows — the calculator spreads the rise evenly.
- Enter tread depth (going) excluding nosing.
- Choose a code to check against; warnings appear if a limit is exceeded.
Method & assumptions
Risers = Total rise ÷ Max riser, rounded up Riser height = Total rise ÷ Risers Treads = Risers − 1; Total run = Treads × Tread depth Stringer ≈ √(Rise² + Run²); Pitch = atan(Riser ÷ Tread)
- Going
- UK term for tread depth (horizontal)
- 2R + G
- comfort rule: twice the riser plus the going, ideally 550–700 mm
Assumptions & limits
- Straight flight with the top tread being the upper floor.
- Code limits shown are common figures for private dwellings and are informational only.
- Headroom, landings, handrails and guards are not checked.
Rounding: purchase quantities are always rounded up to whole bags, boxes, sheets or bundles. See our methodology.
Worked examples
Imperial: deck 40 in above grade, 7.5 in max riser, 11 in tread
- 40 ÷ 7.5 = 5.33 → 6 risers of 6.67 in
- 5 treads × 11 = 55 in run; stringer ≈ √(40² + 55²) = 68 in
Metric: 2,640 mm floor to floor, 220 mm max (UK), 225 mm going
- 2,640 ÷ 220 = 12 risers of 220 mm exactly
- Pitch = atan(220 ÷ 225) = 44.4° → too steep for the 42° limit
- 13 risers of 203 mm with a 230 mm going gives atan(203 ÷ 230) = 41.4° ✓
In depth: stairs planning notes
The rise-and-run rules
A comfortable stair balances riser height and tread depth. A widely used rule of thumb is that twice the riser plus the tread should be about 24–25 in (600–630 mm); in the UK and Ireland it is written as 2R + G between 550 and 700 mm. Building codes set limits: the US International Residential Code limits risers to 7¾ in and requires treads of at least 10 in, the UK Approved Document K limits private stairs to a 220 mm rise, a 220 mm minimum going and a 42° pitch, and Australia's NCC sets 115–190 mm risers and 240–355 mm goings for most stairs.
All risers in a flight must be equal, within a small tolerance, because people subconsciously expect the next step to match the last. That is why the calculator divides the total rise evenly rather than using a fixed riser height.
From numbers to stringers
Measure the total rise from finished floor to finished floor — including any flooring that will be added — because a missing ¾ in of flooring at the top or bottom creates an uneven first or last step, one of the most common stair errors. The number of treads is one fewer than the number of risers when the top step is the upper floor.
Stringers are cut from wide lumber, usually 2×12 in the US, using a framing square set to the riser and tread. The stringer length shown is an approximation along the pitch line; buy a board a foot or so longer to allow for the top and bottom cuts. Allow for headroom above the stair — codes typically require about 6 ft 8 in (2 m) measured from the pitch line.
Handrails, guards, landings and winders all have detailed code requirements. Use this calculator to plan layout and materials, then check the full rules with your building department or local authority.
Reference table
| Code | Riser / tread |
|---|---|
| US IRC R311.7 | riser ≤ 7¾ in, tread ≥ 10 in |
| UK Approved Document K (private) | rise ≤ 220 mm, going ≥ 220 mm, pitch ≤ 42° |
| Australia NCC (typical) | riser 115–190 mm, going 240–355 mm |
Key facts
- Comfortable riser
- 6¾–7½ in (170–190 mm)
- Comfort rule
- 2R + G ≈ 24–25 in (600–630 mm)
- Stringer stock
- typically 2×12 (45 × 220 mm)
Tips & common mistakes
- All risers must be equal; even small differences cause trips. Account for finished flooring at top and bottom.
- Cut one stringer, test-fit it, then use it as a template.
- Building regulations for stairs are safety-critical — confirm with your local building department.
Frequently asked questions
How many steps do I need for 9 feet?
A 108 in rise needs 14 risers of about 7.7 in at a 7¾ in maximum, with 13 treads.
What is the maximum riser height?
The US IRC allows 7¾ in; UK private stairs 220 mm; Australian homes typically 190 mm. Local codes may differ.
How do I calculate stringer length?
Use Pythagoras: √(total rise² + total run²), then add for the cut at the top and bottom.
How many treads are there?
One fewer than risers when the top landing is the upper floor.
What is a comfortable stair angle?
Roughly 30–37°. Many codes cap private stairs at around 42°.
Sources
- ICC – International Residential Code R311.7 Stairways — checked 2026-10; verify before launch
- UK Government – Approved Document K — checked 2026-10; verify before launch
- ABCB – National Construction Code (Australia) — checked 2026-10; verify before launch
Default values (bag yields, coverage rates, densities) are typical figures from manufacturer literature. Always check the label on the product you buy.
Related calculators
- Board Foot CalculatorConvert lumber dimensions to board feet and cubic meters, and price hardwood or dimensional lumber by the board foot.
- Deck Board CalculatorWork out how many deck boards, joists, screws or hidden clips you need for a deck, using real board widths, gaps and stock lengths.
- Feet and Inches CalculatorAdd, subtract, multiply and divide feet-and-inch measurements with fractions to 1/16″, and convert to decimal feet, inches and millimeters.
Learn more in our guides
Going deeper: Stringer and landing load checks: StructuralEngineerLab.
Cite or embed this calculator
DIYCalcLab. “Stair Calculator.” Oct 18, 2026. https://diycalclab.com/lumber/stair-calculator/
An embeddable version for blogs and contractor sites is planned.
Estimates only. Verify quantities with your supplier and local building codes. For structural, electrical or safety-critical work, consult a licensed professional. Full disclaimer.