Stair Calculator

Enter the total rise and get the number of steps, the exact riser height, a code check and the cuts for your stringers.

Finished floor to finished floor. Type it like your tape reads: 56 3/4 or 4' 8-3/4"

Level distance from the edge of the upper floor to where the bottom step lands. Fill it in to size the treads to your space.

Treads
Stringer mount

Risers
More options

Nosing to nosing. This is the cut on the stringer.

Tread overhang. Enter 0 for none.

Stringer board
Round results to
Units

Enter your total rise

Measure straight down from the top of the deck or upper floor to the surface where the stairs will land. The layout appears here as you type.

How to use the stair calculator

Measure the total rise: the vertical distance from the finished surface where the stairs start to the finished surface where they end. Measure straight down, not along the slope, and measure at the spot where the stairs will actually land, because floors and yards are rarely level.

Type that number the way your tape reads it. 108, 9', 107 5/8 and 8' 11-5/8" all work. The layout appears as you type, and everything else is optional: the calculator starts with a 7 1/2" target riser and a 10" tread depth, common starting values on construction calculators.

What each result means

A worked example: 9 feet floor to floor

Say the total rise is 108". With a 7 1/2" target, the calculator divides 108 by 7.5, gets 14.4, and rounds up to 15 risers so no step is taller than you asked for. Each riser is 108 ÷ 15 = 7.2", which shows as 7 3/16".

Fifteen risers means 14 treads. At 10" each, the total run is 140", or 11' 8". The stringer length comes out to 14' 8 13/16", so you buy 16-foot boards.

Under Compare riser counts you can see the neighbors. Fourteen risers would be 7 11/16" each and save 10" of floor space; that still meets the model code, but it is close to the limit and feels steeper. Sixteen risers would be 6 3/4" each and need 10" more room. Tap any option to switch the whole layout to it.

What the code check looks at

The calculator checks your layout against the stair rules in Section R318.7 of the International Residential Code (IRC), the model code most U.S. cities and counties build their own code from. The numbers below are from the 2024 edition. Many areas still build under the 2021 or 2018 edition. The limits below are the same; only the section numbers changed.

RuleLimitIRC section
Riser height7 3/4" maximumR318.7.5.12021: R311.7.5.1
Tread depth10" minimumR318.7.5.22021: R311.7.5.2
Difference between any two risers or treads3/8" maximumR318.7.5.1, R318.7.5.22021: R311.7.5.1, R311.7.5.2
Nosing, when treads are under 11" and risers are closed3/4" to 1 1/4"R318.7.5.32021: R311.7.5.3
Openings between treads more than 30" above the groundMust stop a 4" ballR318.7.5.12021: R311.7.5.1
Stair width36" minimumR318.7.12021: R311.7.1
Headroom6' 8" minimumR318.7.22021: R311.7.2
Rise in one flight without a landing12' 7" (151") maximumR318.7.32021: R311.7.3
HandrailRequired with 4 or more risers, 34" to 38" highR318.7.8, R320.22021: R311.7.8, R311.7.8.1

Your local code may be different. States and cities adopt the IRC with their own changes. Pennsylvania's statewide code, for example, allows risers up to 8 1/4", and some cities still use older editions. The building department that issues your permit has the final word, so call them before you cut.

Three more checks appear under Good practice. They are not part of the IRC; they come from the American Wood Council's deck guide (DCA 6) and from long-standing shop rules: leave at least 5" of solid wood under each notch, support cut stringers that run more than 6 feet, and aim for two risers plus one tread to add up to 24" to 25".

Questions people ask

My total rise doesn't divide evenly. What do I do?

Nothing. It almost never does. The calculator divides the rise into equal risers and shows the nearest sixteenth. Because rounding one step and repeating it would add up, use the layout marks: they give the height of every tread measured from the floor, so each mark is off by a sixteenth at most.

Standard or flush mount?

With a standard mount the stringer hangs one riser below the upper floor, and the floor itself is the top step. With a flush mount the top tread sits level with the upper floor, which adds one tread and makes the stair one tread longer. Standard is the usual choice for decks.

Why does the bottom riser cut look too short?

It is supposed to. The treads add their own thickness to every step except the first, so the bottom of the stringer is cut shorter by exactly one tread thickness. Once the treads are on, every step measures the same.

How many stringers do I need?

The calculator spaces cut stringers no more than 18" apart, center to center, with a minimum of three. A 36" stair gets three; a 48" stair gets four.

Can I use it in metric?

Yes. Open More options and switch Units to Metric. Type millimeters, or add cm or m.

How we calculate

No hidden math. These are the formulas, with every length kept at full precision until the moment it is shown.

Fractions are rounded to the nearest 1/16" (or 1/8" or 1/32" if you choose), and an exact tie rounds up. We check the calculator against cases worked out separately by hand before every change. Four of them:

Total riseSetupRisersRiser heightTotal runStringer length
56 3/4"Defaults87.09375" (7 1/8")70"90.11"
30"Flush mount47.5" (7 1/2")40"50"
108"Defaults157.2" (7 3/16")140"176.82"
93"7 3/4" target127.75" (7 3/4")110"144.05"

Sources

Help us improve this calculator

Was it helpful?

Only if you want a reply.