We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Guías de estudio > Prealgebra

Finding the Slope of a Line From Its Graph

Learning Outcomes

  • Given the graph of a line, determine the slope of the line
  • Identify the slope of a horizontal line given it's equation
  • Identify the slope of a vertical line given it's equation

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.

Doing the Manipulative Mathematics activity "Slope of Lines Between Two Points" will help you develop a better understanding of how to find the slope of a line from its graph. To find the slope, we must count out the rise and the run. But where do we start? We locate any two points on the line. We try to choose 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 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 Solution Locate two points on the graph, choosing points whose coordinates are integers. We will use [latex]\left(0,-3\right)[/latex] and [latex]\left(5,1\right)[/latex]. Starting with the point on the left, [latex]\left(0,-3\right)[/latex], sketch a right triangle, going from the first point to the second point, [latex]\left(5,1\right)[/latex].
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
Count the rise on the vertical leg of the triangle. The rise is [latex]4[/latex] units.
Count the run on the horizontal leg. The run is [latex]5[/latex] units.
Use the slope formula. [latex]m=\frac{\text{rise}}{\text{run}}[/latex]
Substitute the values of the rise and run. [latex]m=\frac{4}{5}[/latex]
The slope of the line is [latex]\frac{4}{5}[/latex] .
  Notice that the slope is positive since the line slants upward from left to right.

try it

[ohm_question]147014[/ohm_question]
 

Find the slope from a graph

  1. Locate two points on the line whose coordinates are integers.
  2. Starting with the point on the left, sketch a right triangle, going from the first point to the second point.
  3. Count the rise and the run on the legs of the triangle.
  4. Take the ratio of rise to run to find the slope. [latex]m=\frac{\text{rise}}{\text{run}}[/latex]
 

example

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

Answer: Solution Locate two points on the graph. Look for points with coordinates that are integers. We can choose any points, but we will use [latex](0, 5)[/latex] and [latex](3, 3)[/latex]. 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
Count the rise – it is negative. The rise is [latex]−2[/latex].
Count the run. The run is [latex]3[/latex].
Use the slope formula. [latex]m=\frac{\text{rise}}{\text{run}}[/latex]
Substitute the values of the rise and run. [latex]m=\frac{-2}{3}[/latex]
Simplify. [latex]m=-\frac{2}{3}[/latex]
The slope of the line is [latex]-\frac{2}{3}[/latex].

  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 [latex]\left(-3,7\right)[/latex] and [latex]\left(6,1\right)[/latex]. 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 Starting at [latex]\left(-3,7\right)[/latex], sketch a right triangle to [latex]\left(6,1\right)[/latex].
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
Count the rise. The rise is [latex]−6[/latex].
Count the run. The run is [latex]9[/latex].
Use the slope formula. [latex]m=\frac{\text{rise}}{\text{run}}[/latex]
Substitute the values of the rise and run. [latex]m=\frac{-6}{9}[/latex]
Simplify the fraction. [latex]m=-\frac{2}{3}[/latex]
The slope of the line is [latex]-\frac{2}{3}[/latex].
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

[ohm_question]147015[/ohm_question]
  The lines in the previous examples had [latex]y[/latex] -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 [latex]y[/latex] -intercept is a fraction. The calculations are easier if we use two points with integer coordinates.  

example

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

Answer: Solution

Locate two points on the graph whose coordinates are integers. [latex]\left(2,3\right)[/latex] and [latex]\left(7,6\right)[/latex]
Which point is on the left? [latex]\left(2,3\right)[/latex]
Starting at [latex]\left(2,3\right)[/latex] , sketch a right angle to [latex]\left(7,6\right)[/latex] 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
Count the rise. The rise is [latex]3[/latex].
Count the run. The run is [latex]5[/latex].
Use the slope formula. [latex]m=\frac{\text{rise}}{\text{run}}[/latex]
Substitute the values of the rise and run. [latex]m=\frac{3}{5}[/latex]
The slope of the line is [latex]\frac{3}{5}[/latex].

 

try it

[ohm_question]147016[/ohm_question]

Finding 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 [latex]y=b[/latex]; all the [latex]y[/latex] -coordinates are the same.
  • vertical line [latex]x=a[/latex]; all the [latex]x[/latex] -coordinates are the same.
So how do we find the slope of the horizontal line [latex]y=4?[/latex] One approach would be to graph the horizontal line, find two points on it, and count the rise and the run. Let’s see what happens. We’ll use the two points [latex]\left(0,4\right)[/latex] and [latex]\left(3,4\right)[/latex] 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
What is the rise? The rise is [latex]0[/latex].
What is the run? The run is [latex]3[/latex].
What is the slope? [latex]m=\frac{\text{rise}}{\text{run}}[/latex]
[latex]m=\frac{0}{3}[/latex]
[latex]m=0[/latex]
The slope of the horizontal line [latex]y=4[/latex] is [latex]0[/latex]. All horizontal lines have slope [latex]0[/latex] . When the [latex]y[/latex] -coordinates are the same, the rise is [latex]0[/latex] .

Slope of a Horizontal Line

The slope of a horizontal line, [latex]y=b[/latex], is [latex]0[/latex].
  Now we’ll consider a vertical line, such as the line [latex]x=3[/latex], shown below. We’ll use the two points [latex]\left(3,0\right)[/latex] and [latex]\left(3,2\right)[/latex] 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
What is the rise? The rise is [latex]2[/latex].
What is the run? The run is [latex]0[/latex].
What is the slope? [latex]m=\frac{\text{rise}}{\text{run}}[/latex]
[latex]m=\frac{2}{0}[/latex]
But we can’t divide by [latex]0[/latex]. Division by [latex]0[/latex] is undefined. So we say that the slope of the vertical line [latex]x=3[/latex] is undefined. The slope of all vertical lines is undefined, because the run is [latex]0[/latex].

Slope of a Vertical Line

The slope of a vertical line, [latex]x=a[/latex], is undefined.
 

example

Find the slope of each line: 1. [latex]x=8[/latex] 2. [latex]y=-5[/latex] Solution 1. [latex]x=8[/latex] This is a vertical line, so its slope is undefined. 2. [latex]y=-5[/latex] This is a horizontal line, so its slope is [latex]0[/latex].
 

try it

[ohm_question]147020[/ohm_question]
 

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
 

Licenses & Attributions

CC licensed content, Original

  • Question ID 147016, 147015, 147014,147013, 147020. Authored by: Lumen Learning. License: CC BY: Attribution.

CC licensed content, Specific attribution