How to find the slope and equation of a line from two points

Two points determine exactly one line, so the vertical change between them divided by the horizontal change gives the slope, and substituting either point into the slope and intercept form then reveals where the line crosses the vertical axis.

A worked example

Find the line through (1, 2) and (3, 8). The slope is m = (8 − 2) ÷ (3 − 1) = 6 ÷ 2 = 3. Substitute m and the point (1, 2) into y = mx + b: 3(1) + b = 2, so b = 2 − 3 = −1. The equation is y = 3x − 1. Check with the other point: 3(3) − 1 = 8, which matches.

The mistake people actually make

Subtract the coordinates in the same order in the numerator and the denominator. Mixing the order, by starting with the second point on top but the first point underneath, reverses the sign of the slope.

Practice: Linear Relations & Slope