This slope intercept form calculator turns two points into the line’s equation y = mx + b — slope, y-intercept and x-intercept included — the form that makes a line’s behavior readable at a glance.

Equation–
Slope m–
y-Intercept b–
x-Intercept–
Angle to x-Axis–

From Two Points to y = mx + b

m = (y₂ − y₁)/(x₂ − x₁), then b falls out by substituting either point: b = y₁ − mx₁. The two numbers are the line’s biography: m is its rate (and direction/vibe — positive climbing, negative falling, zero flat), b is where it crosses the y-axis. Companion tools: the Slope Calculator for rate-only questions and angle/direction work, and data-fitted lines on the Linear Regression Calculator. Part of our Math Calculators collection.

Worked Example (Verified)

  • Points (1, 2) and (3, 8) (widget defaults): m = (8−2)/(3−1) = 3; b = 2 − 3×1 = −1 → y = 3x − 1, crossing y at −1 and x at 1/3, tilted 71.6°
  • Verify by substitution: x=3 → 3×3−1 = 8 ✔ — always check the second point; arithmetic slips announce themselves there
  • Horizontal line through (2, 5) and (7, 5): m = 0, b = 5 → y = 5; no x-intercept because it never descends to the axis
  • Vertical case (x₁ = x₂): answered honestly as x = constant — slope-intercept form has no words for it, a limit worth learning from the tool rather than an error message

The Other Forms (and When Each Wins)

  • Point-slope y − y₁ = m(x − x₁): best for building from a point + slope — and the intermediate step inside this very computation.
  • Standard form Ax + By = C: best for systems of equations and integer-coefficient tidiness.
  • Slope-intercept wins for graphing and reading behavior — m and b are visible, evaluation is one multiply-add, and two lines’ equality/parallelism (same m) is instantly visible.
  • Parallel lines share m; perpendicular lines have slopes multiplying to −1 — the two facts that power most exam questions on this topic.

Related Tools

Frequently Asked Questions

How do you find slope-intercept form from two points?

Slope first: m = (y₂−y₁)/(x₂−x₁). Then substitute one point into y = mx + b and solve for b. For (1, 2) and (3, 8): m = 3, b = 2 − 3 = −1, giving y = 3x − 1 — verified by the second point.

What do m and b mean geometrically?

m is steepness and direction — the y-change per unit x-change (angle = arctan m). b is the height where the line crosses the y-axis. Together they pin the line completely: change either and the line moves.

What if the line is vertical?

It has no slope-intercept form: x₂ − x₁ = 0 makes m undefined. The equation is simply x = (that shared value). This calculator reports it as such instead of forcing a broken formula.

How do I get the x-intercept?

Set y = 0 and solve: x = −b/m (here, 1/3). Horizontal lines (m = 0, b ≠ 0) never cross; the y-axis itself (b = 0) crosses at the origin.

Are parallel and perpendicular slopes related?

Parallel: equal slopes. Perpendicular: negative reciprocals (m₁ × m₂ = −1) — 3 and −1/3 make right angles. Both read straight off this form, one reason it’s the default language of analytic geometry courses.

Is this slope intercept calculator free?

Yes — free, instant, no sign-up.