Stair Calculator

Risers, treads, total run and stringer length from one measurement — the total rise.

A staircase is a piece of arithmetic before it is a piece of carpentry. You know the total rise — the floor-to-floor height, measured from the finished floor below to the finished floor above — and from that one number the whole flight follows: how many risers you need, how high each one actually is, how many treads, how far the stair runs across the floor, and how long the stringer board must be. This stair calculator does all of it as you type, draws the flight to scale, and checks the result against the building code, so a stair that looks right on paper is also one you are allowed to build.

The code limits matter because they are safety limits, not suggestions. Under the US International Residential Code (IRC R311.7.5), a riser may be no higher than 7 ¾ inches and a tread no less than 10 inches deep, and the largest riser in a flight may not exceed the smallest by more than ⅜ inch — which is why every riser in a flight is cut to exactly the same height. The UK Building Regulations (Approved Document K) differ: a maximum riser of 220 mm and a minimum going of 220 mm. Comfort has its own rule of thumb on top of the code: twice the riser plus the tread (2R + T) should land between 24 and 26 inches. Measure the rise carefully, including the thickness of the finished flooring at both ends, because a quarter inch of error there is spread across every step.

Units
How do you want to set the risers?

Your stair

15 risers × 7.2 in

Number of risers15
Actual riser height7.20 in
Number of treads14
Total run154.0 in (12 ft 10 in)
Stringer length188.1 in (15 ft 8 in)
Stair angle35.0°
Comfort check (2R + T)25.4 in — comfortable
IRC riser ≤ 7¾ in✓ Pass
IRC tread ≥ 10 in✓ Pass

How the stair calculation works

Formulas

Number of risers = Total rise ÷ desired riser height, rounded up

Actual riser height = Total rise ÷ number of risers

Number of treads = Number of risers − 1

Total run = Number of treads × tread depth

Stringer length = √(total rise² + total run²)

Stair angle = arctan(total rise ÷ total run)

Risers are rounded up, never down: rounding down would make each riser taller than the one you asked for, and a riser over the code maximum is the one mistake that forces a rebuild. Because the total rise is divided evenly, every riser in the flight is identical, which also satisfies the code rule that risers in one flight vary by no more than ⅜ inch. There is one fewer tread than risers, because the top step is the upper floor itself. The stringer is the hypotenuse of the right triangle formed by the total rise and the total run, so Pythagoras gives its length directly — add a little extra board length for the cuts at each end. The limits checked on this page are the US IRC: maximum riser 7 ¾ in (R311.7.5.1) and minimum tread 10 in (R311.7.5.2). In the UK, Approved Document K allows a maximum riser of 220 mm and a minimum going of 220 mm, and also requires 2R + G to fall between 550 mm and 700 mm. Your local code may amend these figures — always confirm with your building department.

Worked example

A 9 ft floor-to-floor rise is 108 inches. With a desired riser of 7.5 inches: 108 ÷ 7.5 = 14.4, rounded up to 15 risers, so the actual riser is 108 ÷ 15 = 7.2 inches. There are 14 treads; at 11 inches each the total run is 154 inches (12 ft 10 in). The stringer is √(108² + 154²) = √35,380 ≈ 188.1 inches (15 ft 8 in), at an angle of 35.0°. The comfort check is 2 × 7.2 + 11 = 25.4 inches, inside the 24–26 inch band, and both IRC limits pass.

Frequently asked questions

What is the maximum riser height allowed by code?

Under the US International Residential Code (IRC R311.7.5.1), the maximum riser height is 7 ¾ inches (197 mm). Local amendments can allow more — some jurisdictions permit 8 ¼ inches. The UK Building Regulations (Approved Document K) allow a maximum riser of 220 mm. There is no IRC minimum riser, but risers under 4 inches are a tripping hazard.

What is the minimum tread depth for stairs?

The IRC requires a minimum tread depth of 10 inches (254 mm), measured nosing to nosing. The UK Building Regulations require a minimum going of 220 mm. Deeper treads are more comfortable; 11 inches is a common choice, and the nosing projection of ¾ to 1 ¼ inches adds to the usable depth.

How many risers do I need for a 9 foot rise?

A 9 foot (108 inch) rise with a target riser of 7.5 inches needs 15 risers, giving an actual riser height of 7.2 inches. With 15 risers there are 14 treads. Always round the riser count up, so the actual riser never exceeds the height you planned for.

How do you calculate stringer length?

By Pythagoras: stringer length is the square root of (total rise squared + total run squared). For a 108 inch rise and a 154 inch run, that is the square root of 35,380, or about 188 inches. Buy the board a little long — the plumb and level cuts at each end eat into the length.

What is the 2R + T rule for comfortable stairs?

A comfortable stair has twice the riser height plus the tread depth between about 24 and 26 inches (610 to 660 mm). For example, a 7.2 inch riser with an 11 inch tread gives 2 × 7.2 + 11 = 25.4 inches. Stairs outside that band still meet code, but they feel steep or awkward to climb.

All calculations are estimates and a code check, not a substitute for your local building code. Confirm the adopted edition and any local amendments with your building department before you build.