March 2025

Slope and Linear Equations: y = mx + b Explained

A linear equation graphs as a straight line. The most useful form is y = mx + b, where m is the slope and b is the y-intercept.

Slope (m)

Slope measures how steep a line is. It's "rise over run" — how much y changes when x increases by 1.

slope = rise ÷ run = (change in y) ÷ (change in x) = (y₂ − y₁) ÷ (x₂ − x₁)

Example: Find slope between (1, 2) and (4, 8)

m = (8 − 2) ÷ (4 − 1) = 6 ÷ 3 = 2

Slope = 2 means: for every 1 unit right, the line goes up 2 units.

Types of Slope

y-Intercept (b)

The y-intercept is where the line crosses the y-axis (when x = 0). In y = mx + b, b is that value.

Example: y = 3x + 5 → slope = 3, y-intercept = 5. The line crosses the y-axis at (0, 5).

Writing the Equation from Two Points

Example: Line passes through (2, 3) and (4, 7)

Step 1: Find slope.

m = (7 − 3) ÷ (4 − 2) = 4 ÷ 2 = 2

Step 2: Use one point and slope in y = mx + b to find b.

3 = 2(2) + b → 3 = 4 + b → b = −1

Equation: y = 2x − 1

Point-Slope Form

When you know one point (x₁, y₁) and the slope m:

y − y₁ = m(x − x₁)

Example: Line through (3, 4) with slope 5 → y − 4 = 5(x − 3). You can simplify to y = 5x − 11.

Parallel and Perpendicular Lines

Example: A line with slope 2 is perpendicular to a line with slope −½, since 2 × (−½) = −1.

Common mistakes

Rise and run order: Slope = rise / run = (y&sub2; − y&sub1;) / (x&sub2; − x&sub1;). Don't swap x and y.

Negative slope: If the line goes down from left to right, the slope is negative. Make sure you preserve the negative sign.

More examples

Example: Find the slope between (2, 3) and (6, 11).

m = (11 − 3) / (6 − 2) = 8/4 = 2

Example: Write the equation of a line with slope 3 passing through (1, 5).

y − 5 = 3(x − 1)
y = 3x − 3 + 5
y = 3x + 2

Practice problems

1. Find the slope between (0, 4) and (3, 10).

Show answer
m = (10 − 4) / (3 − 0) = 6/3 = 2

2. What is the y-intercept of y = −2x + 7?

Show answer
b = 7. The line crosses the y-axis at (0, 7).

3. Write the equation through (2, 1) with slope −3.

Show answer
y − 1 = −3(x − 2) → y = −3x + 7

Try Arithmia