Stair Calculator with Diagram

Work out the number of steps, riser height, tread depth, total run, stair angle, stringer length and headroom – with a scaled stair diagram that redraws as you type and checks your design against US, UK, Canadian and Australian building codes. Free, no sign-up, imperial or metric.

Updated

Quick answer

To calculate stairs, divide the total rise (finished floor to finished floor) by your target riser height and round to a whole number of risers. Divide the total rise by that number to get the exact, equal riser height. Treads = risers − 1, and total run = treads × tread going. Stair angle = arctan(riser ÷ going), and stringer length ≈ √(total run² + total rise²). Example: a 9′ 0″ (108″) rise needs 15 risers of 7 3/16″; with 10 1/2″ treads the run is 12′ 3″ (147″) at 34.4°.

Units
Mode

IRC 2021 §R311.7 (stairways)

in

Finished floor to finished floor

in

Your ideal step height – all risers come out equal

in

Nosing to nosing, excluding the overhang

in

How far the tread overhangs the riser

in

Clear width of the stair

in

Set 0 to skip the headroom check

Stringer, tread & floor details
Stringer type
in

Used for the bottom-riser cut

in

Finished floor to ceiling below (joists + ceiling)

in

2×12 = 11¼″ actual; 225 mm common in the UK

in

16″ for 5/4 decking, 12″ for composite

Risers
15
14 treads
Riser height
7 3/16″
7.200 in
Tread going
10 1/2″
Tread depth 11 1/2″
Stair angle
34.4°
2R+G 24 7/8″
Total run
12′ 3″
147″
Stringer length
15′ 2 7/16″
Buy 18 ft stock
Headroom
88 1/4″
Min 80″
Code result
Passes
IRC (US residential)
Stair diagram – side elevationScaled side elevation of a straight stair with 15 risers of 7 3/16″ and 14 treads with a going of 10 1/2″. Total rise 9′ 0″ (108″), total run 12′ 3″ (147″), pitch 34.4°. Headroom at the stairwell opening edge is 88 1/4″ against a 80″ minimum.Lower finished floorUpper finished floor1234567891011121314Pitch (nosing) line34.4°Handrail 36″Headroom 88 1/4″ ✓108″Total riseTotal run 12′ 3″ (147″) · 14 treadsG 10 1/2″R 7 3/16″Opening 12′ 0″ (144″)IRC (US residential) · 15 risers · 14 treads · stairrunnercalculator.com
Scaled side elevation: 15 risers of 7 3/16″ and 14 treads of 10 1/2″ over a 12′ 3″ (147″) run at 34.4°. The dashed orange line is the pitch line; the red dotted line marks the minimum 80″ headroom.

Code checks – IRC (US residential)

  • Riser height
    7 3/16″ · needs ≤ 7 3/4″
    Pass
  • Tread going
    10 1/2″ · needs ≥ 10″
    Pass
  • Stair width
    36″ · needs ≥ 36″
    Pass
  • Headroom at opening edge
    88 1/4″ · needs ≥ 80″
    Pass
  • Rise of one flight
    9′ 0″ (108″) · needs ≤ 12′ 7″ (151″)
    Pass
  • Nosing projection
    1″ · needs 3/4″ – 1 1/4″ (tread under 11″)
    Pass
  • Handrail
    Required · needs 34″ – 38″ above nosing line
    Required with 4 or more risers.
    Info

Comfort & build guidance (not code)

  • Comfort formula 2R + G
    24 7/8″ · needs 23 5/8″ – 25 3/16″ ideal
    Pass
  • Comfortable angle
    34.4° · needs 30° – 37°
    Pass
  • R + G
    17 11/16″ · needs 17″ – 18″
    Pass
  • Stringer throat (after notching)
    5 5/16″ · needs ≥ 5″
    Pass

Compare riser counts

One more or one fewer step changes the riser height, run and angle. Pick the row that suits your space.

RisersRiserGoingTotal runAngle2R+GCode
138 5/16″10 1/2″126″38.4°27 1/8″✗
147 11/16″10 1/2″136 1/2″36.3°25 15/16″✓
157 3/16″10 1/2″147″34.4°24 7/8″✓Selected
166 3/4″10 1/2″157 1/2″32.7°24″✓
176 3/8″10 1/2″168″31.2°23 3/16″✓

