Last reviewed:

Stair Calculator

Use this stair calculator to find the number of steps, the riser height, the total run and the stringer length for the rise between two floors.

  • Instant answer as you type
  • Nothing you type is sent anywhere
  • Worked example with clear steps
in
Floor to floor, in inches. Fractions are fine, e.g. 108 1/2. The limit of 600 is ours.
in
Typical value, not a standard
in
Typical value, not a standard
Landing (optional)

A landing at the top or bottom adds to the length the stairs need along the floor.

in
Calculated live
Risers 13 treads
14 risers
Riser height about 7 11/16 in
7.714 in
Total run 10.83 ft along the floor
130 in
Stringer length long edge, before cutting
169.01 in
Stair angle from flat
39.72 degrees
2 x riser + tread information only
25.43 in

Based on City of Saint Paul City of Grinnell OSHA 1926.1052 Full list of sources

Assumptions and constants

You can change

The limits on the other boxes, such as the largest size you can enter, are ours, not from a source.

Riser height you aim for Typical value

in
Same as the box in the form above

Typical value, not a standard. The calculator picks the whole number of steps that gets closest to it.

Allowed range: 4 to 12 in. The limits are ours.

Tread depth you plan Typical value

in
Same as the box in the form above

Typical value, not a standard. It matches the 10 inch minimum in the city documents.

Allowed range: 6 to 20 in. The limits are ours.

Fixed values (exact definitions and references)

These are exact definitions and cannot be edited.

Tallest riser (city documents) Reference [1], [2]

7.75 in

A City of Saint Paul handout (with IRC section numbers) and a City of Grinnell document (headed 2015 IRC) give a maximum riser height of 7 3/4 inches. Your local code may differ.

Shallowest tread (city documents) Reference [1], [2]

10 in

The same two documents give a minimum tread depth of 10 inches.

Greatest difference between steps in a flight (city documents) Reference [1], [2]

0.375 in

The largest riser height in a flight may not exceed the smallest by more than 3/8 inch (both documents), and the Grinnell document says the same for the tread depth.

Flattest stair angle on a construction site (OSHA) Reference [3]

30 degrees

OSHA says stairs shall be installed between 30 and 50 degrees from horizontal. This is for stairs on construction sites, not a home code.

Steepest stair angle on a construction site (OSHA) Reference [3]

50 degrees

See above.

How to use the stair calculator

  1. Enter the Total rise: the height from the finished lower floor to the finished upper floor, in inches.
  2. Check Riser height you aim for and Tread depth. The calculator picks the whole number of steps that gets closest to your target.
  3. Read Risers and Riser height. Every riser is the same height.
  4. Use Stringer length and Stair angle to mark the stringer. Add a Landing depth if the stairs end at a landing.
  5. Use Copy result or Print, check any warning against your local code, and confirm with your building authority.

How the stair calculator works

Risers = the total rise divided by the riser height you aim for, rounded to the nearest whole number (never fewer than one). Riser height = the total rise / the number of risers, so every riser is the same. Treads = risers - 1, because the top floor or landing is the last tread. Total run = treads x tread depth. Stringer length = the square root of (rise x rise + run x run), and the angle = atan(rise / run).

Worked example

A total rise of 108 in with a 7.5 in target riser: 108 / 7.5 = 14.4, so use 14 risers. Each riser is 108 / 14 = 7.71 in (about 7 11/16 in). With 13 treads of 10 in, the total run is 130 in. The stringer is the square root of (108 x 108 + 130 x 130) = 169.01 in, and the angle is atan(108 / 130) = 39.72 degrees.

Stairs from the side: total rise 108 in, total run 130 in, riser 7.71 in, tread 10 in, stringer 169.01 in A side view of a straight flight of stairs with four steps drawn to show the parts. The total rise, 108 in, is marked up the right side. The total run, 130 in, is marked along the floor. One riser, 7.71 in, is marked at the bottom left. One tread, 10 in, is marked above the top step. The stringer, 169.01 in, is marked along the slope. From the side Riser 7.71 in Tread 10 in Total rise 108 in Total run 130 in Stringer 169.01 in
Not to scale: four steps are drawn to show the parts, and the real flight has more. Every riser is the same height and every tread the same depth.

How to calculate stair rise and run

Measure the rise, in inches, from the finished lower floor to the finished upper floor. Divide it by the riser height you aim for, and round to a whole number of risers. Then divide the rise by that number to get the exact riser height. The run of one step is the tread depth, and the total run is the tread depth times the treads. The calculator also shows 2 x riser + tread, for information only.

Stair stringers

The stringer length is the long edge of the sloped board before cutting: 169.01 in for the example flight. The angle is where the stringer meets the floor. We found no source we can cite for the number of stringers, so follow your plans or ask your building authority.

