Construction · Outdoor and Paving
Stair calculator icon showing a stair profile with riser and tread

Stair calculator

This stair calculator works out a straight stair from the total rise: the number of steps, the exact riser height, the tread depth, the total run, the length of the stringer along the slope and the stair angle. It checks the result against the common US residential limits, draws the profile, and works in inches or centimeters.

Measure the total rise from the finished floor (or ground) at the bottom to the finished floor at the top. The default stair calculator example is a 108 in (9 ft) rise with a 7.5 in target riser and 10.5 in treads: 15 risers of 7.2 in.

Stair calculator: steps from the total rise

Pick a target riser height. The stair calculator rounds the number of risers up so every riser is equal and no taller than your target.
Every length in this card uses the same unit: inches in US mode, centimeters in metric mode.
For a deck: from the ground or landing pad to the top of the decking.
7 to 7.5 in (18 to 19 cm) is comfortable; the common US residential maximum is 7 3/4 in.
The horizontal run of one step, not the board width. 10 in (25.4 cm) is the common US minimum; 10.5 to 11 in is more comfortable.
If you enter it, the stair calculator warns when the stair does not fit.
Horizontal distance from the face of the first riser to the face of the last riser.

Check a riser and tread

For an existing stair or a plan: enter one riser and one tread to get the angle and a check against the common limits.
Every length in this card uses the same unit: inches in US mode, centimeters in metric mode.

How to use the stair calculator

Measure the total rise: the vertical distance from the finished surface at the bottom to the finished surface at the top. Choose US or metric units, enter the rise and the riser height you would like, and either a tread depth or the total run you have room for. The stair calculator rounds the number of risers up, divides the rise evenly, and gives the treads, the total run, the stringer length, the angle and a check against the common US limits. The drawing shows the profile to scale.

The second panel of the stair calculator checks a single riser and tread, for example a stair you are inspecting or a riser and tread pair from a plan. For the slope of a roof rather than a stair, use the Roof Pitch Calculator; for any other right triangle, the Right Triangle Calculator.

Stair calculator formulas

A straight stair with n risers has n − 1 treads, because the upper floor acts as the last step. Every riser must be the same height, so the stair calculator rounds the number of risers up and spreads the rise evenly:

n = ⌈total rise / target riser⌉ · riser = total rise / n · total run = (n − 1) × tread
Stair angle = arctan(riser / tread) · Stringer slope length = √(rise² + run²)

The stringer length shown is the diagonal from the foot of the first riser to the top floor edge, the hypotenuse of the total rise and run (the Pythagorean Theorem Calculator does the same step). Buy stringer stock somewhat longer, because the top and bottom cuts and the way the stringer attaches at the top add length. The comfort rule 2 × riser + tread ≈ 24 to 25 in (61 to 64 cm) is an old carpenter’s rule of thumb based on an average stride, not a code requirement.

Worked example with the stair calculator

The stair calculator opens with a total rise of 108 in (9 ft) and a target riser of 7.5 in. 108 / 7.5 = 14.4, rounded up to 15 risers, so each riser is 108 / 15 = 7.2 in (about 7 3/16 in). There are 14 treads; at 10.5 in each, the total run is 14 × 10.5 = 147 in = 12 ft 3 in (3.734 m). The stair angle is arctan(7.2 / 10.5) = 34.44°, and the stringer slope length is √(108² + 147²) = 182.41 in, about 15 ft 2 7/16 in, so a 16 ft board is the shortest that could work. 2 × 7.2 + 10.5 = 24.9 in, inside the comfortable range. In “Fit a total run” mode with 147 in available, the stair calculator gives the same 10.5 in tread.

Common US stair limits used by the stair calculator

The International Residential Code (IRC), adopted with local changes by most US states and cities, sets the limits below in section R311.7 for stairs in one- and two-family homes. The values were checked against a town building department summary of the 2018 IRC (Town of Timnath residential stair guide); the full text is on the ICC Digital Codes site, IRC chapter 3. Commercial buildings, other countries and some cities use different numbers, so ask your building department before you cut stringers.

