Menu

Slope From Two Points

Part of the Graphs & Systems section of Coddy's Algebra journey. Lesson 9 of 61.

You can find the rise and the run by subtracting coordinates. This gives the slope formula. For a line through two points, the slope is the difference of the y values divided by the difference of the x values. Subtract in the same order on the top and on the bottom:

m=y⋅2−y⋅1x⋅2−x⋅1m = \frac{y\cdot 2-y\cdot 1}{x\cdot 2-x\cdot 1}

For the line through (2, 7) and (5, 1), take (5, 1) as the second point: m=1−75−2=−63=−2m = \frac{1-7}{5-2} = \frac{-6}{3} = -2. You can also take (2, 7) as the second point, and the answer is the same: 7−12−5=6−3=−2\frac{7-1}{2-5} = \frac{6}{-3} = -2. Either order works, as long as you use the same order on the top and on the bottom.

Do not mix the two orders. If you write y⋅2−y⋅1y\cdot 2-y\cdot 1 on top and x⋅1−x⋅2x\cdot 1-x\cdot 2 on the bottom, the slope comes out with the wrong sign. Choose one order, and use it for both subtractions.

challenge icon

Challenge

Easy

Find the slope m of the line through (3, 8) and (5, 2).

Try it yourself

Find the slope m

All lessons in Graphs & Systems