Stair Calculator

Risers, treads, total run, stringer length, and stair angle from the total rise, with a labeled side view. Feet and inches or millimeters.

Layout set? Invoice Mama turns the stair lumber and labor into a quote you can send from the job.
Try Invoice Mama free
Risers, treads, and stringer length from the total rise

Feet and inches or millimeters. A layout estimate you can cite, then send as an Invoice Mama quote.

A floor-to-floor rise of 108 in (9 ft) with a 7 in target riser needs 15 risers. 108 ÷ 7 is 15.43, which rounds to 15, so each riser is 108 ÷ 15 = 7.2 in. The flight has 14 treads. At 10 in each, the total run is 140 in. The stringer layout line is √(108² + 140²) = √31,264, which rounds to 176.8 in (14 ft 8.8 in). The angle is 37.6°.

Leave the target blank and the calculator uses 7 in (175 mm). Leave the tread blank and it uses 10 in (254 mm). Both defaults are labeled on the result. The stringer length is the line along the notch tips, not the board you order. This is a layout estimate, not code advice. Check the code adopted for the job.

How to calculate stairs

Three steps, the same order as the calculator above

  1. 1

    Enter the total rise

    Type the finished-floor to finished-floor rise in feet and inches, or switch to millimeters, centimeters, or meters. Centimeters are multiplied by 10 and meters by 1,000 before the formula runs. The result is shown in inches or millimeters.

  2. 2

    Set the target riser and tread

    Enter a target riser and a tread depth, or leave either one blank. A blank target uses 7 in (175 mm). A blank tread uses 10 in (254 mm). The riser count is the total rise divided by the target, rounded to the nearest whole number, and a .5 rounds up. The count never drops below 2.

  3. 3

    Read the layout and the guide

    The result shows the exact riser, the tread count (one fewer than the risers, because the upper floor is the last tread), the total run, the stringer length, and the angle. A side view labels those same numbers on the flight. It also flags an IRC 2021 riser over 7 3/4 in (196 mm), a tread under 10 in (254 mm), a flight over 12 ft 7 in (3835 mm), and a nosing note when the tread is under 11 in (279 mm).

Stair formulas

Every result on this page uses these equations

Result
Formula
Risersround(total rise ÷ target riser), at least 2. A .5 rounds up.
Riser heightTotal rise ÷ risers
TreadsRisers − 1. The upper floor is the last tread.
Total runTreads × tread depth
Stringer length√(total rise² + total run²)
Anglearctan(total rise ÷ total run)

The stringer length is the layout line along the notch tips. Order the board longer so the end cuts have wood. The angle is the incline of that same line.

IRC 2021 guide checks

A planning check, not a pass from the building department

IRC 2021 R311.7.5.1 limits the riser to 7 3/4 in. The millimeter text prints 196 mm. Risers in one flight may not vary by more than 3/8 in (9.5 mm). R311.7.5.2 calls for a tread of at least 10 in (254 mm). R311.7.5.3 calls for a nosing of 3/4 in to 1 1/4 in (19 mm to 32 mm) when the tread is under 11 in (279 mm). A tread of 11 in or more does not need that projection. R311.7.3 says one flight may not rise more than 12 ft 7 in between floor levels or landings. That is 151 in. The 2021 code prints the metric flight limit as 3835 mm. Feet-and-inches input is checked against the inch figures. Metric input is checked against the millimeter figures. A value that lands exactly on a limit is allowed. The 108 in example has a 7.2 in riser and a 140 in run, so the riser, tread, and flight checks pass, and the 10 in tread still needs a nosing. Local amendments can change a limit. Some adopted codes allow a 9 in tread or an 8 1/4 in riser. Section numbers here are the 2021 IRC. Older editions put stair treads and risers at R311.7.4.

Stringer length and board length

The diagonal is the layout line, not the lumber order

