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:
Locate two points on the graph, choosing points whose coordinates are integers. We will use
and
.
Starting with the point on the left,
, sketch a right triangle, going from the first point to the second point,
.
![]() |
|
Count the rise on the vertical leg of the triangle. | The rise is units. |
Count the run on the horizontal leg. | The run is units. |
Use the slope formula. | |
Substitute the values of the rise and run. | |
The slope of the line is . |
Notice that the slope is positive since the line slants upward from left to right.
try it
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, 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:
Show Solution
Solution
Locate two points on the graph. Look for points with coordinates that are integers. We can choose any points, but we will use
and
. 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 . |
Count the run. | The run is . |
Use the slope formula. | |
Substitute the values of the rise and run. | |
Simplify. | |
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? Let’s find the slope of the line again, this time using different points. We will use the points
and
.

, sketch a right triangle to
.
![]() |
|
Count the rise. | The rise is . |
Count the run. | The run is . |
Use the slope formula. | |
Substitute the values of the rise and run. | |
Simplify the fraction. | |
The slope of the line is . |
try it
The lines in the previous examples had
-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
-intercept is a fraction. The calculations are easier if we use two points with integer coordinates.
example
Find the slope of the line shown:
Show Solution
Solution
Locate two points on the graph whose coordinates are integers. | and |
Which point is on the left? | |
Starting at , sketch a right angle to as shown below. |
![]() |
|
Count the rise. | The rise is . |
Count the run. | The run is . |
Use the slope formula. | |
Substitute the values of the rise and run. | |
The slope of the line is . |
try it
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 ; all the-coordinates are the same.
- vertical line ; all the-coordinates are the same.
So how do we find the slope of the horizontal line
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
and
to count the rise and run.

What is the rise? | The rise is . |
What is the run? | The run is . |
What is the slope? | |
is
.
All horizontal lines have slope
. When the
-coordinates are the same, the rise is
.
Slope of a Horizontal Line
The slope of a horizontal line,, is
.
Now we’ll consider a vertical line, such as the line
, shown below. We’ll use the two points
and
to count the rise and run.

What is the rise? | The rise is . |
What is the run? | The run is . |
What is the slope? | |
. 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
.
Slope of a Vertical Line
The slope of a vertical line,, is undefined.
example
Find the slope of each line:1.
2.
Solution
1.
This is a vertical line, so its slope is undefined.
2.
This is a horizontal line, so its slope is
.
try it
Quick Guide to the Slopes of Lines

Licenses and Attributions
More Study Resources for You
Show More