Skip to content
DeviceCheckHub

Stair Calculator

Enter the height from floor to floor to get the number of risers and treads, the total run, the angle and the stringer length, checked against the residential stair code. See your stair to scale, the cut marks for each step and how long the stairwell opening must be.

Your stair

Measure the rise from finished floor to finished floor. Feet and inches work, such as 8 ft 9 in, 8' 9" or 105 1/4.

Your result

14 risers of 7 1/2 in
Treads
13 of 10 in
Tread boards
11 in deep
Total run
10 ft 10 in
Stair angle
36.9°
Stringer length
13 ft 11 1/8 in
Rise8 ft 9 inRun 10 ft 10 in
Within the IRC stair limits checked below. Your local code may differ; ask your building department.

Code checks

Limits from the International Residential Code, section R311.7, as printed in city stair guides (Twin Falls, Idaho; Gilroy, California). Your local code may differ.

One riser more or fewer

Headroom and stairwell opening

Cut marks for each step

Height of each step above the lower floor, and how far its front edge is from the face of the bottom riser.

Height and distance of each step
StepHeightFrom bottom riser
17 1/2 in0 in
215 in10 in
322 1/2 in20 in
430 in30 in
537 1/2 in40 in
645 in50 in
752 1/2 in60 in
860 in70 in
967 1/2 in80 in
1075 in90 in
1182 1/2 in100 in
1290 in110 in
1397 1/2 in120 in
14105 in130 in

Steps for common heights

Risers, riser height and total run for common floor-to-floor heights, with risers up to 7 3/4 inches and 10-inch treads
RiseRisersRiserRun
2 ft46 in2 ft 6 in
3 ft57 3/16 in3 ft 4 in
4 ft76 7/8 in5 ft
8 ft137 3/8 in10 ft
8 ft 9 in147 1/2 in10 ft 10 in
9 ft147 11/16 in10 ft 10 in
10 ft167 1/2 in12 ft 6 in

Fewest risers no taller than 7 3/4 in, with 10-inch treads.

How to work out the size of a stair

Start with the total rise: the height from the finished floor at the bottom to the finished floor at the top. Divide it by the tallest riser you are willing to build and round up to get the number of risers, then divide the total rise by that number to get the height of each one. The upper floor serves as the last step, so a straight stair has one tread fewer than it has risers, and the total run is the number of treads times the tread depth.

For a rise of 8 feet 9 inches (105 inches), 105 ÷ 7 3/4 is about 13.5, so the stair needs 14 risers of exactly 7 1/2 in. With 13 treads of 10 inches, it runs 130 in, which is 10 ft 10 in, and climbs at 36.9°. Choose that first example above to see the drawing, the code checks and the cut marks, then change the numbers to match your own floors.

To use the calculator, enter the total rise and the tread depth you want. It finds the fewest risers no taller than your tallest riser; type a number of risers to set it yourself, or pick one more or one fewer from the table to compare a steeper and a gentler stair. The page address keeps your numbers, so you can bookmark or share it, and they are saved on this device.

Stair code limits

Most US homes are built to the International Residential Code, adopted by states and cities, often with changes. Its stair section, R311.7, sets the limits this calculator checks. The figures below are as printed in the residential stair guides of the City of Twin Falls, Idaho and the City of Gilroy, California:

The greatest rise allowed between floors or landings depends on the edition in force: Gilroy’s guide, based on the California Residential Code, gives 151 inches, while the Twin Falls guide for the 2018 code gives 12 feet. This calculator warns above 151 inches; check the figure your building department uses.

Stringer length and angle

The stringers are the sloped boards that carry the treads. Along the slope, a stringer is the long side of a right triangle whose other sides are the total rise and the total run, so its length is the square root of rise² + run². For the 105-inch example that is about 13 ft 11 1/8 in; buy boards longer than this to allow for the cuts at each end.

The angle of the stair is the angle whose tangent is the riser height divided by the tread depth. The code’s steepest stair, 7 3/4-inch risers on 10-inch treads, climbs at 37.8°. Shorter risers and deeper treads make a gentler, easier stair, at the cost of more floor space: the table of one riser more or fewer shows how much.

Headroom and the stairwell opening

