Rise Over Run: The Slope Formula for Stairs, Roofs and Ramps

Rise over run is the one idea behind a stair, a roof pitch, a ramp and a drainage fall. Learn how to read it once, and you can move between ratio, percent and degrees on any of them.

  • Guide
  • 8 min read
  • Reviewed 20 October 2026
  • Same code as the calculator

Quick answer Rise over run is the vertical rise divided by the horizontal run: slope = rise ÷ run. A stair with a 7.2 in rise and a 10 in run has a slope of 0.72, which is 72% or 35.8°. Multiply by 100 for percent, and take the arctangent for degrees. A 6:12 roof is 0.5, 50% or 26.6°.

The rise over run formula

Slope measures steepness as a ratio of two lengths. The rise is the vertical change in height, and the run is the horizontal distance over which that change happens. Both are measured in the same unit, so the answer has no units at all. A slope of 0.5 means the line climbs half a unit for every unit it travels across.

slope = rise ÷ run
percent slope = rise ÷ run × 100
angle = arctan(rise ÷ run)
length along the slope = √(rise² + run²)
The slope triangleRise 6 over run 12 gives 0.5, 50% and 26.6°
run 12 in, levelrise 6 insloped length 13.42 in26.6°slope = rise ÷ run = 6 ÷ 12 = 0.50percent = 50% angle = 26.6°

The vertical rise is always measured straight up, with a level or a plumb line, and never along the sloping surface. The horizontal run is measured level, and never along the slope. Mixing those up is the commonest error in this subject, and the last formula above is the way to get the sloping length once both are known. It is the Pythagorean theorem applied to the triangle that the rise and run make. The foundation squaring guide shows the same triangle used for corners.

Ratio, percent and degrees: one slope in four forms

Different trades write the same slope differently. A roofer says 6:12, a road engineer says 8%, a drawing says 26.6°, and a ramp is called 1:12. All of them are the same ratio. The table converts a set of everyday slopes into decimal, percent and degrees so you can see how they compare.

Common slopes in four forms
SlopeRise ÷ runPercentDegreesWhere it is used
Stair at 7¼ in rise, 10 in run0.72572.5%35.9°Stairs
Stair at 7 in rise, 11 in run0.63663.6%32.5°Stairs
Roof, 6:12 pitch0.550%26.6°Roofs
Roof, 4:12 pitch0.33333.3%18.4°Roofs
Accessible ramp, 1:120.0838.3%4.8°Ramps
Patio drainage, ¼ in per ft0.0212.1%1.2°Drainage
French drain pipe, 1%0.011%0.6°Drainage
Driveway, 1 ft in 10 ft0.110%5.7°Driveways
Everyday slopes in percentAngle in brackets; small slopes are measured as a fall over a length
Stair, 7.2 × 10 in72% (35.8°)Roof, 6:1250% (26.6°)Roof, 4:1233.3% (18.4°)Driveway, 1 in 1010% (5.7°)Ramp, 1:128.3% (4.8°)Patio, ¼ in per ft2.1% (1.2°)Drain pipe, 1%1% (0.6°)

Two things are worth noticing. Percent can go above 100, because a 45° slope is exactly 100% and a steeper one is more. And degrees grow more slowly than percent: a slope that doubles from 10% to 20% only goes from 5.7° to 11.3°. For that reason, percent and ratio are easier to use for flat work, and degrees are easier for cuts.

How to calculate stair rise and run

On a stair, the rise is the height of one step and the run is the depth of one tread, so the stair's slope is riser ÷ tread. The rise of the whole stair is the total vertical distance between the two floors, and the total run is the horizontal distance the stair covers. The method for working them out is the same for every stair.

  1. Measure the total rise, from the finished lower surface to the finished upper surface.
  2. Divide by a target riser height of about 7 in and round to a whole number of risers.
  3. Divide the total rise by the number of risers to get the exact riser height.
  4. Choose a tread depth, then multiply by one fewer than the number of risers to get the total run.
