Slope Calculator: m, Percentage & Angle

Calculate slope from two points or rise and run. Get slope m, percentage grade and angle in degrees, free and instant.

—

Formula

m = (y2 − y1) ÷ (x2 − x1) = Rise ÷ Run; Slope % = m × 100; Angle = arctan(m) × 180 ÷ π

Examples

InputResult
(0,0) to (4,2)m 0.5 · 50% · 26.57°
rise 1, run 20m 0.05 · 5% · 2.86°
(1,2) to (1,5)undefined slope (vertical line)

Frequently Asked Questions

How do I find slope from two points?

Subtract the y-coordinates to get rise and the x-coordinates to get run, then divide rise by run. For (0,0) and (4,2), m = (2−0) ÷ (4−0) = 0.5.

What does slope percentage mean?

It is how much the ground rises for every 100 units of horizontal distance. A 5% slope rises 5 units per 100 units of run.

How do I convert slope to degrees?

Angle = arctan(rise ÷ run). A 100% slope is arctan(1) = 45°; a 5% slope is about 2.86°.

What happens when the run is zero?

If rise is non-zero, the line is vertical and its slope is undefined. If rise and run are both zero, the two points coincide and no unique slope can be determined.

What slope is allowed for wheelchair ramps?

Many accessibility standards (e.g. ADA in the US) cap ramps at 1:12, which is about 8.33%. Always check the rules that apply to your project.

Related Calculators

X% of Y CalculatorWhat Percent of X is Y?Percentage Change CalculatorCGPA to Percentage CalculatorPercentage to CGPA CalculatorExponential Growth CalculatorReverse Percentage CalculatorPercentage to Marks Calculator