Stringer mark-out schedule

Bottom riser on the stringer: 6 3/16″ (riser minus one tread thickness). Framing square: 7 3/16″ on the tongue, 10 1/2″ on the blade.

TreadHeightRunAlong stringer
17 3/16″10 1/2″12 3/4″
214 3/8″21″25 7/16″
321 5/8″31 1/2″38 3/16″
428 13/16″42″50 15/16″
536″52 1/2″63 11/16″
643 3/16″63″76 3/8″
750 3/8″73 1/2″89 1/8″
857 5/8″84″101 7/8″
964 13/16″94 1/2″114 9/16″
1072″105″127 5/16″
1179 3/16″115 1/2″140 1/16″
1286 3/8″126″152 3/4″
1393 5/8″136 1/2″165 1/2″
14100 13/16″147″178 1/4″

Materials & extras

Stringers
4 × 18 ft boards
Treads
14 × 11 1/2″ deep × 36″
Risers
15 × 7 3/16″ high
Handrail
14′ 10 1/4″ along pitch
Balusters
≈ 33 per side (4″/100 mm gap)
Min. stairwell opening
11′ 0″
Stair runner length
22.4 ft
Plan a stair runner for these steps →

Step detail

Going 10 1/2″Riser 7 3/16″Nosing 1″Tread 1″Tread depth = going + nosing = 11 1/2″

Stair dimensions at a glance

  • US homes (IRC): riser max 7¾″ (197 mm), tread min 10″ (254 mm), headroom min 6′ 8″ (2032 mm), width min 36″ (914 mm), handrail 34–38″ when there are 4 or more risers.
  • UK homes (Approved Document K, private stair): rise 150–220 mm, going 220–300 mm, pitch max 42°, 2R + G between 550 and 700 mm, headroom 2.0 m (1.9 m at the centre of a loft-conversion stair).
  • Canada (NBC, houses): rise 125–200 mm, run 255–355 mm, headroom 1950 mm. Australia (NCC): riser 115–190 mm, going 240–355 mm, 2–18 risers per flight.
  • Comfortable stairs (guidance, not code): 2R + G of 24–25″ (600–640 mm) and an angle of 30–37°.
  • Number of treads is always one fewer than the number of risers on a standard straight stair, because the upper floor acts as the last “tread”.

How to use the stair calculator

  1. 1

    Measure the total rise

    Measure vertically from the finished lower floor to the finished upper floor, including any flooring still to be laid.

  2. 2

    Pick your building code

    Choose IRC or IBC (US), Approved Document K (UK), NBC (Canada) or NCC (Australia) so the limits and checks match where you are building.

  3. 3

    Enter target riser and tread going

    A riser of 7–7½″ (175–200 mm) with a going of 10–11″ (250–280 mm) suits most homes. Or switch to Fit to a run if the horizontal space is fixed.

  4. 4

    Add nosing, width and the stairwell opening

    Nosing, stair width, upper-floor depth and opening length let the calculator check headroom and draw the stairwell on the diagram.

  5. 5

    Read the diagram and code checks

    The scaled diagram updates as you type. Fix anything marked red, then compare riser counts in the options table.

  6. 6

    Mark out the stringer

    Use the mark-out schedule (height and run to each tread) and cut the bottom riser short by one tread thickness so every step ends up equal.

Stair calculation formulas

ResultFormula
Number of riserstotal rise ÷ target riser, rounded to a whole number
Riser heighttotal rise ÷ number of risers
Number of treadsrisers − 1
Total runtreads × going
Stair anglearctan(riser ÷ going)
Stringer diagonal√(total run² + total rise²)
Comfort check2 × riser + going ≈ 24–25″ (600–640 mm)
Stringer throatboard depth − (riser × going ÷ √(riser² + going²))
Headroomceiling height − pitch-line height at the opening edge

Worked example (US, IRC)

