200+ free tools. No sign-up. No hidden fees.Explore the toolkit ↗
Find a tool ↗

Home›Stair Calculator

Stair Calculator

Work out a straight stair from its total rise: how many risers and treads, each riser height, the total run and the stringer length — plus the lumber to build it. Based on the IRC code rules used across the US.

Calculate your stairs

Units:

The IRC rule (R311.7): maximum riser height 7¾ in, minimum tread depth 10 in, and the 2R+T comfort rule — 2 × riser + tread ≈ 25 in. The calculator rounds risers UP to keep each riser at or under 7¾ in, then makes every riser equal.

Your results

–
risers (steps)
–
each riser height (in)
–
treads
–
total run (ft)
–
stringer length (ft)
–
boards to buy (with waste)

How the stair formula works

A straight stair is one triangle. The vertical side is the total rise (floor to floor), the horizontal side is the total run, and the stringer is the hypotenuse. The code rules decide how many steps that triangle is cut into.

Number of risers = ceil(total rise ÷ 7.75) — the IRC maximum riser height is 7¾ in (R311.7.5.1)

Each riser height = total rise ÷ risers — every riser must be equal, within 3/8 in

Number of treads = risers − 1 — the top step is the floor above

Total run = treads × tread depth — minimum tread depth 10 in (R311.7.5.2)

Stringer length = √(rise² + run²) — the hypotenuse of the stair triangle

Comfort rule = 2 × riser + tread ≈ 25 in

Risers are rounded UP, never down: rounding down would make each riser taller than the 7¾ in code maximum. Headroom above the stair must be at least 6 ft 8 in (IRC R311.7.2). UK Building Regulations (Part K) use a similar rule — maximum riser 220 mm, minimum going 220 mm — so metric users can rely on the same layout with 7.75 in ≈ 197 mm.

Worked example

A stair up to a 96 in (8 ft) floor, with 10.5 in treads, 3 ft wide, on 3 stringers:

Risers: 96 ÷ 7.75 = 12.4 → 13 risers

Each riser: 96 ÷ 13 = 7.38 in

Treads: 13 − 1 = 12 treads

Total run: 12 × 10.5 = 126 in = 10.5 ft

Stringer: √(96² + 126²) = √25,092 = 158.4 in = 13.2 ft

Comfort check: 2 × 7.38 + 10.5 = 25.3 in — right on target

Boards: 3 stringers + 12 treads = 15 → 16 with 5% waste

Cost: 3 × $25 + 12 × $16 = $267 (stringer + tread boards)

Buy 14 ft stringer boards (a 13.2 ft stringer needs a 14 ft board) and 12 ft tread boards cut to 3 ft lengths. An 8 ft ceiling with a standard 10 ft floor-to-floor height works out to 15 risers at about 8 in — too tall for code, so a 10 ft rise needs 16 risers at 7.5 in.

How much does stair lumber cost? (US, 2026)

Prices are 2026 US retail ranges (Home Depot / Lowe's lists). Prices vary by region and species; check local prices before ordering.

ItemTypical price
2×12 × 14 ft stringer board (pine)$20–$30
2×12 × 12 ft stringer board (pine)$17–$25
1×12 × 8 ft tread board (pine)$12–$20
1×8 riser board, 8 ft$5–$10
Oak tread, 11½ in × 4 ft$30–$50

Waste allowance

Add 5% for the odd miscut stringer — one wrong cut ruins a whole 14 ft board. Add 10% on a wide stair or a first stair build. Order one spare stringer board if you have never cut a stair before: it is cheaper than a second trip.

Frequently asked questions

How do I calculate stair risers?

Divide the total rise (floor to floor) by 7.75 — the maximum riser height — and round UP. For an 8 ft (96 in) rise, 96 ÷ 7.75 = 12.4 → 13 risers, each 96 ÷ 13 = 7.38 in. Every riser must be the same height.

How many steps do I need for an 8 foot ceiling?

An 8 ft ceiling usually means about a 9–10 ft floor-to-floor rise once the joists are counted. A 96 in rise needs 13 risers (7.38 in each) and 12 treads; a 120 in rise needs 16 risers (7.5 in each) and 15 treads.

How long is a stair stringer?

It is the hypotenuse: √(rise² + run²). For a 96 in rise and a 126 in run, that is √(9,216 + 15,876) = 158.4 in, or 13.2 ft — so buy 14 ft boards.

What is the 2R+T rule for stairs?

Twice the riser height plus the tread depth should be about 25 inches (roughly 63–65 cm). A 7.38 in riser with a 10.5 in tread gives 25.3 in — comfortable. Below 24 in the stair feels steep; above 26 in it feels like a ramp.

What is the maximum riser height in the US?

7¾ inches, under the International Residential Code (IRC R311.7.5.1). The minimum tread depth is 10 inches. Local codes can be stricter — always check before building.

Related calculators