Stairs Calculator

Calculate stair dimensions and verify building code compliance

Stair Parameters

Vertical height from floor to floor
Typical: 7" to 7.75" (code max: 7.75")
Typical: 10" to 11" (code min: 10")
Residential minimum: 36"

Stair Dimensions

Number of Risers
14
Number of Treads
13
Actual Riser Height
7.714 inches
✓ Within code
Total Run
130.0 inches
10.8 feet
Stringer Length
169.0 inches
15.0 feet
Stair Angle
39.7°
Code Compliance
Riser height: 4" - 7.75"
Tread depth: min 10"
Riser + Tread: 17" - 18"
Materials Needed
Stringers: 3 (2×12)
Treads: 13 (32.5 bd ft)
Risers: 14
Estimated Cost: $495.00

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

N = round(Rise / Desired Riser), Actual Riser = Rise / N, Run = (N-1) × Tread, Stringer = sqrt(Rise² + Run²)

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:

  1. 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.
  2. 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.
  3. Enter Tread Depth: The default is 10 inches, which is the IRC minimum. Values of 10 to 11 inches are standard for residential construction.
  4. 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.
  5. 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:

  1. 1Number of risers: round(108 / 7.5) = 14 risers
  2. 2Actual riser height: 108 / 14 = 7.714 inches
  3. 3Number of treads: 14 - 1 = 13 treads
  4. 4Total run: 13 × 10 = 130 inches (10.83 feet)
  5. 5Stringer length: sqrt(108² + 130²) = 169.0 inches (14.08 feet)
  6. 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:

  1. 1Number of risers: round(96 / 7.5) = 13 risers
  2. 2Actual riser height: 96 / 13 = 7.385 inches
  3. 3Number of treads: 12 treads
  4. 4Total run: 12 × 10 = 120 inches
  5. 5Stair angle: atan(96/120) × 180/pi = 38.7 degrees
  6. 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:

  1. 1Number of risers: round(120 / 7.5) = 16 risers
  2. 2Actual riser height: 120 / 16 = 7.500 inches
  3. 3Number of treads: 15 treads, total run = 15 × 10.5 = 157.5 inches
  4. 4Stringer length: sqrt(120² + 157.5²) = 198.0 inches
  5. 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

The ideal riser height for residential stairs is 7 to 7.5 inches. The IRC maximum is 7.75 inches. Risers above 7.75 inches are considered a safety hazard and will not pass building inspection. Risers below 4 inches are also not permitted. Consistency is critical — all risers in a flight must be within 3/8 inch of each other.
For residential stairs 36 inches wide, 2 stringers are standard. For stairs 36 to 48 inches wide, 3 stringers are recommended. For wider stairs, add one stringer for every additional 16 inches of width. Stringers are typically cut from 2-by-12 lumber and should be spaced no more than 16 inches on center.
The total run is the horizontal distance the staircase occupies, measured from the face of the first riser to the face of the last riser. It determines whether the stairs will fit in the allocated space. If the total run exceeds the available space, you may need to add a landing, use a different riser height, or consider an L-shaped or U-shaped stair configuration.
For stairs with a mid-height landing, calculate each flight separately using the rise from the floor to the landing and from the landing to the upper floor. The landing itself should be at least 36 inches deep (measured in the direction of travel) and at least as wide as the stair. Landings provide a resting point and allow changes in direction.
The stair angle is the slope of the staircase measured from horizontal. Residential stairs typically have an angle of 30 to 35 degrees. Angles below 25 degrees may be better suited for a ramp. Angles above 38 degrees indicate steep stairs that may be uncomfortable or non-compliant. The calculator displays the angle so you can assess the overall steepness.

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.

Source

Formula Source: Standard Mathematical References

by Various

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.

Privacy choices

MyCalcBuddy uses necessary storage for the site to work. Optional analytics, notifications, and future advertising features stay off unless you allow them.