30% off your first 3 months

Get the deal

How to find the slope of a line

Slope measures how steep a line is: how far it goes up or down for each step to the right.

Guide 4 of 12
A graph of the line through the points 3, 1 and 6, 7. A blue arrow runs 3 to the right from 3, 1, then a blue arrow rises 6 up to 6, 7. Beside it: slope equals rise over run equals 6 over 3 equals 2.xy1234567123456780
Slope = rise / run. From (3, 1) to (6, 7): up 6 for 3 across, so 2.

Why it works. A straight line climbs at the same rate everywhere, so any two points on it give the same slope. A bigger slope means a steeper line, and in a word problem the slope is a rate, like dollars per hour.


Move it yourself

Move point B and watch the slope change.

A graph of the line through the points 3, 1 and 6, 7. A blue arrow runs 3 to the right from 3, 1, then a blue arrow rises 6 up to 6, 7. Beside it: slope equals rise over run equals 6 over 3 equals 2.xy1234567123456780

Your turn

Find the slope of the line through (−2,5)(-2, 5) and (2,−3)(2, -3).

Or just show the answer

−2-2

Rise: −3−5=−8-3 - 5 = -8. Run: 2−(−2)=42 - (-2) = 4. Slope: −84=−2\frac{-8}{4} = -2. It is negative because the line goes down to the right.


Watch out for

  • Mistake 1. Struck through: 7 − 1 over 3 − 6 = −2; written over it: 7 − 1 over 6 − 3 = 2.

    Mixing the order: 7−13−6=−2\frac{7 - 1}{3 - 6} = -2.

    Start with the same point on top and bottom: 7−16−3=2\frac{7 - 1}{6 - 3} = 2.

  • Mistake 2. Struck through: 3 over 6 = 1 over 2; written over it: 6 over 3 = 2.

    Run over rise: 36=12\frac{3}{6} = \frac{1}{2}.

    The change in y goes on top.

  • Mistake 3. Struck through: flat → undefined; written over it: flat → slope 0.

    Calling a flat line's slope undefined.

    Flat lines have slope 0. Only straight up and down lines are undefined.


Stuck on your own homework?

Open DuckyHelper and say it out loud. It sees your screen, so it works through your own problem with you and draws it, like the board above.

“Can you draw the rise and the run on the graph I have open?”

Plus is $14 a month for your first 3 months. DuckyHelper is an app for Mac (Apple silicon, macOS 14 or later), Windows and Linux.


Read the whole guide as text

Slope measures how steep a line is: how far it goes up or down for each step to the right. Take any two points on the line and divide the change in y (the rise) by the change in x (the run). A line going up has a positive slope, a line going down a negative one, and a flat line has slope 0.

Worked example

Find the slope of the line through (3,1)(3, 1) and (6,7)(6, 7).

  1. Rise: subtract the y values.
    7−1=67 - 1 = 6
  2. Run: subtract the x values, in the same order.
    6−3=36 - 3 = 3
  3. Divide the rise by the run.
    m=63=2m = \frac{6}{3} = 2
  4. Sense check: the second point is higher and to the right, so the slope should be positive. It is.

Answer: m=2m = 2

Algebra 1: all 12 guides
Questions and jobs

Do anything

Ask it a question or hand it a job, in any app.

Doing jobs for you is in the Mac app. Asking works on Mac, Windows and Linux.