Stair Calculator
Calculate the rise, run, and number of steps needed for a staircase based on total height, available floor space, and building code requirements.
This free online stair calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.
Minimum: 1
Minimum: 1
Minimum: 1
Results
Number of Steps
15
Actual Rise per Step (inches)
7.2 in
Total Horizontal Run (inches)
154 in
Minimum Stringer Length (inches)
188.1 in
How to Use This Calculator
Enter your input values
Fill in all required input fields for the Stair Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.
Review your inputs
Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The Stair Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
Formula Reference
Stair Calculator Formula
See calculator inputs for the governing equation
Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.
When to Use This Calculator
- •Use the Stair Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
- •Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
- •Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
- •Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.
About This Calculator
The Stair Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Calculate the rise, run, and number of steps needed for a staircase based on total height, available floor space, and building code requirements. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.
About Stair Calculator
The Stair Calculator is essential for any DIY carpenter, contractor, or homeowner planning to build or replace stairs. Stairs must follow specific dimensions for safety and comfort — get them wrong and you'll have a tripping hazard or a code violation. This calculator determines the optimal number of steps, exact rise per step, total horizontal run, and stringer length based on your total height. It accounts for the IRC building code requirements (max 7.75" rise, min 10" run, with all steps within 3/8" of each other) and the time-tested 'sum of two risers + one run = 24-25 inches' rule for comfortable stair geometry. Whether you're building a deck, basement stairs, attic access, or full-height residential staircase, this calculator ensures your stairs are safe, code-compliant, and comfortable to use.
The Math Behind It
Formula Reference
Number of Steps
Steps = round(Total Rise / Preferred Rise)
Variables: Always round to whole number
Actual Rise
Rise = Total Rise / Number of Steps
Variables: Equal heights for all steps
Stringer Length
Length = √(Rise² + Run²)
Variables: Pythagorean theorem
Worked Examples
Example 1: Deck Stairs
Building a deck 36 inches above ground. Standard 7" preferred rise, 11" run.
Need 5 steps, each 7.2" rise, 11" run, total run of 44". Order 60" 2×12 stringers (allowing extra for cuts).
Example 2: Basement Stairs
Building basement stairs from main floor. Floor-to-floor height is 108 inches (9 feet).
Need 15 steps, 7.2" rise, 10" run, requires 11'8" of horizontal floor space and 14'9" stringers. Verify head clearance of 6'8" min along entire stair.
Common Mistakes & Tips
- !Not measuring from finished floor to finished floor — leads to first step being wrong height.
- !Forgetting that the floor IS the top step. Don't add an extra step.
- !Inconsistent riser heights. Code requires within 3/8" of each other.
- !Inadequate headroom. Always check 6'8" minimum from any tread nosing to ceiling above.
Related Concepts
Used in These Calculators
Calculators that build on or apply the concepts from this page:
Frequently Asked Questions
What's the most comfortable stair angle?
Stairs feel most comfortable with a slope between 30 and 35 degrees. This corresponds to about 7" rise and 11" run (Blondel formula gives 25). Steeper than 35 degrees feels like climbing; shallower than 25 feels awkward. Code allows up to 7.75" rise / 10" run (about 38°) — at the steep end of comfort.
Can I have stairs with different rise heights?
Code allows up to 3/8 inch variation between any two steps. Practically, all steps should be the same. Even small inconsistencies cause tripping because people develop muscle memory after 2-3 steps. If you must have a different first or last step, consider it carefully and consult your local code.
What if my total rise doesn't divide evenly?
That's normal — adjust the rise per step. If your total is 108" and you want 7" rise: 108/7 = 15.43, so use 15 steps with 7.2" rise (or 16 steps with 6.75" rise). Choose the option closest to ideal proportions while staying under 7.75" max.
Do I need a permit to build stairs?
Almost always, yes. Most jurisdictions require permits for any structural work, including stairs. Inspectors check rise consistency, headroom, handrails, and structural attachment. Building without permits can affect resale value, insurance, and create legal liability if someone is injured. Always check local requirements.