Stair Calculator
ConstructionCalculate 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
Number of Steps
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
- Measure your Total Rise, the exact vertical distance from the finished floor below to the finished floor above, and enter it in inches.
- 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.
- Set Min Tread Depth to the tread depth you plan to use, commonly 10 inches or more for comfortable footing.
- Review the calculated Number of Steps, this is the whole number of risers your stringers need.
- Note the Actual Riser Height and use this exact value (not your input maximum) when marking and cutting your stair stringers.
- Check the Total Horizontal Run against your available floor space to confirm the staircase will fit before you begin framing.
Show formula & methodology ↓Show less ↑
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