Item (IRC section)Common US residential limitMetric
Riser height (R311.7.5.1)7 3/4 in maximum196 mm
Tread depth (R311.7.5.2)10 in minimum, nosing to nosing254 mm
Variation in a flightlargest minus smallest riser or tread 3/8 in maximum9.5 mm
Headroom (R311.7.2)6 ft 8 in minimum2,032 mm
Stair width (R311.7.1)36 in minimum clear width above the handrail914 mm
Nosing (solid risers)3/4 in to 1 1/4 in; not needed if the tread is 11 in or deeper19 to 32 mm
Handrail height34 in to 38 in above the nosings864 to 965 mm

With the maximum riser and the minimum tread, the steepest stair allowed is arctan(7.75 / 10) = 37.8°. Most comfortable house stairs sit between 30° and 37°; the stair calculator shows the angle for every layout.

Practical tips for using a stair calculator

Measure finished to finished. If the bottom floor will get tile or the deck gets thicker boards, the rise changes; the first and last risers must still match the others within 3/8 in. Deck and porch stairs. Measure from the landing pad or ground to the top of the decking, and level the landing area first; on a slope, the run changes the rise. Stringer spacing. Stair width and tread material set how many stringers you need; follow the tread maker and your plans. Long flights. Codes limit the height of one flight between landings (12 ft in the 2018 IRC summary cited above), so a stair that climbs more than one storey usually needs a landing. The Deck Calculator covers the deck itself, and the Feet and Inches Calculator turns 7.2 in or 182.41 in into feet, inches and fractions.

Common stair calculator mistakes

Counting treads as steps. A stair with 15 risers has 14 treads, not 15. Using the tread board width. The tread depth for the stair calculator is the run per step, measured nosing to nosing; an 11.25 in board with a 1 in nosing gives about a 10.25 in run. Measuring to the subfloor. Finished floor thickness changes the top or bottom riser. Rounding the riser count down. 108 / 7.5 = 14.4 must become 15 risers; 14 would make every riser 7.71 in. Treating the result as approval. The stair calculator gives geometry and a check against common limits; your local code and inspector have the final word.

Related construction calculators

Next to the stair calculator, use the Deck Calculator for the decking and frame, the Board Foot Calculator to price stringer stock, and the Roof Pitch Calculator for roof slopes. Every tool in this group is on the Construction Calculators page.

Related calculators

Building a deck with steps? The deck calculator lists the boards, joists and posts; the right triangle calculator handles any other rise and run.

Frequently asked questions

How many steps do I need for a 9 ft rise?

A 108 in rise with risers no taller than 7.5 in needs 108 / 7.5 = 14.4, rounded up to 15 risers of 7.2 in, and 14 treads. With 10.5 in treads the stair runs 147 in (12 ft 3 in). The stair calculator repeats this for any rise.

What is the maximum stair riser height?

In most US homes the IRC limit is 7 3/4 in (196 mm) per riser, with a minimum tread depth of 10 in (254 mm). Local codes can differ, and commercial stairs follow stricter rules. The stair calculator flags any riser or tread outside these values.

How long should a stair stringer be?

At least the hypotenuse of the total rise and total run: √(108² + 147²) = 182.4 in for the default stair, so a 16 ft board. Allow extra for the top and bottom cuts.

What is a good stair angle?

Between about 30° and 37° for a house stair. The common US limits (7 3/4 in riser, 10 in tread) allow at most 37.8°.

Is the number of steps the number of risers or treads?

People usually count risers, because you lift your foot once per riser, and the stair calculator reports both. A straight stair has one more riser than treads, since the top floor serves as the last step.

Is this stair calculator free?

Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.

Results are estimates for planning and budgeting. Quantities depend on the product, waste and site; structural sizes, spans and loads must be checked against your local building code or by a qualified professional before you build. Back to construction calculators or CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: