Calculators PlanetCalculators Planet
HomeFinancialMathHealthOtherBlogAboutContact
Calculators PlanetCalculators Planet

Fast, accurate, and user-friendly online calculators for all your needs.

Financial

  • Mortgage Calculator
  • Amortization Calculator
  • Mortgage Payoff Calculator
  • House Affordability Calculator
  • Rent Calculator

Math

  • Decimal to Fraction Calculator
  • Significant Figures Calculator
  • Percentage Calculator
  • Fraction Calculator
  • Ratio Calculator

Health

  • BMI Calculator
  • Ideal Weight Calculator
  • Body Fat Calculator
  • Calorie Calculator
  • Macro Calculator

Other

  • Age Calculator
  • Date Calculator
  • Time Calculator
  • Hours Calculator
  • Time Card Calculator

2026 Calculators Planet. All rights reserved.

BlogAboutContactPrivacy PolicyCookie PolicyTerms of ServiceDisclaimer
Calculators PlanetCalculators Planet
HomeFinancialMathHealthOtherBlogAboutContact
HomeOtherStair Calculator

Stair Calculator

Calculate the number of steps, riser height, total run, and stringer length for any staircase. Includes IRC building code compliance check.

Share:
Stair Calculator

The vertical distance from one floor level to the next.

IRC code range: 4.00–7.75 in.

IRC code minimum: 10.00 in.

Enter your floor-to-floor height and desired dimensions, then click Calculate.

Introduction

Tom, a contractor in Austin, is framing a staircase for a new two-story home. The floor-to-floor height is 9 feet 2 inches, which is 110 inches. He needs to figure out how many steps to cut, what riser height to use, and how long the stringer boards need to be. He also needs to make sure the staircase passes inspection. If the risers exceed 7.75 inches or the treads are shallower than 10 inches, the building inspector will fail the job and Tom will have to tear it out and rebuild.

Building a staircase requires precision. The relationship between rise (vertical height per step) and run (horizontal depth per step) determines whether stairs feel comfortable to climb, look visually proportional, and meet building code requirements. According to the International Residential Code (IRC) Section R311.7.5.1, the maximum residential riser height is 7.75 inches (196 mm) and the minimum tread depth is 10 inches (254 mm). For commercial buildings, the International Building Code (IBC) mandates a stricter maximum riser height of 7 inches (178 mm) to accommodate greater public accessibility.

This stair calculator helps homeowners, builders, and contractors determine the correct number of steps, riser height, and total horizontal run needed for any floor-to-floor height. It also flags dimensions that fall outside IRC building code standards. The stringer length calculation uses the Pythagorean theorem, which you can explore in our Pythagorean Theorem Calculator.

Inputs Required

  • Total Rise: The vertical distance from one finished floor to the next (in inches or feet)
  • Desired Riser Height: The preferred vertical height of each step (typically 6.5 to 7.5 inches)
  • Tread Depth: The horizontal depth of each step (minimum 10 inches per IRC code)
  • Stair Width: The width of the staircase

Outputs Provided

  • Number of Steps: Total steps required
  • Actual Riser Height: Adjusted riser after dividing evenly
  • Total Run: Horizontal distance the staircase occupies
  • Stair Angle: The pitch angle in degrees
  • Stringer Length: The length of the diagonal stringer board
  • Code Check: Whether dimensions meet IRC requirements

How the Calculation Works

The number of steps is found by dividing the total rise by the desired riser height and rounding to the nearest whole number. The actual riser height is then recalculated by dividing the total rise evenly across all steps, ensuring every riser is identical.

Number of Steps = Round(Total Rise / Desired Riser Height)

Actual Riser = Total Rise / Number of Steps

Total Run = (Number of Steps - 1) x Tread Depth

Stringer Length = sqrt(Total Rise squared + Total Run squared)

The total run uses one fewer tread than the number of risers because the top landing is the floor itself, not a tread. The stringer length uses the Pythagorean theorem applied to the total rise and total run. The stair angle is calculated as arctan(Total Rise / Total Run), converted from radians to degrees.

How to Use the Calculator

  1. Measure the total vertical rise from finished floor to finished floor
  2. Enter the total rise in inches or feet
  3. Set your desired riser height (7 inches is a comfortable standard)
  4. Set your tread depth (11 inches is comfortable; 10 is the IRC minimum)
  5. Enter the stair width for reference
  6. Click Calculate to view results and the code compliance check

Example Calculations

Example 1: Standard Residential Staircase

A builder needs stairs for a home with a floor-to-floor height of 9 feet (108 inches). Desired riser: 7 inches. Tread depth: 11 inches. Number of steps: 108 / 7 = 15.4, rounded to 15 steps. Actual riser: 108 / 15 = 7.2 inches (within IRC max of 7.75). Total run: (15 - 1) x 11 = 154 inches = 12.83 ft. Stringer length: sqrt(108 squared + 154 squared) = sqrt(11,664 + 23,716) = sqrt(35,380) = 188.1 inches = 15.7 ft. Stair angle: arctan(108/154) = 35 degrees. The code check passes because 7.2 inches is under the 7.75 inch maximum and 11 inches exceeds the 10 inch minimum.

