Stair Calculator
Design safe stairs with IBC-compliant rise/run calculations. Computes number of steps, riser height, tread depth, stringer length and angle.
Total vertical height from floor to floor
Typical riser: 7 inches
Typical tread: 11 inches
Results
Number of Steps
15 steps
- Riser Height
- 7.00"
- Tread Depth
- 11.00"
- Total Run (Horizontal)
- 154.00"
- Stringer Length Needed
- 186.39"
- Stair Angle
- 34.3°
- Code Check (IRC residential / IBC commercial)
- ✅ Passes IRC (residential) and IBC (commercial) limits
- Comfort Rule (2 × riser + tread)
- 25.0" (24-25" feels natural)
- Stringer Recommendation
- 2x12 lumber recommended
The formula
Risers = ceil(TotalRise / RiserHeight) | TotalRun = Treads x TreadDepth | Stringer = sqrt(Rise^2 + Run^2)
- Rise & Run
- Total Rise & Total Run
- Stringer
- Stringer Length
- IBC
- IBC Limits
Worked example — Total Rise (inches) 105, Desired Riser Height (in) 7, Tread Depth (inches) 11
Number of Steps = 15 steps
How Stair Calculator Works
Risers = ceil(TotalRise / RiserHeight) | TotalRun = Treads x TreadDepth | Stringer = sqrt(Rise^2 + Run^2)
Stair stringer layout follows the Pythagorean theorem. The number of risers is determined by dividing total rise by desired riser height and rounding up, then the exact riser height is recalculated.
- Rise & Run
- Total Rise & Total Run — Rise is the total vertical height from finished floor to finished floor. Run is the total horizontal distance covered by the staircase. These two values determine the stair angle and stringer length.
- Stringer
- Stringer Length — Diagonal length of the stair stringer board, typically a 2x12.
- IBC
- IBC Limits — Residential code (IRC): max riser 7.75", min tread 10". Commercial code (IBC): max riser 7", min tread 11".
Understanding the Result
Stair design balances comfort, safety, and code compliance. For houses the IRC limits risers to 7.75 inches maximum and treads to 10 inches minimum; commercial buildings under the IBC are stricter at 7 inches and 11 inches. The stringer is cut from a 2x12 board following the rise and run measurements. The stair angle typically falls between 30 and 50 degrees for comfortable ascent. Practical example: a total rise of 105 inches with a desired riser of 7 inches yields 105 / 7 = 15 risers exactly.
With 14 treads at 11 inches depth, the total run is 14 × 11 = 154 inches (12 feet 10 inches). The stringer length is sqrt(105² + 154²) = sqrt(11025 + 23716) = sqrt(34741) = 186.4 inches (15 feet 6 inches). The angle is arctan(105/154) = 34.3 degrees, which falls in the comfortable range. Edge cases: for exterior stairs exposed to snow and ice, consider using open treads or adding heating elements to prevent ice buildup.
For spiral or curved staircases, the inside radius must be at least twice the stair width to meet code. When the total rise results in fractional risers (e.g., 105.5 inch rise with 7 inch desired riser), the calculator rounds up to 16 risers, giving an actual riser of 6.59 inches. For basement stairs with limited headroom, a steeper angle up to 42 degrees may be acceptable, but any angle above 45 degrees should require a landing or an alternating tread design.
How to Use
- Measure the total vertical rise from finished floor to finished floor.
- Enter your desired riser height (typically 7 inches).
- Enter your desired tread depth (typically 11 inches).
- Review the calculated number of steps, stringer dimensions, and the residential (IRC) and commercial (IBC) code check.
Frequently Asked Questions
- What is the ideal stair angle?
- The ideal stair angle is between 30 and 35 degrees for comfortable ascent. Stairs steeper than 45 degrees may require alternating tread designs or become climbing ladders.
- Why 2x12 for stringers?
- A 2x12 provides sufficient depth (11.25 inches actual) for cutting stair notches while maintaining structural integrity. The minimum recommended stringer width is 2x10, but 2x12 is preferred.
- What if my stairs do not pass the code check?
- If the riser exceeds 7.75 inches, try increasing the number of steps. If the tread is under 10 inches, you may need a longer staircase. Adjust your desired riser height downward to increase step count. For commercial or multi-family work the IBC applies instead and is stricter (7 inch riser, 11 inch tread), and your local code may differ from either, so confirm with your building department.
Cite this calculator
TheCalcUniverse. "Stair Calculator — IBC-Compliant Rise, Run & Stringer Length." TheCalcUniverse, 2026, https://thecalcuniverse.com/diy/stair-calculator/. Accessed October 25, 2026.
Embed this calculator on your site
You may also like
-
Home DIY
Roofing Calculator
Estimate roofing materials for gable and hip roofs. Calculates squares, shingle bundles, felt rolls, and nails. Includes pitch multipliers and waste factors.
Open calculator → -
Home DIY
Concrete Calculator
Calculate the exact volume of concrete needed for slabs, holes, columns, and stairs. Outputs cubic yards plus the number of 60-lb and 80-lb bags required.
Open calculator → -
Home DIY
Board Foot Calculator
Calculate board feet of lumber for any project. Shows nominal and actual board foot volumes with dimensional conversions.
Open calculator → -
Home DIY
BTU Calculator
Calculate the required BTUs for heating or cooling any room. Factors in climate zone, sun exposure, insulation, ceiling height, room type, and occupancy.
Open calculator →