Last updated: March 2, 2026 by Dr. David Park

How to Find the Equation of a Line

Formula

Given two points, find the slope m = (y2-y1)/(x2-x1), then the y-intercept b = y1 - m*x1.

The equation in slope-intercept form is y = mx + b.

Common use cases:

  • Determining trend lines from data points
  • Graphing linear functions
  • Finding intersection points of lines

Frequently Asked Questions

DD

Dr. David Park

Applied Mathematician, PhD Mathematics

David holds a PhD in Applied Mathematics from MIT. He has published research on numerical methods and computational algorithms used in engineering and scientific calculators.

Share & Embed

Was this calculator helpful?

Related Calculators