Slope Calculator

By definition, the slope or gradient of a line describes its steepness, incline, or grade.

m = (y₂ - y₁) / (x₂ - x₁) = tan(θ)

Where m — slope, θ — angle of incline

If the 2 Points are Known

X₁
Y₁
X₂
Y₂

If 1 Point and the Slope are Known

X₁
Y₁
Distance (d)
Slope (m)
OR
Angle (θ)°

About Slope

Slope measures the steepness and direction of a line, denoted by m. It is the change in height (ΔY) over the change in horizontal distance (ΔX), or "rise over run".

  • Increasing line (m > 0): Goes upwards from left to right.
  • Decreasing line (m < 0): Goes downwards from left to right.
  • Horizontal line (m = 0): Constant slope.
  • Vertical line: Undefined slope (ΔX = 0).

Distance between points: d = √(ΔX² + ΔY²). Angle of incline: m = tan(θ).

Calculation Tips

  • Enter valid numbers for coordinates and slope.
  • For 2 points, ensure x₂ ≠ x₁ to avoid undefined slope.
  • Use slope or angle for 1 point calculation.