Stair Calculator
Designing stairs the right way is critical for safety, comfort, and code compliance. Our free online Stair Calculator helps you calculate stair rise, run, stringer length, step height, tread depth, and stair angle in seconds. Whether you're a seasoned contractor or a DIY enthusiast, this tool saves time and removes guesswork from stair construction.
This page includes both an Automatic Stair Calculator and a Manual Stair Calculator so you can choose the workflow that suits your project. Enter your dimensions, click calculate, and get instant, code-ready results.
Enter your dimensions
Results will appear here after calculation
Automatic Calculator
- 1Enter Total Rise (A): The vertical distance from finished floor to landing.
- 2Input Target Step Height (F): Your preferred riser height.
- 3Set Tread Thickness (C) & Tread Depth (B): Define the walking surface.
- 4Select Mount Type: Standard or Flush stringer.
- 5Click "Calculate": Instantly see the number of steps, stringer length, stair angle, and placement.
Manual Calculator
If you already know your Total Rise and Total Run, or want full control of riser count, the manual tool is perfect:
- 1Enter Total Rise (A) and Total Run (G).
- 2Define Number of Steps, Tread Thickness, and Mount Type.
- 3Hit "Calculate" for detailed dimensions, including Step Height, Tread Depth, Stringer Length, and Stair/Rail Angle.
Why use an online stair calculator?
Building a staircase requires precise math. Miscalculations lead to uncomfortable steps, tripping hazards, and failed inspections. Our calculator applies industry-standard formulae like the renowned Blondel formula (2 × Riser + 1 × Tread ≈ 25 in / 63–65 cm) to create stairs that are safe, comfortable, and aesthetically balanced.
Accurate Results
Automatic computation of rise, run, and stringer length.
Compliant Design
Aligns with common IRC/IBC stair building codes.
Time Saving
Instant calculations eliminate tedious manual math.
User Friendly
Simple inputs with clear outputs for builders of all levels.
Mobile Friendly
Use it on-site, on any device.
What's actually in the tool
45+ calculators, real code checks, and a few conveniences that save you from redoing the math when a measurement changes.
45+ Calculator Types
Standard, spiral, deck, winder, L-shaped, U-shaped, curved, floating, concrete, steel, ADA, and more specialized stair calculators with tailored inputs and visualizations.
IRC/IBC Code Compliance
Automatic building code checks flag dimensions that fall outside IRC and IBC residential requirements, keeping your project code-compliant.
Instant Calculations
Get precise results in milliseconds. No sign-ups, no loading screens - just enter your measurements and get accurate stair dimensions instantly.
PDF Export
Generate professional stair plan documents with all measurements, compliance status, and project details ready for your contractor or permit office.
Imperial & Metric Units
Switch between inches and millimeters with one click. All inputs and results convert automatically, perfect for international projects.
Live SVG Visualization
Watch your staircase come to life with animated step-by-step SVG visualizations that update in real-time as you adjust dimensions.
Mobile Responsive
Fully responsive design works on any device - use it on-site from your phone or tablet while measuring and building.
Educational Pro Tips
Built-in guidance like the 7-11 rule, ideal rise heights, and tread depth recommendations help you design safer, more comfortable stairs.
How to Use the Stair Calculator
Get accurate stair measurements in four simple steps. Our calculator handles all the complex math for you.
Measure Total Rise
Measure the vertical distance from finished floor to landing or upper floor.
Enter Dimensions
Input your target step height, tread depth, and thickness preferences.
Calculate
Click calculate to get instant, code-compliant results for your stair design.
Build with Confidence
Use the precise measurements to construct safe, comfortable stairs.
Pro Tips for Better Results
Ideal Rise Height
Keep step height between 7" to 7.75" for comfortable climbing. Building codes typically require 7.75" max.
Tread Depth
Standard tread depth is 10" to 11". This provides adequate foot space for safe climbing.
The 7-11 Rule
Rise + Run should equal 17" to 18" for optimal comfort (e.g., 7" rise + 11" run = 18").
Stair Calculation Formulas & Code Reference
Every result on this site is derived from the standard stair-geometry formulas below and checked against U.S. building codes. We publish the exact math so you can verify any calculation by hand and understand why each dimension matters — not just what the number is.
Number of Risers
Risers = Total Rise ÷ Target Riser Height
Round to the nearest whole number, then recompute the exact riser height so every step is identical.
Exact Riser Height
Riser Height = Total Rise ÷ Number of Risers
Uniform risers are a code requirement — the tallest and shortest riser in a flight must be within 3/8 inch.
Total Run
Total Run = (Number of Risers − 1) × Tread Depth
There is always one fewer tread than risers, because the top landing serves as the final step.
Stringer Length
Stringer = √(Total Rise² + Total Run²)
The stringer is the hypotenuse of the rise-and-run triangle, so it follows the Pythagorean theorem.
Stair Angle (Pitch)
Angle = arctan(Total Rise ÷ Total Run)
A comfortable residential staircase sits between roughly 30° and 37°.
Comfort Rule (2R + T)
2 × Riser + Tread ≈ 24–25 in
A centuries-old builder's rule that keeps the relationship between step height and depth comfortable for walking.
IRC Stair Code Limits at a Glance
These are the residential thresholds our compliance checks use, drawn from the International Residential Code (IRC). Commercial projects governed by the International Building Code (IBC) are often stricter — always confirm the edition adopted by your local building department before you build.
| Requirement | Residential limit | Code section |
|---|---|---|
| Maximum riser height | 7¾ in (196 mm) | IRC R311.7.5.1 |
| Minimum tread depth | 10 in (254 mm) | IRC R311.7.5.2 |
| Maximum riser variation | ⅜ in (9.5 mm) | IRC R311.7.5 |
| Minimum headroom | 6 ft 8 in (2032 mm) | IRC R311.7.2 |
| Handrail height | 34–38 in (864–965 mm) | IRC R311.7.8.1 |
| Guard baluster gap | < 4 in sphere | IRC R312.1.3 |
| Minimum stair width | 36 in (914 mm) | IRC R311.7.1 |
Sources: International Residential Code (IRC) 2021, Chapter 3 (Building Planning), Section R311.7 Stairways and R312 Guards. Figures are provided for reference and must be verified against locally adopted codes.
Which Stair Type is Right for You?
Compare popular staircase types to find the best fit for your project. Explore all 45+ calculators for detailed dimensions, materials, and code compliance.
| Feature | Standard Straight | Spiral | Deck / Outdoor | Winder (L/U) |
|---|---|---|---|---|
| Best For | Most residential & commercial settings | Tight spaces, lofts, secondary access | Patios, decks, porches, outdoor access | Direction changes without a landing |
| Space Needed | High | Low | Medium | Medium |
| Build Complexity | Low | High | Low-Medium | Medium-High |
| Relative Cost | Low | Medium-High | Low-Medium | Medium |
| Easy to build | ||||
| Space efficient | ||||
| Code compliant | ||||
| Wheelchair accessible | ||||
| Turns direction | ||||
| Fits tight spaces |
Standard Straight
Most residential & commercial settings
Space
High
Complexity
Low
Cost
Low
Spiral
Tight spaces, lofts, secondary access
Space
Low
Complexity
High
Cost
Medium-High
Deck / Outdoor
Patios, decks, porches, outdoor access
Space
Medium
Complexity
Low-Medium
Cost
Low-Medium
Winder (L/U)
Direction changes without a landing
Space
Medium
Complexity
Medium-High
Cost
Medium
Latest from the blog
Code references, worked examples, and build notes — written for the questions people actually search for while planning a staircase.
L-Shaped vs. U-Shaped Stairs: Which Layout Is Right for You?
Both turn a corner instead of running straight. The difference is a 90 degree turn versus a 180 degree turn, and that changes footprint, cost, and where the landing goes.
Read MoreFloating Stairs: How They Work, Cost, and Structural Basics
Floating treads look unsupported, but real engineering holds them up. Mono-stringer, cantilevered, and wall-mounted systems each solve the structural problem differently.
Read MoreADA Ramp vs. Stairs: When Do You Need a Ramp?
The ADA's default answer favors a ramp over stairs on an accessible route. Here is when a ramp is required, the maximum slope allowed, and when stairs alone are still acceptable.
Read MoreFrequently asked questions
Find answers to common questions about stair design, building codes, and how to use our calculators effectively.
Browse the full library
All 46 calculators, grouped by category — structural design, materials, code compliance, and finishing details.
Structural(20)
Standard
Rise, run & stringer
Step Construction
Plan step count and riser/run
Spiral
Helical staircase
Deck
Outdoor deck stairs
Winder
L & U-shape turns
L-Shaped
90° turn with landing
U-Shaped
180° turn with landing
Dbl Winder
180° winder treads
Curved
Freeform curved stairs
Floating
Cantilever treads
Switchback
Multi-flight parallel
Quarter-Turn
90° turn + platform
Half-Turn
180° parallel flights
Load/Weight
Structural load capacity
Angle/Pitch
Slope ratio & degrees
Rise & Run
2R+T rule optimizer
Stair Opening
Floor opening size
Arch
Arc, radius & span
Roof Pitch
Pitch, angle & factor
Stair Height
Step count & riser height
Material & Estimation(10)
Stringer
Stringer layout & cuts
Concrete
Volume & rebar
Steel
Weight & welding
Carpet/Flooring
Material for treads
Paint/Stain
Coverage estimator
Skirt Board
Length & angle cuts
Timber Estimator
Board-feet of lumber
Deck Stringer
Outdoor stringer layout
Cubic Yard
Volume conversion
Stair Railing
Posts, balusters & rail material