Construction & Home

Stair Calculator

Calculate a straight stair’s riser count, exact riser height, tread count, horizontal run, stair angle and geometric stringer line from the finished floor-to-floor rise. The results are planning geometry; local building requirements and the actual stringer layout still need separate verification.

UFWritten and coded by Umer Farooq, CalcsDone founder/developer•Updated September 24, 2026
Core method: choose a target riser height, divide the total rise by it, round to a whole number of risers, then divide the total rise by that whole number. This makes every calculated riser equal. For a floor-to-floor straight stair where the upper floor serves as the final walking surface, tread count is one less than riser count.

Calculate Stair Rise, Run & Stringer Line

Straight floor-to-floor stair
ft
in
Additional inches; enter less than 12.
in
A planning target, not the final riser height.
in
Use the applicable code definition of tread depth/run for your project.
Risers
—
exact height —
Treads
—
floor-to-floor assumption
Total run
—
angle —
Geometric stringer line
—
rise/run hypotenuse
Scope: this tool does not design or size structural stringers, determine cut details, check headroom, landings, guards, handrails, nosings, width, loads or local amendments. The geometric stringer line is not a lumber cut length or structural sizing recommendation.
Method

How the Stair Calculator Works

The calculator separates simple geometry from code compliance so a planning result is not presented as an approved stair design.

1. Convert total rise

Feet and inches are converted to one value in inches: total rise = feet × 12 + inches.

2. Find a whole riser count

risers = round(total rise ÷ target riser). The exact equal riser height is then total rise ÷ risers.

3. Calculate run and angle

Under the stated floor-to-floor assumption, treads = risers − 1 and total run = treads × tread run. Angle is atan(total rise ÷ total run).

4. Calculate the diagonal

The geometric slope line is √(rise² + run²). Real stringer stock and cut layout require additional construction details that this calculator does not model.

Worked examples

Stair Calculator Examples

Each example uses the same formulas as the calculator and keeps code approval separate from the arithmetic.

9 ft total rise

Total rise108 in
Target / tread7 in / 10 in
15 risers × 7.20 in
14 treads give a 140 in run. Geometric stringer line ≈ 176.8 in and stair angle ≈ 37.7°.

8 ft 6 in total rise

Total rise102 in
Target / tread7.5 in / 10 in
14 risers × 7.29 in
13 treads give a 130 in run. Geometric stringer line ≈ 165.2 in and stair angle ≈ 38.1°.

3 ft 6 in deck rise

Total rise42 in
Target / tread6 in / 12 in
7 risers × 6.00 in
6 treads give a 72 in run. Geometric stringer line ≈ 83.4 in and stair angle ≈ 30.3°.
Code context

Why the Calculator Does Not Declare a Stair “Code Compliant”

Stair requirements depend on the governing code, occupancy, jurisdiction and adopted amendments. A residential stair and an OSHA-regulated workplace stair are not governed by the same dimensional limits. For example, OSHA’s current general-industry standard for standard stairs requires a 30°–50° angle, maximum 9.5-inch riser height and minimum 9.5-inch tread depth; those numbers should not be substituted for residential IRC requirements.

The calculator therefore shows geometry and a neutral planning note rather than a green “passes code” badge. Verify the applicable adopted code and local amendments before construction.

Planning details

Measurements That Matter Before Building Stairs

Finished floor-to-floor rise

Measure between finished walking surfaces. Changes in flooring thickness can change the first or last riser and create an unwanted variation.

Tread run versus board depth

Do not assume the physical tread board depth is identical to the dimension defined as tread depth/run by the applicable code. Nosing and riser geometry can affect how the dimension is measured.

Headroom, landings and rails

These are separate constraints. OSHA, for example, separately regulates vertical clearance, landings, handrails and stair-rail systems in workplace settings.

Structural stringer design

The Pythagorean diagonal is useful geometry, but it does not determine lumber size, allowable span, notches, bearing, connections or structural capacity.

Comfort context

What Is the 2R + G Stair Formula?

The expression 2 × riser + going is historically associated with stair comfort rather than being a universal building-code pass/fail rule. A NIST stair-safety publication discusses Blondel’s historical 2R + G = 24 in relationship and later variations. Because comfort relationships and code requirements are different concepts, this calculator does not use the formula to certify a design.

Common mistakes

Stair Layout Mistakes to Avoid

Building the target riser

The target is only used to select a whole riser count. Build from the resulting equal riser height after all project requirements are verified.

Using the wrong code limits

Do not mix residential, commercial, workplace or local rules. The applicable jurisdiction and occupancy matter.

Treating the diagonal as cut length

The geometric hypotenuse excludes real-world end cuts, bearing, connection details and structural sizing.

Ignoring finished surfaces

Measuring rough framing instead of final floor elevations can change end-riser dimensions once finish materials are installed.

FAQ

Stair Calculator FAQ

Why is the actual riser different from my target?
The total rise must be divided into a whole number of equal risers. The target helps choose that count; the exact riser is total rise divided by the final whole number.
Why are there fewer treads than risers?
For the floor-to-floor straight-stair arrangement modeled here, the upper floor serves as the final walking surface, so the calculator uses one fewer tread than risers. Other stair configurations may need different modeling.
Does this calculator check residential stair code?
No. It calculates geometry. Residential requirements vary with the adopted code and local amendments, so verify the exact project with the authority having jurisdiction.
Is the stringer result the board length I should buy?
No. It is the geometric diagonal between total rise and total run. Actual stringer stock, cuts, bearing and structural design require additional information.
Can I use it for deck stairs?
The straight-stair geometry can be used as a planning calculation, but deck stairs have project-specific structural, landing, footing, guard/handrail and local-code requirements outside this tool.
What if my stair has a landing or turns?
Calculate each straight flight separately using the appropriate rise and run for that flight. This calculator does not automatically divide a multi-flight stair around a landing.
Related

Related Construction Calculators

Sources & methodology

Stair Calculator Sources

UF

About this calculator

Written and coded by Umer Farooq, founder/developer of CalcsDone. The tool provides transparent straight-stair geometry and links to primary code/safety references; it does not claim professional engineering, architectural review or code approval.

Scroll to Top