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 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.
| Slope | Rise ÷ run | Percent | Degrees | Where it is used |
|---|---|---|---|---|
| Stair at 7¼ in rise, 10 in run | 0.725 | 72.5% | 35.9° | Stairs |
| Stair at 7 in rise, 11 in run | 0.636 | 63.6% | 32.5° | Stairs |
| Roof, 6:12 pitch | 0.5 | 50% | 26.6° | Roofs |
| Roof, 4:12 pitch | 0.333 | 33.3% | 18.4° | Roofs |
| Accessible ramp, 1:12 | 0.083 | 8.3% | 4.8° | Ramps |
| Patio drainage, ¼ in per ft | 0.021 | 2.1% | 1.2° | Drainage |
| French drain pipe, 1% | 0.01 | 1% | 0.6° | Drainage |
| Driveway, 1 ft in 10 ft | 0.1 | 10% | 5.7° | Driveways |
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.
- Measure the total rise, from the finished lower surface to the finished upper surface.
- Divide by a target riser height of about 7 in and round to a whole number of risers.
- Divide the total rise by the number of risers to get the exact riser height.
- 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
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.
| Rise | Run required | Surface length |
|---|---|---|
| 6 in | 6′ | 6′ 1/4″ |
| 12 in | 12′ | 12′ 1/2″ |
| 18 in | 18′ | 18′ 3/4″ |
| 24 in | 24′ | 24′ 1″ |
| 30 in | 30′ | 30′ 1 1/4″ |
| 36 in | 36′ | 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.
| Run | Fall at ¼ in per ft | Fall at 2% |
|---|---|---|
| 8 ft | 2 in | 1.92 in |
| 10 ft | 2.5 in | 2.4 in |
| 12 ft | 3 in | 2.88 in |
| 16 ft | 4 in | 3.84 in |
| 20 ft | 5 in | 4.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
- International Residential Code 2021, Chapter 3: Building Planning (R311.7 stairs, R312 guards)
- International Residential Code 2021, Chapter 9: Roof Assemblies (R905.2.2 slope)
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.