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

TEXT

# Finding the Slope of a Line from its Graph

### Learning Outcomes

• Find the slope of a line from its graph
• Find the slope of horizontal and vertical lines
The mathematical definition of slope is very similar to our everyday one. In math, slope is used to describe the steepness and direction of lines.  In this section, we will begin exploring the concept of slope using a geoboard and then we will learn how to measure the slopes of lines on a rectangular coordinate system. 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. We’ll start by stretching a rubber band between two pegs to make a line as shown in the image 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 as shown in the image below. We carefully make a $90^ \circ$ 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. To help remember the terms, it may help to think of the images shown below. On our geoboard, the rise is $2$ units because the rubber band goes up $2$ spaces on the vertical leg. See the image below. What is the run? (Be sure to count the spaces between the pegs rather than the pegs themselves!) The rubber band goes across $3$ spaces on the horizontal leg, so the run is $3$ units. The slope of a line is the ratio of the rise to the run. So the slope of our line is ${\Large\frac{2}{3}}$. In mathematics, the slope is always represented by the letter $m$.

### Slope of a line

The slope of a line is $m={\Large\frac{\text{rise}}{\text{run}}}$. The rise measures the vertical change and the run measures the horizontal change.
What is the slope of the line on the geoboard in the image above?

$m={\Large\frac{\text{rise}}{\text{run}}}$ $m={\Large\frac{2}{3}}$

The line has slope ${\Large\frac{2}{3}}$

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 when we connect the second peg, 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 is 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? Solution Use the definition of slope. [latex-display]m={\Large\frac{\text{rise}}{\text{run}}}[/latex-display] 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. [latex-display]\begin{array}{cccc}\text{The rise is }3\text{ units}.\hfill & & & m={\Large\frac{3}{\text{run}}}\hfill \\ \text{The run is}4\text{ units}.\hfill & & & m={\Large\frac{3}{4}}\hfill \\ & & & \text{The slope is }{\Large\frac{3}{4}}\hfill \end{array}[/latex-display]

### example

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

Answer: Solution Use the definition of slope. [latex-display]m={\Large\frac{\text{rise}}{\text{run}}}[/latex-display] 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. [latex-display]\begin{array}{cccc}\text{The rise is }-1.\hfill & & & m={\Large\frac{-1}{\text{run}}}\hfill \\ \text{The run is}3.\hfill & & & m={\Large\frac{-1}{3}}\hfill \\ & & & m=-{\Large\frac{1}{3}}\hfill \\ & & & \text{The slope is }-{\Large\frac{1}{3}}\hfill \end{array}[/latex-display]

### try it

[ohm_question]147013[/ohm_question]

## Finding the Slope of a Line from its Graph

By just looking at the graph of a line, you can learn some things about its slope, especially relative to other lines graphed on the same coordinate plane. Consider the graphs of the three lines shown below: First, let’s look at lines A and B. If you imagined these lines to be hills, you would say that line B is steeper than line A. Line B has a greater slope than line A. Next, notice that lines A and B slant up as you move from left to right. We say these two lines have a positive slope. Line C slants down from left to right. Line C has a negative slope. Using two of the points on the line, you can find the slope of the line by finding the rise and the run. The vertical change between two points is called the rise, and the horizontal change is called the run. The slope equals the rise divided by the run: $\displaystyle \text{Slope }=\frac{\text{rise}}{\text{run}}$. You can determine the slope of a line from its graph by looking at the rise and run.  (Notice the similarity between the image above and the Geoboard examples we looked at earlier.) One characteristic of a line is that its slope is constant all the way along it. So, you can choose any 2 points along the graph of the line to figure out the slope. Let’s look at an example.

### Example

Use the graph to find the slope of the line.

Answer: Start from a point on the line, such as $(2,1)$ and move vertically until in line with another point on the line, such as $(6,3)$. The rise is 2 units. It is positive as you moved up.

 $\text{rise}=2$ Start from a point on the line, such as $(2,1)$ and move vertically until in line with another point on the line, such as $(6,3)$. The rise is 2 units. It is positive as you moved up. $\text{run}=4$ Next, move horizontally to the point $(6,3)$. Count the number of units. The run is 4 units. It is positive as you moved to the right. $\displaystyle \text{Slope}=\frac{2}{4}=\frac{1}{2}$ $\displaystyle \text{Slope }=\frac{\text{rise}}{\text{run}}$

