Slope
Learning goals
- Measure slope as rise over run
- Compute in a consistent order
- Explain why every pair of points on a line agrees
- Classify a slope as positive, negative, zero or undefined
- Read a slope off a graph with a slope triangle
- Say why a vertical line has no slope, not an infinite one
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, how far you move left or right. The rise is the vertical change, how far you move up or down over that same trip. The tilt of the line is captured by comparing the two. A big rise for a small run is steep; a small rise for a big run is gentle. We compare them as a ratio, rise divided by run, and give that ratio a name.
The slope of a line is its rise divided by its run, measured between any two points on the line:
The slope is written with the letter . The word “rise” stays honest even when a line goes downhill: a downhill move counts as a negative rise, so the slope simply comes out negative. The picture below shows the run and the rise as the two legs of a right triangle drawn under a line.
For the line drawn above, going from the lower point to the upper one you move to the right and up, so its slope is . This is the same equal step from the last lesson, now measured. There the height changed by a fixed amount each time rose by . The slope is that fixed step, the amount rises for a run of exactly one unit. A line has just one slope, and once you know it you know the tilt exactly.
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:
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
The formula uses two points, but a line has infinitely many. If you and a friend each pick a different pair of points on the same line, do you get the same slope? You must, or “the slope of the line” would be a meaningless phrase. Here is why the answer is always yes.
Why the slope does not depend on which two points you choose#
The key fact from the last lesson is that the graph is straight because it has a constant rate. A constant rate means the rise is always the same fixed multiple of the run. Doubling the run doubles the rise, tripling the run triples it, and in general, for one fixed number that belongs to this particular line,
That single number is the rise you get from a run of . The straightness of the line is exactly the promise that never changes as you move along.
Now feed two points and into the slope formula. Their run is and their rise is , and by the fact above the rise is times the run:
So the slope the formula reports is
The two points canceled out completely. Whatever pair you chose, the slope comes out as the same number , so the line really does have one slope, and the formula finds it every time.
There is a matching picture. Any two points on the line are the ends of a right triangle whose horizontal leg is the run and whose vertical leg is the rise. Picking a different pair of points draws a larger or smaller triangle. But every point sits on the same straight line, so all of these triangles are the same shape, scaled copies of one another. A larger triangle has a proportionally larger rise and run, so the ratio of rise to run does not change. Bigger triangle, bigger rise and run in the same proportion, same slope.
The proof says the two triangles must give the same slope, and the picture above shows one case of it. The figure below lets you test the claim yourself, because the rise and the run are separate controls. You set each one, and the line and its staircase are redrawn to match.
Start at a rise of over a run of and read the line. Now set the rise to and the run to . The staircase doubles in size, but the line does not move at all, and the readout says why: reduces to , the same slope. Then try the whole family at once by holding the rise equal to the run: over , over , on up to over . The staircase grows six times over and the line never budges, because every one of those fractions is . Six different triangles, six different pairs of points, one line. That is the proof above, done with your hands.
Then take the rise down through , and with the run held at . At a rise of the line is flat and the staircase’s upright leg vanishes. That is what a slope of looks like: run as far as you like and the height never changes. Below that the line falls to the right, and the readout swaps “up” for “down” without the arithmetic changing at all. The one slope you cannot reach here is the undefined one, and that is deliberate. It would need a run of , and the control stops at for the same reason the formula does.
Line explorer
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.
Positive, negative, zero, and undefined slope
The sign of the slope tells you the line’s direction, and two special cases push the formula to its edges.
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 rise by nothing, and their slope is .
An undefined slope is the vertical case, and it is the one place the formula refuses to answer. A vertical line never changes its -coordinate, so between any two of its points the run is :
Dividing by zero has no meaning, since no number multiplied by can give a nonzero rise. So a vertical line has no slope value at all, and we say its slope is undefined. It is tempting to call it “infinite,” but infinity is not a number and the division simply has no result. Notice the sharp contrast with a horizontal line: a horizontal line has slope exactly , a perfectly good number, while a vertical line has no slope at all. Flat and upright are opposites here, not near-misses.
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 pairs sharing a -coordinate give slope , and with gives the defined slope .
Reading slope from a graph
When a line is already drawn for you, you can read its slope straight off the grid without any coordinates, by building a slope triangle. Pick two points where the line crosses grid corners, then count.
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
The line above crosses grid corners at and . Start at the left point and count. The run is units to the right, and to get back to the line you drop unit, so the rise is . The slope is the rise over the run:
The negative sign is no surprise, because the line falls as you move to the right. As a check, the slope formula on the same two points gives , matching the count.
Stepping along a line from its slope
Slope also runs in reverse. 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. This stays entirely inside this lesson: you are locating points on the line from its slope, not writing down the line’s equation, which is the next lesson’s task.
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 .