HomeCalculatorsConstructionStair 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.

Reviewed by the thecalcu.com team · Last updated July 22, 2026

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.

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.

Why Use a Stair Calculator?

Cutting stair stringers is unforgiving, once you've notched a 2×12 stringer at the wrong riser height, the board is often unusable, and buying replacement lumber adds real cost and delay to a project. A Stair Calculator eliminates this risk by confirming your exact riser and run dimensions before you make a single cut.

It's especially useful when your total rise doesn't divide evenly by a "nice" riser height, which is the norm rather than the exception. Instead of manually testing different step counts to find one that keeps every riser under your code maximum, the calculator instantly returns the correct number of steps and the exact actual riser height to mark on your layout square. If you're also framing the surrounding structure, pair this with the Decking Calculator or Lumber Calculator to estimate materials for the full project.

Who Should Use This Calculator?

DIY homeowners building a deck staircase, porch steps, or a basement staircase can use this tool to confirm their design meets code before buying lumber. General contractors and carpenters can quickly verify riser and tread dimensions on-site without pulling out a construction calculator or doing manual division. Architects and designers can use it early in a project to check whether a proposed floor-to-floor height and available horizontal run will produce a comfortable, code-compliant stair.

Remodelers replacing an existing staircase can re-verify dimensions against current code, since older stairs were often built to looser standards. Deck builders planning exterior stairs will find this pairs well with the Framing Calculator for sizing the deck structure the stairs attach to, and the Decking Calculator for board quantities.

What Insights Does the Stair Calculator Give You?

Number of Steps is the primary result, the whole number of risers your staircase needs to climb the total rise without exceeding your maximum riser height. This is the number you'll use to lay out your stringers and count treads.

Actual Riser Height tells you the precise height of each individual step once the total rise is divided evenly across the calculated step count. This is almost always slightly below your maximum riser height input, and it's the exact measurement you should mark when cutting stringers, never round this value, since consistent riser heights are critical for stair safety.

Total Horizontal Run gives you the full horizontal floor-space footprint of the staircase, calculated from the tread depth and step count. Use this to confirm the staircase fits within your available floor plan, hallway, or stairwell opening before framing begins.

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.
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