Stair Calculator

About this calculator

The Stair Calculator works out the rise, run, number of steps, stringer length, stringer height and angle for a straight staircase. The basic version lists every step count that gives a workable riser height for your total rise. The comprehensive version handles a fixed step height or a fixed number of steps, tread thickness, headroom under a floor opening, and standard or flush stringer mounts.

Run input
Run input
Rise
Rise
Tread
Tread
Headroom
Headroom
Mount
Mount
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

How to calculate stairs

Every straight staircase is defined by two overall measurements: the total rise, the vertical distance from the lower finished floor to the upper finished floor, and the total run, the horizontal distance the stairs travel. Divide the total rise by the number of risers to get the height of each step, and divide the total run by the number of treads to get the depth of each step. The stringer, the sloped board that carries the treads, is the hypotenuse of the triangle formed by the run and the height it climbs.

Rise = total rise ÷ number of risers
Run = total run ÷ number of treads
Stringer length = √(total run² + stringer height²)
Angle = arctan(rise ÷ run)

Basic version

Enter the total rise and either the total run or the depth of one run. The calculator tries every step count and lists those whose riser height lands between 5 and 10 inches, so you can pick the one that best fits the space and your local code. In a standard installation, the top riser ends at the upper floor, so there is one fewer tread than riser.

Worked example

A total rise of 10 ft (120 in) and a total run of 15 ft (180 in) with 15 treads gives 16 risers of 120 ÷ 16 = 7.5 inches and treads of 180 ÷ 15 = 12 inches. The stringer climbs 15 × 7.5 = 112.5 inches over the 180 inch run, so its length is √(180² + 112.5²) = 212.26 inches, or 17 ft 8.26 in. The angle is arctan(7.5 ÷ 12) = 32.01°.

Comprehensive version

The comprehensive version starts from a fixed step height or a fixed number of steps. With a fixed rise, any remainder that does not divide evenly goes into the first step at the bottom, which the results show as the first step height. Building codes usually allow only a small variation (often 3/8 inch) between the tallest and shortest riser, so if the first step is very different, switch to a fixed number of steps to divide the rise evenly.

Standard and flush mounts

With a standard mount, the stringer hangs below the upper floor and the floor itself forms the top step, so there is one fewer tread than riser. With a flush mount, the top of the stringer is level with the upper floor, so the stringer carries a tread for every riser and climbs the full total rise. A flush mount needs one more run of floor space.

Tread thickness and headroom

If the treads are separate boards laid on the stringer, their thickness raises every step. The stringer is cut shorter at the bottom by that thickness so the first step is not taller than the rest. Headroom is the vertical clearance between the tread below the edge of the floor opening and the underside of the floor above. It grows by one rise for every full run the opening extends, so the calculator reports both your headroom and the shortest opening that meets the required clearance.

Stair terminology and common building codes

ElementTypical US residential guideline
Riser height7.75 in (19.7 cm) maximum
Tread depth (run)10 in (25.4 cm) minimum
Nosing0.75 to 1.25 in (1.9 to 3.2 cm)
Headroom6 ft 8 in (203.2 cm) minimum
Stair width36 in (91.44 cm) minimum
Handrail height34 to 38 in (86.4 to 96.5 cm) above the tread nosing
GuardsRequired where the total rise is more than 30 in
  • Run or tread: the horizontal part you step on.
  • Rise or riser: the vertical height of one step, or the board that closes it.
  • Nosing: the front edge of a tread that overhangs the riser below.
  • Stringer: the structural board on each side, and sometimes the middle, that supports the treads and risers.
  • Headroom: the clear height above the stairs, measured from the nosing line.

Local codes vary and are updated regularly. Treat these numbers as typical values and confirm them with your building department before cutting stringers.

Comfort rules of thumb

Stairs feel natural when the rise plus the run is about 17 to 18 inches, or when two risers plus one run is about 24 to 25 inches. A 7 inch rise with an 11 inch run satisfies both. Steeper stairs save floor space but are harder to climb, while very shallow stairs take more room and can break a person's stride.

Fraction to decimal conversion

FractionDecimal inchesFractionDecimal inches
1/160.06259/160.5625
1/80.1255/80.625
3/160.187511/160.6875
1/40.253/40.75
5/160.312513/160.8125
3/80.3757/80.875
7/160.437515/160.9375
1/20.511

Frequently asked questions

How many steps do I need for a 9 foot rise?
A 9 ft (108 in) rise divided by a 7.5 inch riser needs about 14.4 risers, so use 15 risers of 7.2 inches. With a standard mount that is 14 treads.
What is the standard rise and run for stairs?
Typical US residential codes allow a maximum riser height of 7.75 inches and a minimum tread depth of 10 inches. A 7 inch rise with an 11 inch run is a common comfortable choice.
How do I calculate stair stringer length?
Multiply the number of treads by the run to get the total run, multiply the number of treads by the rise to get the stringer height, and take the square root of the sum of their squares.
How much headroom do stairs need?
Most residential codes require at least 6 ft 8 in of headroom, measured vertically from the line connecting the tread nosings.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.