Stair Calculator
How many steps do I need for a 9 ft ceiling?
Usually 16 risers and 15 treads. A 9 ft ceiling plus about 10 in of floor framing and flooring gives a total rise of roughly 118 in, and 118 / 7.75 rounds up to 16 risers of 7.38 in with 10.25 in treads. If the 9 ft (108 in) is the true floor-to-floor height, you need 14 risers of 7.71 in and 13 treads. Measure the finished floor-to-floor height to be sure.
This stair calculator works out the number of risers and treads, the riser height and the tread depth for a straight staircase from its total rise. Enter the floor-to-floor height in inches, and optionally the horizontal run you have available, and it lays out a set of evenly sized steps.
It is meant for DIY builders, deck builders and anyone planning basement or porch stairs. Along with the step layout, it shows the stringer length, total run, stair angle, a check against the IRC riser and tread limits and the 2R + T comfort rule, and a simple lumber list for stringers, treads and risers. Below the tool are ready-made layouts for 8, 9 and 10 ft ceilings and for short deck and porch steps.
Enter your details
How to Use the Stair Calculator
- 1
Measure the total rise
Measure from the top of the finished lower floor to the top of the finished upper floor, in inches, and enter it as Total Rise.
- 2
Add the total run if you have a limit
If the stairs must fit a fixed horizontal space, enter it as Total Run. Leave it blank and the calculator picks a tread depth for you.
- 3
Enter the stair width
Type the stair width in inches. It defaults to 36 in, the common residential minimum, and is shown with the results for reference; it does not change the step layout.
- 4
Review the layout and checks
Read the risers, treads, riser height, tread depth, stringer length, total run and angle, then look at the code compliance and comfort checks before you cut anything.
How the stair calculator works
The tool finds the fewest risers that keep every step at or under 7 3/4 in. It divides your total rise by 7.75 and rounds up, then divides the total rise by that count so every riser is identical. A straight run always has one fewer tread than risers, because the upper floor acts as the last step.
If you entered a total run, tread depth is that run divided by the number of treads. If not, it uses the comfort rule: tread depth = 25 in minus twice the riser height, with a floor of 10 in. The stringer length is the diagonal of total rise and total run, and the angle is the arctangent of rise over run.
Risers = total rise / 7.75, rounded up
Riser height = total rise / risers
Treads = risers - 1
Tread depth = total run / treads, or 25 - 2 x riser height (minimum 10 in)
Stringer = square root of (rise² + run²)Stair layouts for 8, 9 and 10 ft ceilings
Ceiling height is not total rise. The rise from finished floor to finished floor is the ceiling height plus the upper floor system: joists, subfloor and flooring, typically 10 to 12 in. The table shows what this calculator returns with Total Run left blank for both the bare ceiling height and a typical 10 in floor system on top.
| Situation | Total rise | Risers | Riser height | Treads | Tread depth | Total run | Stringer |
|---|---|---|---|---|---|---|---|
| 8 ft, floor-to-floor | 96 in | 13 | 7.38 in | 12 | 10.23 in | 122.8 in | 155.8 in |
| 8 ft ceiling + 10 in floor | 106 in | 14 | 7.57 in | 13 | 10.00 in | 130.0 in | 167.7 in |
| 9 ft, floor-to-floor | 108 in | 14 | 7.71 in | 13 | 10.00 in | 130.0 in | 169.0 in |
| 9 ft ceiling + 10 in floor | 118 in | 16 | 7.38 in | 15 | 10.25 in | 153.8 in | 193.8 in |
| 10 ft, floor-to-floor | 120 in | 16 | 7.50 in | 15 | 10.00 in | 150.0 in | 192.1 in |
| 10 ft ceiling + 10 in floor | 130 in | 17 | 7.65 in | 16 | 10.00 in | 160.0 in | 206.2 in |
Deck and porch steps
Short outdoor flights follow the same math. These are the calculator results for common deck heights, measured from the deck surface down to the landing pad or grade where the bottom step sits.
- Planning the whole deck? The deck calculator estimates boards, joists and fasteners, and the board foot calculator prices the stringer lumber.
- A concrete landing pad at the bottom keeps the first riser the same height as the rest; size it with the concrete calculator.
| Deck height | Risers | Riser height | Treads | Tread depth | Total run |
|---|---|---|---|---|---|
| 30 in | 4 | 7.50 in | 3 | 10.00 in | 30.0 in |
| 36 in | 5 | 7.20 in | 4 | 10.60 in | 42.4 in |
| 48 in | 7 | 6.86 in | 6 | 11.29 in | 67.7 in |
IRC code limits for residential stairs
Section R311.7 of the International Residential Code (IRC), which most US jurisdictions adopt, sets the rules this calculator checks against: a maximum riser height of 7 3/4 in and a minimum tread depth of 10 in. The same section calls for at least 6 ft 8 in of headroom, a clear width of at least 36 in, and no more than 3/8 in difference between the tallest and shortest riser or the deepest and shallowest tread in a flight.
The tool shows a green check when the riser is between 4 and 7.75 in and when the tread is at least 10 in, and a yellow warning when 2 x riser + tread falls outside 24 to 25 in. Local codes amend the IRC, and commercial stairs under the IBC are stricter (typically 7 in riser, 11 in tread), so confirm with your building department.
Worked example: a 108 in floor-to-floor stair
- Risers: 108 / 7.75 = 13.94, rounded up to 14 risers
- Riser height: 108 / 14 = 7.71 in, under the 7 3/4 in limit
- Treads: 14 - 1 = 13 treads
- Tread depth: 25 - 2 x 7.714 = 9.57 in, below 10, so the tool uses 10 in
- Total run: 13 x 10 = 130 in; stringer: square root of (108² + 130²) = 169.0 in, about 14 ft 1 in
- Angle: arctangent of 108 / 130 = 39.7 degrees
- Comfort: 2 x 7.71 + 10 = 25.43 in, just over 25, so the comfort check shows a warning. Adding a 15th riser (7.2 in risers, 10.6 in treads) clears it.
Edge cases and common mistakes
- Measure total rise to finished floor surfaces. Forgetting flooring thickness at the top or bottom makes the first or last step a different height from the rest.
- A fixed total run can break code. For a 108 in rise squeezed into 120 in of run, the treads come out at 9.23 in and the tread check turns red. You need more floor space or a landing.
- A single step (total rise of 7.75 in or less) has one riser and no treads, so the run, angle and stringer results are not meaningful.
- The lumber list assumes three 2x12 stringers and one board per tread and riser, and the stringer length adds a foot of buffer. Wider stairs or thin treads may need a fourth stringer, and 2x12s are typically sold in even lengths, so round up.
- If the stair also needs paint or stain, the paint calculator covers walls and trim along the stairwell.
When to call a professional
Straight basement or deck stairs are a common DIY job. Call a carpenter or get a permit review if the stair needs a landing or a turn, cuts into floor framing (a new stair opening needs headers sized for the load), is taller than about 12 ft, or must meet commercial code. Most jurisdictions require a permit for new interior stairs.
Features
- Calculate rise and run
- Number of steps needed
- Building code compliance
- Stringer length calculation
Frequently Asked Questions
How do I calculate the number of stairs I need?
Divide the total rise, measured between finished floors, by 7.75 and round up. For a 105 in rise, 105 / 7.75 = 13.55, so you need 14 risers, each 105 / 14 = 7.5 in tall. A straight stair then has 13 treads, one fewer than the risers.
How many steps are in a 9 foot staircase?
If 9 ft (108 in) is the floor-to-floor height, you need 14 risers of 7.71 in and 13 treads. If 9 ft is the ceiling height, the total rise is usually about 118 in once the floor above is added, which gives 16 risers of 7.38 in and 15 treads.
How many steps for an 8 foot ceiling?
With a typical 10 in floor system above an 8 ft ceiling, the total rise is about 106 in, which gives 14 risers of 7.57 in and 13 treads of 10 in. A true 96 in floor-to-floor height needs 13 risers of 7.38 in and 12 treads.
How much floor space does a staircase need?
Total run is tread depth times the number of treads. A typical 9 ft ceiling stair (118 in rise) needs about 154 in, or 12 ft 10 in, of run, plus a landing at the bottom. A 10 ft ceiling stair (130 in rise) needs about 160 in.
What is the maximum riser height allowed by code?
IRC section R311.7 limits residential riser height to 7 3/4 in and requires treads at least 10 in deep, with no more than 3/8 in variation within a flight. Commercial stairs under the IBC are typically limited to a 7 in riser and 11 in tread. Check your local amendments.
What is the 2R + T comfort rule?
Twice the riser height plus the tread depth should land between about 24 and 25 in, which matches a natural stride. A 7 in riser with an 11 in tread gives 25 in. The calculator shows a yellow warning outside that range, even when the stair still meets code.
How long should my stair stringers be?
Stringer length is the square root of rise squared plus run squared. For a 108 in rise and 130 in run, that is 169.0 in, about 14 ft 1 in. The calculator adds a foot of buffer and suggests 16 ft 2x12 boards for this example.
Sources and review
Prepared by the Codezyra editorial team. The figures and rules on this page were checked against these official sources:
This is general information, not personal tax, legal or medical advice.
Last reviewed