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 one point and slope.

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

Graphical Representation:

(1, 1)(2, 2)

If the 2 Points are Known

If 1 Point and the Slope are Known

°

About Slope

Slope is a measure of how steep a line is. It represents the ratio of the vertical change (rise) to the horizontal change (run) between any two points on the line.

Slope Types:

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

Common Slopes:

• 0° = 0 (horizontal)
• 30° ≈ 0.577
• 45° = 1 (diagonal)
• 60° ≈ 1.732
• 90° = undefined (vertical)

Applications:

  • • Road gradients
  • • Roof pitches
  • • Ramp inclines
  • • Linear functions
  • • Rate of change

Formulas:

m = (y₂ - y₁) / (x₂ - x₁)
m = tan(θ)
θ = arctan(m)
d = √(Δx² + Δy²)