total rise = 36 in
risers = 36 ÷ 7.5 → 5
riser height = 36 ÷ 5 = 7.2 in
treads = 5 − 1 = 4  (the top floor is the last step)
total run = 4 × 10 = 40 in
slope = 7.2 ÷ 10 = 0.72  →  35.8°
stringer line = √(36² + 40²) = 53.8 in
A 36 in rise as a stair5 risers of 7.2 in and 4 treads of 10 in
rise 36 inrun 40 in7.2 in10 instringer line 53.8 inupper floor

Under the 2021 IRC the riser may not exceed 7¾ in and the tread may not be less than 10 in (R311.7.5), and the largest riser in a flight may differ from the smallest by no more than ⅜ in. A stair that follows those limits sits between roughly 30° and 38° in practice, so the slope of a comfortable stair is near 0.6 to 0.75. The stair calculator does the sum and checks the limits, and the stair stringer layout guide covers cutting them.

The same ratio on a roof

A roof pitch is the ratio with the run fixed at 12 inches. A 6:12 pitch rises 6 in for every 12 in across, so its slope is 0.5, or 50%, or 26.6°. The surface of the roof is longer than the plan by the factor √(1 + slope²), which for 6:12 is 1.118. That multiplier is the reason a roof has more area than the floor under it.

The roof pitch calculator reports the pitch, the angle and the multiplier from any rise and run, and the roof pitches guide compares the common pitches. If you know only the angle, multiply its tangent by 12 to get the pitch.

Ramps: a run you can't shorten

A ramp turns a rise into a long run, because the slope is capped. The common limit for accessible ramps, and the IRC limit for a residential ramp, is 1:12, which means 12 in of run for each inch of rise, or 8.33%. The table gives the run needed for several rises and the length of the surface you walk on.

Ramp run at 1:12
RiseRun requiredSurface length
6 in6′6′ 1/4″
12 in12′12′ 1/2″
18 in18′18′ 3/4″
24 in24′24′ 1″
30 in30′30′ 1 1/4″
36 in36′36′ 1 1/2″

A ramp with a 24 in rise needs a 24 ft run before any landing, so the footprint of a ramp is large. A change in direction needs a level landing, and long ramps need intermediate landings too, and these add to the length. Check your local code for the rules that apply to your ramp, since accessibility rules for public buildings are stricter than residential rules.

Drainage: slope as a small fall over a long run

Water follows the same formula. A patio or walk needs a fall of about ¼ in per foot, a slope of 2.08%, to shed water. A French drain pipe needs at least about 1%, or an inch of fall in 8 ft. Because the numbers are small, drainage work is nearly always quoted as a fall over a length: how many inches it drops over the whole run.

Fall over the run for two common drainage slopes
RunFall at ¼ in per ftFall at 2%
8 ft2 in1.92 in
10 ft2.5 in2.4 in
12 ft3 in2.88 in
16 ft4 in3.84 in
20 ft5 in4.8 in

Use the same sum for a pipe: a 100 ft run at 1% drops 12 in. The French drain depth guide turns that fall into trench depths.

Finding rise and run in the field

You can measure either number directly, or measure one and calculate the other from a known slope.

  • Level and tape. Hold a long level horizontal against the slope, measure the horizontal distance along the level for the run, and the vertical gap at the far end for the rise.
  • Rafter or board. Lay a straight board on the slope, level it, and read the 12 in rise on a framing square or speed square.
  • String and line level. Pull a string from the high point to the low point, level it, and measure the drop with a tape. Use this for long runs such as grading.
  • Laser or app. A rotary or line laser gives the rise from a fixed height. A phone app gives the angle, which you then convert.
  • Known slope. For a ramp or a drain, use the target slope to get the run from the rise, or the rise from the run.

Tape lengths with fractions should be added carefully. The tape measure guide shows how to read and add fractions of an inch.

Common mistakes

  • Swapping the two numbers. Rise goes on top. Putting the run on top turns a gentle slope into a steep one.
  • Using the sloping length as the run. The run is level, so the sloping length is longer.
  • Treating percent as degrees. A 30% slope is 16.7°, not 30°.
  • Mixing units. A rise in inches and a run in feet gives a wrong ratio. Convert one of them first.
  • Measuring from rough surfaces. Stairs are measured between finished surfaces, so allow for the thickness of flooring.
  • Rounding too early. Keep several decimals until the end, particularly on a long run.

