Introduction
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. Getting these numbers wrong can result in a staircase that is uncomfortable, unsafe, or fails inspection.
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.
What This Calculator Does
Enter your total floor-to-floor rise, desired riser height, and tread depth. The calculator determines how many steps are needed, the actual riser height after rounding to whole steps, total horizontal run, stair angle, and stringer length.
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 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² + Total Run²)
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.
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 Calculation
A builder needs to design stairs for a home with a floor-to-floor height of 9 feet (108 inches):
- Total Rise: 108 inches
- Desired Riser: 7 inches
- Number of Steps: 108 / 7 = 15.4, rounded to 15 steps
- Actual Riser: 108 / 15 = 7.2 inches (within code)
- Tread Depth: 11 inches
- Total Run: (15 - 1) x 11 = 154 inches = 12.83 ft
- Stringer Length: sqrt(108² + 154²) / 12 = 18.8 ft
Real-World Scenarios
New Home Construction
A contractor building a two-story home uses the calculator during the framing stage to confirm the stair opening size in the second floor matches the required total run. Knowing the total run in advance ensures the floor opening is framed correctly before the subfloor is installed.
Deck Stairs
A homeowner 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. This lets them cut the stringers accurately and purchase the correct number of tread boards.
Basement Renovation
A homeowner finishing a basement with a ceiling height of 8 feet needs to replace the original steep utility stairs. The calculator confirms that 13 steps with 7.38-inch risers and 11-inch treads will fit within the available floor space.
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. 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. All risers must be identical, which is why this calculator divides the total rise evenly rather than using the desired height exactly.
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. Divide the total rise evenly rather than rounding each riser independently.
- Ignoring the nosing overhang: Tread depth is measured from riser face to riser face, not including the nosing overhang. Add 1 to 1.5 inches for nosing when purchasing tread boards.
- Forgetting headroom clearance: Minimum headroom is 6 feet 8 inches per IRC. Verify this is achievable given the floor structure above the stairwell.
Related Calculators
Use the Square Footage Calculator to measure the floor area available for the staircase, the Concrete Calculator if you are pouring a landing, or the Roofing Calculator for outdoor stair projects connected to decks and covered porches.