Stair Calculator

Enter the floor-to-floor height and your preferred step size. The calculator works out the risers, treads, total run, stringer length and angle — and checks them against building code.

Measurements

How the stair calculator works

risers = ⌈ total rise ÷ target riser ⌉
riser height = total rise ÷ risers
treads = risers − 1
total run = treads × tread depth
stringer = √(rise² + run²), angle = atan(rise ÷ run)

Worked example

A total rise of 108 in with a 7.5 in target: 108 ÷ 7.5 = 14.4, so 15 risers of 7.2 in. That gives 14 treads; at 10 in each the total run is 140 in (11 ft 8 in). The stringer is √(108² + 140²) ≈ 176.8 in, and the angle is about 37.6°.

Code limits at a glance

RuleUS — IRC (residential)England & Wales — Approved Doc K (private stair)
Max riser7¾ in (197 mm)220 mm
Min tread / going10 in (254 mm)220 mm
Max pitch—42°
2R + G—550–700 mm
Min headroom6 ft 8 in (2,032 mm)2.0 m

Codes vary by state, country and stair type, and are amended over time. Check with your local building department before you build.

Frequently asked questions

What is the maximum riser height?

In the US the International Residential Code (IRC R311.7.5) allows a maximum riser of 7¾ inches and a minimum tread depth of 10 inches. In England and Wales, Approved Document K allows a maximum rise of 220 mm and minimum going of 220 mm for a private stair, with a pitch no steeper than 42°.

How do I calculate the number of steps?

Divide the total rise (finished floor to finished floor) by your target riser height and round up. That gives the number of risers; the number of treads is one less, because the upper floor acts as the last step.

What is a comfortable stair?

A common rule is that twice the riser plus the tread (2R + G) should be about 24–25 inches, or 600–640 mm. In the UK, Approved Document K requires 2R + G to be between 550 and 700 mm.

How long is a stair stringer?

The stringer length is the diagonal of the rise and run: √(total rise² + total run²). Buy a board at least a foot (300 mm) longer to allow for cuts at the top and bottom.

Embed this calculator

Run a building, landscaping or DIY site? Add the Stair Calculator to your page for free. Copy the code below and paste it into an HTML block; the calculator resizes itself to fit.

Pick your brand colour and the code updates to match. Free to use on any site, as long as the credit link stays in place. If your editor strips scripts, the calculator still works at a fixed height.

Last reviewed: . Results are estimates — confirm quantities with your supplier before ordering.