Stair Calculator

v2.0

Find riser height, number of treads, total run, and stringer length from your total rise.

Enter your measurements

Floor-to-floor height, measured in inches

Note: Stair code varies by location, confirm riser and tread limits with your local building code.

Results

Number of risers —
Actual riser height —
Number of treads —
Total run —
Stringer length —
Copied!
Copied!

How to use this calculator

  1. Measure the total rise, the exact floor-to-floor height, in inches.
  2. Set your target tread depth, 10 inches is common for residential stairs.
  3. Set a target riser height, most codes cap this around 7.75 inches.
  4. Use the riser count and stringer length to lay out your stair stringers.

How the calculation works

The number of risers is the total rise divided by your target riser height, rounded to the nearest whole number, since riser count must be a whole number. Dividing total rise by that count gives the actual, even riser height. Treads are one fewer than risers. Total run is treads times tread depth, and stringer length is the hypotenuse of total rise and total run.

These examples use the calculator’s defaults, a 7.5 inch target riser and a 10 inch tread.

Total rise (in)RisersActual riser (in)TreadsTotal run (in)Stringer length (in)
3047.5033042.4
3657.2044053.8
4267.0055065.3
5477.7166080.7
6087.5077092.2
72107.20990115.3

Worked example: a deck 36 in above the ground, with 10 in treads and a 7.5 in target riser. 36 ÷ 7.5 is 4.8, which rounds to 5 risers. The actual riser is 36 ÷ 5 = 7.2 in. Five risers mean 4 treads, so the total run is 4 × 10 = 40 in. The stringer length is the square root of 36 squared plus 40 squared, which is 53.8 in, or about 4.5 ft.

Rise and run explained

Rise is how far a step goes up, and run is how far it goes forward. Total rise is the full height you climb, and total run is the full horizontal distance the stairs cover. The stringer is the diagonal board that carries the treads, so its length depends on both numbers. This stair rise and run calculator works out all five results from your total rise.

The calculator rounds to the nearest whole number of risers, so the actual riser can end up a little above your target. For example, a 24 in rise with a 7.5 in target gives 3 risers of 8 in. Lower the target to 6.5 in and you get 4 risers of 6 in. If the actual riser is above your local limit, lower the target riser height until it fits.

How to calculate a stair stringer

To calculate a stair stringer, measure the total rise from the finished upper surface to the finished lower surface, then enter it with your tread depth and target riser height. Read the number of risers and the actual riser height, then the number of treads, total run and stringer length. Stringer length is the diagonal along the board, so buy a board longer than that figure to leave room for the cuts at each end. Dry-fit one stringer before you cut the rest.

Stair stringer calculator for a deck

Deck stairs start with one measurement: how far the finished deck surface sits above the landing or ground. That is your total rise. The deck itself acts as the top tread, so you need one fewer tread than risers, and the calculator already counts it that way. Stringer size, spacing, footing and railing rules vary by location, so check your local code. Our guide on how to attach a stair stringer to a deck covers hangers, fasteners and the bottom connection.

Formula and assumptions

The number of risers is the total rise divided by your target riser height, rounded to the nearest whole number and never less than 1. The actual riser is the total rise divided by that count. Treads are one fewer than risers, because the top step is the floor or deck. Total run is the treads times the tread depth, and the stringer length is the square root of the rise squared plus the run squared.

Because the count is rounded to the nearest riser, the actual riser can land a little above your target, so compare it with your local limit. In metric mode, centimeters are converted to inches for the math, and switching units converts the numbers already in the fields. The estimate does not size the stringer boards, nosing, tread thickness or landings.

Frequently asked questions

Why does the calculator adjust my riser height?

Riser count must be a whole number, but your total rise rarely divides evenly. The calculator rounds to the nearest whole number of risers, then recalculates the exact riser height so every step is identical, which building code requires.

What riser and tread sizes does code typically allow?

Many US jurisdictions cap riser height around 7.75 inches and require a minimum tread depth around 10 inches, but this varies by location. Always confirm your local code before building.

Does stringer length include the top and bottom cuts?

This is the theoretical stringer length along the diagonal. Add extra material for the actual board, since the stringer is cut from a wider board to leave room for the tread and riser notches.

How do I calculate a stair stringer for a deck?

Start with the height from the finished deck surface down to the ground or landing. Enter that total rise with your tread depth and target riser height, and read the stringer length. That length is the diagonal along the board, so buy a longer board. Check your local code for stringer size, spacing and footing.

What is the difference between rise and run?

Rise is the vertical height of a step and run is its horizontal depth. Total rise is the full height of the stairs, and total run is the horizontal distance they cover.

Last updated November 1, 2026.