Example 2: Tom's Austin Home

Tom enters a total rise of 110 inches (9 ft 2 in). Desired riser: 7 inches. Tread depth: 11 inches. Number of steps: 110 / 7 = 15.7, rounded to 16 steps. Actual riser: 110 / 16 = 6.875 inches (within code). Total run: (16 - 1) x 11 = 165 inches = 13.75 ft. Stringer length: sqrt(110 squared + 165 squared) = sqrt(12,100 + 27,225) = sqrt(39,325) = 198.3 inches = 16.5 ft. Stair angle: arctan(110/165) = 33.7 degrees. Tom buys 18-foot stringer boards to allow for trimming and cutting errors. The 6.875 inch riser is comfortable and well within the 7.75 inch IRC maximum.

Real-World Scenarios

New Home Construction

A contractor building a two-story home in Dallas uses the calculator during the framing stage to confirm the stair opening size in the second floor matches the required total run. With a 10-foot ceiling and 12-inch floor joists, the total rise is 132 inches. At 7 inches per riser, that gives 18.86, rounded to 19 steps. Actual riser: 132 / 19 = 6.95 inches. Total run: 18 x 11 = 198 inches = 16.5 ft. The contractor frames a 17-foot opening to accommodate the staircase plus landing clearance. Knowing the total run in advance ensures the floor opening is framed correctly before the subfloor is installed. For measuring the floor area available, use our Square Footage Calculator.

Deck Stairs

A homeowner in Seattle building a deck that is 48 inches above grade uses the calculator to determine that 7 steps with a 6.86-inch riser and 11-inch tread will reach the ground. Total run: 6 x 11 = 66 inches = 5.5 ft. Stringer length: sqrt(48 squared + 66 squared) = sqrt(2,304 + 4,356) = sqrt(6,660) = 81.6 inches = 6.8 ft. She buys 8-foot 2x12 pressure-treated boards for the stringers, which gives enough length for the cuts and the bottom anchor. Three stringers are needed for a 36-inch wide staircase.

Basement Renovation with Retro-Treads

A homeowner in Chicago finishing a basement needs to replace steep utility stairs. The floor-to-floor height is 96 inches (8 feet). At 7 inches per riser: 96 / 7 = 13.7, rounded to 14 steps. Actual riser: 96 / 14 = 6.86 inches. Total run: 13 x 11 = 143 inches = 11.9 ft. The existing stairwell is 12 feet long, so the staircase fits. However, the homeowner plans to install 0.75-inch retro-treads over the existing treads. This raises the bottom riser by 0.75 inches to 7.61 inches and lowers the top riser by 0.75 inches to 6.11 inches. The bottom riser is still under the 7.75 inch IRC maximum, but the variation between risers (7.61 vs 6.11) exceeds the 0.375 inch maximum variation allowed by code. The homeowner must shim the stringers to equalize the risers. If pouring a landing at the bottom, use our Concrete Calculator.

Why This Calculation Matters

Stair geometry directly affects safety. Stairs that are too steep cause trips and falls, especially for children and older adults. Stairs that are too shallow waste floor space and feel awkward to climb. The IRC limits residential riser height to 7.75 inches because research shows that even a quarter-inch beyond this threshold significantly increases trip-and-fall incidents. Building codes exist to ensure all stairs fall within a safe, comfortable range. Uneven risers are particularly hazardous. If one step is even slightly taller or shorter than the others, it creates a rhythm break that causes people to stumble. The IRC requires that the variation between the tallest and shortest riser in a flight of stairs must not exceed 0.375 inches (3/8 inch).

Common Mistakes to Avoid

  • Measuring to the subfloor instead of finished floor: Always measure the finished floor-to-floor height including flooring material thickness, as this affects the top and bottom risers
  • Using unequal risers: Every riser must be the same height. The IRC requires that riser height variation within a flight of stairs must not exceed 0.375 inches (3/8 inch)
  • Ignoring the nosing overhang: Tread depth is measured from riser face to riser face, not including the nosing overhang. Add 1 to 1.25 inches for nosing when purchasing tread boards
  • Forgetting headroom clearance: Minimum headroom is 6 feet 8 inches (80 inches) per IRC. Verify this is achievable given the floor structure above the stairwell
  • Retro-tread adjustments: Adding retro-treads changes the riser geometry. The bottom riser increases by the tread thickness and the top riser decreases by the same amount, potentially creating code-violating variation

Limitations of This Calculator

This calculator designs straight staircases with uniform risers and treads. It does not handle spiral staircases, curved staircases, or L-shaped and U-shaped stairs with intermediate landings. The code compliance check applies to the International Residential Code (IRC) for one- and two-family dwellings. Commercial projects follow the International Building Code (IBC), which has stricter requirements (7 inch max riser, 11 inch min tread). Local jurisdictions may adopt amendments that differ from the IRC. Always verify with your local building department before construction. The calculator does not account for winders, curved treads, or alternating tread devices, which have separate code requirements under IRC Section R311.7.

