MathPath
Grades 1–13 Math Hub
Grades 8–9 · Algebra I · Formula Deep Dive

Slope-Intercept Form ($y = mx + b$): Guide & Examples

Slope-intercept form is the fastest way to graph a straight line or model a constant-rate word problem: $m$ gives the rate of change and $b$ gives the starting value on the y-axis.

$$y = mx + b$$

Variables: $m$ = slope (rate of change), $b$ = y-intercept.

When to use: Graphing straight lines or finding the equation of a line from its slope and y-intercept.

Graphing Directly from $m$ and $b$

xy-5-3-1135-3-1135(0,3)(4,1)

Graph of $y = -\frac{1}{2}x + 3$: start at y-intercept $(0, 3)$, then move down $1$ unit and right $2$ units (or down $2$, right $4$) to reach $(4, 1)$.

Derivation from the Slope Formula

Slope-intercept form is simply the Slope Formula applied to the y-intercept $(0, b)$ and any general point $(x, y)$ on the line.

  1. Start with the slope formula using $(x_1, y_1) = (0, b)$ and $(x_2, y_2) = (x, y)$: $m = \frac{y - b}{x - 0}$.
  2. Simplify the denominator: $m = \frac{y - b}{x}$.
  3. Multiply both sides by $x$: $mx = y - b$.
  4. Add $b$ to both sides to isolate $y$: $y = mx + b$.

Key Forms & Quick Conversions

Standard Form to Slope-Intercept

Given $Ax + By = C$, solve for $y$: $y = -\frac{A}{B}x + \frac{C}{B}$.

Proportional Line ($b = 0$)

$y = mx$ passes straight through the origin $(0, 0)$.

Horizontal Line ($m = 0$)

$y = b$ has constant height $b$ for every $x$.

Parallel vs. Perpendicular

Parallel lines share the same $m$; perpendicular lines have negative reciprocal slopes ($m_2 = -\frac{1}{m_1}$).

Step-by-Step Worked Examples

Example 1: Converting Standard Form to Slope-Intercept Form

Problem: Rewrite $3x - 2y = 10$ in slope-intercept form and identify $m$ and $b$.
  1. Subtract $3x$ from both sides: $-2y = -3x + 10$.
  2. Divide every term by $-2$: $y = \frac{3}{2}x - 5$.
  3. Read off the parameters: slope $m = \frac{3}{2}$ and y-intercept $b = -5$ (point $(0, -5)$).

Example 2: Writing an Equation from Two Points

Problem: Write the equation of the line through $(2, 5)$ and $(6, 13)$.
  1. Find the slope: $m = \frac{13 - 5}{6 - 2} = \frac{8}{4} = 2$.
  2. Plug $m = 2$ and $(2, 5)$ into $y = mx + b$: $5 = 2(2) + b \Rightarrow b = 1$.
  3. Write the final equation: $y = 2x + 1$. Verify with $(6, 13)$: $2(6) + 1 = 13$ ✓.

Common Mistakes to Avoid

Mistake 1: Forgetting to Divide ALL Terms When Isolating $y$

✗ Wrong: Turning $2y = 4x + 6$ into $y = 2x + 6$ by dividing only $4x$ by $2$.
✓ Correct: Divide every term on both sides by $2$: $y = 2x + 3$.

Why: Division distributes over the entire right-hand side; leaving the constant untouched shifts the line vertically.

Mistake 2: Dropping the Negative Sign on $b$

✗ Wrong: Reading the y-intercept of $y = 4x - 7$ as $+7$.
✓ Correct: Rewrite as $y = 4x + (-7)$, so the y-intercept is $b = -7$, i.e. $(0, -7)$.

Why: The sign in front of the constant belongs to $b$.

Frequently Asked Questions

Can every straight line be written in $y = mx + b$ form?

Every non-vertical line can. Vertical lines have undefined slope and are written as $x = c$ instead.

What do $m$ and $b$ mean in a real-world word problem?

$b$ is the starting amount (when $x = 0$, such as a flat fee), and $m$ is the constant rate of change (such as cost per hour or miles per minute).

How do I graph $y = mx + b$ quickly?

Plot $(0, b)$ on the y-axis first, then use the slope $m = \text{rise}/\text{run}$ from that point to plot a second point and connect them.

Practice & Related Resources

Apply Slope-Intercept Form of a Line on interactive problems, printable PDF worksheets, and calculators.

Slope Formula (Two Points) →Worked Examples: Solving Linear Equations →Grade 8 Linear Functions Quiz →Open Algebra Calculator → ← Back to Algebra Formulas Cheat Sheet