Slope & Line Equation Calculator

Find the slope and equation of a line from two points.

Point 1

Point 2

Slope (m)
Equation (Slope-Intercept Form)

Slope Formula

m = (y₂ − y₁) / (x₂ − x₁)

Types of Slope

  • Positive slope: Line rises left to right
  • Negative slope: Line falls left to right
  • Zero slope: Horizontal line (m = 0)
  • Undefined slope: Vertical line

Equation Forms

  • Slope-intercept: y = mx + b
  • Point-slope: y − y₁ = m(x − x₁)
  • Standard: Ax + By = C