Skip to main content
Mathematics LibreTexts

11.5: Understand Slope of a Line

  • Page ID
    115035
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Be Prepared 11.10

    Before you get started, take this readiness quiz.

    Simplify: 1482.1482.
    If you missed this problem, review Example 4.49.

    Be Prepared 11.11

    Divide: 04,40.04,40.
    If you missed this problem, review Example 7.37.

    Be Prepared 11.12

    Simplify: 15−3,−153,−15−3.15−3,−153,−15−3.
    If you missed this problem, review Example 4.47.

    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

    In this section, we will explore the concepts of 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 on a geoboard, we can discover how to find the slope of a line. And when you ride a bicycle, you feel the slope as you pump uphill or coast downhill.

    Manipulative Mathematics

    Doing the Manipulative Mathematics activity "Exploring Slope" will help you develop a better understanding of the slope of a line.

    We’ll start by stretching a rubber band between two pegs to make a line as shown in Figure 11.17.

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 1 row 4 and the point in column 4 row 2.
    Figure 11.17

    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 as shown in Figure 11.18. We carefully make a 90°90° angle around the third peg, so that one side is vertical and the other is horizontal.

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style triangle connecting three of the three points at column 1 row 2, column 1 row 4,and column 4 row 2.
    Figure 11.18

    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 in Figure 11.19.

    This figure shows two arrows. The first arrow is vertical and is labeled “rise”. The second arrow begins at the end of the first arrow extending to the right and is labeled “run”.
    Figure 11.19

    To help remember the terms, it may help to think of the images shown in Figure 11.20.

    ...
    Figure 11.20

    On our geoboard, the rise is 22 units because the rubber band goes up 22 spaces on the vertical leg. See Figure 11.21.

    What is the run? Be sure to count the spaces between the pegs rather than the pegs themselves! The rubber band goes across 33 spaces on the horizontal leg, so the run is 33 units.

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style triangle connecting three of the three points at column 1 row 2, column 1 row 4, and column 4 row 2. The triangle has a rise of 2 units and a run of 3 units.
    Figure 11.21

    The slope of a line is the ratio of the rise to the run. So the slope of our line is 23.23. In mathematics, the slope is always represented by the letter m.m.

    Slope of a line

    The slope of a line is m=riserun.m=riserun.

    The rise measures the vertical change and the run measures the horizontal change.

    What is the slope of the line on the geoboard in Figure 11.21?

    m=riserunm=riserun

    m=23m=23

    The line has slope23.The line has slope23.

    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 we stretch 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 will count the run from left to right, just like you read this paragraph, so the run will be 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 11.30

    What is the slope of the line on the geoboard shown?

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 1 row 5 and the point in column 5 row 2.
    Answer

    Use the definition of slope.

    m = rise run m = rise run

    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.

    Count the rise and the run as shown.

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style triangle connecting three of the three points at column 1 row 2, column 1 row 5,and column 5 row 2.

    The rise is 3 units . m = 3 run The run is 4 units . m = 3 4 The slope is 3 4 . The rise is 3 units . m = 3 run The run is 4 units . m = 3 4 The slope is 3 4 .

    Try It 11.58

    What is the slope of the line on the geoboard shown?

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 1 row 5 and the point in column 4 row 1.

    Try It 11.59

    What is the slope of the line on the geoboard shown?

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 1 row 4 and the point in column 5 row 3.

    Example 11.31

    What is the slope of the line on the geoboard shown?

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 1 row 3 and the point in column 4 row 4.
    Answer

    Use the definition of slope.

    m = rise run m = rise run

    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 figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style triangle connecting three of the three points at column 1 row 3, column 1 row 4,and column 4 row 4.

    The rise is −1 . m = −1 run The run is 3 . m = −1 3 m = 1 3 The slope is 1 3 . The rise is −1 . m = −1 run The run is 3 . m = −1 3 m = 1 3 The slope is 1 3 .

    Try It 11.60

    What is the slope of the line on the geoboard?

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 1 row 2 and the point in column 4 row 4.

    Try It 11.61

    What is the slope of the line on the geoboard?

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 1 row 1 and the point in column 4 row 5.

    Notice that in the first example, the slope is positive and in the second example the slope is negative. Do you notice any difference in the two lines shown in Figure 11.22.

    ...
    Figure 11.22

    As you read from left to right, the line in Figure A, is going up; it has positive slope. The line Figure B is going down; it has negative slope.

    ...
    Figure 11.23

    Example 11.32

    Use a geoboard to model a line with slope 12.12.

    Answer

    To model a line with a specific slope on a geoboard, we need to know the rise and the run.

    Use the slope formula. m=riserunm=riserun
    Replace mm with 1212. 12=riserun12=riserun

    So, the rise is 11 unit and the run is 22 units.

    Start at a peg in the lower left of the geoboard. Stretch the rubber band up 11 unit, and then right 22 units.

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style triangle connecting three of the three points at column 1 row 3, column 1 row 4,and column 3 row 3.

    The hypotenuse of the right triangle formed by the rubber band represents a line with a slope of 12.12.

    Try It 11.62

    Use a geoboard to model a line with the given slope: m=13.m=13.

    Try It 11.63

    Use a geoboard to model a line with the given slope: m=32.m=32.

    Example 11.33

    Use a geoboard to model a line with slope −14,−14,

    Answer

    Use the slope formula. m=riserunm=riserun
    Replace mm with 1414. 14=riserun14=riserun

    So, the rise is −1−1 and the run is 4.4.

    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 11 unit, then to the right 44 units.

    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style triangle connecting three of the three points at column 1 row 2, column 1 row 3,and column 5 row 3.

    The hypotenuse of the right triangle formed by the rubber band represents a line whose slope is 14.14.

    Try It 11.64

    Use a geoboard to model a line with the given slope: m=−21.m=−21.

    Try It 11.65

    Use a geoboard to model a line with the given slope: m=−13.m=−13.

    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 will be very similar to what we just modeled on our geoboards.

    Manipulative Mathematics

    Example 11.34

    Find the slope of the line shown:

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 6. The y-axis runs from -4 to 2. A line passes through the points “ordered pair 5,  1” and “ordered pair 0, -3”.
    Answer

    Locate two points on the graph, choosing points whose coordinates are integers. We will use (0,−3)(0,−3) and (5,1).(5,1).

    Starting with the point on the left, (0,−3),(0,−3), sketch a right triangle, going from the first point to the second point, (5,1).(5,1).

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 6. The y-axis runs from -4 to 2. A line passes through the points “ordered pair 5,  1” and “ordered pair 0, -3”. Two line segments form a triangle with the line. A horizontal line connects “ordered pair 0, 1” and “ordered pair 5,1 ”. A vertical line segment connects “ordered pair 0, -3” and “ordered pair 0, 1”.
    Count the rise on the vertical leg of the triangle. The rise is 4 units.
    Count the run on the horizontal leg. The run is 5 units.
    Use the slope formula. m=riserunm=riserun
    Substitute the values of the rise and run. m=45m=45
    The slope of the line is 4545.

    Notice that the slope is positive since the line slants upward from left to right.

    Try It 11.66

    Find the slope of the line:

    The graph shows the x y-coordinate plane. The x-axis runs from -8 to 1. The y-axis runs from -1 to 4. A line passes through the points “ordered pair -8,  1” and “ordered pair 0, 3”.

    Try It 11.67

    Find the slope of the line:

    The graph shows the x y-coordinate plane. The x-axis runs from -2 to 6. The y-axis runs from -2 to 4. A line passes through the points “ordered pair 4,  2” and “ordered pair 0, -1”.

    How To

    Find the slope from a graph.

    1. Step 1. Locate two points on the line whose coordinates are integers.
    2. Step 2. Starting with the point on the left, sketch a right triangle, going from the first point to the second point.
    3. Step 3. Count the rise and the run on the legs of the triangle.
    4. Step 4. Take the ratio of rise to run to find the slope. m=riserunm=riserun

    Example 11.35

    Find the slope of the line shown:

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 9. The y-axis runs from -1 to 7. A line passes through the points “ordered pair 4,  2” and “ordered pair 3, 3”.
    Answer

    Locate two points on the graph. Look for points with coordinates that are integers. We can choose any points, but we will use (0, 5) and (3, 3). Starting with the point on the left, sketch a right triangle, going from the first point to the second point.

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 9. The y-axis runs from -1 to 7. A line passes through the points “ordered pair 0,  5” and “ordered pair 3, 3”. Two line segments form a triangle with the line. A horizontal line connects “ordered pair 0, 3” and “ordered pair 3, 3 ”. A vertical line segment connects “ordered pair 0, 3” and “ordered pair 0, 5”. It is labeled “rise”.
    Count the rise – it is negative. The rise is −2.
    Count the run. The run is 3.
    Use the slope formula. m=riserunm=riserun
    Substitute the values of the rise and run. m=−23m=−23
    Simplify. m=23m=23
    The slope of the line is 23.23.

    Notice that the slope is negative since the line slants downward from left to right.

    What if we had chosen different points? Let’s find the slope of the line again, this time using different points. We will use the points (−3,7)(−3,7) and (6,1).(6,1).

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 9. The y-axis runs from -1 to 7. A line passes through the points “ordered pair 0, 5” and  “ordered pair 3, 3”.  .

    Starting at (−3,7),(−3,7), sketch a right triangle to (6,1).(6,1).

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 9. The y-axis runs from -1 to 7. A line passes through the points “ordered pair 0, 5” and  “ordered pair 3, 3”. Two line segments form a triangle with the line. A vertical line connects “ordered pair 0, 3” and “ordered pair 3, 3 ”.  A vertical line segment connects “ordered pair 0, 3” and “ordered pair 0, 5”.
    Count the rise. The rise is −6.
    Count the run. The run is 9.
    Use the slope formula. m=riserunm=riserun
    Substitute the values of the rise and run. m=−69m=−69
    Simplify the fraction. m=23m=23
    The slope of the line is 23.23.

    It does not matter which points you use—the slope of the line is always the same. The slope of a line is constant!

    Try It 11.68

    Find the slope of the line:

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 5. The y-axis runs from -6 to 1. A line passes through the points “ordered pair 3,  -6” and “ordered pair 0, -2”.

    Try It 11.69

    Find the slope of the line:

    The graph shows the x y-coordinate plane. The x-axis runs from -3 to 6. The y-axis runs from -3 to 2. A line passes through the points “ordered pair 5,  -2” and “ordered pair 0, 1”.

    The lines in the previous examples had yy-intercepts with integer values, so it was convenient to use the y-intercept as one of the points we used to find the slope. In the next example, the yy-intercept is a fraction. The calculations are easier if we use two points with integer coordinates.

    Example 11.36

    Find the slope of the line shown:

    The graph shows the x y-coordinate plane. The x-axis runs from 0 to 7. The y-axis runs from 0 to 8. A line passes through the points “ordered pair 2, 3” and “ordered pair 7, 6”.
    Answer

    Locate two points on the graph whose coordinates are integers. (2,3)(2,3) and (7,6)(7,6)
    Which point is on the left? (2,3)(2,3)
    Starting at (2,3)(2,3), sketch a right angle to (7,6)(7,6) as shown below.
    The graph shows the x y-coordinate plane. The x-axis runs from 0 to 7. The y-axis runs from 0 to 8. Two unlabeled points are drawn at  “ordered pair 2, 3” and  “ordered pair 7, 6”.  A line passes through the points. Two line segments form a triangle with the line. A vertical line connects “ordered pair 2, 3” and “ordered pair 2, 6 ”.  It is labeled “rise”. A horizontal line segment connects “ordered pair 2, 6” and “ordered pair 7, 6”. It is labeled “run”.
    Count the rise. The rise is 3.
    Count the run. The run is 5.
    Use the slope formula. m=riserunm=riserun
    Substitute the values of the rise and run. m=35m=35
    The slope of the line is 35.35.

    Try It 11.70

    Find the slope of the line:

    The graph shows the x y-coordinate plane. The x-axis runs from -4 to 2. The y-axis runs from -5 to 2. A line passes through the points “ordered pair -3, -4” and “ordered pair 1, 1”.

    Try It 11.71

    Find the slope of the line:

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 4. The y-axis runs from -2 to 3. A line passes through the points “ordered pair 3, 2” and “ordered pair 1, -1”.

    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.

    • horizontal line y=b;y=b; all the yy-coordinates are the same.
    • vertical line x=a;x=a; all the xx-coordinates are the same.

    So how do we find the slope of the horizontal line y=4?Figure 11.24. We’ll use the two points (0,4)(0,4) and (3,4)(3,4) to count the rise and run.

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 5. The y-axis runs from -1 to 7. A horizontal line passes through the labeled points “ordered pair 0, 4” and “ordered pair 3, 4”.
    Figure 11.24
    What is the rise? The rise is 0.
    What is the run? The run is 3.
    What is the slope? m=riserunm=riserun
    m=03m=03
    m=0m=0

    The slope of the horizontal line y=4y=4 is 0.0.

    All horizontal lines have slope 00. When the yy-coordinates are the same, the rise is 00.

    Slope of a Horizontal Line

    The slope of a horizontal line, y=b,y=b, is 0.0.

    Now we’ll consider a vertical line, such as the line x=3Figure 11.25. We’ll use the two points (3,0)(3,0) and (3,2)(3,2) to count the rise and run.

    The graph shows the x y-coordinate plane. Both axes run from -5 to 5. A vertical line passes through the labeled points “ordered pair 3, 2” and “ordered pair 3, 0”.
    Figure 11.25
    What is the rise? The rise is 2.
    What is the run? The run is 0.
    What is the slope? m=riserunm=riserun
    m=20m=20

    But we can’t divide by 0.0. Division by 00 is undefined. So we say that the slope of the vertical line x=3x=3 is undefined. The slope of all vertical lines is undefined, because the run is 0.0.

    Slope of a Vertical Line

    The slope of a vertical line, x=a,x=a, is undefined.

    Example 11.37

    Find the slope of each line:

    1. x=8x=8
    2. y=−5y=−5
    Answer

    x = 8 x = 8

    This is a vertical line, so its slope is undefined.

    y = −5 y = −5

    This is a horizontal line, so its slope is 0.0.

    Try It 11.72

    Find the slope of the line: x=−4.x=−4.

    Try It 11.73

    Find the slope of the line: y=7.y=7.

    Quick Guide to the Slopes of Lines

    The figure shows 4 arrows. The first rises from left to right with the arrow point upwards. It is labeled “positive”. The second goes down from left to right with the arrow pointing downwards. It is labeled “negative”. The third is horizontal with arrow heads on both ends. It is labeled “zero”. The last is vertical with arrow heads on both ends. It is labeled “undefined.”

    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 (x,y)(x,y) gives the coordinates of a point. But when we work with slopes, we use two points. How can the same symbol (x,y)(x,y) 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.

    • (x1,y1)readxsub1,ysub1(x1,y1)readxsub1,ysub1
    • (x2,y2)readxsub2,ysub2(x2,y2)readxsub2,ysub2

    We will use (x1,y1)(x1,y1) to identify the first point and (x2,y2)(x2,y2) to identify the second point. If we had more than two points, we could use (x3,y3),(x4,y4),(x3,y3),(x4,y4), 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 (2,3)Figure 11.26.

    The graph shows the x y-coordinate plane. The x-axis runs from 0 to 7. The y-axis runs from 0 to 7. A line runs through the labeled points 2, 3 and 7, 6. A line segment runs from the point 2, 3 to the unlabeled point 2, 6. It is labeled y sub 2 minus y sub 1, 6 minus 3, 3. A line segment runs from the point 7, 6 to the unlabeled point 2, 6.  It os labeled x sub 2 minus x sub 1, 7 minus 2, 5.
    Figure 11.26

    Since we have two points, we will use subscript notation.

    (2,3)x1,y1(7,6)x2,y2(2,3)x1,y1(7,6)x2,y2

    On the graph, we counted the rise of 3.3. The rise can also be found by subtracting the y-coordinatesy-coordinates of the points.

    y2y1633y2y1633

    We counted a run of 5.5. The run can also be found by subtracting the x-coordinates.x-coordinates.

    x2x1725x2x1725

    We know m=riserunm=riserun
    So m=35m=35
    We rewrite the rise and run by putting in the coordinates. m=6372m=6372
    But 6 is the yy-coordinate of the second point, y2y2
    and 3 is the yy-coordinate of the first point y1y1.
    So we can rewrite the rise using subscript notation.
    m=y2y172m=y2y172
    Also 7 is the xx-coordinate of the second point, x2x2
    and 2 is the xx-coordinate of the first point x2x2.
    So we rewrite the run using subscript notation.
    m=y2y1x2x1m=y2y1x2x1

    We’ve shown that m=y2y1x2x1m=y2y1x2x1 is really another version of m=riserun.m=riserun. 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 (x1,y1)(x1,y1) and (x2,y2)(x2,y2) is

    m=y2y1x2x1m=y2y1x2x1

    Say the formula to yourself to help you remember it:

    Slope isyof the second point minusyof the first pointSlope isyof the second point minusyof the first point

    overover

    xof the second point minusxof the first point.xof the second point minusxof the first point.

    Manipulative Mathematics

    Example 11.38

    Find the slope of the line between the points (1,2)(1,2) and (4,5).(4,5).

    Answer

    We’ll call (1,2)(1,2) point #1 and (4,5)(4,5)point #2. (1,2)x1,y1and(4,5)x2,y2(1,2)x1,y1and(4,5)x2,y2
    Use the slope formula. m=y2y1x2x1m=y2y1x2x1
    Substitute the values in the slope formula:
    yy of the second point minus yy of the first point m=52x2x1m=52x2x1
    xx of the second point minus xx of the first point m=5241m=5241
    Simplify the numerator and the denominator. m=33m=33
    m=1m=1

    Let’s confirm this by counting out the slope on the graph.

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 7. The y-axis runs from -1 to 7. Two labeled points are drawn at  “ordered pair 1, 2” and  “ordered pair 4, 5”.  A line passes through the points. Two line segments form a triangle with the line. A vertical line connects “ordered pair 1, 2” and “ordered pair 1, 5 ”.  It is labeled “rise”. A horizontal line segment connects “ordered pair 1, 5” and “ordered pair 4, 5”. It is labeled “run”.

    The rise is 33 and the run is 3,3, so

    m = rise run m = 3 3 m = 1 m = rise run m = 3 3 m = 1

    Try It 11.74

    Find the slope of the line through the given points: (8,5)(8,5) and (6,3).(6,3).

    Try It 11.75

    Find the slope of the line through the given points: (1,5)(1,5) and (5,9).(5,9).

    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 to see what happens. Since we will now be counting the run from right to left, it will be negative.

    We’ll call (4,5)(4,5) point #1 and (1,2)(1,2) point #2. (4,5)x1,y1and(1,2)x2,y2(4,5)x1,y1and(1,2)x2,y2
    Use the slope formula. m=y2y1x2x1m=y2y1x2x1
    Substitute the values in the slope formula:
    yy of the second point minus yy of the first point m=25x2x1m=25x2x1
    xx of the second point minus xx of the first point m=2514m=2514
    Simplify the numerator and the denominator. m=−3−3m=−3−3
    m=1m=1

    The slope is the same no matter which order we use the points.

    Example 11.39

    Find the slope of the line through the points (−2,−3)(−2,−3) and (−7,4).(−7,4).

    Answer

    We’ll call (−2,−3)(−2,−3) point #1 and (−7,4)(−7,4) point #2. (−2,−3)x1,y1and(−7,4)x2,y2(−2,−3)x1,y1and(−7,4)x2,y2
    Use the slope formula. m=y2y1x2x1m=y2y1x2x1
    Substitute the values
    yy of the second point minus yy of the first point m=4(−3)x2x1m=4(−3)x2x1
    xx of the second point minus xx of the first point m=4(−3)−7(−2)m=4(−3)−7(−2)
    Simplify. m=7−5m=7−5
    m=75m=75

    Let’s confirm this on the graph shown.

    The graph shows the x y-coordinate plane. The x-axis runs from -8 to 2. The y-axis runs from -6 to 5. Two unlabeled points are drawn at  “ordered pair -7, 4” and  “ordered pair -2, -3”.  A line passes through the points. Two line segments form a triangle with the line. A vertical line connects “ordered pair -7, 4” and “ordered pair -7, -3 ”.  It is labeled “rise”. A horizontal line segment connects “ordered pair -7, -3” and “ordered pair -2, -3”. It is labeled “run”.

    m = rise run m = −7 5 m = 7 5 m = rise run m = −7 5 m = 7 5

    Try It 11.76

    Find the slope of the line through the pair of points: (−3,4)(−3,4) and (2,−1).(2,−1).

    Try It 11.77

    Find the slope of the line through the pair of points: (−2,6)(−2,6) and (−3,−4).(−3,−4).

    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.

    Example 11.40

    Graph the line passing through the point (1,−1)(1,−1) whose slope is m=34.m=34.

    Answer

    Plot the given point, (1,−1).(1,−1).

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 7. The y-axis runs from -3 to 4. A labeled point is drawn at “ordered pair 1, -1”.

    Use the slope formula m=riserunm=riserun to identify the rise and the run.

    m = 3 4 rise run = 3 4 rise = 3 run = 4 m = 3 4 rise run = 3 4 rise = 3 run = 4

    Starting at the point we plotted, count out the rise and run to mark the second point. We count 33 units up and 44 units right.

    The graph shows the x y-coordinate plane. Both axes run from -5 to 5. Two line segments are drawn. A vertical line segment connects the points “ordered pair 1, -1” and “order pair “1, 2”. It is labeled “3”. A horizontal line segment starts at the top of the vertical line segment and goes to the right, connecting the points “ordered pair 1, 2” and “ordered pair 5, 2”. It is labeled “4”.

    Then we connect the points with a line and draw arrows at the ends to show it continues.

    The graph shows the x y-coordinate plane. The x-axis runs from -3 to 5. The y-axis runs from -1 to 7. Two unlabeled points are drawn at  “ordered pair 1, -1” and  “ordered pair 5, 2”.  A line passes through the points. Two line segments form a triangle with the line. A vertical line connects “ordered pair 1, -1” and “ordered pair 1, 2 ”.  A horizontal line segment connects “ordered pair 1, 2” and “ordered pair 5, 2”.

    We can check our line by starting at any point and counting up 33 and to the right 4.4. We should get to another point on the line.

    Try It 11.78

    Graph the line passing through the point with the given slope:

    (2,−2),m=43(2,−2),m=43

    Try It 11.79

    Graph the line passing through the point with the given slope:

    (−2,3),m=14(−2,3),m=14

    How To

    Graph a line given a point and a slope.

    1. Step 1. Plot the given point.
    2. Step 2. Use the slope formula to identify the rise and the run.
    3. Step 3. Starting at the given point, count out the rise and run to mark the second point.
    4. Step 4. Connect the points with a line.

    Example 11.41

    Graph the line with yy-intercept (0,2)(0,2) and slope m=23.m=23.

    Answer

    Plot the given point, the yy-intercept (0,2).(0,2).

    The graph shows the x y-coordinate plane. The x-axis runs from -1 to 4. The y-axis runs from -1 to 3. The point “ordered pair 0, 2” is labeled.

    Use the slope formula m=riserunm=riserun to identify the rise and the run.

    m = 2 3 rise run = −2 3 rise = –2 run = 3 m = 2 3 rise run = −2 3 rise = –2 run = 3

    Starting at (0,2),(0,2), count the rise and the run and mark the second point.

    The graph shows the x y-coordinate plane. Both axes run from -5 to 5. A vertical line segment connects points at “ordered pair 0, 2” and “ordered pair 0, 0” and is labeled “down 2”. A horizontal line segment connects “ordered pair 0, 0” and “ordered pair 0, 3” and is labeled “right 3”.

    Connect the points with a line.

    The graph shows the x y-coordinate plane. Both axes run from -5 to 5. Two labeled points are drawn at  “ordered pair 0, 2” and  “ordered pair 3, 0”.  A line passes through the points. Two line segments form a triangle with the line. A vertical line connects “ordered pair 0, 2” and “ordered pair 0, 0 ”.  A horizontal line segment connects “ordered pair 0, 0” and “ordered pair 3, 0”.

    Try It 11.80

    Graph the line with the given intercept and slope:

    yy-intercept 4,m=524,m=52

    Try It 11.81

    Graph the line with the given intercept and slope:

    xx-intercept −3,m=34−3,m=34

    Example 11.42

    Graph the line passing through the point (−1,−3)(−1,−3) whose slope is m=4.m=4.

    Answer

    Plot the given point.

    The graph shows the x y-coordinate plane. Both axes run from -5 to 5. The point “ordered pair -1, -3” is labeled.
    Identify the rise and the run. m=4m=4
    Write 4 as a fraction. riserun=41riserun=41
    rise=4run=1rise=4run=1

    Count the rise and run.

    The graph shows the x y-coordinate plane. Both axes run from -5 to 5. The y-axis runs from -4 to 2. A vertical line segment connects points at “ordered pair -1,  -3” and “ordered pair -1, 1” and is labeled “up 4”. A horizontal line segment connects “ordered pair -1, 1” and “ordered pair 0, 1” and is labeled “over 1”.

    Mark the second point. Connect the two points with a line.

    The graph shows the x y-coordinate plane. Both axes run from -5 to 5. Two labeled points are drawn at  “ordered pair -1, -3” and  “ordered pair -1, 1”.  A line passes through the points. Two line segments form a triangle with the line. A vertical line connects “ordered pair -1, -3” and “ordered pair -1, 1 ”. It is labeled “up 4” A horizontal line segment connects “ordered pair -1, 1” and “ordered pair 0, 1”. It is labeled “over 1”

    Try It 11.82

    Graph the line passing through the point (−2,1)(−2,1) and with slope m=3.m=3.

    Try It 11.83

    Graph the line passing through the point (4,−2)(4,−2) and with slope m=−2.m=−2.

    Solve Slope Applications

    At the beginning of this section, we said there are many applications of slope in the real world. Let’s look at a few now.

    Example 11.43

    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 the roof shown?

    This figure shows a house with a sloped roof. The roof on one half of the building is labeled “pitch of the roof”. There is a line segment with arrows at each end measuring the vertical length of the roof and is labeled “rise = 9 feet”. There is a line segment with arrows at each end measuring the horizontal length of the root and is labeled “run = 18 feet”.
    Answer

    Use the slope formula. m=riserunm=riserun
    Substitute the values for rise and run. m=9 ft18 ftm=9 ft18 ft
    Simplify. m=12m=12
    The slope of the roof is 1212.

    Try It 11.84

    Find the slope given rise and run: A roof with a rise =14=14 and run =24.=24.

    Try It 11.85

    Find the slope given rise and run: A roof with a rise =15=15 and run =36.=36.

    Have you ever thought about the sewage pipes going from your house to the street? Their slope is an important factor in how they take waste away from your house.

    Example 11.44

    Sewage pipes must slope down 1414 inch per foot in order to drain properly. What is the required slope?

    This figure shows a  right triangle. The short leg is vertical and is labeled “1 over 4 inch”. The long leg labeled “1 foot”.
    Answer

    Use the slope formula. m=riserunm=riserun
    m=14in.1ftm=14in.1ft
    m=14in.1ftm=14in.1ft
    Convert 1 foot to 12 inches. m=14in.12in.m=14in.12in.
    Simplify. m=148m=148
    The slope of the pipe is 148.148.

    Try It 11.86

    Find the slope of the pipe: The pipe slopes down 1313 inch per foot.

    Try It 11.87

    Find the slope of the pipe: The pipe slopes down 3434 inch per yard.

    Media

    Section 11.4 Exercises

    Practice Makes Perfect

    Use Geoboards to Model Slope

    In the following exercises, find the slope modeled on each geoboard.

    203.
    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 1 row 3 and the point in column 5 row 2.
    204.
    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 2 row 4 and the point in column 5 row 2.
    205.
    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 2 row 1 and the point in column 4 row 4.
    206.
    The figure shows a grid of evenly spaced dots. There are 5 rows and 5 columns. There is a rubber band style loop connecting the point in column 2 row 1 and the point in column 4 row 4.

    In the following exercises, model each slope. Draw a picture to show your results.

    207.

    2 3 2 3

    208.

    3 4 3 4

    209.

    1 4 1 4

    210.

    4 3 4 3

    211.

    1 2 1 2

    212.

    3 4 3 4

    213.

    2 3 2 3

    214.

    3 2 3 2

    Find the Slope of a Line from its Graph

    In the following exercises, find the slope of each line shown.

    215.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. The y-axis runs from -10 to 10. A line passes through the points “ordered pair 0, -4” and “ordered pair 10, 0”.
    216.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. The y-axis runs from -10 to 10. A line passes through the points “ordered pair 0, -5” and “ordered pair 3, 0”.
    217.
    The graph shows the x y-coordinate plane. The x-axis runs from -12 to 12. The y-axis runs from -12 to 12. A line passes through the points “ordered pair 0, -1” and “ordered pair 1, 0”.
    218.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. The y-axis runs from -10 to 10. A line passes through the points “ordered pair 0, 3” and “ordered pair 6, 0”.
    219.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. The y-axis runs from -10 to 10. A line passes through the points “ordered pair 0, 2” and “ordered pair 6, 0”.
    220.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. The y-axis runs from -10 to 10. A line passes through the points “ordered pair 0, 2” and “ordered pair 6, 0”.
    221.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. The y-axis runs from -10 to 10. A line passes through the points “ordered pair 0, 6” and “ordered pair 8, 0”.
    222.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. The y-axis runs from -10 to 10. A line passes through the points “ordered pair -1,  0” and “ordered pair 0, -1”.
    223.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. The y-axis runs from -10 to 10. A line passes through the points “ordered pair -4,  0” and “ordered pair -4, 6”.
    224.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. The y-axis runs from -10 to 10. A line passes through the points “ordered pair -2,  0” and “ordered pair 4, 4”.
    225.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. A line passes through the points “ordered pair 0, 4” and “ordered pair 4, -6”.
    226.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. A line passes through the points “ordered pair -8, 8” and “ordered pair 8, -4”.
    227.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. A line passes through the points “ordered pair 1,  4” and “ordered pair 7, 0”.
    228.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. A line passes through the points “ordered pair 0,  3” and “ordered pair 7, 0”.
    229.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. A line passes through the points “ordered pair 2, 0” and “ordered pair 10, 4”.
    230.
    The graph shows the x y-coordinate plane. The x-axis runs from -10 to 10. A line passes through the points “ordered pair 6,  2” and “ordered pair 0, -3”.

    Find the Slope of Horizontal and Vertical Lines

    In the following exercises, find the slope of each line.

    231.

    y = 3 y = 3

    232.

    y = 1 y = 1

    233.

    x = 4 x = 4

    234.

    x = 2 x = 2

    235.

    y = −2 y = −2

    236.

    y = −3 y = −3

    237.

    x = −5 x = −5

    238.

    x = −4 x = −4

    Use the Slope Formula to find the Slope of a Line between Two Points

    In the following exercises, use the slope formula to find the slope of the line between each pair of points.

    239.

    ( 1 , 4 ) , ( 3 , 9 ) ( 1 , 4 ) , ( 3 , 9 )

    240.

    ( 2 , 3 ) , ( 5 , 7 ) ( 2 , 3 ) , ( 5 , 7 )

    241.

    ( 0 , 3 ) , ( 4 , 6 ) ( 0 , 3 ) , ( 4 , 6 )

    242.

    ( 0 , 1 ) , ( 5 , 4 ) ( 0 , 1 ) , ( 5 , 4 )

    243.

    ( 2 , 5 ) , ( 4 , 0 ) ( 2 , 5 ) , ( 4 , 0 )

    244.

    ( 3 , 6 ) , ( 8 , 0 ) ( 3 , 6 ) , ( 8 , 0 )

    245.

    ( −3 , 3 ) , ( 2 , −5 ) ( −3 , 3 ) , ( 2 , −5 )

    246.

    ( −2 , 4 ) , ( 3 , −1 ) ( −2 , 4 ) , ( 3 , −1 )

    247.

    ( −1 , −2 ) , ( 2 , 5 ) ( −1 , −2 ) , ( 2 , 5 )

    248.

    ( −2 , −1 ) , ( 6 , 5 ) ( −2 , −1 ) , ( 6 , 5 )

    249.

    ( 4 , −5 ) , ( 1 , −2 ) ( 4 , −5 ) , ( 1 , −2 )

    250.

    ( 3 , −6 ) , ( 2 , −2 ) ( 3 , −6 ) , ( 2 , −2 )

    Graph a Line Given a Point and the Slope

    In the following exercises, graph the line given a point and the slope.

    251.

    ( 1 , −2 ) ; m = 3 4 ( 1 , −2 ) ; m = 3 4

    252.

    ( 1 , −1 ) ; m = 1 2 ( 1 , −1 ) ; m = 1 2

    253.

    ( 2 , 5 ) ; m = 1 3 ( 2 , 5 ) ; m = 1 3

    254.

    ( 1 , 4 ) ; m = 1 2 ( 1 , 4 ) ; m = 1 2

    255.

    ( −3 , 4 ) ; m = 3 2 ( −3 , 4 ) ; m = 3 2

    256.

    ( −2 , 5 ) ; m = 5 4 ( −2 , 5 ) ; m = 5 4

    257.

    ( −1 , −4 ) ; m = 4 3 ( −1 , −4 ) ; m = 4 3

    258.

    ( −3 , −5 ) ; m = 3 2 ( −3 , −5 ) ; m = 3 2

    259.

    ( 0 , 3 ) ; m = 2 5 ( 0 , 3 ) ; m = 2 5

    260.

    ( 0 , 5 ) ; m = 4 3 ( 0 , 5 ) ; m = 4 3

    261.

    ( −2 , 0 ) ; m = 3 4 ( −2 , 0 ) ; m = 3 4

    262.

    ( −1 , 0 ) ; m = 1 5 ( −1 , 0 ) ; m = 1 5

    263.

    ( −3 , 3 ) ; m = 2 ( −3 , 3 ) ; m = 2

    264.

    ( −4 , 2 ) ; m = 4 ( −4 , 2 ) ; m = 4

    265.

    ( 1 , 5 ) ; m = −3 ( 1 , 5 ) ; m = −3

    266.

    ( 2 , 3 ) ; m = −1 ( 2 , 3 ) ; m = −1

    Solve Slope Applications

    In the following exercises, solve these slope applications.

    267.

    Slope of a roof A fairly easy way to determine the slope is to take a 12-inch12-inch level and set it on one end on the roof surface. Then take a tape measure or ruler, and measure from the other end of the level down to the roof surface. You can use these measurements to calculate the slope of the roof. What is the slope of the roof in this picture?

    The figure shows a wood board at a diagonal representing a side-view slice of a pitched roof. A vertical line segment with arrows on both ends measures the vertical change in height of the roof and is labeled “4 inches”. A level tool is in a horizontal position above the board and above it is a line segment with arrows on both ends labeled “12 inches”.
    268.

    What is the slope of the roof shown?

    The figure shows a  diagonal side-view slice of a pitched roof. A ruler in vertical position is at the bottom of the roof segment and shows unit labels 1 through 8 and extends one further unit. A second ruler starts at the “7” label of the vertical ruler and extends horizontally until it hits the rising roof. The horizontal ruler has unit labels 1 through 11 and extends one further unit.
    269.

    Road grade A local road has a grade of 6%.6%. The grade of a road is its slope expressed as a percent.

    1. Find the slope of the road as a fraction and then simplify the fraction.
    2. What rise and run would reflect this slope or grade?
    270.

    Highway grade A local road rises 22 feet for every 5050 feet of highway.

    1. What is the slope of the highway?
    2. The grade of a highway is its slope expressed as a percent. What is the grade of this highway?

    Everyday Math

    271.

    Wheelchair ramp The rules for wheelchair ramps require a maximum 11 inch rise for a 1212 inch run.

    1. What run must the ramp have to accommodate a 24-inch24-inch rise to the door?
    2. Draw a model of this ramp.
    272.

    Wheelchair ramp A 1-inch1-inch rise for a 16-inch16-inch run makes it easier for the wheelchair rider to ascend the ramp.

    1. What run must the ramp have to easily accommodate a 24-inch24-inch rise to the door?
    2. Draw a model of this ramp.

    Writing Exercises

    273.

    What does the sign of the slope tell you about a line?

    274.

    How does the graph of a line with slope m=12m=12 differ from the graph of a line with slope m=2?m=2?

    275.

    Why is the slope of a vertical line undefined?

    276.

    Explain how you can graph a line given a point and its slope.

    Self Check

    After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.

    .

    On a scale of 1–10, how would you rate your mastery of this section in light of your responses on the checklist? How can you improve this?


    This page titled 11.5: Understand Slope of a Line is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax.

    • Was this article helpful?