Frequently Asked Questions

What is the ideal rise and run for stairs?
The most comfortable stair geometry follows the rule: 2 times Rise plus Run equals 24 to 25 inches. A riser of 7 inches and tread of 11 inches (2 x 7 + 11 = 25) is widely considered the gold standard for comfort. IRC building code Section R311.7.5.1 requires risers between 4 and 7.75 inches and treads of at least 10 inches for residential stairs. The IRC also requires that riser height variation within a single flight of stairs must not exceed 0.375 inches (3/8 inch).
How many steps are in a standard staircase?
A standard residential staircase between two floors typically has 13 to 16 steps, depending on the floor-to-floor height. A 9-foot ceiling with standard flooring materials produces about 14 to 15 steps at 7-inch risers. A 10-foot ceiling produces about 16 to 17 steps. Commercial staircases may have different requirements under the International Building Code (IBC), which limits riser height to 7 inches maximum.
What is a stringer and how long does it need to be?
A stringer is the diagonal structural board that supports the treads and risers on the sides of a staircase. Its length is calculated using the Pythagorean theorem from the total rise and total run. For a 9-foot rise (108 inches) and 12.83-foot run (154 inches), the stringer is sqrt(108 squared + 154 squared) = 188.1 inches = 15.7 feet. You typically need three stringers for a standard 36-inch wide staircase, spaced no more than 18 inches apart for residential construction and 36 inches apart for commercial. Always buy stringer boards longer than the calculated length to allow for trimming.
Does the top landing count as a step?
The top landing is counted as a riser but not a tread, because you step onto the upper floor, not onto a separate tread board. This is why the total run is calculated using one fewer tread than the number of risers. For example, a 15-step staircase has 15 risers but only 14 treads, because the 15th step lands on the upper floor surface.
What is the minimum headroom clearance for stairs?
The International Residential Code (IRC) requires a minimum of 6 feet 8 inches (80 inches) of headroom measured vertically from any stair nosing to the ceiling or soffit above. This is specified in IRC Section R311.7.2. Always verify headroom when installing stairs beneath a floor or ceiling structure, especially in basement renovations where ceiling height may be limited.
What is the difference between IRC and IBC stair requirements?
The International Residential Code (IRC) applies to one- and two-family dwellings and allows a maximum riser height of 7.75 inches (196 mm) and a minimum tread depth of 10 inches (254 mm). The International Building Code (IBC) applies to commercial buildings, multi-family housing, and public spaces. It mandates a stricter maximum riser height of 7 inches (178 mm) and a minimum tread depth of 11 inches (279 mm). The IBC also requires a minimum stair width of 44 inches for occupant loads over 50, compared to the IRC minimum of 36 inches. Always check which code applies to your project before construction.
How do retro-treads affect code compliance?
Retro-treads are hardwood overlays installed over existing treads to update a staircase without removing the stringers. Adding a 0.75-inch retro-tread raises the bottom riser by 0.75 inches and lowers the top riser by the same amount. If the original risers were 7.5 inches, the bottom riser becomes 8.25 inches, exceeding the IRC maximum of 7.75 inches. Even if both risers remain within the maximum, the variation between them may exceed the 0.375 inch limit. Always recalculate riser heights after installing retro-treads and shim the stringers if necessary to maintain uniform risers.
How many stringers do I need for my staircase?
For residential staircases, stringers should be spaced no more than 18 inches apart on center, measured along the tread. A standard 36-inch wide staircase typically requires three stringers (one at each end and one in the middle). A 48-inch wide staircase may require four stringers. For commercial staircases under the IBC, stringer spacing must not exceed 36 inches on center. Always use 2x12 or larger lumber for stair stringers, and never cut a stringer more than 5 inches deep at any point to maintain structural integrity.

Related Calculators

Concrete Calculator

Calculate concrete for footings and landings

Square Footage Calculator

Measure the floor area for your staircase opening

Roofing Calculator

Calculate roofing materials for covered deck projects

Embed This Calculator

Stair Calculator

Calculate
Reset
Calculators PlanetCalculators Planet

Fast, accurate, and user-friendly online calculators for all your needs.

Financial

  • Mortgage Calculator
  • Amortization Calculator
  • Mortgage Payoff Calculator
  • House Affordability Calculator
  • Rent Calculator

Math

  • Decimal to Fraction Calculator
  • Significant Figures Calculator
  • Percentage Calculator
  • Fraction Calculator
  • Ratio Calculator

Health

  • BMI Calculator
  • Ideal Weight Calculator
  • Body Fat Calculator
  • Calorie Calculator
  • Macro Calculator

Other

  • Age Calculator
  • Date Calculator
  • Time Calculator
  • Hours Calculator
  • Time Card Calculator

2026 Calculators Planet. All rights reserved.

BlogAboutContactPrivacy PolicyCookie PolicyTerms of ServiceDisclaimer