#### Answer

$\frac{1}{2}$

This line will have a slope of $\displaystyle \frac{1}{2}$ no matter which two points you pick on the line. Try measuring the slope from the origin, $(0,0)$, to the point $(6,3)$. You will find that the $\text{rise}=3$ and the $\text{run}=6$. The slope is $\displaystyle \frac{\text{rise}}{\text{run}}=\frac{3}{6}=\frac{1}{2}$. It is the same! Let’s look at another example.

### Example

Use the graph to find the slope of the two lines.

Answer: Notice that both of these lines have positive slopes, so you expect your answers to be positive.

Blue line
$\text{rise}=4$ Start with the blue line, going from point $(-2,1)$ to point $(-1,5)$. This line has a rise of 4 units up, so it is positive.
$\text{run}=1$ Run is $1$ unit to the right, so it is positive.
$\displaystyle \text{Slope }=\frac{4}{1}=4$ Substitute the values for the rise and run in the formula $\displaystyle \text{Slope }\frac{\text{rise}}{\text{run}}$.
Red line
$\text{rise}=1$ The red line, going from point $(-1,-2)$ to point $(3,-1)$ has a rise of 1 unit.
$\text{run}=4$ The red line has a run of 4 units.
$\displaystyle \text{Slope }=\frac{1}{4}$ Substitute the values for the rise and run into the formula $\displaystyle \text{Slope }\frac{\text{rise}}{\text{run}}$.

#### Answer

The slope of the blue line is $4$ and the slope of the red line is $\frac{1}{4}$.

When you look at the two lines, you can see that the blue line is steeper than the red line. It makes sense the value of the slope of the blue line, $4$, is greater than the value of the slope of the red line, $\displaystyle \frac{1}{4}$. The greater the slope, the steeper the line.

## Finding the Slope of a Line From a Graph

https://youtu.be/29BpBqsiE5w

## Distinguish between graphs of lines with negative and positive slopes

Direction is important when it comes to determining slope. It’s important to pay attention to whether you are moving up, down, left, or right; that is, if you are moving in a positive or negative direction. If you go up to get to your second point, the rise is positive. If you go down to get to your second point, the rise is negative. If you go right to get to your second point, the run is positive. If you go left to get to your second point, the run is negative. In the following two examples, you will see a slope that is positive and one that is negative.

### Example (Advanced)

Find the slope of the line graphed below.

Answer:

 $\text{rise}=4.5$ Start at $(-3,-0.25)$ and rise $4.5$. This means moving 4.5 units in a positive direction. $\text{run}=6$ From there, run $6$ units in a positive direction to $(3,4.25)$. $\displaystyle \text{Slope}=\frac{4.5}{6}=0.75$ $\displaystyle \text{Slope}=\frac{\text{rise}}{\text{run}}$

#### Answer

The slope of the line is $0.75$.

The next example shows a line with a negative slope.

### Example

Find the slope of the line graphed below.

Answer:

 $\text{rise}=-3$ Start at Point A, $(0,4)$ and rise $−3$. This means movin g$3$ units in a negative direction. $\text{run}=2$ From there, run $2$ units in a positive direction to Point B $(2,1)$. $\displaystyle \text{Slope}=\frac{\text{rise}}{\text{run}}$ $\displaystyle \text{Slope}=\frac{\text{rise}}{\text{run}}$

#### Answer

The slope of the line is $-\frac{3}{2}$. NOTE: you could have found the slope by starting at point B, running ${-2}$, and then rising $+3$ to arrive at point A. The result is still a slope of $\displaystyle\frac{\text{rise}}{\text{run}}=\frac{+3}{-2}=-\frac{3}{2}$.

In all of the previous examples of finding the slope of a line, we were given two points.  Now we will look at some examples where we are not automatically given two points on the line. 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: Solution Locate two points on the graph, choosing points whose coordinates are integers. We will use $\left(0,-3\right)$ and $\left(5,1\right)$. Starting with the point on the left, $\left(0,-3\right)$, sketch a right triangle, going from the first point to the second point, $\left(5,1\right)$.
 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={\Large\frac{\text{rise}}{\text{run}}}$ Substitute the values of the rise and run. $m={\Large\frac{4}{5}}$ The slope of the line is ${\Large\frac{4}{5}}$ .
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. $m={\Large\frac{\text{rise}}{\text{run}}}$

