Stairs Calculator
Calculate stair dimensions and verify building code compliance
Stair Parameters
Stair Dimensions
What is a Stairs Calculator?
A stairs calculator determines the complete geometry of a staircase including the number of risers, number of treads, actual riser height, total run, stringer length, and stair angle. It is an essential tool for builders, carpenters, and homeowners planning a new staircase or verifying that an existing one meets building code requirements. The calculator also estimates material quantities and costs, helping with project budgeting and material ordering.
Stair design requires balancing several competing factors. The total rise (floor-to-floor height) is fixed by the building design, but the number of risers, their individual height, and the tread depth must be chosen to produce a comfortable, code-compliant staircase. Too few risers create steps that are too tall and dangerous. Too many risers waste space and create steps that are too shallow. The ideal riser height is 7 to 7.75 inches for residential stairs, with a minimum tread depth of 10 inches per the International Residential Code.
This calculator takes the total rise, desired riser height, tread depth, and stair width as inputs. It computes the number of risers by rounding the total rise to the nearest whole number of desired-height steps, calculates the actual riser height, determines the number of treads (always one less than risers), computes the total run, and checks compliance with residential building codes. Material estimates include the number of stringers, tread board feet, and total project cost.
Stair Geometry Formulas
The fundamental stair formulas relate the total rise, number of risers, riser height, tread depth, and total run. The stringer length is the hypotenuse of the right triangle formed by the total rise and total run.
Stair Geometry Formulas
Where:
- N= Number of risers (always a whole number)
- Rise= Total floor-to-floor height in inches
- Tread= Tread depth in inches
- Run= Total horizontal run in inches
- Stringer= Diagonal stringer length in inches
Building Code Compliance
The calculator checks three key code requirements for residential stairs:
- Riser Height: Must be between 4 inches and 7.75 inches per IRC R311.7.5.1.
- Tread Depth: Must be at least 10 inches per IRC R311.7.5.2.
- Riser + Tread Rule: The sum of one riser and one tread must be between 17 and 18 inches per IRC R311.7.5.1.
Each check is displayed with a green checkmark if it passes or a red warning if it fails. If any check fails, the design must be adjusted before construction to avoid code violations and potential safety hazards.
How to Use This Calculator
Follow these steps to design your staircase:
- Enter Total Rise: Measure the floor-to-floor height in inches from the top of the lower finished floor to the top of the upper finished floor. A typical residential story is 96 to 120 inches.
- Enter Desired Riser Height: The default is 7.5 inches. The IRC maximum is 7.75 inches. Values between 7 and 7.75 inches are most comfortable.
- Enter Tread Depth: The default is 10 inches, which is the IRC minimum. Values of 10 to 11 inches are standard for residential construction.
- Enter Stair Width: The IRC minimum for residential stairs is 36 inches. Wider stairs (42–48 inches) are more comfortable and often required for accessibility.
- Review Results: The calculator displays the number of risers and treads, actual riser height, total run, stringer length, stair angle, code compliance checks, and material quantities.
Materials and Cost Estimation
The calculator provides material estimates based on the stair dimensions. Stringers are typically cut from 2-by-12 lumber, and the calculator determines how many are needed based on the stair width. Treads require lumber wide enough to span the stair width with proper bearing, and the board feet are calculated from the tread dimensions. Risers are typically 3/4-inch thick boards or plywood.
The cost estimate includes stringer lumber at approximately $35 per 12-foot board, tread material at $4 per board foot, riser boards at $15 each, and miscellaneous hardware (hangers, nails, construction adhesive) at $50. These are rough estimates for budgeting purposes — actual costs vary by region, material quality, and supplier pricing. For an accurate budget, obtain quotes from local building material suppliers.
Real-World Applications
Stairs are one of the most complex elements in residential construction, requiring precise geometry, structural integrity, and code compliance. A typical residential staircase with a 10-foot floor-to-floor height requires approximately 17 risers, 16 treads, 3 stringers, and 30 to 40 board feet of lumber. The total material cost for a basic residential staircase ranges from $200 to $500 depending on the wood species and tread material.
Building inspectors pay close attention to stair construction during rough and finish inspections. Non-compliant stairs are a common reason for inspection failures and can delay construction schedules. Using a calculator to verify compliance before construction begins helps avoid these delays and ensures the safety of the building's occupants for the life of the structure.
Worked Examples
Standard Residential Staircase
Problem:
Design a staircase for a 108-inch floor-to-floor height with 7.5-inch desired riser and 10-inch tread depth.
Solution Steps:
- 1Number of risers: round(108 / 7.5) = 14 risers
- 2Actual riser height: 108 / 14 = 7.714 inches
- 3Number of treads: 14 - 1 = 13 treads
- 4Total run: 13 × 10 = 130 inches (10.83 feet)
- 5Stringer length: sqrt(108² + 130²) = 169.0 inches (14.08 feet)
- 6Code checks: riser 7.714 inches less than 7.75 max — OK, tread 10 inches meets 10-inch min — OK
Result:
14 risers at 7.714 inches, 13 treads at 10 inches, stringer 169.0 inches, code compliant
Steep Staircase Adjustment
Problem:
A 96-inch rise with a desired 7.5-inch riser and 10-inch tread. How many risers and what is the actual geometry?
Solution Steps:
- 1Number of risers: round(96 / 7.5) = 13 risers
- 2Actual riser height: 96 / 13 = 7.385 inches
- 3Number of treads: 12 treads
- 4Total run: 12 × 10 = 120 inches
- 5Stair angle: atan(96/120) × 180/pi = 38.7 degrees
- 6Cost estimate: 3 stringers × $35 + tread board feet × $4 + 13 risers × $15 + $50 hardware = $380
Result:
13 risers at 7.385 inches, 12 treads at 10 inches, angle 38.7 degrees, estimated cost $380
Wide Staircase with More Stringers
Problem:
A 48-inch wide staircase with 120-inch rise, 7.5-inch riser, 10.5-inch tread.
Solution Steps:
- 1Number of risers: round(120 / 7.5) = 16 risers
- 2Actual riser height: 120 / 16 = 7.500 inches
- 3Number of treads: 15 treads, total run = 15 × 10.5 = 157.5 inches
- 4Stringer length: sqrt(120² + 157.5²) = 198.0 inches
- 5Stringers needed for 48-inch width: 3 (max 16 inches on center)
Result:
16 risers at 7.5 inches, 15 treads at 10.5 inches, 3 stringers required
Tips & Best Practices
- ✓Always measure the total rise from finished floor to finished floor, not from framing to framing.
- ✓Keep all riser heights within 3/8 inch of each other to avoid trip hazards.
- ✓Cut stringers from straight, dry 2-by-12 lumber for maximum strength.
- ✓Dry-fit the staircase before fastening to verify all dimensions are correct.
- ✓Install handrails on both sides of the staircase for safety and code compliance.
- ✓Add a landing if the total run exceeds the available horizontal space.
Frequently Asked Questions
Sources & References
Last updated: 2026-06-06
Help us improve!
How would you rate the Stairs Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Standard Mathematical References
by Various