Where a stair passes under the floor above, the opening in that floor must be long enough to keep the headroom above the nosing line. Measured back from the top nosing, it needs to be at least the headroom plus the thickness of the floor above, times the tread depth, divided by the riser height. With 6 feet 8 inches of headroom, a 10-inch-thick floor, 10-inch treads and 7 1/2 in risers, the opening is (80 + 10) × 10 ÷ 7.5 = 120 in long. Enter the floor thickness above to work out yours.

Laying out the stringers

The cut marks table gives the height of each step above the lower floor and the distance of its front edge from the face of the bottom riser, to the nearest sixteenth of an inch. Mark these from the same starting point rather than adding one step at a time, so small errors do not build up along the board.

Every finished riser must come out within 3/8 inch of the others, and that includes the first and last. If the treads sit on top of the stringers, the first rise cut in the stringer is shorter than the others by the thickness of a tread, so that the step heights are equal once the treads are on. Allow in the same way for flooring that will be added at the top or bottom.

Centimeters and millimeters

Choose centimeters to enter the rise and treads in metric; millimeters and meters typed with their unit, such as 2670 mm, also work. Checks then use the code’s own metric figures: 196 mm risers, 254 mm treads and 2036 mm headroom. An inch is exactly 25.4 millimeters.

For other work around the house, the concrete calculator includes poured concrete steps, the square footage calculator adds up floor areas, and the paint calculator works out walls and ceilings.

Privacy

Everything is worked out in your browser. Nothing you type is sent to this website; your numbers are saved only on this device.

Frequently asked questions

How do I calculate the number of stairs?

Divide the total rise, from finished floor to finished floor, by the tallest riser you want and round up. With the 7 3/4-inch maximum of the International Residential Code, a rise of 8 ft 9 in (105 inches) needs 14 risers of 7 1/2 in. There is one tread fewer than risers, because the upper floor is the last step: 13 treads.

How many steps do I need for an 8-foot ceiling?

It depends on the full floor-to-floor height, which includes the floor structure above. For a rise of exactly 8 feet (96 inches), the fewest risers within 7 3/4 inches is 13, each 7 3/8 in high, with 12 treads. At 10-inch treads the stair runs 10 ft.

What is the maximum riser height and minimum tread depth?

Under the International Residential Code (section R311.7.5), a riser can be at most 7 3/4 inches (196 mm) and a tread must be at least 10 inches (254 mm) deep. Within one flight, the tallest riser and the shortest may differ by no more than 3/8 inch, and the same goes for treads. Many places adopt this code with changes, so check with your building department.

How do I calculate the length of a stair stringer?

The stringer runs along the slope of the stair, so its length is the square root of the total rise squared plus the total run squared. For a rise of 105 inches and a run of 130 in, that is about 13 ft 11 1/8 in. Buy a board longer than this to leave room for the cuts at the top and bottom.

How much headroom does a stair need?

At least 6 feet 8 inches (2036 mm), measured straight up from the sloped line that joins the tread nosings, or from the floor of a landing, under the International Residential Code (R311.7.2). Spiral stairs may have 6 feet 6 inches.

How long does a stairwell opening need to be?

Long enough that the floor above stays 6 feet 8 inches above the line of the nosings. Measured back from the top nosing, the opening is the headroom plus the thickness of the floor above, times the tread depth, divided by the riser height. With a 10-inch-thick floor, 10-inch treads and 7 1/2 in risers, that is (80 + 10) × 10 ÷ 7.5 = 120 in, or 10 ft.

What is a good angle for stairs?

The angle comes from the riser and tread: its tangent is the riser height divided by the tread depth. Risers of 7 1/2 in with 10-inch treads make 36.9°; the steepest the code allows, 7 3/4-inch risers with 10-inch treads, is 37.8°. Shorter risers and deeper treads make a gentler stair that takes more floor space.

How many steps do I need for a 3-foot deck?

For a rise of 36 inches, the fewest risers within 7 3/4 inches is 5, each 7 3/16 in high, with 4 treads. With 11-inch treads the steps run out 3 ft 8 in from the deck. Measure the rise from the deck surface to the ground or pad where the stair will land.

Last updated · About DeviceCheckHub