Slope
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Measure slope as rise over run
- Compute in a consistent order
- Explain why every pair of points on a nonvertical line agrees
- Classify a slope as positive, negative, zero, or undefined, and say why a vertical line has none
- Read a slope from a graph, and use it to find another point on the line
Rise over run
To measure how a line tilts, follow it from one point to another. Then split the trip into two moves: how far across, and how far up or down.
The run is the horizontal change: right is positive and left is negative. The rise is the vertical change: up is positive and down is negative. A big rise over a small run makes a steep line.
For example, a move units right and units up gives a rise-to-run ratio of . This ratio is the line’s slope, written :
The run must be nonzero. This is why we set vertical lines aside for now.
A slope of also means a rise of for a run of . Slope is the fixed change in for each unit increase in . In the previous lesson, rose for each unit step right, so its slope is .
When the coordinates measure quantities, slope measures a rate of change. If a water level rises centimeters in minutes at a steady rate, its height-versus-time graph has slope centimeters per minute. The units come from height divided by time. For a physical ramp, measure rise and run in the same length unit before comparing its steepness.
The slope formula
Reading rise and run off a picture is fine when a graph is in front of you. But usually you are handed two points as numbers and want the slope without drawing anything. The rise and run are just differences of coordinates, so the slope becomes a short formula.
Take two points and on the line. Moving from the first to the second, the vertical change (the rise) is , and the horizontal change (the run) is . Dividing gives the slope, provided :
The subscripts are just labels that keep the two points apart: is “point one” and is “point two.” The one rule to respect is order. Subtract the coordinates in the same order on the top and the bottom. If sits on top, then must sit on the bottom, never .
Worked example 1 Find the slope through and
Label the points and , then substitute into the formula, keeping the same order on top and bottom.
The slope is . The line rises units for every unit it runs, so it climbs fairly steeply from left to right.
Worked example 2 Find the slope through and
Take and . Substitute carefully, watching the signs of the negative coordinates.
The slope is . It is negative, so the line falls as you move to the right. To see that the order does not matter, swap the labels and put first:
the same answer.
It never matters which point you call first. If you swap them, both the top and the bottom change sign, and a fraction with both signs flipped keeps its value, since . So pick either point as “point one” and simply stay consistent all the way through.
Check your understanding
What is the slope of the line through and ?
Substitute the points into the slope formula, keeping the same order on top and bottom.
The slope is . Dividing run by rise instead would give the wrong value , and is only the rise, not the ratio.
Why every pair of points gives the same slope
A line has infinitely many points. To call a number the slope of the line, we need to know that choosing a different pair gives the same result.
Why the slope does not depend on which two points you choose#
On the line , take the points , and . The first pair gives
while using the first and last points gives
The larger triangle has twice the rise and twice the run, so their ratio stays the same. Geometrically, slope triangles along one slanted line are scaled copies: their corresponding angles agree, and scaling multiplies both legs by the same amount.
Algebra shows why this works for any pair. The previous lesson showed that a nonvertical linear equation can be written , where and are fixed numbers. Two points on it therefore obey and . Subtract:
The points are distinct and the line is nonvertical, so . Dividing gives
The answer depends only on the line, not the chosen points. For a horizontal line, : every pair has zero rise and therefore slope .
The figure below shows the same comparison on another line of slope . Its triangles sit end to end: one has run and rise , and the other has run and rise .
Drag any of the four points along the line, even to the left of , and watch every triangle you make give a slope of . Moving to the left of changes both the rise and run signs, leaving their ratio unchanged. Keep the two points in each pair distinct; if they coincide, the run is zero and that pair cannot measure a slope.
Every pair of points on this line gives the same slope
From A to B: rise 2, run 3, slope 2/3. From C to D: rise 4, run 6, slope 4/6 = 2/3. Both pairs give 2/3: every rise-and-run triangle on one line is the same shape, a scaled copy of any other.
The next figure lets you change the rise and run separately. Start with rise and run , then change them to and . The rise and run both double, but , so the line stays put.
Now hold the run at and change the rise through , and . At the upright leg vanishes and the line is horizontal. Below the line falls to the right.
How rise and run set a line's slope
y = (2/3)x + 1. Rise 2 over run 3 is a slope of 2/3, so from any point on the line, 3 to the right and 2 up lands back on it. And it crosses the vertical axis at 1.
Check your understanding
Two points on a line give a slope triangle with rise and run . Which rise-and-run pair could come from a different pair of points on that same line?
Every pair of points on the same nonvertical line gives the same slope, so the ratio of rise to run must always reduce to .
Only rise and run match: . Rise and run gives slope , rise and run gives (the reciprocal), and rise and run gives a different ratio entirely.
Positive, negative, zero, and undefined slope
The sign of the slope tells you the line’s direction. Horizontal and vertical lines are two special cases.
A positive slope means the rise and run have the same sign: as you move to the right, with increasing, increases too. So the line climbs from lower left to upper right. A negative slope means the rise and run have opposite signs: moving right, decreases, so the line falls from upper left to lower right. The larger the slope in size, the steeper the climb or fall. A slope of rises three units per step across, much steeper than a slope of .
A zero slope is the flat case. A horizontal line never changes height, so between any two of its points the rise is while the run is some nonzero number, and
This matches the horizontal lines from the last lesson: their height is locked, so they never rise, and their slope is .
An undefined slope is the vertical case, the one case where the formula gives no number. A vertical line never changes its -coordinate, so between any two of its points the run is :
No number multiplied by can give the nonzero rise between two distinct points on a vertical line. So division by zero has no value: the slope is undefined, not infinite or zero. Compare this with a horizontal line, whose zero rise divided by a nonzero run gives exactly .
Worked example 3 Slopes of a horizontal and a vertical line
First find the slope through and . Both points have the same height, , so the rise is zero:
The slope is : these points sit on the horizontal line .
Now find the slope through and . Both points have the same -coordinate, , so the run is zero:
Division by zero has no value, so this slope is undefined. These points sit on the vertical line .
Check your understanding
Which pair of points lies on a line with an undefined slope?
A slope is undefined when the run is , which happens when the two points share the same -coordinate (a vertical line).
The points and both have . The other pairs are all defined: and share a -coordinate and give slope ; and give a positive slope of ; and and give a negative slope of .
Reading slope from a graph
When a line is already drawn for you, you can read its slope straight off the grid without being given the points’ coordinates, by building a slope triangle. Pick two points where the line crosses grid corners, then count coordinate units. Check the axis labels: one grid space may stand for several units.
Count the run first: how many units you move right to get from the left point across to under the right point. Then count the rise: how many units up or down you move to reach the line, counting down as negative. The slope is the rise you counted over the run you counted. Reading from left to right keeps the run positive, so the sign comes entirely from the rise. Count upward and the slope is positive; count downward and it is negative.
Worked example 4 Read the slope of the graphed line
In the diagram above, the run from to is and the rise is , giving a slope of . As a check, plug the same two points into the slope formula instead of counting:
The two methods agree, because the run and the rise you count on the grid are the same differences the formula computes from the coordinates.
Check your understanding
In the graph above, start at the left point and count the run, then the rise, over to the right point. What is the slope of this line?
From to : the run is units to the right, and the rise is (down , since the height drops from to ). The slope is the rise over the run: .
Flipping rise and run gives . Flipping and also dropping the negative sign gives . Dropping only the negative sign gives , which would describe a line climbing to the right instead of falling.
Stepping along a line from its slope
You can also use slope the other way around. If you know a line’s slope and one point on it, you can walk to as many other points as you like, with no equation at all. Read the slope as rise over run, then step. From the known point, move right by the run and up or down by the rise, and you land on another point of the line.
For a slope of starting at , step to the right and up to reach , which is also on the line. You can step the other way too: left and down reaches . A whole number slope like is really , a run of and a rise of . So from you step to , then , and onward.
Worked example 5 Step to another point using the slope
A line has slope and passes through . Read the slope as a run of and a rise of (down ). Stepping right from :
So is on the line. Stepping the opposite way, left and up :
So is on the line as well. Reversing both parts of the step keeps the same slope.
Check your understanding
A line has slope and passes through . Which of these points is also on the line?
Read slope as : a run of and a rise of . Step one unit right and three up from .
So is on the line. The choice only changes , only changes , and steps up by instead of .