Slope
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, 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 different points on it (except a straight up-and-down line, which we will come back to):
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 that is not vertical has just one slope, and once you know it you know the tilt exactly. A vertical line is the one exception, and you will see why later in this lesson.
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, for any line that is not vertical.
Why the slope does not depend on which two points you choose#
A horizontal line settles the question immediately: every point on it has the same height, so the rise between any two of its points is always , and the slope is always .
For every other nonvertical line, picture two different pairs of points, each pair forming 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. The figure below shows exactly this: two triangles on one line, one twice the size of the other, both reporting the same slope.
Here is the same reason in symbols. The line is straight because it has a constant rate: the rise is always the same fixed multiple of the run. Doubling the run doubles the rise, 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 , and the straightness of the line is the promise that never changes as you move along it.
Feed two different points and into the slope formula. As long as the line is not vertical, two different points on it always have different -coordinates, so is never and the division below is safe. Their run is and their rise is , and by the fact above,
So the slope the formula reports is
The two points canceled out completely. Whatever pair you chose, the formula reports the same number , so every nonvertical line really does have just one slope, and the formula finds it every time.
The proof says the two triangles must give the same slope, and the picture above shows one case of it. In the figure below, all four points ride along one fixed line, so you can test any two pairs you like. Drag any of the four points along the line, even to the left of , and watch every triangle you make give a slope of .
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.
That figure holds the line still and moves the points. The next one works the other way round: 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: reduces to , the same slope. Same line, same slope, a bigger triangle, exactly what the reasoning above predicts.
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.
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.
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, 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 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 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 diagram above already counted a run of and a rise of from to , giving a slope of . As a check, plug the same two points into the slope formula instead of counting:
The two methods agree, so counting a slope triangle and using the formula are really the same calculation seen two different ways.
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
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 .