Understand Slope of a Line
As we’ve been graphing linear equations, we’ve seen that some lines slant up as they go from left to right and some lines slant down. Some lines are very steep and some lines are flatter. What determines whether a line slants up or down, and if its slant is steep or flat?
The steepness of the slant of a line is called the slope of the line. The concept of slope has many applications in the real world. The pitch of a roof and the grade of a highway or wheelchair ramp are just some examples in which you literally see slopes. And when you ride a bicycle, you feel the slope as you pump uphill or coast downhill.
Use geoboards to model slope
Using rubber bands on a geoboard gives a concrete way to model lines on a coordinate grid. By stretching a rubber band between two pegs, we can discover how to find the slope of a line.
We start by stretching a rubber band between two pegs to make a line, as shown below.
Does it look like a line? Now we stretch one part of the rubber band straight up from the left peg and around a third peg to make the sides of a right triangle. We carefully make a angle around the third peg, so that one side is vertical and the other is horizontal.
To find the slope of the line, we measure the distance along the vertical and horizontal legs of the triangle. The vertical distance is called the rise and the horizontal distance is called the run, as shown below.
It may help to remember the rise like a hot air balloon that goes straight up, as if along the , and the run like a jogger who runs straight across, as if along the .
On our geoboard, the rise is units because the rubber band goes up spaces on the vertical leg. Be sure to count the spaces between the pegs rather than the pegs themselves! The rubber band goes across spaces on the horizontal leg, so the run is units.
The slope of a line is the ratio of the rise to the run. So the slope of our line is . In mathematics, the slope is always represented by the letter .
When we work with geoboards, it is a good idea to get in the habit of starting at a peg on the left and connecting to a peg to the right, then stretching the rubber band to form a right triangle. If we start by going up, the rise is positive, and if we stretch it down, the rise is negative. We count the run from left to right, so the run is always positive. Since the slope formula has rise over run, it may be easier to always count out the rise first and then the run.
Example. What is the slope of the line on the geoboard shown?
Use the definition of slope, . Start at the left peg and make a right triangle by stretching the rubber band up and to the right to reach the second peg. The rise is units and the run is units.
The slope is .
A geoboard triangle has a rise of units and a run of units, both counted left to right and going up. What is the slope of the line?
Slope is rise over run.A geoboard triangle has a rise of units and a run of units, both counted left to right and going up. What is the slope of the line, written in simplest form?
Slope is rise over run. Simplify the fraction .What is the slope of a line that goes down instead of up? Start at the left peg and make a right triangle by stretching the rubber band to the peg on the right. This time we need to stretch the rubber band down to make the vertical leg, so the rise is negative.
The rise is and the run is , so
The slope is .
Notice that the first line has positive slope and the second line has negative slope. As you read from left to right, a line with positive slope is going up, and a line with negative slope is going down.
A geoboard triangle has a rise of units and a run of units, counted left to right with the vertical leg stretched down. What is the slope of the line?
A downward rise counted left to right is negative, so the slope is negative.Example. Use a geoboard to model a line with slope .
To model a line with a specific slope on a geoboard, we need to know the rise and the run.
So the rise is unit and the run is units. Start at a peg in the lower left of the geoboard. Stretch the rubber band up unit, and then right units.
The hypotenuse of the right triangle formed by the rubber band represents a line with a slope of .
Use the rise-over-run definition of slope: what run pairs with a rise of to model a line with slope ?
Set equal to with rise , and solve for the run.Example. Use a geoboard to model a line with slope .
So the rise is and the run is . Since the rise is negative, we choose a starting peg on the upper left that will give us room to count down. We stretch the rubber band down unit, then to the right units.
The hypotenuse of the right triangle formed by the rubber band represents a line whose slope is .
Use a geoboard model: what is the slope of a line with rise and run ?
Slope is rise over run; a run of means the slope equals the rise.Find the slope of a line from its graph
Now we’ll look at some graphs on a coordinate grid to find their slopes. The method is very similar to what we just modeled on our geoboards.
To find the slope, we must count out the rise and run. But where do we start? We locate any two points on the line, choosing points with coordinates that are integers to make our calculations easier. We then start with the point on the left and sketch a right triangle, so we can count the rise and run.
Example. Find the slope of the line through the points and .
Starting with the point on the left, , sketch a right triangle, going from the first point to the second point, . The rise is units and the run is units.
The slope of the line is . Notice that the slope is positive since the line slants upward from left to right.
Find the slope of the line shown, which passes through and . Read the rise and run off the slope triangle.
Take the ratio of the rise to the run, .Find the slope of the line through the points and .
Start at the point on the left. The rise is and the run is .Find the slope from a graph.
- Locate two points on the line whose coordinates are integers.
- Starting with the point on the left, sketch a right triangle, with the hypotenuse going from the first point to the second point.
- Count the rise and the run on the legs of the triangle.
- Take the ratio of rise to run to find the slope, .
Example. Find the slope of the line shown, which passes through and .
Starting with the point on the left, , sketch a right triangle to . The rise is and the run is .
The slope of the line is . Notice that the slope is negative since the line slants downward from left to right.
What if we had chosen different points on the same line, say and ? Sketching a right triangle from to gives a rise of and a run of :
It does not matter which points you use — the slope of the line is always the same. The slope of a line is constant!
Find the slope of the line shown, which passes through and . Read the rise and run off the slope triangle, then simplify.
Take the ratio and simplify.The lines in the previous examples had with integer values, so it was convenient to use the as one of the points we used to find the slope. In the next example, the is a fraction. The calculations are easier if we use two points with integer coordinates.
Example. Find the slope of the line through and .
Starting at the point on the left, , sketch a right triangle to . The rise is units and the run is units.
The slope of the line is .
Find the slope of the line through the points and .
The rise is and the run is .Find the slope of horizontal and vertical lines
Do you remember what was special about horizontal and vertical lines? Their equations had just one variable:
So how do we find the slope of the horizontal line ? We graph the line, find two points on it, and count the rise and the run. We’ll use the points and .
The rise is (the don’t change) and the run is .
The slope of the horizontal line is .
All horizontal lines have slope . When the are the same, the rise is .
Now we’ll consider a vertical line, such as the line . We’ll use the points and to count the rise and run.
The rise is and the run is (the don’t change).
But we can’t divide by . Division by is undefined. So we say that the slope of the vertical line is undefined. The slope of all vertical lines is undefined, because the run is .
Example. Find the slope of each line: (a) (b) .
(a) is a vertical line, so its slope is undefined.
(b) is a horizontal line, so its slope is .
For the vertical line , any two points have the same -coordinate, so the run is always this value. What is the run?
On a vertical line, the -coordinate never changes between points, so is always — that's why the slope is undefined.Find the slope of the line .
Every horizontal line has the same slope.Here’s a quick way to remember the four slope types: a line that rises to the right has positive slope, a line that falls to the right has negative slope, a horizontal line has zero slope, and a vertical line has undefined slope.
Use the slope formula to find the slope of a line between two points
Sometimes we need to find the slope of a line between two points and we might not have a graph to count out the rise and the run. We could plot the points on grid paper, then count out the rise and the run, but there is a way to find the slope without graphing.
Before we get to it, we need to introduce some new algebraic notation. We have seen that an ordered pair gives the coordinates of a point. But when we work with slopes, we use two points. How can the same symbol be used to represent two different points?
Mathematicians use subscripts to distinguish between the points. A subscript is a small number written to the right of, and a little lower than, a variable.
We will use to identify the first point and to identify the second point. If we had more than two points, we could use , , and so on.
To see how the rise and run relate to the coordinates of the two points, let’s take another look at the slope of the line between the points and .
On the graph, we counted a rise of . The rise can also be found by subtracting the of the points:
We counted a run of . The run can also be found by subtracting the :
We know , so . We rewrite the rise and run by putting in the coordinates: . But is the of the second point, , and is the of the first point, , so we can rewrite the rise using subscript notation: . Also is the of the second point, , and is the of the first point, , so we rewrite the run using subscript notation too: .
We’ve shown that is really another version of . We can use this formula to find the slope of a line when we have two points on the line.
Slope formula. The slope of the line between two points and is
Say the formula to yourself to help remember it: slope is of the second point minus of the first point, over of the second point minus of the first point.
Example. Find the slope of the line between the points and .
We’ll call point #1 and point #2. Use the slope formula and substitute the values.
We can confirm this by counting out the slope on a graph: the rise is and the run is , so .
Find the slope of the line through the given points: and .
. Substitute as point 1 and as point 2.Find the slope of the line through the given points: and .
.How do we know which point to call #1 and which to call #2? Let’s find the slope again, this time switching the names of the points, calling point #1 and point #2:
The slope is the same no matter which order we use the points.
Example. Find the slope of the line through the points and .
We’ll call point #1 and point #2.
Find the slope of the line through the pair of points: and .
. The rise is and the run is .Find the slope of the line through the pair of points: and .
. Watch the signs: and .Graph a line given a point and the slope
In this chapter, we graphed lines by plotting points, by using intercepts, and by recognizing horizontal and vertical lines. Another method we can use to graph lines is the point-slope method. Sometimes we will be given one point and the slope of the line, instead of its equation. When this happens, we use the definition of slope to draw the graph of the line.
Graph a line given a point and a slope.
- Plot the given point.
- Use the slope formula to identify the rise and the run.
- Starting at the given point, count out the rise and run to mark the second point.
- Connect the points with a line.
Example. Graph the line passing through the point whose slope is .
Plot the given point, . Use the slope formula to identify the rise and run: , so the rise is and the run is . Starting at the point we plotted, count out the rise and run to mark the second point: units up and units right, landing on . Then connect the points with a line and draw arrows at the ends to show it continues.
We can check this line by starting at any point on it and counting up and to the right — we should get to another point on the line.
A line passes through the point with slope . Starting at and counting out the rise and run, what point do you land on?
The rise is and the run is . Add the rise to the -coordinate and the run to the -coordinate.Example. Graph the line with and slope .
Plot the given point, the . Use the slope formula: , so the rise is and the run is . Starting at , count down and to the right to mark the second point, . Connect the points with a line.
Graph the line with -intercept and slope by placing two points on the line.
Start at the -intercept . The slope means count down and right to reach the second point.Example. Graph the line passing through the point whose slope is .
Plot the given point. To use the slope formula, write as a fraction: , so the rise is and the run is . Starting at , count up and to the right to mark the second point. Connect the two points with a line.
Graph the line passing through the point with slope . Write as a fraction first: what are the rise and run?
Any whole number can be written as a fraction over .Solve slope applications
There are many applications of slope in the real world. Let’s look at a few.
Example. The pitch of a building’s roof is the slope of the roof. Knowing the pitch is important in climates where there is heavy snowfall — if the roof is too flat, the weight of the snow may cause it to collapse. What is the slope of a roof with a rise of feet and a run of feet?
The slope of the roof is .
Find the slope given the rise and run: a roof with a rise and a run .
Slope is rise over run. Simplify .Find the slope given the rise and run: a roof with a rise and a run .
Slope is rise over run. Simplify .Have you ever thought about the sewage pipes going from your house to the street? Their slope is an important factor in how they carry waste away from your house. Sewage pipes must slope down inch per foot in order to drain properly. What is the required slope?
Since the pipe slopes down, the rise is negative: inch for every foot of run. Converting foot to inches so both measurements are in the same unit,
The slope of the pipe is .
Find the slope of a pipe that slopes down inch per foot. Convert the foot to inches first.
The rise is inch and the run is foot inches. Simplify the fraction.Find the slope of a pipe that slopes down inch per yard. Convert the yard to inches first ( yard inches).
The rise is inch and the run is yard inches. Simplify the fraction.Key terms
slope of a line — the ratio of the rise (vertical change) to the run (horizontal change) between two points on the line, . rise — the vertical change between two points on a line. run — the horizontal change between two points on a line. slope formula — the slope of the line between two points and is .
This section is adapted from Prealgebra 2e, Section 11.4: Understand Slope of a Line by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated the geoboard rubber-band diagrams and coordinate-plane line graphs as accessible inline graphics; omitted the Self Check checklist, Be Prepared quiz, Manipulative Mathematics callouts, media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.