Rise Over Run Calculator

Enter the rise and the run, or two points on a line, to get the slope as a simplified fraction, a decimal, a percent grade and an angle. A diagram shows exactly what you measured.

Input
Slope (m)
Show the working

How to calculate slope from rise over run

  1. Enter rise and run. Rise is the vertical change, run the horizontal change. Use the same unit for both.
  2. Or use two points. Switch to two points to enter (x₁, y₁) and (x₂, y₂); rise = y₂ − y₁ and run = x₂ − x₁.
  3. Read the slope. You get m as a fraction and decimal, the grade in percent, the angle and the line length.

Slope, explained step by step

The rise over run formula

Slope m = rise ÷ run. A ramp that climbs 3 units over a horizontal distance of 12 has a slope of 3/12 = 1/4 = 0.25. As a grade that is 25%, and the angle is arctan(0.25) = 14.04°. The sloped length is √(3² + 12²) = 12.37.

With two points, rise = y₂ − y₁ and run = x₂ − x₁. For (1, 2) and (5, 8): rise 6, run 4, so m = 6/4 = 3/2 = 1.5, and the line is y = 1.5x + 0.5. A negative slope goes down from left to right; a run of 0 gives a vertical line with an undefined slope.

Rise over run vs grade and angle

Rise over run is the slope itself; percent grade is the same number × 100, and the angle is its arctangent. They are not proportional: a 100% grade is a 45° angle, not 90°. To convert between ratio, grade, angle and roof pitch without drawing a triangle, use the slope, grade and angle calculator.

More in Calculators.

Frequently Asked Questions

What is rise over run? +
It is the slope of a line: the vertical change (rise) divided by the horizontal change (run).
How do I find the slope from two points? +
Subtract the y-values and the x-values: m = (y₂ − y₁) ÷ (x₂ − x₁).
What if the run is zero? +
The line is vertical and the slope is undefined. The calculator tells you instead of dividing by zero.
How do I turn slope into a percentage? +
Multiply the slope by 100. A slope of 0.08 is an 8% grade.
How do I turn slope into an angle? +
Take the arctangent: angle = arctan(rise ÷ run). A slope of 1 is 45°.
Can the slope be negative? +
Yes. A negative slope means the line goes down as you move to the right.