← High school courses

High school Algebra I

Slope and Slope-Intercept Form Explained

Slope tells you how steep a line is and which way it leans. Slope-intercept form, y = mx + b, packs everything you need to graph a line into one short equation, which makes it one of the most useful tools in Algebra I.

Slope is a rate of change

Slope measures how much a line goes up or down as you move to the right. We call the vertical change the rise and the horizontal change the run, so slope = rise ÷ run. Climbing 3 units while moving 1 unit right gives a slope of 3. Dropping 2 units while moving 4 units right gives −2 ÷ 4 = −1/2.

A positive slope climbs as you read left to right. A negative slope falls. A horizontal line has slope 0 because the rise is 0. A vertical line has an undefined slope because the run is 0 and you cannot divide by zero.

Finding slope from two points

If you know two points (x₁, y₁) and (x₂, y₂), subtract the y-values and subtract the x-values, in the same order: m = (y₂ − y₁) ÷ (x₂ − x₁). It does not matter which point you call first, but you must keep the same order on top and bottom.

Mixing the order, for example using y₂ − y₁ on top and x₁ − x₂ on the bottom, gives the wrong sign.

Slope-intercept form: y = mx + b

In y = mx + b, the number m is the slope and b is the y-intercept, the point where the line crosses the y-axis, which is (0, b). In y = 3x − 2, the slope is 3 and the line crosses the y-axis at −2.

To graph it, plot the point (0, b) first. Then use the slope as a rise-over-run step to find the next point, and draw the line through them. To write an equation, find m, then substitute one known point into y = mx + b and solve for b.

Worked examples

Example 1

Find the equation of the line through (2, 1) and (6, 9).

  1. Slope: (9 − 1) ÷ (6 − 2) = 8 ÷ 4 = 2.
  2. Substitute the point (2, 1) into y = 2x + b: 1 = 2(2) + b, so 1 = 4 + b and b = −3.
  3. Check with the other point: 2(6) − 3 = 9, which matches.

Answer: y = 2x − 3

Example 2

Find the equation of the line through (−1, 5) and (3, −3).

  1. Slope: (−3 − 5) ÷ (3 − (−1)) = −8 ÷ 4 = −2.
  2. Substitute (−1, 5): 5 = −2(−1) + b, so 5 = 2 + b and b = 3.
  3. Check with (3, −3): −2(3) + 3 = −3, which matches.

Answer: y = −2x + 3

Example 3

Find the slope and y-intercept of 3x + 4y = 8.

  1. Get y alone. Subtract 3x from both sides: 4y = −3x + 8.
  2. Divide every term by 4: y = −(3/4)x + 2.

Answer: Slope −3/4, y-intercept 2, which is the point (0, 2).

Common mistakes

Check yourself

  1. Find the slope of the line through (0, 1) and (3, 7).
    Show the answer(7 − 1) ÷ (3 − 0) = 6 ÷ 3 = 2.
  2. What are the slope and y-intercept of y = −(1/2)x + 6?
    Show the answerSlope −1/2 and y-intercept 6.
  3. Write the equation of the line with slope 3 that passes through (0, −2).
    Show the answerThe point is the y-intercept, so y = 3x − 2.

Practice it

Try ten free Algebra I practice questions, each with a hint and an explanation. No account needed.

Practice Algebra I free →

Written by passvana for high school Algebra I students. passvana is independent and not affiliated with any school, district or test publisher.