Staircase Calculator
Design comfortable, code-compliant stairs by entering your total rise (floor-to-floor height) and tread depth. The calculator determines the number of steps, riser height, total run, stringer length, and stair angle.
Common residential building codes suggest riser heights of 7–7.75 in (178–197 mm). Verify with local building codes.
How to Calculate Stairs: A Guide to Rise, Run, and Stringer Dimensions
Building a staircase is one of the most geometry-intensive tasks in residential construction. The relationship between riser height, tread depth, total rise, and total run must be calculated precisely to create stairs that are safe, comfortable, and compliant with building codes. Whether you are framing stairs for a deck, connecting two floors of a house, or building landscape steps in your garden, this calculator converts your total floor-to-floor height and desired tread depth into all the dimensions you need to cut stringers and lay out your staircase.
The underlying mathematics is straightforward, but the details matter. A small error in riser height accumulates across every step, and inconsistent risers are a common cause of tripping. This tool calculates uniform riser heights and provides the stringer length and stair angle so you can plan materials, check clearances, and verify that your design falls within accepted ranges before cutting any lumber.
Understanding the Key Measurements
Total rise is the vertical distance from the finished floor at the bottom to the finished floor at the top. This is the single most important measurement for stair layout, and accuracy is essential. Measure from the actual finished surface — not the subfloor — at both levels. If flooring has not yet been installed, account for the thickness of the finish material (tile, hardwood, carpet, etc.) at both the top and bottom landings.
Tread depth (also called ‘going’ or ‘run’ per step) is the horizontal distance from the front edge (nosing) of one tread to the front edge of the next. This determines how much horizontal space each step occupies and directly affects the comfort and safety of the staircase. Common residential tread depths range from 10 to 11 inches (254–279 mm).
Riser height is the vertical distance between the top surfaces of two consecutive treads. The ideal riser height for residential stairs is approximately 7 inches (178 mm), though building codes typically allow a range of 7 to 7.75 inches (178–197 mm). The calculator divides the total rise by this ideal height, rounds to the nearest whole number, and then recalculates the actual riser height to distribute the total rise evenly.
How the Calculation Works
Step 1: The calculator divides the total rise by the ideal riser height (7 inches or 178 mm) and rounds to the nearest whole number to determine the number of risers. Step 2: The actual riser height is calculated by dividing the total rise by the number of risers, ensuring every step is exactly the same height. Step 3: The number of treads is one fewer than the number of risers, because the top landing serves as the final tread.
Step 4: The total run is calculated by multiplying the number of treads by the tread depth. This tells you how much horizontal floor space the staircase occupies. Step 5: The stringer length is the hypotenuse of the right triangle formed by the total rise and total run, calculated using the Pythagorean theorem. Step 6: The stair angle is the arctangent of total rise divided by total run, expressed in degrees.
Building Code Considerations
Building codes establish minimum and maximum dimensions for stairs to promote safety. In many jurisdictions, the International Residential Code (IRC) applies. Common requirements include a maximum riser height of 7.75 inches (197 mm), a minimum tread depth of 10 inches (254 mm), a minimum stair width of 36 inches (914 mm), and a minimum headroom clearance of 6 feet 8 inches (2,032 mm).
In Japan, the Building Standards Act (Kenchiku Kijun Ho) sets requirements that vary by building type. For residential buildings, riser heights up to 230 mm and tread depths of at least 150 mm are commonly referenced, though specific requirements depend on the type of building and local regulations. These are general references — always verify with the building code that applies to your specific project and jurisdiction.
The 7-11 Rule and Comfort Formulas
A widely referenced guideline for comfortable stairs is the 7-11 rule: a 7-inch riser with an 11-inch tread. This combination produces a stair angle of approximately 32.5 degrees, which most people find comfortable for regular use. Several formulas have been developed over centuries to evaluate stair comfort.
The Blondel formula, dating to the 17th century, states that 2R + T should equal approximately 24–25 inches (610–635 mm), where R is the riser height and T is the tread depth. For example, a 7-inch riser with an 11-inch tread gives 2(7) + 11 = 25, which falls within the comfortable range. Another guideline suggests that R + T should equal approximately 17–18 inches (432–457 mm). These are guidelines for evaluating comfort, not strict requirements.
Stringer Layout and Materials
Stringers are the structural members that support the treads and risers. They are typically cut from 2×12 lumber (or equivalent) in residential construction. The stringer length from this calculator tells you the minimum board length needed. In practice, add a few inches for the top and bottom connections. Most building codes require at least three stringers for stairs wider than 36 inches.
To lay out stringer cuts, you need a framing square with stair gauges (small clamps) set to your riser height and tread depth. Mark the rise and run for each step along the stringer board, then cut along the marks. The precision of your layout directly affects the comfort of the finished stairs, so double-check the calculator’s riser height and tread depth measurements before marking.
Common Staircase Types
Straight stairs run in one direction without turns and are the simplest to calculate and build. This calculator is designed primarily for straight stairs. L-shaped stairs make a 90-degree turn at a landing platform. You can use this calculator for each straight section of an L-shaped staircase by measuring the rise for each section separately.
U-shaped stairs reverse direction 180 degrees at a landing and are common when floor space is limited. Spiral and curved stairs involve more complex geometry and are typically designed by architects or engineers. For any staircase with a landing, measure the total rise from the lower floor to the landing for the first section, and from the landing to the upper floor for the second section, running the calculator separately for each.
Headroom and Clearance
Headroom is the vertical distance between the nose of a tread and any overhead obstruction (ceiling, header, floor above). Building codes commonly require a minimum of 6 feet 8 inches (2,032 mm) of headroom at all points along the staircase. If your stair opening in the floor above is too small, the headroom will be insufficient even if the steps themselves are correctly dimensioned.
The stair angle from this calculator helps you evaluate whether headroom will be an issue. Steeper stairs (higher angle) reduce the total run but may create headroom problems at the top of the staircase where the stair passes through the floor opening. Conversely, a shallower angle uses more floor space but provides more headroom.
Tips for Accurate Results
Measure the total rise at the location where the stairs will be built, not elsewhere in the building. Floor heights can vary due to settling, construction tolerances, and differences in finish materials. Measure from finished floor to finished floor, or account for the thickness of flooring that has not yet been installed.
If you are replacing existing stairs, measure both the total rise and the existing riser height. Compare the existing riser height to what this calculator produces to determine whether the replacement stairs will have a different feel. Even small changes in riser height are noticeable to people who use the stairs regularly, so matching the expected dimensions is important for comfort and safety.
Frequently Asked Questions
What is the ideal riser height for stairs?
Common residential building codes suggest riser heights in the range of 7 to 7.75 inches (178–197 mm). The widely referenced ideal is approximately 7 inches (178 mm), which this calculator uses as its starting point. The actual riser height is adjusted so that the total rise is divided evenly among all steps, ensuring uniform step heights throughout the staircase.
How do I measure total rise for stairs?
Total rise is the vertical distance from the finished floor at the bottom of the stairs to the finished floor at the top. Measure at the actual location where the stairs will be built. If finish flooring has not been installed yet, add the thickness of the floor material (tile, hardwood, carpet) at both the top and bottom to your subfloor-to-subfloor measurement.
What is a stringer and how long should it be?
A stringer is the diagonal structural board that supports the treads and risers. Its length is calculated using the Pythagorean theorem: the square root of (total rise squared plus total run squared). This calculator provides the mathematical stringer length. When purchasing lumber, add a few extra inches to account for the top and bottom connection cuts.
What angle should stairs be?
Comfortable residential stairs typically have an angle between 30 and 37 degrees. The 7-11 rule (7-inch riser, 11-inch tread) produces an angle of approximately 32.5 degrees. Steeper stairs save floor space but may be less comfortable for daily use. The stair angle is calculated as the arctangent of the total rise divided by the total run.
How many treads are there compared to risers?
There is always one fewer tread than the number of risers. This is because the top landing (the floor you step onto at the top of the stairs) functions as the final tread. For example, a staircase with 15 risers has 14 treads. The total run is calculated by multiplying the number of treads by the tread depth.