Stairs Calculator

Calculate the number of steps, riser height, tread depth, and stringer length for your stairs. Compliant with building codes. Includes diagrams and formulas.

Full original guide (expanded)

Data Source and Methodology

This calculator is based on the prescriptive standards for stairways found in the 2021 International Residential Code (IRC), Section R311.7 (Stairways). This is the foundational building code used across most of the United States.

Source: International Code Council (ICC)
Reference: 2021 IRC, Section R311.7.5 (Risers and treads)
Date: 2021
Link: View IRC R311.7

All calculations strictly adhere to the formulas and constraints derived from this source. The calculator determines the number of risers by dividing the total rise by the maximum allowed riser height, then recalculates for uniform dimensions, as required by **R311.7.5.1 (Dimensional uniformity)**.

The Formulas Explained

The core logic of stair calculation involves a few key steps to ensure safety and compliance.

1. Calculate Number of Risers (rounded up): $$ RiserCount = \lceil \frac{TotalRise}{MaxRiserHeight} \rceil $$

2. Calculate Actual Riser Height: $$ RiserHeight = \frac{TotalRise}{RiserCount} $$

3. Calculate Number of Treads: $$ TreadCount = RiserCount - 1 $$

4. Calculate Tread Depth & Total Run (if Total Run not provided): $$ \text{Ideal TreadDepth} \approx 25 \text{ inches} - (2 \times RiserHeight) $$ $$ \text{Actual TreadDepth} = \max(\text{Ideal TreadDepth}, \text{MinTreadDepth}) $$ $$ TotalRun = TreadCount \times \text{Actual TreadDepth} $$

5. Calculate Stringer Length (Pythagorean Theorem): $$ StringerLength = \sqrt{TotalRise^2 + TotalRun^2} $$

6. Calculate Bottom Riser Cut (Adjusted for Tread Thickness): $$ BottomRiserCut = RiserHeight - TreadThickness $$

Glossary of Variables

  • Total Rise: The total vertical distance from the finished lower surface to the finished upper surface.
  • Total Run: The total horizontal distance covered by the staircase, from the face of the first riser to the face of the top riser.
  • Riser: The vertical component of a step. `RiserHeight` is the height of one step.
  • Tread: The horizontal component of a step. `TreadDepth` is the depth of one step, from front to back.
  • Stringer: The long diagonal board (typically a 2x12) that supports the treads and risers.
  • Stair Angle: The angle of incline of the staircase, typically between 30° and 37°.
  • Stringer Throat: The amount of wood remaining on a stringer after the tread and riser "bird's mouth" cuts are made. A minimum of 5 inches (12.7 cm) is recommended for structural integrity.

How It Works: A Step-by-Step Example

Let's design a stair for a deck with a **Total Rise of 108 inches**.

