Line Through Two Points

Algebra, Lines

Let's Do Math!

Intro: We compute m, write point–slope, then simplify to y=mx+b.

Worked example

FAQs

Vertical line?

If $x2 = x1$, the slope is undefined. The equation is vertical: $x = constant$ (specifically $x = x1$).

Order of points matters?

No—the same line results. Swapping the points changes numerator and denominator signs but the slope value is unchanged.

Why choose MathGPT?

How this calculator works

Related