Skip to main content
FigureCalc

Stair Calculator

By Uzair Arshad , Senior Civil and Structural Engineer

Last updated: April 27, 2026

Use this stair calculator to find riser count, tread layout, stringer length, and stair angle for straight stairs. Works for deck stairs, interior stairs, and exterior stairs. Enter your total rise and tread dimensions below to get a complete cut checklist with code checks before you start framing.

Measure from finished lower surface to finished upper landing or deck surface.

How to use this calculator

This stair calculator gives a fast stair layout from the measurements you take on site: total rise, tread depth, tread thickness, and mount type. Use it for deck stairs, interior stairs, or any straight stair run to find riser count, tread count, stringer length, stair angle, and first step cut height before buying lumber.

  1. Measure the total rise in inches from the finished lower walking surface to the finished upper landing or deck surface. This is the most critical measurement. Measure after decking, flooring, or landing surfaces are installed, not from rough framing.
  2. Choose auto layout if you know the rise but not the final run. Choose known total run if the stair must fit a fixed horizontal space, like between a deck and a sidewalk.
  3. Enter target riser height (7 inches is a common starting point), tread depth (10.5 inches is standard for 2x12 treads), and tread thickness (1.5 inches for standard lumber).
  4. Select standard mount or flush mount. Standard mount uses the top landing as the final tread, so the stringer has one fewer tread. Flush mount attaches the stringer directly to the face of the upper structure with all treads on the stringer itself.
  5. Review riser count, tread count, actual riser height, total run, stringer length, stair angle, and first step cut. The code check panel flags risers above 7 3/4 inches or treads below 10 inches.

Pro tip: measure total rise at three different points across the stair width and average them. Uneven ground or an out-of-level deck frame means the actual rise varies. Using the average prevents a first step that feels too tall or too short on one side.

Field note: mark the first stringer as a test piece. Cut it, hold it in position against the upper structure and lower landing, and check that the top and bottom steps feel even. Fix any layout errors on this single board before cutting the remaining 2x12 stringers.

Landing check: if stairs land on soil or pavers, recheck the bottom landing height after compaction or slab placement. Settling can add 1/2 inch or more to the effective total rise, which changes every riser height in the stair calculator output.

How the calculation works

Riser and Tread Layout:
Riser count = round(Total rise / Target riser height)
Actual riser height = Total rise / Riser count
Tread count = Riser count - 1 (standard mount)
Tread count = Riser count (flush mount)

Run and Stringer:
Total run = Tread count × Tread depth
Stringer length = √(Total rise² + Total run²)
Stair angle = atan(Total rise / Total run) × 180 / π

First Step Adjustment:
First step cut height = Actual riser height - Tread thickness
Total rise
Vertical distance from finished lower surface to finished upper landing (in)
Target riser height
Desired individual riser height, typically 7 to 7.5 inches (in)
Tread depth
Horizontal depth of each stair tread, typically 10 to 11.5 inches (in)
Tread thickness
Material thickness of tread board, typically 1 to 1.5 inches (in)
Mount type
Standard mount deducts 1 tread (landing acts as top step). Flush mount keeps all treads on the stringer.

The stair calculator uses basic geometry to convert total rise into a safe, code-aware stair layout. It divides total rise by the target riser height, rounds to a whole number, then recalculates the actual riser so every step is uniform.

Worked example

Given: 56 inches total rise, 7 inch target riser, 10.5 inch tread depth, 1.5 inch tread thickness, standard mount.

  • Riser count = round(56 / 7) = 8 risers
  • Actual riser height = 56 / 8 = 7.00 inches
  • Tread count = 8 - 1 = 7 treads (standard mount)
  • Total run = 7 × 10.5 = 73.5 inches (6 ft 1.5 in)
  • Stringer length = √(56² + 73.5²) = √(3,136 + 5,402.25) = √8,538.25 ≈ 92.4 inches (7 ft 8.4 in)
  • Stair angle = atan(56 / 73.5) × 180 / π ≈ 37.3 degrees
  • First step cut height = 7.00 - 1.50 = 5.50 inches

Why the first step cut matters

Every tread adds material thickness on top of the stringer notch. If you don't subtract tread thickness from the bottom riser, the first step will be taller than the rest by exactly one tread board. For a 1.5 inch thick tread, that means the bottom step would be 8.5 inches instead of 7 inches. Uneven risers violate building codes and create a trip hazard.

Standard vs flush mount

Standard mount is the most common for deck stairs. The top landing or deck surface acts as the final tread, so the stringer carries one fewer tread than the riser count. Flush mount attaches the stringer directly to the face of the upper structure, placing all treads on the stringer. Flush mount changes the tread count and total run, so always select the correct option before cutting.

Common code reference values

Most residential codes (IRC) allow a maximum riser height of 7 3/4 inches and require a minimum tread depth of 10 inches. Headroom clearance is typically 6 feet 8 inches measured vertically from the tread nosing. Stairs wider than 36 inches generally require a handrail on at least one side. These values vary by jurisdiction, so always confirm with your local building department.

Stair angle and riser/tread pairings

Angle range Typical riser Typical tread Feel
30 to 35° 6.5 to 7 in 11 to 12 in Comfortable, easy to carry items
35 to 40° 7 to 7.5 in 10 to 11 in Standard residential, meets most codes
40 to 45° 7.5 to 8 in 9 to 10 in Steep, may not meet code
Over 45° 8+ in Under 9 in Too steep for standard stairs

Assumptions and limitations

This stair calculator assumes straight stairs with uniform riser heights and equal tread depths. It works for deck stairs, exterior stairs, and interior stairs with a single straight run. It does not cover L-shaped, U-shaped, spiral, or winder stairs. Results assume finished surfaces are already installed at both the top and bottom of the stair run. Always verify final stringer length against available 2x12 stock before ordering.

Frequently Asked Questions

How do you calculate stair stringers?

Calculate stair stringers by finding total rise, choosing a target riser height, and dividing total rise by that height. Round to a whole number to get riser count, then recalculate actual riser height. For a 56 inch rise with 8 risers, each riser is 7 inches. Use tread count and tread depth to find total run, then get stringer length from the diagonal.

How do you calculate stair risers?

Calculate stair risers by dividing total rise by the number of risers. A 63 inch total rise divided by 9 risers gives exactly 7 inch risers. Most residential building codes cap riser height at 7 3/4 inches. This stair calculator flags any riser that exceeds that limit so you can adjust before cutting.

How do you calculate stair rise and run?

Measure vertical height (total rise) first, then choose a riser count and tread depth. An 84 inch total rise with 12 risers gives 7 inch rise per step. With 10 inch treads and standard mount, the total run is 11 treads times 10 inches, or 110 inches. Adjust tread depth to fit available landing space.

How do you calculate stair stringer length?

Calculate stair stringer length using the diagonal distance across total rise and total run. If total rise is 56 inches and total run is 73.5 inches, stringer length is the square root of (56 × 56) + (73.5 × 73.5), which is about 92.4 inches or 7 ft 8.4 in. Always buy stock longer than this measurement.

How do you calculate stair angle?

Calculate stair angle from rise and run using angle = arctan(total rise / total run). A 56 inch rise and 73.5 inch run creates an angle of about 37.3 degrees. Comfortable residential stairs typically fall between 30 and 37 degrees. Steeper angles feel unsafe and make it harder to carry items.

How do you calculate stair treads?

In a standard mount stair layout, treads are one fewer than risers because the top landing acts as the final step. With 9 risers, you cut 8 treads for the stringer. If each tread is 10.5 inches deep, total run is 8 times 10.5, or 84 inches. Flush mount stairs use the same number of treads as risers.