Three worked examples

The same division handles very different jobs. Keep the rise and the run in the same unit and the math does not change.

A deck ramp. A deck sits 30 in above the ground and the ramp has 15 ft (180 in) of run. The slope is 30 ÷ 180 = 0.167, which is 16.7% or 9.5°. As a ratio that is 1:6, which is steeper than the 1:12 limit used for accessible ramps. The sloped length of the surface is 15′ 2 1/2″.

A drainage fall. A patio 12 ft (144 in) wide drops 9 in away from the house. The slope is 9 ÷ 144 = 0.0625, which is 6.25% or 3.58°, and that works out to 0.75 in per foot. The angle is tiny but the drop is easy to measure with a level and a tape.

A stair. A flight with a 7½ in rise and 10 in run is 7.5 ÷ 10 = 0.75, or 36.9°. The stair guide goes through how to size the whole flight from the total rise.

From rise and run to the sloped length

Rise and run are the two legs of a right triangle, so the sloped length between them is the hypotenuse: length = √(rise² + run²). For a 6:12 roof, a 12 in run carries 13.416 in of surface, a multiplier of 1.118. For a stair with a 7½ in rise and 10 in run, each step adds 12.5 in along the nosing line, which is why the stringer is longer than the horizontal run of the flight.

This is the reason a rafter is longer than the half-span, a ramp is longer than its run, and a pipe on a slope uses a little more length than the plan shows. For small slopes, such as drainage falls, the difference is too small to matter. At a 1:12 ramp, the sloped length is only 0.35% more than the run.

Slope, grade, gradient, pitch and incline

These words all describe the same ratio, and trades prefer different forms of it. Pitch is the roofing term, written as rise in 12 in of run, such as 6:12. Grade is used for ground and roads, in percent. Gradient is the British word for the same thing, often written as 1 in 20 or a ratio. Incline and angle mean degrees from the horizontal. A slope of 100% is a 45° angle with a 1:1 ratio, and it is steeper than any stair or roof you are likely to build.

When a plan, a code or a supplier uses one of these terms, convert it once to the form your tools use and write both on the drawing. The roof pitch calculator and the stair calculator both accept the ratio and show degrees and percent.

Sources and further reading

The formulas are exact. Stair riser and tread limits are from IRC R311.7.5 and the 1:12 ramp slope from R311.8; confirm the sections in the edition your jurisdiction has adopted. Drainage slopes are common practice, not code values.

FAQ

What is rise over run?

It is the slope formula: the vertical rise divided by the horizontal run. A rise of 3 over a run of 6 is a slope of 0.5.

How do you calculate rise over run?

Measure the vertical change and the horizontal distance in the same unit, then divide the first by the second.

How do I turn the ratio into a percent?

Multiply by 100. A rise of 1 over a run of 12 is 0.0833, which is an 8.33% slope.

How do I turn the ratio into degrees?

Take the arctangent of the ratio. A slope of 0.5 is arctan(0.5) = 26.6°.

How do I calculate stair rise and run?

Divide the total rise by about 7 in to get the number of risers, divide again for the exact riser height, then multiply the tread depth by one fewer than the number of risers to get the total run.

What is the vertical rise of a stair?

The total vertical distance from the finished lower floor to the finished upper floor. Divide it by the number of risers to get the height of one step.

What is the horizontal run of a stair?

The total level distance the stair covers, equal to the tread depth times the number of treads. The top floor counts as the last step, so there is one fewer tread than risers.

What is the slope of a 1:12 ramp?

1 divided by 12, which is 8.33% or 4.8°. It is the usual maximum for accessible and residential ramps.

Is the slope formula the same as pitch?

A roof pitch is the same ratio with the run fixed at 12 inches, so a 6:12 pitch is a slope of 0.5.

How do I find the slope percentage?

Divide the rise by the run and multiply by 100. A 1 ft rise over a 10 ft run is 0.1, which is a 10% slope.