Slope Calculator

Calculate the slope, angle, and equation of a line from two points or from one point and slope

Calculate the slope, angle, and equation of a line from two points or from a point and slope.

About Slope

Formula

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

Slope Types:

  • Positive: Line rises left to right
  • Negative: Line falls left to right
  • Zero: Horizontal line
  • Undefined: Vertical line

Common Angles:

0° = 0
30° ≈ 0.577
45° = 1
60° ≈ 1.732

Applications:

  • • Road and ramp gradients
  • • Roof pitch calculations
  • • Linear function analysis
  • • Rate of change problems

Slope Calculator