6.3 The Slope Formula

In the previous lesson, we found the slope of a line using the formula m=\dfrac{\text{rise}}{\text{run}}. In this lesson, we will explore a formula that can be used to help us find the slope of a line when we are given the coordinates of two points on the line.

As covered in the previous lesson, to find the slope of a line, we can identify the rise and run, and then input them into the slope ratio as shown below.

The graph shows the x y coordinate plane. The x-axis runs from 0 to 8 and the y-axis runs from 0 to 7. A line passes through the points (2, 3) and (7, 6). . The rise is 3.
The run is 5.
m=\dfrac{\text{rise}}{\text{run}}
m=\dfrac{3}{5}
Answer the following questions related to the previous example to explore the formula that can be used to find the slope of a line.

a) Label the two points that were used to find the rise and run of the second graph with their respective ordered pairs.
b) How can the y-coordinates of the ordered pairs be used to find the rise of the graph?
c) How can the x-coordinates of the ordered pairs be used to find the run of the graph?
d) Use these two values to find the slope of the line.

 

 

e) Write out a formula that can be used to find the slope of a line when given two points on the line.

 

The Slope Formula

Table 6.3.1
The Slope Formula

The slope of the line between two points \left({x}_{1},{y}_{1}\right) and \left({x}_{2},{y}_{2}\right) is

m=\dfrac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}

Example 1

Use the slope formula to find the slope of the line between the points (1, 2) and (4, 5).

Table 6.3.2
Steps Solution
Label (1, 2) as point 1.
Label (4, 5) as point 2.
It does not matter which point you assign as point 1 and which point you assign as point 2.
\begin{pmatrix}{x}_{1},&{y}_{1}\\ 1, & 2 \end{pmatrix}\begin{pmatrix}{x}_{2}, & {y}_{2} \\ 4, & 5\end{pmatrix}
Use the slope formula. m=\dfrac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}
Substitute the values into the formula. m=\dfrac{5-2}{4-1}
Simplify the numerator and the denominator. m=\dfrac{3}{3}
If possible, simplify. m=1
Practice 1

Use the slope formula to find the slope of the line passing through the following pairs of points.

a) (–2, –3) and (–7, 4)

 

 

 

b) (–2, 6) and (–3, –4)

 

 

 

Finding an Unknown Coordinate Using the Slope

At times, you will be given the slope of a line with three of the four values of the coordinates of two points on the line. These values can be used to find the value of the unknown coordinate.

Example 2

The graph of a line goes through the points (1, n) and (5, 9). If the slope of the line is 1, what is the value of n?

Table 6.3.3
Steps Solution
Label (5, 9) as point 1.
Label (1, n) as point 2.
\begin{pmatrix}{x}_{1},&{y}_{1}\\ 5, & 9 \end{pmatrix}\begin{pmatrix}{x}_{2}, & {y}_{2} \\ 1, & n\end{pmatrix}
Substitute the values into the formula. 1=\dfrac{n-9}{1-5}
Algebraically solve the equation. 1=\dfrac{n-9}{-4}
-4=n-9
5=n
Practice 2

Find the unknown value in each question.

a) (3, 7) and (9, n), m=-2

 

 

 

 

b) (n, 5) and (4, 1), m=\dfrac{-1}{3}

 

 

 

 

Slope Word Problems

Practice 3

A hiker climbs from the base of a hill at point (0, 500) to the top of the hill at point (55, 800). What is the slope of the hill?

 

 

Practice 4

A construction crew is building a road. The elevation of the road increases from 50 metres to 150 metres as the horizontal distance increases from 2 kilometres to 8 kilometres. What is the slope of the road?

 

 

Homework 

  1. Use the slope formula to find the slope of the line that passes through each pair of points.

    a) (1, 5) and (5, 9)

     

     

    b) (–3, 4) and (2, –1)

     

     

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

     

     

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

     

     

    e) (–3, 3), (4, –5)

     

     

    f) (4, –5), (1, –2)

     

     

    g) (0, –27) and (82, –3)

     

     

    h) (–4, –10) and (–35, –10)

     

     

    i) (135, 214) and (96, 172)

     

     

    j) (–423, 310) and (561, –465)

     

     

  2. Find the unknown value in each question.

    a) (2, 3) and (5, n), m=2

     

     

     

     

    b) (–2, n) and (2, 6), m=3

     

     

     

     

    c) (n, 3) and (3, –1), m=\dfrac{-1}{2}

     

     

     

     

    d) (1, –4) and (n, –2), m=\dfrac{2}{5}

     

     

     

     

    e) (0, 5) and (n, 1), m=-1

     

     

     

     

    f) (–1, n) and (5, –6), m=\dfrac{-4}{3}

     

     

     

     

    g) (1, 2) and (n, 6), m=\dfrac{2}{3}

     

     

     

     

    h) (–3, n) and (2, 7), m=\dfrac{12}{5}

     

     

     

     

  3. Two adventurous hikers, Amelia and Ada, are racing to the top of two different hills in the region: Eagle Peak and Thunder Ridge. Both hills are known for their challenging slopes, but one is steeper than the other. Eagle Peak starts at the point (1, 3) and reaches the summit at the point (4, 9). Thunder Ridge begins at the point (2, 4) and peaks at the point (6, 10). Amelia would prefer to climb the steeper hill. Which one should she climb?

     

     

  4. A ski resort is building a new slope for skiers. The base of the slope is at the point (0, 0) and the top is at the point (10, 30). What is the slope of the ski hill?

     

     

  5. A bridge rises from the point (3, 4) to the point (7, 12). What is the slope of the bridge?

     

     

  6. A subway tunnel begins at the point (–3, 10) and ends at the point (5, –8). What is the slope of the tunnel?

     

     

  7. A person climbs down a ladder starting at the point (3, 6) and ends at the point (7, –4). What is the slope of the ladder?

     

     

  8. Two hikers are documenting the incline of a mountain trail. The first hiker starts at the point (2, 5) and reaches the summit at the point (8, 17). What is the slope of the mountain trail?

     

     

Answers

1.

a) 1 b) –1 c) \dfrac{5}{2} d) -\dfrac{5}{2} e) -\dfrac{8}{7}
f) -1 g) \dfrac{12}{41} h) 0 i) \dfrac{14}{13} j) -\dfrac{775}{984}
2.

a) 9 b) –6 c) –5 d) 6
e) 4 f) 2 g) 7 h) –5

3. Eagle Peak slope = \dfrac{6}{3} = 2; Thunder Ridge = \dfrac{6}{4} = \dfrac{3}{2}. Amelia should climb Eagle Peak because it is steeper.

4. 3 5. 2 6. \dfrac{-9}{4} 7. \dfrac{-5}{2} 8. 2

 

Attribution

Unless otherwise indicated, material on this page has been adapted from the following resource:

Mazur, I. (2021). Introductory algebra. BCcampus. https://collection.bccampus.ca/textbooks/intermediate-algebra-bccampus-412/, licensed under CC BY 4.0

License

Icon for the Creative Commons Attribution-NonCommercial 4.0 International License

Math 10C Workbook Copyright © 2026 by Leanne Thompson is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, except where otherwise noted.