Stair Calculator
Divide the total rise by your target riser height and round; a 105-inch rise gives 14 risers at 7.5 inches. That leaves 13 treads, and at 10 inches each the run is 130 inches. Keep risers under 7.75 inches and treads at least 10 inches, and check that twice the riser plus the tread lands between 24 and 25 inches.
| Number of risers | |
| Exact riser height | |
| Number of treads | |
| Tread depth | |
| Total run (horizontal) | |
| Stringer length | |
| Stair angle | |
| 2 x riser + tread |
Code check
Does it fit your space?
Everything runs in your browser, nothing you type is uploaded or stored.
Enter the total rise from finished floor to finished floor and this calculator works out how many steps you need, the exact riser height, the tread depth, the total run and the stringer length.
Key takeaways
- Risers may not exceed 7.75 inches and treads must be at least 10 inches under the IRC
- Treads are always one fewer than risers, because the upper floor acts as the top step
- Comfort rule: 2 x riser + tread should land between 24 and 25 inches
- Every riser in a flight must match within 3/8 inch, or the stair is a trip hazard
- You need 6 feet 8 inches of headroom measured from the tread nosing
On this page
How stairs are sized
Stairs are built around two numbers: how far up you have to go, and how far forward you can afford to take it. The first is the total rise, measured from the top of the finished lower floor to the top of the finished upper floor. The second is the run, the horizontal distance the treads occupy.
The arithmetic is short. Divide the total rise by the riser height you want, round to a whole number, and that is how many risers you need. Divide the rise by that whole number again and you get the exact riser height, which will not be a round number. The number of treads is one fewer than the number of risers, because the upper floor serves as the top step. Multiply treads by tread depth to get the run.
Two rules keep a stair comfortable. The first is 2 x riser + tread = 24 to 25 inches, which balances a tall step against a short one. The second is consistency: every riser in a flight has to be the same height within 3/8 inch, because a single tall step is a trip hazard.
Worked example: an 8-foot 9-inch total rise
An addition with an 8-foot 9-inch floor-to-floor height, so the total rise is 105 inches.
- Risers: 105 divided by 7.5 = 14, exactly
- Riser height: 105 divided by 14 = 7.5 inches
- Treads: 14 minus 1 = 13 treads
- Run: 13 x 10 = 130 inches, or 10 feet 10 inches
- Stringer: the square root of 105 squared plus 130 squared = 167.1 inches, about 13 feet 11 inches
- Angle: 38.9 degrees
The comfort check passes, since 2 x 7.5 + 10 is 25 inches, right at the top of the range. The code checks pass too, with a 7.5-inch riser under the 7.75-inch maximum and a 10-inch tread sitting at the minimum.
Buy 16-foot stringer material rather than 14-foot. The calculation gives the length along the slope, but you also need extra at the top to notch into the rim and extra at the bottom for the bearing cut, so add 12 to 18 inches to whatever the formula returns.
Worked example: fitting stairs into a short run
Now the same 105-inch rise, but the space allows only 120 inches of horizontal run. Does a straight stair fit?
The shortest code-compliant straight stair is set by the maximum riser height of 7.75 inches. 105 divided by 7.75 is 13.55, so you need at least 14 risers. Fourteen risers means 13 treads, and at the minimum 10-inch tread that is a run of 130 inches.
130 inches does not fit in 120 inches. The gap is 10 inches, and there is no legal way to close it by shrinking the treads. Two options remain.
- Lower the rise. Dropping the upper floor by 10 inches is rarely possible, but a smaller change sometimes is.
- Turn the stair. Split the 14 risers into two flights of 7 with a 36-inch landing between them. Each flight has 6 treads at 10 inches, so each leg needs 60 inches of run plus the landing, and the whole stair fits an L-shaped footprint about 96 inches on each side.
The turn is the usual answer, and it is why so many basement and attic stairs are L-shaped. It costs a landing and a little extra framing, and it turns an impossible run into a comfortable one.
Code limits at a glance
These are the residential limits from the International Residential Code, which most US jurisdictions adopt. Commercial buildings follow the International Building Code, which is stricter in several places, and local amendments vary from town to town.
| Rule | Limit | What it means |
|---|---|---|
| Maximum riser height | 7.75 in | No step may be taller than this |
| Minimum tread depth | 10 in | Measured without the nosing |
| Maximum riser variation | 3/8 in | Tallest minus shortest, within one flight |
| Minimum stair width | 36 in | Clear width above the handrail height |
| Minimum headroom | 6 ft 8 in | Measured vertically from the nosing |
| Nosing projection | 0.75 to 1.25 in | How far the tread overhangs the riser |
| Handrail height | 34 to 38 in | Measured above the nosing |
| Maximum rise between landings | 12 ft 7 in | A landing is required beyond this |
| 2 x riser + tread | 24 to 25 in | Comfort rule, not a code limit |
Two of these catch people out. Headroom is measured from the nosing of the tread, not from the floor, and it runs to the ceiling or the underside of the framing above. And the 3/8-inch riser rule applies across the whole flight, so a repair that replaces one tread with a thicker board can push a stair out of compliance on its own.
Stringer length, headroom and landings
The stringer is the sloped board the treads sit on, and its length is the diagonal of the rise and the run: the square root of rise squared plus run squared. For the 105-inch rise and 130-inch run above, that is 167 inches. Add 12 to 18 inches for the top and bottom cuts before you buy.
Use 2x12 stock for stringers at these dimensions. A 2x10 does not leave enough wood under the notch once you cut a 7.5-inch riser and a 10-inch tread out of it, and the board can split at the narrow point.
Headroom is the measurement people forget until the stair is built. You need 6 feet 8 inches from the nosing of any tread to the ceiling or the underside of the floor framing above it. On a basement stair that usually means the stair has to start further from the wall, or the floor opening has to be longer.
Landings go at the top and bottom of every stair, and they must be at least as wide as the stair itself. A single flight can rise up to 12 feet 7 inches before a landing is required in the middle, which is why most two-story houses get away with one straight run.
Lumber: how much you need
Here is the shopping list for the 105-inch rise stair, 36 inches wide, with 14 risers and 13 treads.
| Part | Size | Quantity |
|---|---|---|
| Stringers | 2x12, 16 ft | 3 boards |
| Treads | 2x10 or 2x12, 36 in long | 13 pieces |
| Risers | 3/4 in board, 36 in long, cut to 7.5 in | 14 pieces |
| Handrail | 2x4 or a rail kit | 1 run, both sides if the width allows |
| Balusters | 2x2 or metal | One per 4 in of run |
Three stringers for a 36-inch-wide stair, two for anything up to 30 inches. Treads at 36 inches each come out of 10-foot 2x10s with almost no waste, so buy four 10-foot boards or three 12-foot boards and keep the offcuts for blocking.
Two details save a rebuild. Cut the treads to length first and use one as a template for the notches, so every notch is identical. And shorten the bottom riser by the thickness of the tread material, because the first tread sits on top of that cut and the step would otherwise come out one tread thickness taller than the rest.
Common mistakes and how to avoid them
Six mistakes account for most stair problems.
- Measuring from the subfloor. The total rise is finished floor to finished floor. Hardwood, tile or a thick underlayment can add an inch or more, and that changes the riser height for every step.
- Forgetting the bottom riser adjustment. The first step lands on top of the tread material, so the bottom riser cut has to be shorter by the tread thickness. Skip it and the first step is short and the whole stair feels wrong.
- Letting the risers vary. The code allows 3/8 inch of variation across a flight, and that is the outside limit. A 1-inch difference is a trip hazard and the most common reason an inspector fails a stair.
- Ignoring headroom until the framing is up. Check it on paper, from the nosing to the underside of the floor above, before you cut anything.
- Cutting treads below 10 inches. Narrow treads are the usual way people try to squeeze a stair into a short run, and they are not allowed.
- Assuming the national code applies. Local amendments change limits, and some jurisdictions are stricter than the model code. Call the building department before you buy lumber.
Run the numbers through the calculator, then check them against the code your town enforces. The International Code Council publishes the model codes, the OSHA stairway standard covers stairs in workplaces and is a useful second reference, and the US Access Board sets the accessibility rules that apply to any stair the public uses.
Frequently asked questions
How many steps do I need for an 8-foot rise?
An 8-foot rise is 96 inches, and 96 divided by 7.5 gives 12.8, so you need 13 risers. The exact riser height is 96 divided by 13, which is 7.38 inches, and that leaves 12 treads.
What is the maximum riser height allowed by code?
7.75 inches for a residential stair under the International Residential Code. The tallest and shortest risers in a single flight may not differ by more than 3/8 inch.
What is the minimum tread depth?
10 inches, measured from nosing to nosing and not counting the projection of the nosing over the riser below. A 9-inch tread is the most common reason a stair fails inspection.
How many steps for a 9-foot ceiling?
A 9-foot ceiling is 108 inches, and the floor structure above adds roughly 12 to 14 inches, so the total rise is about 121 inches. That gives 16 risers at 7.56 inches each and 15 treads, for a run of 150 inches, or 12 feet 6 inches.
How long is the stringer for a 13-riser stair?
For a 96-inch rise and a 120-inch run, the stringer is the square root of 96 squared plus 120 squared, which is 153.7 inches, or about 12 feet 10 inches. Add 12 to 18 inches for the top and bottom cuts and buy 14-foot stock.
What is the 2R plus T rule?
Twice the riser height plus the tread depth should land between 24 and 25 inches. A 7.5-inch riser with a 10-inch tread gives 25 inches, which is the top of the comfortable range. It is a comfort guideline rather than a code requirement.
How wide does a stair need to be?
At least 36 inches of clear width for a residential stair. Two stringers carry a stair up to about 30 inches wide, and a 36-inch stair wants three stringers so the treads do not flex in the middle.
How much headroom do I need over the stairs?
6 feet 8 inches, which is 80 inches, measured vertically from the nosing of any tread to the ceiling or the underside of the framing above. That is the measurement people forget until the framing is already up.
How many stairs for a deck 30 inches high?
Thirty inches divided by 7.5 gives 4 risers at 7.5 inches, with 3 treads at 10 inches, so a run of 30 inches. Four risers also means a handrail is required, since the code applies to stairs with four or more risers.
Do I need a landing in the middle of the stair?
Only if the flight rises more than 12 feet 7 inches, which is 151 inches, before the next landing. Most two-story houses stay under that, so a single straight run is fine. Landings are always required at the top and the bottom.
How many treads for 14 risers?
Thirteen treads. The number of treads is always one fewer than the number of risers, because the upper floor serves as the top step. Fourteen risers at 7.5 inches with 13 treads at 10 inches gives a run of 130 inches.
Can the risers be different heights?
No. The code allows a maximum variation of 3/8 inch between the tallest and shortest riser in a flight. A taller first step is the most common mistake, and it happens when the thickness of the tread material is not subtracted from the bottom riser cut.
How many stringers do I need for a 36-inch stair?
Three. Two stringers are enough up to about 30 inches of width, and anything wider needs a third in the middle. Use 2x12 stock, because a 2x10 does not leave enough wood under the notch for a 7.5-inch riser and a 10-inch tread.
Spotted a wrong number or a broken result?
More Home Improvement tools
- ADU Cost Calculator
- Acreage Calculator
- Aggregate Cost Calculator
- Air Conditioner Room Size & BTU Calculator
- Aluminum Fence Cost Calculator
- Asphalt Calculator
- Awning Cost Calculator
- Bathtub vs Shower Footprint Calculator
- Bleach Dilution Calculator
- Block Mortar Calculator
- Board Footage Calculator
- Board and Batten Layout Calculator
- Board and Batten Siding Calculator
- Board on Board Fence Calculator
- Borax Ant Killer Calculator
- Brick Calculator
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.