The key idea
Pick any two points on a line, and . The slope is how far you go up or down (the rise) for each step you go across (the run):
A slope of 3 means: move 1 to the right, go up 3. A slope of means: move 2 to the right, go down 1. In a word problem, slope is a rate, like dollars per hour or centimeters per day.
| Line | Slope | Example |
|---|---|---|
| Rises left to right | positive | has slope 2 |
| Falls left to right | negative | has slope |
| Horizontal | 0 (no rise at all) | |
| Vertical | undefined (the run is 0, and you cannot divide by 0) |
Parallel lines have the same slope. Perpendicular lines have slopes that are negative reciprocals, so they multiply to : a line with slope is perpendicular to one with slope .
Worked examples
Example 1: slope from two points
Problem Find the slope of the line through and .
- Call the first point and the second. Put the y values on top and the x values on the bottom, in the same order.
- Subtracting a negative is adding.
- Sense check: the second point is to the right and higher, so the slope should be positive. It is.
Answer
Example 2: a negative fraction slope
Problem Find the slope of the line through and .
- Same order on top and bottom.
- Simplify the top and the bottom, then reduce the fraction.
- Sense check: the line goes down 3 for every 4 to the right.
Answer
Example 3: slope from an equation, then a perpendicular slope
Problem Find the slope of , and the slope of any line perpendicular to it.
- Solve for y. First subtract from both sides.
- Divide every term by . The number in front of x is the slope.
- A perpendicular slope is the negative reciprocal: flip and change its sign. Check that the two slopes multiply to .
Answer The slope is . A perpendicular line has slope .
Example 4 (test-hard): a missing coordinate
Problem The line through and has slope 3. What is ?
- Write the slope formula with the unknown and set it equal to 3.
- Multiply both sides by .
- Distribute.
- Add and add 12 to both sides.
- Divide by 3, then check: .
Answer
Common mistakes
- Mixing the order. gives the right size with the wrong sign. Fix: whichever point you start with on top, start with it on the bottom too.
- Putting x on top. Run over rise gives the reciprocal, like instead of 2. Fix: y goes up and down, and "up" is on top.
- Dropping the sign when subtracting a negative. is 8, not 6.
- Mixing up zero and undefined. A flat line like has slope 0. A straight-up line like has no slope at all (undefined).
- Reading the slope from the wrong form. In , the slope is not 4. Fix: solve for y first, or use the shortcut below.
Quick methods
Practice
5 practice questions
What is the slope of the line through and ?
Show answer
Answer:
. The choice is run over rise, and 2 loses the sign (the line falls, so the slope must be negative).
Which line has an undefined slope?
Show answer
Answer:
is a vertical line. Any two points on it have the same x, so the run is 0 and the slope would mean dividing by 0. is horizontal, with slope 0.
What is the slope of ?
Show answer
Answer:
Solve for y: , so . The slope is . The 2 is the y-intercept, and 3 is just the x coefficient before solving for y.
What is the slope of a line perpendicular to ?
Show answer
Answer:
Flip to get , then change the sign: . Check: . The choice is the parallel slope.
A plant was 4 cm tall on day 2 and 13 cm tall on day 8. If it grew at a steady rate, what is the slope of its height graph, and what does it mean?
- 1.5: the plant grows 1.5 cm per day
- 1.5: the plant was 1.5 cm tall on day 0
- 0.67: the plant grows 0.67 cm per day
- 9: the plant grows 9 cm per day
Show answer
Answer: 1.5: the plant grows 1.5 cm per day
Slope is change in height over change in days: cm per day. A slope is always a rate, never a starting value. 0.67 is days over centimeters (upside down), and 9 forgets to divide by the 6 days.
Frequently asked questions
What is the slope formula?
For two points and , the slope is . It is the change in y divided by the change in x. It works for any two points on a straight line and always gives the same answer.
What is the difference between zero slope and undefined slope?
Zero slope means the line is flat (horizontal), like : there is no rise. Undefined slope means the line is straight up and down (vertical), like : there is no run, and you cannot divide by zero.
Does it matter which point I call the first point?
No. You get the same slope either way, as long as you use the same order on the top and the bottom. Swapping both just multiplies the top and the bottom by , which cancels.
How do I find the slope of a parallel or perpendicular line?
A parallel line has exactly the same slope. A perpendicular line has the negative reciprocal: flip the fraction and change the sign. So for slope , the perpendicular slope is . A slope of 0 is perpendicular to an undefined slope.