Inputs:
- Total Rise: `108 in`
- Max Riser Height (Code): `7.75 in`
- Min Tread Depth (Code): `10 in`
- Total Run: (Leave blank)

  1. Calculate Riser Count:
    $ \frac{108 \text{ in}}{7.75 \text{ in}} = 13.93 $
    We must round up to the next whole number, so we will have **14 risers**.
  2. Calculate Actual Riser Height:
    $ \frac{108 \text{ in}}{14 \text{ risers}} = \textbf{7.71 in per riser} $
    (This is less than 7.75", so it is compliant).
  3. Calculate Tread Count:
    $ 14 \text{ risers} - 1 = \textbf{13 treads} $
  4. Calculate Tread Depth:
    Using the "Rule of 25" (2R + T ≈ 25):
    $ (2 \times 7.71) + T = 25 \rightarrow 15.42 + T = 25 \rightarrow T = 9.58 \text{ in} $
    However, our code minimum is `10 in`. We must use the larger value.
    Actual Tread Depth = **10 inches**.
  5. Calculate Total Run:
    $ 13 \text{ treads} \times 10 \text{ in} = \textbf{130 \text{ inches}} $
  6. Calculate Stringer Length:
    $ \sqrt{108^2 + 130^2} = \sqrt{11664 + 16900} = \sqrt{28564} = \textbf{169.01 \text{ inches}} $

The calculator provides all these values instantly, ensuring all steps are uniform and code-compliant.

Frequently Asked Questions (FAQ)

What is the best riser height for stairs?

While the 2021 IRC allows a maximum riser height of 7.75 inches (19.7 cm), many builders find that a height between 7 and 7.5 inches is the most comfortable for the average person. This calculator optimizes for a height as close to 7 inches as possible without exceeding your specified maximum.

Why is the bottom riser cut a different size?

The bottom riser on the stringer is cut shorter to account for the thickness of the first tread board. All other risers will "sit" on top of the tread below them. To make the *finished* height of all steps identical, the very first cut on the stringer (which rests on the subfloor) must be `ActualRiserHeight - TreadThickness`.

How many stringers do I need?

This calculator determines the *dimensions* of a stringer, not the quantity. As a general rule of thumb for standard wood decking (like 2x6 or 5/4" boards), stringers should be placed a maximum of 16 inches (40.6 cm) on center. For a 36-inch wide staircase, you would typically need 3 stringers.

What is the 3/8-inch (9.5mm) rule for stairs?

This refers to the IRC R311.7.5.1 (Dimensional uniformity) standard. It states that the variation between the tallest riser and the shortest riser (or deepest tread and shallowest tread) in a single flight of stairs cannot exceed 3/8 of an inch. This calculator eliminates that risk by dividing the total rise and run perfectly, ensuring **zero variation**.

What is "Stringer Throat" and why is it important?

The "throat" (or "remainder") is the amount of wood left on the stringer after the riser and tread cuts are made. If this area is too thin, the stringer can crack under load. While the IRC R311.7.5 does not specify a minimum throat, a common building standard is to maintain at least 5 inches (12.7 cm) of solid wood for a 2x12 stringer. This calculator estimates this value for you.

Does this calculator work for deck stairs?

Yes. This calculator is ideal for deck stairs, basement stairs, or any standard (non-spiral, non-winder) staircase. The principles and code requirements are the same.

Last accuracy review:


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[RiserCount = \lceil \frac{TotalRise}{MaxRiserHeight} \rceil\]
RiserCount = \lceil \frac{TotalRise}{MaxRiserHeight} \rceil
Formula (extracted LaTeX)
\[RiserHeight = \frac{TotalRise}{RiserCount}\]
RiserHeight = \frac{TotalRise}{RiserCount}
Formula (extracted LaTeX)
\[TreadCount = RiserCount - 1\]
TreadCount = RiserCount - 1
Formula (extracted LaTeX)
\[\text{Ideal TreadDepth} \approx 25 \text{ inches} - (2 \times RiserHeight)\]
\text{Ideal TreadDepth} \approx 25 \text{ inches} - (2 \times RiserHeight)
Formula (extracted LaTeX)
\[\text{Actual TreadDepth} = \max(\text{Ideal TreadDepth}, \text{MinTreadDepth})\]
\text{Actual TreadDepth} = \max(\text{Ideal TreadDepth}, \text{MinTreadDepth})
Formula (extracted LaTeX)
\[TotalRun = TreadCount \times \text{Actual TreadDepth}\]
TotalRun = TreadCount \times \text{Actual TreadDepth}
Formula (extracted text)
1. Calculate Number of Risers (rounded up): $ RiserCount = \lceil \frac{TotalRise}{MaxRiserHeight} \rceil $ 2. Calculate Actual Riser Height: $ RiserHeight = \frac{TotalRise}{RiserCount} $ 3. Calculate Number of Treads: $ TreadCount = RiserCount - 1 $ 4. Calculate Tread Depth & Total Run (if Total Run not provided): $ \text{Ideal TreadDepth} \approx 25 \text{ inches} - (2 \times RiserHeight) $ $ \text{Actual TreadDepth} = \max(\text{Ideal TreadDepth}, \text{MinTreadDepth}) $ $ TotalRun = TreadCount \times \text{Actual TreadDepth} $ 5. Calculate Stringer Length (Pythagorean Theorem): $ StringerLength = \sqrt{TotalRise^2 + TotalRun^2} $ 6. Calculate Bottom Riser Cut (Adjusted for Tread Thickness): $ BottomRiserCut = RiserHeight - TreadThickness $
Variables and units
  • No variables provided in audit spec.
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
Formulas

(Formulas preserved from original page content, if present.)

Version 0.1.0-draft
Citations

Add authoritative sources relevant to this calculator (standards bodies, manuals, official docs).

Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft (review required).