logoCalculator Hub Pro

Slope Intercept Calculator: Find Equation of a Line

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

Slope Intercept Formula

The equation of a line is typically written as y = mx + b, where:

  • m is the slope (gradient)
  • b is the y-intercept

How to Find the Equation

  1. Calculate Slope (m): (y₂ - y₁) / (x₂ - x₁)
  2. Use one point (x₁, y₁) to solve for b: b = y₁ - m(x₁)
  3. Combine into the final equation.