Lelifi·tools

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.

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.

By the Lelifi editors ·

Key takeaways

How the number of risers sets the step height (105 in rise)risersriser height, inches12→8.7513→8.0814→7.515→716→6.56
For a 105-inch rise, 13 risers give an illegal 8.08-inch step, so 14 risers at 7.5 inches is the answer.
The math behind the calculatorTotal rise 105 in, target riser 7.5 inRisers = 105 / 7.5 = 14Riser height = 105 / 14 = 7.5 inTreads = 14 - 1 = 13, run = 13 x 10 = 130 in= Stringer 167 in, angle 38.9 degreesCheck headroom at 6 ft 8 in from the nosing before you cut anything.
A 105-inch rise works out to 14 risers of 7.5 inches and a 130-inch run.
On this page
  1. How stairs are sized
  2. Worked example: an 8-foot 9-inch total rise
  3. Worked example: fitting stairs into a short run
  4. Code limits at a glance
  5. Stringer length, headroom and landings
  6. Lumber: how much you need
  7. Common mistakes and how to avoid them

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.

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.

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.

RuleLimitWhat it means
Maximum riser height7.75 inNo step may be taller than this
Minimum tread depth10 inMeasured without the nosing
Maximum riser variation3/8 inTallest minus shortest, within one flight
Minimum stair width36 inClear width above the handrail height
Minimum headroom6 ft 8 inMeasured vertically from the nosing
Nosing projection0.75 to 1.25 inHow far the tread overhangs the riser
Handrail height34 to 38 inMeasured above the nosing
Maximum rise between landings12 ft 7 inA landing is required beyond this
2 x riser + tread24 to 25 inComfort 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.

PartSizeQuantity
Stringers2x12, 16 ft3 boards
Treads2x10 or 2x12, 36 in long13 pieces
Risers3/4 in board, 36 in long, cut to 7.5 in14 pieces
Handrail2x4 or a rail kit1 run, both sides if the width allows
Balusters2x2 or metalOne 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.

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

See all Home Improvement tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.