Calculators.Life Calculator
Construction

Stair Calculator with Diagram

Input Parameters

Scenarios
The total vertical distance from the finished lower floor to finished upper floor.
Depth of each step tread excluding nosing (standard minimum is 10 inches per IRC R311.7.5.2).

Computed Results

Stringer Length (in)
169.01
Number of Risers14
Individual Riser Height (in)7.71
Number of Treads13
Total Run Length (in)130
Stair Angle (°)39.72
Comfort Rule (2R + T, ideal 24″–26″)25.43

The stair calculator with diagram determines the exact dimensions needed to build a staircase, including stringer length, riser height, and total run. By entering your floor-to-floor height and desired tread depth, you can quickly estimate the geometry and ensure your design meets standard comfort rules.

Disclaimer: This calculator provides mathematical estimates for stair geometry and should not replace professional architectural or engineering advice or local building code verification.

Practical Use Cases

Planning a staircase requires precise geometry to ensure safety and comfort. This calculator is useful for determining the layout of interior residential stairs, exterior deck steps, or basement entryways. By calculating the exact stringer length and individual riser height, builders and DIYers can map out their cuts before purchasing materials. It also evaluates the "comfort rule" to help you design stairs that feel natural to climb.

Formula & Explanation

The calculator uses standard geometry and common building practices to determine stair dimensions. All inputs are first converted to inches for calculation.

First, the number of risers is estimated by dividing the total rise by a standard 7.5 inches and rounding to the nearest whole number. If this results in a riser height greater than 7.75 inches, the number of risers is recalculated by rounding up the total rise divided by 7.75.

Riser Height = Total Rise ÷ Number of Risers

The number of treads is always one less than the number of risers. The total run is calculated by multiplying the number of treads by the tread run.

Total Run = Number of Treads × Tread Run

The stringer length is found using the Pythagorean theorem:

Stringer Length = √(Total Rise² + Total Run²)

The stair angle is determined using trigonometry:

Stair Angle = arctan(Total Rise ÷ Total Run) × (180 ÷ π)

Finally, the comfort rule (often called the 2R + T rule) is calculated to check if the stairs will be comfortable to use. The ideal range is typically between 24 and 26 inches.

Comfort Rule = (2 × Riser Height) + Tread Run

Verified Scenario Walkthroughs

Here are several examples demonstrating how different inputs affect the stair layout.

Small basement stair entry case

For a total rise of 84 inches and a tread run of 9 inches, the calculator determines a stringer length of 123.11 inches. This layout requires 11 risers (each 7.64 inches high) and 10 treads, resulting in a total run of 90 inches. The stair angle is 43.03°, and the comfort rule evaluates to 24.27.

Standard residential floor height

With a total rise of 9 feet and a tread run of 11 inches, the stringer length is 179.2 inches. The staircase will have 14 risers at 7.71 inches each and 13 treads. The total run is 143 inches, the angle is 37.06°, and the comfort rule is 26.43.

Metric conversion for large staircase

If you input a total rise of 350 cm and a tread run of 30 cm, the calculator converts these to inches internally. The resulting stringer length is 243.52 inches. It calculates 18 risers (7.66 inches each) and 17 treads, with a total run of 200.79 inches. The stair angle is 34.46°, and the comfort rule is 27.12.

Deep tread deck stair design

For a short deck stair with a total rise of 4 feet and a deep tread run of 14 inches, the stringer length is 96.75 inches. This requires 7 risers (6.86 inches each) and 6 treads. The total run is 84 inches, the angle is a shallow 29.74°, and the comfort rule is 27.71.

How to Use the Calculator

Follow these steps to determine your stair layout:

  1. Measure the total vertical distance from the finished lower floor to the finished upper floor and enter it as the Total Rise.
  2. Select the appropriate unit of measurement for the total rise (inches, feet, centimeters, or meters).
  3. Enter your desired Tread Run, which is the depth of each step excluding the nosing overhang.
  4. Select the unit of measurement for the tread run.
  5. Review the calculated stringer length, riser height, total run, and stair angle to plan your layout.

Inputs & Outputs

FieldTypeDescription
Total Rise (Floor-to-Floor Height)InputThe total vertical distance from the finished lower floor to finished upper floor.
Total Rise UnitInputUnit of measurement for the total rise.
Tread Run (Depth of Each Step)InputDepth of each step tread excluding nosing (standard minimum is 10 inches per IRC R311.7.5.2).
Run UnitInputUnit of measurement for the tread run.
Stringer Length (in)OutputThe diagonal length of the stair stringer from top to bottom.
Number of RisersOutputThe total count of vertical steps required.
Individual Riser Height (in)OutputThe exact vertical height of each individual step.
Number of TreadsOutputThe total count of horizontal steps (always one less than the number of risers).
Total Run Length (in)OutputThe total horizontal distance the staircase will occupy.
Stair Angle (°)OutputThe angle of incline of the staircase.
Comfort Rule (2R + T, ideal 24″–26″)OutputA standard metric used to evaluate the ergonomic comfort of the stairs.

Frequently Asked Questions

What is the comfort rule for stairs?

The comfort rule, often expressed as 2R + T (two times the riser height plus the tread depth), is a traditional guideline used to ensure stairs feel natural to climb. An ideal result typically falls between 24 and 26 inches.

Why is the number of treads different from the number of risers?

A staircase always has one fewer tread than risers because the upper floor landing acts as the final step up, meaning you do not need an additional tread piece at the very top.

How does the calculator determine the number of risers?

The calculator divides the total rise by a standard target height of 7.5 inches. If the resulting riser height exceeds 7.75 inches, it recalculates by adding an additional riser to keep the step height within common building standards.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.