01 · Learn the idea
Slope tells how steep a line is
The slope of a line is a single number that tells how steep the line is and which way it tilts. You get it by comparing two changes as you move from one point on the line to another.
The change in y is how far you move up or down. It is often called the rise. The change in x is how far you move right or left, often called the run. Slope is the change in y divided by the change in x.
Take the line through (1, 2) and (3, 8). Going from the first point to the second, y changes from 2 to 8, a rise of 8 − 2 = 6. And x changes from 1 to 3, a run of 3 − 1 = 2. The slope is 6/2 = 3. On this line, y goes up 3 every time x goes up 1.
The graph shows this as a right triangle under the line, with a run of 2 along the bottom and a rise of 6 up the side. A triangle like this is called a slope triangle.
With two points written as (x₁, y₁) and (x₂, y₂), the rule looks like the equation shown here.
slope = (y₂ − y₁)/(x₂ − x₁)
02 · Build understanding
Positive, negative and zero slope
Read a line from left to right, the same way you read a sentence.
If the line goes up, the slope is positive. The line through (0, 1) and (2, 5) has slope (5 − 1)/(2 − 0) = 4/2 = 2.
If the line goes down, the slope is negative. The line through (0, 4) and (3, 1) has slope (1 − 4)/(3 − 0) = −3/3 = −1.
If the line is flat, the slope is 0. The line through (−2, −2) and (4, −2) has slope (−2 − (−2))/(4 − (−2)) = 0/6 = 0. The y-value never changes, so the rise is 0.
A bigger number, ignoring the sign, means a steeper line. A slope of 2 is steeper than a slope of −1, and both are steeper than a slope of 0.
- slope 2
- slope −1
- slope 0
03 · Build understanding
Worked example: slope from two points
Find the slope of the line through (−2, 5) and (4, −4).
Step 1: Choose which point is first. Any order works, as long as you keep the same order for y and for x. Let (−2, 5) be the first point and (4, −4) the second.
Step 2: Find the change in y, second minus first: −4 − 5 = −9. The line drops 9 units.
Step 3: Find the change in x, in the same order: 4 − (−2) = 4 + 2 = 6. The line moves 6 units to the right.
Step 4: Divide. The slope is −9/6, which simplifies to −3/2. The line falls 3 units for every 2 units to the right.
Step 5: Check by using the points in the other order. The change in y is 5 − (−4) = 9 and the change in x is −2 − 4 = −6. The slope is 9/(−6) = −3/2 again.
04 · Build understanding
Worked example: slope from a table with units
A water tank drains at a steady rate. A table shows hours: 2, 5, 9 and gallons left: 84, 66, 42. Find the slope and say what it means.
Step 1: Decide which quantity is x and which is y. The gallons depend on the time, so hours are x and gallons are y. Each column of the table is a point: (2, 84), (5, 66) and (9, 42).
Step 2: Pick two points and find the changes. From (2, 84) to (5, 66), the change in y is 66 − 84 = −18 gallons and the change in x is 5 − 2 = 3 hours.
Step 3: Divide. The slope is −18/3 = −6. Its unit is gallons per hour, so the tank loses 6 gallons each hour. The slope is negative because the amount is going down.
Step 4: Check with a different pair. From (5, 66) to (9, 42), the change in y is 42 − 66 = −24 and the change in x is 9 − 5 = 4. The slope is −24/4 = −6, the same as before.
In a table the x-values don't have to be evenly spaced. Here the gaps are 3 hours and 4 hours, so the drops, 18 gallons and 24 gallons, are different. The slope is still the same.
05 · Build understanding
Why any two points give the same slope
The tank example gave −6 from two different pairs of points. That always happens on a straight line, and similar triangles explain why.
The graph shows the line through (0, 1), (4, 3) and (10, 6), with two slope triangles. The small one goes from (0, 1) to (4, 3): a run of 4 and a rise of 2. The large one goes from (4, 3) to (10, 6): a run of 6 and a rise of 3.
Both triangles have a right angle where the run meets the rise. Their bottom sides are both horizontal, so the line crosses them at the same angle. Two triangles with two pairs of equal angles are similar.
Similar triangles have sides in the same ratio. The large triangle is the small one scaled by 1.5, since 4 × 1.5 = 6 and 2 × 1.5 = 3. So rise over run is the same for both: 2/4 = 1/2 and 3/6 = 1/2.
Any slope triangle you draw on this line is similar to these two, so every pair of points gives a slope of 1/2. That is why you are free to pick whichever two points are easiest to read.
06 · Build understanding
Slope and the constant of proportionality
When a line passes through the origin, (0, 0), the relationship is proportional and has the form y = kx. The number k is the constant of proportionality.
On such a line you can use (0, 0) as one of your two points. Trail mix costs $20 for 5 pounds, and 0 pounds cost $0, so the line passes through (0, 0) and (5, 20). The slope is (20 − 0)/(5 − 0) = 20/5 = 4.
Dividing y by x is also how you find the constant of proportionality: 20/5 = 4, or $4 per pound. So for a line through the origin, the slope and the constant of proportionality are the same number.
07 · Build understanding
Mistakes to watch for
Putting the change in x on top. For (1, 2) and (3, 8), dividing the run by the rise gives 2/6 = 1/3. The slope is rise over run, 6/2 = 3.
Subtracting in two different orders. For (1, 2) and (3, 8), writing (8 − 2)/(1 − 3) gives 6/(−2) = −3, which says the line falls. It rises. If you start with the 8 on top, start with the 3 below.
Saying a flat line has no slope. A flat line has a slope, and it is the number 0, because the rise is 0. For (−2, −2) and (4, −2) the slope is 0/6 = 0.
Apply and explain
Your turn
A line passes through (−3, −1), (0, 1) and (6, 5). Aiden finds the slope with the first two points. Bea uses the last two points and says her slope will be bigger because her slope triangle is bigger. Is Bea right? Explain, using both triangles.
Use paper or explain your thinking aloud before opening the solution.
Check your reasoning
Bea is not right. Aiden's triangle from (−3, −1) to (0, 1) has a run of 3 and a rise of 2, so his slope is 2/3. Bea's triangle from (0, 1) to (6, 5) has a run of 6 and a rise of 4, so her slope is 4/6 = 2/3. Her triangle is bigger, but it is similar to Aiden's: both have a right angle and both meet the line at the same angle, and each side of hers is 2 times his. Similar triangles keep the same ratio of rise to run, so the slope is the same.
- Finds a run of 3 and rise of 2 for one triangle and a run of 6 and rise of 4 for the other.
- Shows that both ratios equal 2/3.
- Says the triangles are similar, so the ratio of rise to run does not change with size.
Ready to practice?
Try the questions, get feedback, and review your reasoning.
Find the slope of a line: practice →