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
- Measure the total vertical rise from finished floor to finished floor
- Enter the total rise in inches or feet
- Set your desired riser height (7 inches is a comfortable standard)
- Set your tread depth (11 inches is comfortable; 10 is the IRC minimum)
- Enter the stair width for reference
- 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.