### example

Find the slope of the line shown:

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 $(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.

 Count the rise – it is negative. The rise is $−2$. Count the run. The run is $3$. Use the slope formula. $m=\Large\frac{\text{rise}}{\text{run}}$ Substitute the values of the rise and run. $m={\Large\frac{-2}{3}}$ Simplify. $m=-{\Large\frac{2}{3}}$ The slope of the line is $-{\Large\frac{2}{3}}$.

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 $\left(-3,7\right)$ and $\left(6,1\right)$. Starting at $\left(-3,7\right)$, sketch a right triangle to $\left(6,1\right)$.
 Count the rise. The rise is $−6$. Count the run. The run is $9$. Use the slope formula. $m=\Large\frac{\text{rise}}{\text{run}}$ Substitute the values of the rise and run. $m={\Large\frac{-6}{9}}$ Simplify the fraction. $m=-{\Large\frac{2}{3}}$ The slope of the line is $-{\Large\frac{2}{3}}$.
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 $y$ -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 $y$ -intercept is a fraction. The calculations are easier if we use two points with integer coordinates.

### example

Find the slope of the line shown:

Answer: Solution

 Locate two points on the graph whose coordinates are integers. $\left(2,3\right)$ and $\left(7,6\right)$ Which point is on the left? $\left(2,3\right)$ Starting at $\left(2,3\right)$ , sketch a right angle to $\left(7,6\right)$ as shown below.
 Count the rise. The rise is $3$. Count the run. The run is $5$. Use the slope formula. $m=\Large\frac{\text{rise}}{\text{run}}$ Substitute the values of the rise and run. $m={\Large\frac{3}{5}}$ The slope of the line is ${\Large\frac{3}{5}}$.

### try it

[ohm_question]147016[/ohm_question]
In the following video we show another example of how to find the slope of a line given a graph. This graph has a positive slope. https://youtu.be/zPognXmmaEo In the following video we show another example of how to find the slope of a line given a graph. This graph has a negative slope. https://youtu.be/dmla9Lj4rqg

## 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 $y=b$; all the $y$ -coordinates are the same.
• vertical line $x=a$; all the $x$ -coordinates are the same.
So how do we find the slope of the horizontal line $y=4?$ 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 $\left(0,4\right)$ and $\left(3,4\right)$ to count the rise and run.
 What is the rise? The rise is $0$. What is the run? The run is $3$. What is the slope? $m=\Large\frac{\text{rise}}{\text{run}}$ $m={\Large\frac{0}{3}}$ $m=0$
The slope of the horizontal line $y=4$ is $0$. All horizontal lines have slope $0$ . When the $y$ -coordinates are the same, the rise is $0$ .

### Slope of a Horizontal Line

The slope of a horizontal line, $y=b$, is $0$.
Now we’ll consider a vertical line, such as the line $x=3$, shown below. We’ll use the two points $\left(3,0\right)$ and $\left(3,2\right)$ to count the rise and run.
 What is the rise? The rise is $2$. What is the run? The run is $0$. What is the slope? $m=\Large\frac{\text{rise}}{\text{run}}$ $m={\Large\frac{2}{0}}$
But we can’t divide by $0$. Division by $0$ is undefined. So we say that the slope of the vertical line $x=3$ is undefined. The slope of all vertical lines is undefined, because the run is $0$.

### Slope of a Vertical Line

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

### example

Find the slope of each line: 1. $x=8$ 2. $y=-5$

Answer: Solution 1. $x=8$ This is a vertical line, so its slope is undefined. 2. $y=-5$ This is a horizontal line, so its slope is $0$.

### try it

[ohm_question]147020[/ohm_question]

### Quick Guide to the Slopes of Lines

The following example shows you how to determine the slope of horizontal and vertical lines that are plotted on the coordinate axes. https://youtu.be/dJuFWXn7zJM

## Contribute!

Did you have an idea for improving this content? We’d love your input.

## Licenses & Attributions

### CC licensed content, Shared previously

• Determine the Slope of a Line From a Graph (No Formula). Authored by: Mathispower4u. License: CC BY: Attribution.