Stair and Ramp Calculator

Work out the number of steps, riser height, tread depth, total run, stringer length and angle for a staircase, or the length of a ramp for a given rise and slope.

How it works

Enter the total rise (floor to floor) and a target riser height. The calculator rounds to a whole number of equal risers, then gives the actual riser, the run, the angle and the stringer length, and checks the comfort rule 2R + T. For a ramp it gives the length for a chosen slope, such as 1:12.

Number of risers n = round(total rise ÷ target riser)

riser R = rise ÷ n

run = (n − 1) × tread T

stringer = √(rise² + run²)

comfort: 2 R + T ≈ 600 to 650 mm (24 to 25 in)

SymbolMeaningUnit
nNumber of risers (steps up); the number of treads is n − 1–
RRiser heightmm or in
TTread depth (going)mm or in
rise, runTotal vertical and horizontal distancemm or in
slopeRamp slope as 1 : n (rise : run)–

The IRC (US residential code) allows a maximum riser of 7¾ in (196.9 mm) and a minimum tread of 10 in (254 mm); many places use 7 in and 11 in for comfort. The tread is the horizontal depth of the step, and the total run has one fewer tread than risers because the top floor acts as the last tread. A ramp for wheelchair access is limited to 1:12 (8.33 percent, 4.8°) by the ADA. Check the local code: headroom, handrail height, landings and opening widths are not covered here.

Related: Slope Calculator, Roof Pitch Calculator.

Worked example

A 2,800 mm rise with a target riser of 175 mm gives round(2,800 ÷ 175) = 16 risers of exactly 175.0 mm. With 280 mm treads there are 15 treads and a run of 4,200 mm. The angle is 32.0°, the stringer is 5,048 mm long, and 2R + T = 630 mm, within the comfortable range.

A ramp: for the same 2,800 mm rise at 1:12 the ramp needs a run of 33.6 m (33.6 m) and is 33.7 m long. That is why long ramps zig-zag with level landings.

Things to know

All risers in a flight must be equal (the code allows a difference of only 3/8 in or 10 mm), which is why the calculator rounds to a whole number of steps and then recomputes the riser.

Account for the thickness of the finished floor at top and bottom, and for the nosing overhang, which adds to the going but not to the run.

This tool covers geometry only. Local building codes set headroom (usually 6 ft 8 in or 2 m), handrails, guards, landings and width.

Another worked example in inches

A floor-to-floor rise of 9 ft is 108 in. With a target riser of 7¼ in: 108 ÷ 7.25 = 14.9, which rounds to 15 risers of 108 ÷ 15 = 7.20 in each. With 10½ in treads there are 14 treads and the run is 14 × 10.5 = 147.0 in (12.25 ft).

The angle is atan(7.20 ÷ 10.5) = 34.4°, the stringer is √(108² + 147.0²) = 182.4 in (15.2 ft), and 2R + T = 24.9 in, inside the comfortable 24 to 25 in range. One riser fewer (14) would give a 7.71 in riser, just inside the 7¾ in code limit but noticeably steeper.

A porch ramp: a 24 in rise at 1:12 needs a run of 24 × 12 = 288 in (24 ft), and the ramp surface is 289.0 in long. The rise is under 30 in, so one straight run without an intermediate landing is allowed by the ADA rule.

Ramp slopes compared

SlopePercentAngleRun for a 24 in riseRun for a 600 mm rise
1:812.50 %7.13°16 ft4.8 m
1:1010.00 %5.71°20 ft6.0 m
1:128.33 %4.76°24 ft7.2 m
1:166.25 %3.58°32 ft9.6 m
1:205.00 %2.86°40 ft12.0 m

1:12 is the steepest slope the ADA allows for a new wheelchair ramp. Gentler slopes (1:16 to 1:20) are much easier to use unaided. 1:8 and 1:10 are permitted by the ADA only for very short rises in existing buildings where space is limited.

Common mistakes

  • Counting treads as risers. There is always one more riser than treads in a straight flight.
  • Measuring rise to the subfloor. Measure between finished floor surfaces, or add the flooring thickness at each end, or the first and last steps will be a different height.
  • Rounding the riser instead of the count. Pick the whole number of risers first, then divide. Cutting every riser at a rounded 7½ in leaves the error in the last step.
  • Reading 1:12 as 12 degrees. A 1:12 ramp is only 4.8°. A 12° ramp would be steeper than 1:5.

Common questions

How do you calculate stair risers?

Divide the total rise by a target riser height (about 7 in or 175 mm), round to a whole number of risers, then divide the total rise by that number to get the exact riser.

How many treads are there for a number of risers?

One fewer than risers, because the top floor serves as the last tread.

What is the 2R + T rule?

Twice the riser plus the tread should be about 24 to 25 inches (600 to 650 mm) for comfortable stairs.

What is the maximum slope of an ADA ramp?

1:12 (8.33 percent), with a maximum rise of 30 inches between landings.

How long does a ramp need to be for three steps?

Three steps of about 7 in rise 21 in. At 1:12 the ramp run is 21 ft. As a quick rule, a 1:12 ramp needs one foot of run for every inch of rise.

What angle are stairs normally?

Most house stairs are between about 30° and 37°. A 7 in riser with an 11 in tread is 32.5°; the code-limit 7¾ in riser with a 10 in tread is 37.8°.

How do I find the stringer length?

It is the hypotenuse of the total rise and total run: √(rise² + run²). Buy stock longer than this, because the plumb and level cuts at each end need extra length.

Sources

  • International Residential Code (IRC) R311.7: stairways.
  • 2010 ADA Standards for Accessible Design, section 405: ramps.

Last reviewed: November 10, 2026

Published by Nick Peterson, mechanical engineer.