Last updated: March 2, 2026 by Sarah Chen

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

SC

Sarah Chen

Financial Analyst, CFA

Sarah is a Chartered Financial Analyst with over 8 years of experience in investment management and financial modeling. She specializes in retirement planning and compound interest calculations.

Share & Embed

Was this calculator helpful?

Related Calculators