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.
Enter numbers for every field.
Show the working
How to calculate slope from rise over run
- Enter rise and run. Rise is the vertical change, run the horizontal change. Use the same unit for both.
- Or use two points. Switch to two points to enter (x₁, y₁) and (x₂, y₂); rise = y₂ − y₁ and run = x₂ − x₁.
- 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
- Two ways to enter — Rise and run, or two coordinate points with the line equation y = mx + b.
- Simplified fraction — 6 over 8 is shown as 3/4, so the slope stays exact.
- Grade, angle and length — Percent grade, angle in degrees and the hypotenuse from Pythagoras.
- Live diagram — A right triangle drawn to scale, with rise and run labelled.
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.