√(108² + 140²) = √31,264, which rounds to 176.8 in, or 14 ft 8.8 in, at 37.6°. That line runs from the bottom of the first riser to the top of the last riser, along the tips of the notches. The board you cut has to extend past both ends for the plumb cut and the level cut. Measure the finished floors, lay the stringer out, and cut a scrap before you order the rest of the lumber.

Frequently asked questions

Risers, the 24 to 25 in comfort check, stringer length, and IRC 2021

How do you calculate stair risers?

Divide the total rise by the target riser and round to the nearest whole number. A .5 rounds up, and the count stays at 2 or more. The exact riser is the total rise divided by that count. Treads are one fewer than the risers, because the upper floor is the last tread. A 108 in rise (9 ft) with a 7 in target is 108 ÷ 7 = 15.43, which rounds to 15 risers. Each riser is 108 ÷ 15 = 7.2 in. There are 14 treads. At 10 in each, the total run is 140 in.

What is a comfortable stair rise and run?

Carpentry books treat the riser and the tread as a pair. Ira S. Griffith's Carpentry (1916) gives an old rule: twice the rise plus the tread should equal 24 in. He starts from a 7 in rise and a 10 in tread. The Swanson Blue Book lists riser plus tread from 17 to 18 in, two risers plus the tread from 24 to 25 in, and an ideal pair of a 7 1/2 in riser with a 10 in tread. A 7 in riser and an 11 in tread fit the 25 in form, because 2 × 7 + 11 = 25. A 7 in riser and a 10 in tread fit the 24 in form. These are comfort checks. They are not the IRC 2021 limits.

Is stringer length the same as the board length?

No. Stringer length here is √(total rise² + total run²), the straight layout line along the notch tips. For the 108 in rise and 140 in run, that is √(108² + 140²) = √31,264, which rounds to 176.8 in (14 ft 8.8 in). The angle is 37.6°. The board you buy has to be longer so the top plumb cut and the bottom level cut have wood. This page does not add a fixed extra allowance.

What stair limits does IRC 2021 set?

IRC 2021 R311.7.5.1 limits a riser to 7 3/4 in, and the millimeter text prints 196 mm. Risers in one flight may not vary by more than 3/8 in (9.5 mm). R311.7.5.2 calls for a tread of at least 10 in (254 mm). R311.7.5.3 calls for a nosing of 3/4 in to 1 1/4 in (19 mm to 32 mm) when the tread is under 11 in (279 mm). A tread of 11 in or more does not need that nosing. R311.7.3 says one flight may not rise more than 12 ft 7 in between floors or landings. The inch figure is 151 in. The millimeter figure printed in the 2021 code is 3835 mm. A result that lands exactly on a limit is not flagged. Older editions set a lower flight limit (12 ft 3 in). Local amendments can change these numbers. Some adopted codes allow a 9 in tread or an 8 1/4 in riser. Check the code that applies before you cut.

Can I calculate stairs in millimeters?

Yes. Enter millimeters, centimeters, or meters. Centimeters are multiplied by 10 and meters by 1,000, and the result is shown in millimeters. A 2743.2 mm rise with a 175 mm target is 2743.2 ÷ 175 = 15.68, which rounds to 16 risers. Each riser is 2743.2 ÷ 16 = 171.45 mm. Metric checks use 196 mm, 254 mm, 279 mm, and 3835 mm. Those are the figures printed in IRC 2021, not a conversion of the inch limits.

Is this stair calculator code advice?

No. It is a layout estimate for a straight flight. It divides one total rise into equal risers and compares the result with the IRC 2021 limits on this page. It does not design winders, landings, handrails, headroom, or guards, and it does not know which amendment applies on the job. When the layout looks right, put the lumber and labor on an Invoice Mama carpentry quote or decking invoice.

Put the stair job on a quote

Invoice Mama helps carpenters and deck builders turn riser counts, lumber, and labor into a quote or invoice.

No credit card required100% free to start