Total rise 9′ 0″ (108″), target riser 7¼″, going 10 1/2″. 108 ÷ 7.25 = 14.9, so use 15 risers of 108 ÷ 15 = 7 3/16″ (under the 7¾″ maximum). That gives 14 treads and a total run of 12′ 3″ (147″). The angle is 34.4° and 2R + G is 24 7/8″, right in the comfortable range. The stringer diagonal is 15′ 2 7/16″ (182 7/16″), so buy 18 ft boards.

Worked example (UK, Part K private stair)

Total rise 2600 mm, target 200 mm, going 225 mm. 2600 ÷ 200 = 13, so 13 risers of 200 mm and 12 goings for a total run of 2,700 mm (2.70 m). The pitch is 41.6° – inside the 42° limit – and 2R + G = 625 mm, within 550–700 mm.

How to read the stair diagram

The diagram is a true-to-scale side elevation of one straight flight, redrawn every time you change a number.

  • Treads and risers – brown boards show each tread with its nosing overhang; the vertical lines are the risers. Step numbers count up from the bottom.
  • Stringer – the shaded board under the steps, drawn as a cut (notched) or housed (closed) stringer.
  • Pitch line – the dashed orange line through the nosings. The angle at its base is the stair pitch.
  • Handrail – the blue line, drawn parallel to the pitch line at your code's handrail height.
  • Headroom – the red dotted line is the minimum clearance above the pitch line; the green or red vertical shows the real headroom under the edge of the stairwell opening.
  • Dimensions – total rise, total run, one riser (R), one going (G) and the opening length.

Stair building code requirements compared

The headline stair rules for homes in the US, UK, Canada and Australia, plus US commercial buildings. Local amendments can be stricter, so always confirm with your building control body or inspector.

Stair code limits by country
RuleIRC (US residential)IBC (US commercial)UK private stairNBC Canada (houses)NCC Australia
Maximum riser7 3/4″ (197 mm)7″ (178 mm)8 11/16″ (220 mm)7 7/8″ (200 mm)7 1/2″ (190 mm)
Minimum riser—4″ (102 mm)5 7/8″ (150 mm)4 15/16″ (125 mm)4 1/2″ (115 mm)
Minimum going10″ (254 mm)11″ (279 mm)8 11/16″ (220 mm)10 1/16″ (255 mm)9 7/16″ (240 mm)
Maximum going——11 13/16″ (300 mm)14″ (355 mm)14″ (355 mm)
Maximum pitchSet by rise/goingSet by rise/going42°Set by rise/goingSet by rise/going
2R + G——550–700 mm—550–700 mm
Minimum headroom80″ (2032 mm)80″ (2032 mm)78 3/4″ (2000 mm)76 3/4″ (1950 mm)78 3/4″ (2000 mm)
Minimum width36″ (914 mm)44″ (1118 mm)Not set33 7/8″ (860 mm)Not set
Flight limit151″ (3835 mm) rise144″ (3658 mm) riseNo set limit145 11/16″ (3700 mm) rise2–18 risers
Handrail height864–965 mm864–965 mm900–1000 mm865–965 mm865–1200 mm

UK utility stairs: rise 150–190 mm, going 250–400 mm. UK general access stairs: rise 150–170 mm, going 280–425 mm; both limited to 12 rises per flight (16 in small premises). IRC nosing of ¾–1¼″ is required where the tread is under 11″.

What makes a comfortable stair?

Code limits are minimums for safety, not targets. Stairs feel easiest when the riser is around 7–7½″ (175–190 mm), the going is 10½–11″ (265–280 mm), the angle is 30–37°, and twice the riser plus the going comes to about 24–25″ (600–640 mm) – the length of an average stride. A steeper stair saves floor space but is harder for children and older people, and makes fitting a stair runner trickier.

Stair terms explained

Total rise
Vertical distance from the finished lower floor to the finished upper floor.
Riser (rise)
The vertical height of one step. All risers in a flight should be equal (IRC allows ⅜″ variation).
Going (run)
The horizontal depth of one step measured nosing to nosing, excluding the nosing overhang.
Tread depth
The full depth of a tread board: going plus nosing.
Nosing
The front edge of a tread that overhangs the riser below.
Total run
Horizontal length of the flight: number of treads × going.
Pitch line
An imaginary line joining the nosings. Pitch angle, handrail height and headroom are measured from it.
Stringer (string)
The inclined board that supports the treads – cut (notched) or housed/closed (treads let into grooves).
Headroom
Clear height measured vertically from the pitch line to the lowest overhead obstruction, such as the stairwell trimmer.
Flight
An unbroken run of steps between floors or landings.

Stair calculator FAQs

How do I calculate how many steps I need?

Divide the total rise by a target riser height of about 7–7½″ (175–200 mm) and round to the nearest whole number; that is the number of risers. Divide the total rise by the risers to get the exact riser height and make sure it is within your code limit. The number of treads is one less than the risers. For a 9′ 0″ (108″) rise that gives 15 risers of 7 3/16″ and 14 treads.

What is the standard rise and run for stairs?

In US homes (IRC) the maximum riser is 7¾″ and the minimum tread is 10″. In UK homes (Approved Document K, private stair) the rise is 150–220 mm, the going 220–300 mm, with a maximum pitch of 42°. A comfortable stair is around 7–7½″ rise with a 10½–11″ run.

How do I calculate the angle of a staircase?

Stair angle = arctan(riser height ÷ tread going). For example, a 7 3/16″ riser with a 10 1/2″ going gives 34.4°. Most comfortable stairs are between 30° and 37°; UK private stairs must not exceed 42°.

How long does a stair stringer need to be?

The stringer diagonal is the square root of (total run² + total rise²). Add about 12″ (300 mm) for the top and bottom cuts and buy the next standard length. A 9′ 0″ (108″) rise with a 12′ 3″ (147″) run has a 15′ 2 7/16″ (182 7/16″) diagonal, so you would buy 18 ft boards.

How much headroom do stairs need?

The IRC and IBC require 6′ 8″ (2032 mm). Approved Document K requires 2.0 m in the UK, reduced to 1.9 m at the centre of a loft-conversion stair (1.8 m at the side). Canada's NBC requires 1950 mm for houses and Australia's NCC 2.0 m. Headroom is measured vertically from the pitch line to the lowest overhead obstruction.

How many stairs can you have before a landing?

Under the IRC one flight may rise up to 151″ (12′ 7″) before a landing; under the IBC 12′. Australia's NCC allows 2 to 18 risers per flight, and Canada's NBC limits a flight to 3.7 m of rise. In the UK, utility and general-access stairs are limited to 12 rises per flight (16 in small premises); private stairs have no set limit, but more than 16 is uncomfortable.

What is the 2R + G rule?

It is a comfort formula: twice the riser plus the going should be about 24–25″ (600–640 mm), the length of a normal stride. In the UK and Australia it is a legal requirement for 2R + G to fall between 550 and 700 mm. A 200 mm riser with a 225 mm going gives 625 mm.

Does the stair calculator work for deck and outdoor steps?

Yes. Choose IRC for US decks and set the stringer type to cut. The calculator checks the remaining stringer throat (at least 5″ is common guidance) and works out how many stringers you need at your chosen spacing.

Can I download or print the stair diagram?

Yes. Download the scaled diagram as an SVG or a high-resolution PNG, print the page, export the mark-out schedule as CSV or copy a share link that reopens the calculator with your numbers.

Is this stair calculator free?

Yes. The stair calculator and diagram are free to use with no sign-up, in imperial or metric units.

Sources

  • International Code Council – 2021 International Residential Code, Section R311.7 Stairways
  • International Code Council – 2021 International Building Code, Sections 1011 and 1014
  • HM Government – Approved Document K: Protection from falling, collision and impact (England)
  • National Research Council Canada – National Building Code of Canada 2020, Section 9.8
  • Australian Building Codes Board – NCC 2022 Housing Provisions, Part 11.2
  • American Wood Council – DCA 6 Prescriptive Residential Wood Deck Construction Guide

Results are estimates to help you plan. Building regulations vary by country, state and local authority and are updated regularly – check your design with your building inspector or building control before you cut timber.

Want prices for this staircase?

Tell us what you're after and we'll match you with vetted stair runner suppliers and fitters. Free, no account, no obligation.

Get quotes

Start with the numbers: our stair runner calculator also works as a stair runner length calculator, adding nosing wrap, landings, winders, pattern repeat and waste so you order the right length first time.