Stair Calculator: Steps, Riser Height & Tread Depth
This stair calculator finds the number of steps, actual riser height, and tread depth for a staircase from its total rise, run, and target riser height.
Stair Calculator
Calculate the exact number of stairs, riser height, and tread depth for your staircase project. Enter your measurements to get code-compliant dimensions.
Ideal range is 6.5-7.5 inches for comfortable stairs
Number of Stairs
Calculation Details
Calculation Formulas
Number of Stairs = Ceiling(Total Height ÷ Riser Height)
= Ceiling(108 ÷ 7) = 16
Actual Riser Height = Total Height ÷ Number of Stairs
= 108 ÷ 16 = 6.75
Tread Depth = Total Run ÷ (Number of Stairs − 1)
= 144 ÷ 15 = 9.60
Staircase Visualization
Documentation
What Is a Stair Calculator?
A stair calculator works out how many steps a staircase needs, how tall each step should be, and how deep each step should be. It uses two measurements: the total rise (the vertical height the stairs must climb) and the total run (the horizontal length available). The result is a set of stair dimensions that are safe to walk on and consistent from top to bottom.
Uneven steps are a common cause of falls. When one riser is even a little taller or shorter than the rest, a person's foot lands at the wrong moment and they can trip. A stair calculator prevents this by dividing the total rise evenly across every step, so no single riser is out of line with the others.
Stair Calculation Formulas
Number of Stairs Formula
The number of steps is the total rise divided by the desired riser height, rounded up to the next whole number:
Number of Stairs = ⌈Total Rise ÷ Desired Riser Height⌉
The ceiling symbol (⌈ ⌉) means "round up." Rounding up matters because rounding down would make each riser taller than intended, which can push a design past the maximum riser height allowed by code.
Actual Riser Height Formula
Once the number of stairs is fixed, the exact riser height comes from spreading the total rise evenly across all of them:
Actual Riser Height = Total Rise ÷ Number of Stairs
This is usually a little shorter than the riser height a person first types in, because the number of stairs was rounded up.
Tread Depth Formula
Tread depth is the horizontal length of a single step. It comes from the total run divided by the number of treads. A staircase always has one fewer tread than it has risers, because the top riser leads onto the upper floor rather than onto another tread:
Tread Depth = Total Run ÷ (Number of Stairs − 1)
The 2R + T Comfort Rule
A widely used rule of thumb checks whether a staircase will feel comfortable to walk: twice the riser height plus the tread depth should land between 24 and 25 inches (61 to 64 cm). This mirrors the length of an average adult stride on flat ground. Steps built to this range feel natural; steps far outside it feel either too steep or too shallow, even when they meet the minimum legal dimensions.
How to Calculate Stairs: Worked Example
Consider a staircase with a total rise of 108 inches (9 feet), a total run of 144 inches (12 feet), and a target riser height of 7 inches.
- Number of stairs: 108 ÷ 7 = 15.43, rounded up to 16.
- Actual riser height: 108 ÷ 16 = 6.75 inches.
- Tread depth: 144 ÷ (16 − 1) = 144 ÷ 15 = 9.6 inches.
- Comfort check: (2 × 6.75) + 9.6 = 23.1 inches. That is a little under the 24-to-25-inch target, but close enough that most people would find the stairs comfortable.
The result: a 16-step staircase with 6.75-inch risers and 9.6-inch treads.
Building Code Requirements for Stairs
Most jurisdictions in the United States base their stair rules on the International Residential Code (IRC). Exact rules vary by location, so a local building department should always confirm the final numbers, but the common figures are:
- Maximum riser height: 7.75 inches (197 mm)
- Minimum riser height: 4 inches (102 mm)
- Maximum variation between the tallest and shortest riser in one flight: 3/8 inch (9.5 mm)
- Minimum tread depth: 10 inches (254 mm)
- Maximum variation between treads: 3/8 inch (9.5 mm)
- Minimum headroom: 6 feet 8 inches (2032 mm)
- Minimum stairway width: 36 inches (914 mm)
- Handrail height: 34 to 38 inches (864 to 965 mm), measured from the leading edge of the tread
A tread shallower than 10 inches forces a foot to hang partway off the back edge, which is especially risky going down. A riser height that varies by more than 3/8 inch between steps is enough to disrupt a person's stride and cause a stumble, since the body memorizes the rhythm of the first two or three steps and expects every later step to match.
These figures cover ordinary indoor stairs. Spiral staircases, winder stairs (steps that turn a corner without a landing), and commercial stairs built to accessibility standards follow separate rules and are outside the scope of a basic rise-and-run calculation.
Common Staircase Types
- Straight staircases run in one line from bottom to top. The formulas above apply directly.
- L-shaped staircases turn 90 degrees at a landing; each straight section is calculated separately.
- U-shaped staircases turn 180 degrees, usually with one or two landings, and are also calculated section by section.
- Spiral and winder staircases use curved or pie-shaped treads and need specialized geometry beyond a simple rise-and-run formula.
Frequently Asked Questions
How do I calculate the number of stairs I need?
Divide the total rise in inches by the desired riser height, then round up to the next whole number. A 108-inch rise with 7-inch risers needs 108 ÷ 7 = 15.43, rounded up to 16 stairs.
What is a comfortable riser height?
Most residential stairs use risers between 6.5 and 7.5 inches. Commercial buildings often use shorter risers, around 6 inches, because they carry more foot traffic and more people with limited mobility.
How many stairs does a 9-foot ceiling need?
A 9-foot floor-to-floor height (108 inches) needs 16 stairs with 7-inch target risers, since 108 ÷ 7 rounds up from 15.43 to 16. An 8-foot height (96 inches) needs 14 stairs, and a 10-foot height (120 inches) needs 18 stairs. Floor-to-floor height is not the same as ceiling height; it also includes the floor joists and finished flooring above the ceiling.
How much horizontal space does a staircase need?
A 16-step staircase with 10-inch treads has 15 treads, so it needs 15 × 10 = 150 inches, or about 12.5 feet, of horizontal run. That is on top of the minimum 36-inch width and the 6-foot-8-inch headroom clearance required above the stairs.
What is the 2R + T rule?
It is a comfort check: twice the riser height plus the tread depth should equal 24 to 25 inches. For example, 7-inch risers with 11-inch treads give (2 × 7) + 11 = 25 inches, which sits right at the top of the range.
Can risers on the same staircase have different heights?
No. Building codes allow only a small manufacturing tolerance, 3/8 inch, between the tallest and shortest riser in a flight. A staircase should be designed so that dividing the total rise evenly gives the same height for every step, not a mix of custom heights.
References
- International Code Council, International Residential Code, Section R311.7, stairway requirements.
- Occupational Safety and Health Administration, Stairways and Ladders.
- Allen, Edward, and Joseph Iano. Fundamentals of Building Construction: Materials and Methods, 7th ed., Wiley, 2019.