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 tripping hazard. When one riser is even a little taller or shorter than the rest, a person's foot lands at the wrong moment. 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. If the total rise divides exactly by the desired riser height, the tool keeps that height and does not add an extra step.
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 design guideline checks whether a staircase will feel comfortable to walk: twice the riser height plus the tread depth should land between 24 and 25 inches, as taught in an Ohio University stair design handout. It is not a building code rule. The calculator does not apply this check; it is a way to judge its results by hand.
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, below the 24-to-25-inch guideline.
The result is 16 stairs with 6.75-inch risers and 9.6-inch treads. These are the tool's default inputs. Because 9.6 inches is less than the 10-inch minimum tread depth, the tool shows a warning. Fifteen 10-inch treads need at least 150 inches of run, so this staircase needs more floor space or a different layout.
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 and code edition, so a local building department should always confirm the final numbers. The 2018 IRC figures below are quoted in a Town of Timnath residential stair guide:
- Maximum riser height: 7.75 inches (196 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 (2036 mm)
- Minimum stairway width: 36 inches (914 mm)
- Handrail height: 34 to 38 inches (864 to 965 mm), measured from the sloped line along the tread nosings
The tool warns when the desired riser height is above 7.75 inches or below 4 inches, and when the tread depth works out to less than 10 inches. The low-riser warning flags a step under 4 inches as unusually short and a possible trip hazard. It is not a residential code limit. The 4-inch minimum is listed for non-residential stairs in the Ohio University handout, which also gives those stairs a 7-inch maximum riser and an 11-inch minimum tread. Its residential list has no minimum riser height.
A tread shallower than 10 inches leaves less room for the foot, which matters most when walking down. The 3/8-inch limit on variation keeps every step close to the same size, so people can walk the flight without tripping.
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?
Under the IRC, a home stair riser can be no taller than 7.75 inches. Non-residential stairs are limited to 7 inches. A riser that also passes the 2R + T check, such as 7 inches with an 11-inch tread, usually feels comfortable.
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. The IRC allows only a small 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
- Ohio University, School of Art + Design. Stair Design Rules & Guidelines (ART 2600). people.ohio.edu — the 2R + T = 24–25 inch guideline; non-residential minimum 4-inch riser, 7-inch maximum riser and 11-inch minimum tread.
- Town of Timnath, Colorado. 2018 Residential Stair Guide. timnath.org — IRC R311.7 figures: 36-inch width, 6 ft 8 in headroom, 7¾-inch maximum riser, 10-inch minimum tread, 3/8-inch variation limits, 34–38 inch handrail height.