Stair Calculator
Free Stair Calculator: find the number of steps, actual riser height, total run, stringer length and stair angle for any floor-to-floor rise.
About the Stair Calculator
Get your stair layout right before you cut lumber or order stringers with ProCalc.ai’s Stair Calculator. You enter your total rise (floor-to-floor height) and your preferred riser or tread targets, and the Stair Calculator instantly returns the number of steps, riser height, tread depth, and an even run that fits. It’s built for working pros like framing carpenters, remodelers, and site supervisors who need quick, code-friendly dimensions without pulling out a spreadsheet. Say you’re finishing a basement and the new subfloor changes the height to the main level; plug in the updated total rise and you’ll see exactly how many risers you need and what each one should measure so the stairs feel consistent underfoot. Results show up immediately on ProCalc.ai, free and with no signup, so you can iterate fast when the plan changes or the inspector wants a tweak. Use it to sanity-check drawings, compare options, and walk onto the job with numbers you can trust.
How do you calculate the number of stairs needed? Divide the total rise (floor-to-floor height) by your target riser height. The IRC residential building code limits risers to a maximum of 7¾ inches (196 mm). For a 9-foot ceiling with standard floor framing, total rise is typically 105–110 inches, giving you 14–15 risers.
What is the ideal riser-to-tread ratio? The most comfortable stairs follow the rule of 2R + T = 24–25 inches, where R is riser height and T is tread depth. For a 7½-inch riser, the ideal tread depth is 9–10 inches. The IRC requires a minimum tread depth of 10 inches with a 1–1¼ inch nosing, or 11 inches without nosing.
How do you calculate stringer length? Stringer length is the diagonal measurement from the bottom of the stairs to the top landing. Use the Pythagorean theorem: Stringer Length = √(Total Rise² + Total Run²). For a staircase with 110 inches of rise and 140 inches of run, the stringer length is approximately 178 inches (14 feet 10 inches).
Stair Calculator
ProCalc.ai's Stair Calculator designs code-compliant residential and commercial staircases from three inputs: total rise, tread depth, and target riser height. It calculates the number of steps, actual riser height after rounding, total run, stringer length, and stair angle — all checked against IRC Section R311.7 requirements.
Getting stair geometry wrong is one of the most common framing mistakes on residential projects. A riser that's ⅜ inch too tall or a tread that's ½ inch too shallow creates a trip hazard that fails inspection. This calculator eliminates the guesswork by computing exact dimensions and flagging code violations before you cut your first stringer.
The core formulas are straightforward: Number of Risers = Total Rise ÷ Target Riser Height (rounded up to a whole number), Actual Riser Height = Total Rise ÷ Number of Risers, and Total Run = (Number of Risers − 1) × Tread Depth. Stringer length uses the Pythagorean theorem. All calculations run instantly in your browser. For related construction estimates, see our Lumber Calculator to size your stringer stock, or our Square Footage Calculator for the stairwell opening.
How to use the Stair Calculator
What the Stair Calculator Does (and What You Need to Measure)
A stair layout is basically a right triangle: you go up a total rise (vertical height), you go forward a total run (horizontal distance), and the diagonal board that supports the treads is the stringer length. ProCalc.ai’s Stair Calculator helps you quickly estimate:
- The number of steps (rounded to a whole number)
- The actual riser height you’ll end up with after rounding
- The total run based on your tread depth
- The stair angle (pitch) in degrees
- The stringer length (diagonal)
Before you start, measure the Total Rise correctly:
- Measure from the finished lower floor surface to the finished upper floor surface (not subfloor to subfloor unless that’s truly your final condition).
- Use inches for all inputs to match the calculator.
Inputs you’ll provide:
- Total Rise (inches)
- Target Riser Height (inches)
- Tread Depth (inches)
Outputs you’ll get:
- Steps (count)
- Actual riser height (inches)
- Total run (inches)
- Stringer length (inches)
- Angle (degrees)
Step-by-Step: How the Calculator Computes Stair Dimensions
The calculator follows a straightforward process. Here’s the exact logic in plain language, with the same math it uses.
1) Estimate the number of steps
It starts with your Total Rise (TR) and your Target Riser Height (RH), then rounds up to the next whole step count, so no riser ends up taller than your target:
Steps = round up (TR ÷ RH)
Why round up? Because you can’t build 14.4 steps, and rounding down would make every riser taller than you planned. Rounding up gives a buildable whole number, then the calculator recomputes the riser height so the stairs still land exactly at the total rise.
2) Recalculate the actual riser height
Once steps are set, the calculator computes the real riser height that makes the total rise work out exactly:
Actual Riser = TR ÷ Steps
ProCalc.ai rounds this to 2 decimals.
3) Compute total run
Most stair layouts have one fewer tread than risers (you step on treads between risers). The calculator uses:
Total Run = (Steps − 1) × Tread Depth (TD)
This is a common convention for typical straight stairs where the top floor acts as the last “tread.” (If your design includes a landing tread or a special top tread detail, you may need to adjust.)
4) Compute stair angle (pitch)
The stair angle is based on rise over run per step:
Angle = arctan(Actual Riser ÷ TD)
Then it converts radians to degrees and rounds to 0.1 degrees.
5) Compute stringer length
This treats the stair as a right triangle with vertical side TR and horizontal side Total Run:
Stringer Length = √(TR² + Total Run²)
This is the diagonal length from the bottom to the top along the stringer line (not including extra overhangs, end cuts, or notches).
Worked Example 1: Typical Interior Stair
Inputs
- Total Rise (TR): 108 in
- Target Riser Height (RH): 7.5 in
- Tread Depth (TD): 10 in
Step 1: Steps
- TR ÷ RH = 108 ÷ 7.5 = 14.4
- Steps = round up (14.4) = 15
Step 2: Actual Riser
- Actual Riser = 108 ÷ 15 = 7.2 in
Step 3: Total Run
- Total Run = (15 − 1) × 10 = 14 × 10 = 140 in
Step 4: Angle
- Angle = arctan(7.2 ÷ 10) = arctan(0.72)
- Angle ≈ 35.8° (rounded to 0.1)
Step 5: Stringer Length
- Stringer = √(108² + 140²) = √(11664 + 19600) = √31264
- Stringer ≈ 176.82 in
Interpretation You’ll build a 15-riser stair with a comfortable pitch around 36 degrees, and you’ll need about 140 inches of horizontal space (plus any nosing or landing allowances).
Worked Example 2: Taller Rise with a Lower Target Riser
Inputs
- Total Rise (TR): 120 in
- Target Riser Height (RH): 7 in
- Tread Depth (TD): 11 in
Step 1: Steps
- 120 ÷ 7 = 17.142857…
- Steps = round up (17.142857…) = 18
Step 2: Actual Riser
- 120 ÷ 18 = 6.666…
- Rounded: 6.67 in
Step 3: Total Run
- (18 − 1) × 11 = 17 × 11 = 187 in
Step 4: Angle
- arctan(6.67 ÷ 11) = arctan(0.6064)
- Angle ≈ 31.2°
Step 5: Stringer Length
- √(120² + 187²) = √(14400 + 34969) = √49369
- Stringer ≈ 222.19 in
Interpretation This stair is longer and shallower (lower angle) because the tread depth is larger and the riser height is a bit smaller. It needs about 187 inches of run, so check that you actually have the floor space.
Worked Example 3: Shorter Rise, Compact Treads
Inputs
- Total Rise (TR): 96 in
- Target Riser Height (RH): 8 in
- Tread Depth (TD): 9.5 in
Step 1: Steps
- 96 ÷ 8 = 12
- Steps = 12
Step 2: Actual Riser
- 96 ÷ 12 = 8.00 in (taller than the IRC residential maximum of 7¾ in, so check your local code)
Step 3: Total Run
- (12 − 1) × 9.5 = 11 × 9.5 = 104.5 in
Step 4: Angle
- arctan(8 ÷ 9.5) = arctan(0.8421)
- Angle ≈ 40.1°
Step 5: Stringer Length
- √(96² + 104.5²) = √(9216 + 10920.25) = √20136.25
- Stringer ≈ 141.9 in
Interpretation This is a steeper stair (around 40 degrees). It may be acceptable in some situations, but it can feel more ladder-like—especially with shorter treads.
Pro Tips for Better Stair Layouts
- Measure finished-to-finished: If flooring thickness changes later, your last step can end up taller or shorter than the rest, which is a trip hazard.
- Use the actual riser height output: The calculator’s actual riser height is what you should lay out on the stringer, not the target you typed in.
- Check your available run early: The total run can exceed your hallway or room length quickly. If you’re tight on space, increasing tread depth will make the run longer, not shorter.
- Keep risers consistent: Even small variations between risers can feel “off” underfoot. Consistency matters as much as the average size.
- Angle is a comfort check: The stair angle gives you a quick sanity check—steeper angles tend to feel less comfortable for everyday use.
- Remember landings and headroom: The calculator doesn’t account for landings, turns, or head clearance. Those constraints often drive the final design more than the math.
Common Mistakes (and How to Avoid Them)
Rounding the steps yourself before entering data
Let the calculator round steps and then use the resulting actual riser height. Manually forcing a step count without recalculating risers can make the stair miss the target elevation.Assuming steps equals treads
For straight stairs, the calculator uses treads = steps − 1. If your project counts treads differently (for example, a distinct top tread), adjust your material takeoff accordingly.Mixing units or measuring the wrong rise
Enter inches for everything. And make sure Total Rise is the true vertical difference between finished floors, not a diagonal tape measurement.Ignoring nosing and finish thickness
Tread depth in the calculator is the horizontal depth you intend to build. If you add nosing or thick finishes later, confirm how that affects the effective going and layout marks.Not validating against local code requirements
The calculator provides geometry, not compliance. Always verify allowable riser height, tread depth, minimum width, landings, and handrail rules for your jurisdiction before building.
Use ProCalc.ai’s Stair Calculator as your fast first pass: it turns a single rise measurement into a buildable step count, a precise riser height, and the key layout dimensions you need to plan space, cut stringers, and estimate materials.
Authoritative Sources
This calculator uses formulas and reference data drawn from the following sources:
Formula
Stair Calculation Formulas
Number of risers: Risers = Total Rise (in) ÷ Target Riser Height (in), rounded up, so no riser is taller than your target
Actual riser height: Actual Riser = Total Rise (in) ÷ Number of Risers
Total run: Total Run (in) = (Number of Risers − 1) × Tread Depth (in)
Stringer length (Pythagorean theorem): Stringer = √(Total Rise² + Total Run²)
Stair angle: Angle = arctan(Total Rise ÷ Total Run)
Comfort rule (2R + T): 2 × Riser Height + Tread Depth should equal 24–25 inches for comfortable stairs.
IRC R311.7 limits: Maximum riser 7¾ in, minimum tread 10 in (with nosing) or 11 in (without). Maximum riser variance between any two steps: ⅜ inch.
Frequently asked questions
How does the stair calculator work?
The stair calculator computes results instantly by applying standard construction formulas to the values entered into its input fields. No sign-up is required, and results appear immediately as you type.
How much extra material should I order?
A good rule of thumb is to add 10-15% extra to account for waste, cuts, and mistakes. For complex layouts or irregular shapes, consider adding 15-20%. It is always cheaper to order a bit extra than to make a separate trip or order.
Are these calculations to code?
Stair calculator calculations are based on standard construction formulas and industry guidelines, but building codes vary by jurisdiction and project type. Always verify calculations with local building codes and consult a licensed contractor or engineer for structural work.
Can I use this for a DIY project?
The stair calculator is designed for both professionals and DIYers, providing accurate material estimates for project planning and budgeting. It helps you plan purchases and budget before starting your project.
Is this stair calculator free to use?
The stair calculator is completely free to use with no sign-up required, allowing unlimited use. Results are calculated instantly in your browser, ensuring your data is never stored or shared.
How accurate is the Stair Calculator?
Accuracy depends on the measurements you enter and how closely the project matches the calculator’s assumptions (straight run, consistent rise/run, and standard framing). Results are typically suitable for preliminary sizing and estimating, but they do not account for field conditions like out-of-level floors, finished floor thickness changes, or irregular landings. Verify critical dimensions on site and confirm final plans with local code requirements.
Stair rise vs run — what’s the difference?
Rise is the vertical height of each step (from one tread surface to the next), while run is the horizontal depth of each step measured from riser to riser. Together they determine the stair angle and overall comfort. Changing either affects the total number of steps needed to reach the total height.
Can I use this for stairs with a landing or a 90° turn?
You can use it to calculate the rise/run, number of steps, and stringer layout for each straight flight. For a landing or turn, calculate each flight separately and ensure the landing size and elevation match between flights. Winder steps and curved stairs require custom layout beyond a basic straight-flight calculator.