Homeโ€บCalculatorsโ€บConstructionโ€บStair Calculator

Stair Calculator

Construction

Calculate the number of stair steps, actual riser height, and total horizontal run from your total rise, max riser height, and minimum tread depth.

20300
68.25
914

Number of Steps

15
Actual Riser Height (in)
7.2
Total Horizontal Run (in)
140

This calculator computes your Number of Steps, Actual Riser Height (in), Total Horizontal Run (in) from the values you enter.

Inputs
Total RiseMax Riser HeightMin Tread Depth
Outputs
Number of StepsActual Riser Height (in)Total Horizontal Run (in)

What is a Stair Calculator?

A Stair Calculator determines the exact number of steps, the actual riser height, and the total horizontal run needed to build a code-compliant staircase between two floor levels. Instead of guessing at riser and tread dimensions, you input the total vertical rise your staircase needs to climb, along with the maximum riser height and minimum tread depth allowed by your local building code, and the calculator returns a precise, buildable layout.

Staircase geometry is unforgiving โ€” even small inconsistencies in riser height between steps are a well-documented tripping hazard, which is why building codes tightly regulate riser and tread dimensions. This tool automates the rounding and division that stair builders traditionally did by hand or with a construction calculator, ensuring every riser in the run comes out identical. It pairs naturally with other rough-framing tools like the Framing Calculator when you're planning the full structure around a stairwell opening, or the Birdsmouth Cut Calculator if your project also involves roof rafters bearing on the same wall plates.

Whether you're building an interior staircase, a deck stair, or a basement egress stair, getting the riser-to-tread ratio right is what separates a comfortable, safe climb from one that feels awkward or dangerous.

How to use this Stair Calculator calculator

  1. Measure your Total Rise โ€” the exact vertical distance from the finished floor below to the finished floor above โ€” and enter it in inches.
  2. Set Max Riser Height to the maximum riser height allowed by your local building code, typically around 7.75 inches for US residential stairs; the default is 7.5 inches.
  3. Set Min Tread Depth to the tread depth you plan to use, commonly 10 inches or more for comfortable footing.
  4. Review the calculated Number of Steps โ€” this is the whole number of risers your stringers need.
  5. Note the Actual Riser Height and use this exact value (not your input maximum) when marking and cutting your stair stringers.
  6. Check the Total Horizontal Run against your available floor space to confirm the staircase will fit before you begin framing.

Formula & Methodology

The calculator applies three sequential formulas:

Number of Steps = โŒˆTotal Rise รท Max Riser HeightโŒ‰ (rounded up to the nearest whole number)

Actual Riser Height = Total Rise รท Number of Steps

Total Horizontal Run = (Number of Steps โˆ’ 1) ร— Min Tread Depth

Worked example: For a Total Rise of 108 inches, a Max Riser Height of 7.5 inches, and a Min Tread Depth of 10 inches:

- Number of Steps = โŒˆ108 รท 7.5โŒ‰ = โŒˆ14.4โŒ‰ = 15 steps
- Actual Riser Height = 108 รท 15 = 7.2 inches per step
- Total Horizontal Run = (15 โˆ’ 1) ร— 10 = 140 inches (11 ft 8 in)

This confirms a 15-step staircase with a comfortable 7.2-inch riser on each step, requiring just under 12 feet of horizontal floor space.

Frequently Asked Questions

Most US residential building codes cap the maximum riser height at 7.75 inches, though many jurisdictions and the International Residential Code favor 7.75 inches or less for comfort and safety. A common design target is 7 to 7.5 inches, which is why this calculator defaults its Max Riser Height slider to 7.5 inches. Always confirm the exact limit with your local building department before finalizing a stringer layout.
You enter the Total Rise (the vertical floor-to-floor height the stairs must climb), a Max Riser Height limit, and a Min Tread Depth. The calculator divides the total rise by the max riser height and rounds up to get a whole Number of Steps, then divides the total rise evenly across that many steps to get the Actual Riser Height. It also multiplies the tread depth by one fewer than the step count to give you the Total Horizontal Run.
The number of steps equals the total rise divided by the maximum allowed riser height, rounded up to the next whole number: steps = ceil(Total Rise รท Max Riser Height). Rounding up guarantees every individual riser stays at or below your maximum, since the actual riser height is recalculated by spreading the total rise evenly across the resulting step count.
The max riser height is a ceiling, not a target โ€” real staircases need a whole number of equal risers, and the total rise rarely divides evenly by that maximum. Once the calculator rounds up to a whole number of steps, it recalculates the actual riser height by dividing total rise by that step count, which is usually slightly lower than your input.
Rise is the vertical height of each step (or, for total rise, the full vertical distance from one floor to the next), while run is the horizontal depth โ€” either of a single tread or the full horizontal footprint of the staircase. This calculator reports both: Actual Riser Height for the vertical dimension of each step and Total Horizontal Run for the full horizontal distance the staircase will occupy.
Most residential codes require a minimum tread depth of 10 inches, and many designers prefer 10 to 11 inches for comfortable footing on interior stairs. Deeper treads generally pair with shorter risers for a gentler, safer climb, which is why many codes also apply a rise-plus-run formula (commonly targeting roughly 17 to 18 inches combined) to keep stairs from feeling too steep or too shallow.
Enter your Total Rise as the exact floor-to-floor measurement, set Max Riser Height to your local code maximum, and set Min Tread Depth to the tread size you plan to use. The resulting Number of Steps and Actual Riser Height give you the exact measurements to mark on your stair stringers, and the Total Horizontal Run tells you how much floor space the staircase needs.
Yes โ€” the same rise-and-run math applies to deck stairs, porch steps, and outdoor staircases, though local codes for exterior stairs sometimes allow slightly different riser and tread limits than interior stairs. Check your jurisdiction's exterior stair requirements and adjust the Max Riser Height and Min Tread Depth inputs accordingly before using the results for construction.
No โ€” this calculator focuses solely on riser height, tread depth, step count, and horizontal run. Headroom (the vertical clearance above each tread as you walk up the stairs) is a separate code requirement, typically a minimum of 6 feet 8 inches in US residential codes, and should be checked independently against your framing plans.
It almost never does, which is exactly why the calculator rounds the step count up to the next whole number and then recalculates the actual riser height by spreading the total rise evenly across all steps. This keeps every riser in the staircase the same height โ€” a code requirement in virtually every jurisdiction, since inconsistent riser heights are a leading cause of stair trips.
No โ€” use the precise actual riser height value when laying out and cutting your stringers, since even a small variance between risers (typically more than about 3/8 inch under most codes) can create a tripping hazard. Mark each riser at the exact calculated height rather than rounding to the nearest fraction of an inch.
Total horizontal run tells you the full floor-space footprint your staircase will consume, which is essential for confirming the stairs fit within the available room, hallway, or stairwell opening before you start framing. It's calculated as one fewer than the number of steps multiplied by the tread depth, since the top step usually aligns with the upper floor level rather than adding its own tread.
Also known as
staircase calculatorstair riser calculatorstair step calculatorstringer calculatorstair rise and run calculator