Stair code limits

A City of Saint Paul handout (revised 5 Feb 2015, with IRC section numbers) and a City of Grinnell document (headed 2015 IRC) give these limits for residential stairs. [1] [2] We found no government page that names the 2021 or 2024 edition, and local codes may differ, so check with your building authority. OSHA sets its own range for stairs on construction sites. [3]

Stair limits from the sources we read
Item Limit From
Tallest riser 7 3/4 inSaint Paul and Grinnell
Shallowest tread 10 inSaint Paul and Grinnell
Largest riser minus smallest, in one flight 3/8 inSaint Paul and Grinnell
Largest tread minus smallest, in one flight 3/8 inGrinnell
Narrowest stairway, clear width 36 inSaint Paul
Lowest headroom 6 ft 8 inSaint Paul
Smallest landing, in the direction of travel 36 inSaint Paul
Stair angle on a construction site 30 to 50 degreesOSHA 1926.1052
Riser or tread variation on a construction site 1/4 inOSHA 1926.1052

The calculator warns when your stairs break the riser or tread limit above. A warning never blocks the result, and passing the check does not mean your stairs meet your local code. A riser of exactly 7 3/4 in is at the limit and does not warn.

Stair types this calculator does not cover

This tool is for a straight flight with equal risers and equal treads. It does not size spiral, curved, winder or alternating-tread stairs, so ask your building authority about those. For a concrete flight it gives the same rise, run and angle, but it does not calculate the concrete.

How much carpet do stairs need?

This is our own sum (rise plus run), not a figure from a source: carpet covers each tread and each riser, so a runner is about the total rise plus the total run long. For the example flight that is 108 + 130 = 238 in, or 19.83 ft, before extra for the nosing and waste. Take the carpet width from the product label.

How much do stairs cost?

We state no price. Ask local suppliers for the price of the lumber or the treads, and use the risers, treads and stringer length above to list what you need.

Common mistakes and limits

  • Measuring to the unfinished floor. Use the finished floors, including carpet or tile.
  • Forgetting that the top tread is the floor. A flight has one tread fewer than risers.
  • Rounding the riser height by hand. Unequal risers can break the 3/8 inch limit. [1] Let the calculator divide the rise equally.
  • Treating the checks as approval. They compare with the 2015 documents we read. Your local code applies.
  • What this tool does not cover: headroom, handrails, guards, landings, winders and framing.

Common rises

Example rises, with the flight the calculator gives for each.

Stairs for common rises with a 7.5 in target riser and 10 in treads
Total rise (in) Risers Riser height (in) Total run (in) Angle (degrees)
30 47.503045.00
48 68.005043.83
60 87.507040.60
84 117.6410040.03
96 137.3812038.66
108 147.7113039.72
120 167.5015038.66

Frequently asked questions

How many stairs do I need?

Divide the total rise by the riser height you aim for and round to the nearest whole number. For a rise of 108 inches and a 7.5 inch target, 108 / 7.5 = 14.4, so use 14 risers, each 7.714 inches (about 7 11/16 inches). That gives 13 treads, because the top floor is the last tread.

How many stringers do I need?

We found no source we can cite for the number of stringers, so follow your plans or ask your local building authority.

What size stairs do I need?

A City of Saint Paul handout and a City of Grinnell document (headed 2015 IRC) give a maximum riser height of 7 3/4 inches, a minimum tread depth of 10 inches, and no more than 3/8 inch difference between the largest and smallest riser in a flight. Your local code may differ, so check with your building authority. [1][2]

The Grinnell document also limits the difference between the largest and smallest tread depth in a flight to 3/8 inch. [2]

Where is stair width measured?

The Saint Paul document says stairways shall be at least 36 inches wide in the clear at all points above the permitted handrail height and below the required headroom height. Handrails may project no more than 4 1/2 inches on either side. Your local code applies. [1]

Sources and references

  1. City of Saint Paul, Minnesota, Department of Safety and Inspections. Stairways and Handrails for Residential Structures (City handout revised 5 Feb 2015, with IRC section numbers, accessed November 2026). Used for: Maximum riser, minimum tread, the 3/8 inch riser height variation, headroom, width and landings.
  2. City of Grinnell, Iowa, Building and Planning Department. Residential Stairs, Ramps and Handrails (March 2017, headed 2015 IRC, accessed November 2026). Used for: The same riser and tread limits, and the 3/8 inch variation for riser height and tread depth, from a second city.
  3. Occupational Safety and Health Administration (OSHA). 29 CFR 1926.1052, Stairways (accessed November 2026). Used for: The 30 to 50 degree angle and the 1/4 inch variation for stairs on construction sites.

How we use sources: methodology.

Estimates only. Confirm quantities with your supplier. See the disclaimer. Found a wrong result? Report an error.