Quick Answer
Slope = rise ÷ run = (y₂ − y₁) ÷ (x₂ − x₁). It measures how steep a line is and which direction it goes. Positive slope rises left to right; negative slope falls left to right.
What Is Slope?
Slope is a number that describes two things about a line: its steepness and its direction.
Steepness: a slope of 4 is steeper than a slope of 1. A slope of 0 is a flat horizontal line.
Direction: a positive slope means the line rises as you move left to right. A negative slope means the line falls as you move left to right.
Slope is often written as the letter m. The formula is: m = rise / run = (change in y) / (change in x).
Method 1: From a Graph
Step 1: Pick two points on the line that land exactly on grid intersections (whole-number coordinates). Avoid points that are between grid lines — they are hard to read accurately.
Step 2: Starting from the left point, count how many units you go up or down to reach the height of the right point. This is the rise. Up = positive; down = negative.
Step 3: Count how many units you go right to reach the right point. This is the run. Run is almost always positive (we move right).
Step 4: Slope = rise ÷ run. Simplify the fraction if possible.
Method 2: From Two Points
When you have two coordinate pairs (x₁, y₁) and (x₂, y₂), use the slope formula:
m = (y₂ − y₁) / (x₂ − x₁)
It does not matter which point you call (x₁, y₁) and which you call (x₂, y₂) — as long as you are consistent. If you subtract y₂ − y₁ on top, you must subtract x₂ − x₁ on the bottom (same order).
Always simplify the fraction. If the numerator and denominator are both negative, the slope is positive.
Method 3: From Slope-Intercept Form
Slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept.
If the equation is already in this form, you can read the slope directly — it is the coefficient of x.
Examples:
y = 3x + 2 → slope = 3
y = −½x + 7 → slope = −½
y = 5 → slope = 0 (horizontal line)
If the equation is not in slope-intercept form, rearrange it first by solving for y.
Special Cases: Zero and Undefined Slope
Horizontal lines have slope 0. They go neither up nor down. Their equation is y = k for some constant k. Example: y = 4 has slope 0.
Vertical lines have undefined slope. The run is 0, and you cannot divide by 0. Their equation is x = k for some constant k. Example: x = 3 has undefined slope.
Memory trick: "H is for Horizontal and H is for zero (the letter looks flat)." "V is for Vertical and V is for undefined (it goes straight up — no run at all)."
Worked Examples
Example 1
Find the slope of the line through (1, 2) and (4, 11).
Solution
- Label the points: (x₁, y₁) = (1, 2) and (x₂, y₂) = (4, 11).
- Apply the formula: m = (y₂ − y₁) / (x₂ − x₁)
- m = (11 − 2) / (4 − 1)
- m = 9 / 3
- m = 3
- Check: moving from (1, 2) to (4, 11) — rise = 9, run = 3, slope = 9/3 = 3 ✓
Answer: m = 3
Example 2
Find the slope of the line through (−2, 5) and (3, −5).
Solution
- Label: (x₁, y₁) = (−2, 5) and (x₂, y₂) = (3, −5).
- m = (−5 − 5) / (3 − (−2))
- m = (−10) / (3 + 2)
- m = −10 / 5
- m = −2
- Negative slope confirms the line falls from left to right.
Answer: m = −2
Example 3
What is the slope of the line 3x + 2y = 12?
Solution
- The equation is not in slope-intercept form. Solve for y.
- 2y = −3x + 12
- y = −(3/2)x + 6
- Now it is in y = mx + b form. The slope is the coefficient of x.
- m = −3/2
Answer: m = −3/2
Common Mistakes
Subtracting in the wrong order: computing (x₂ − x₁) on top and (y₂ − y₁) on the bottom. The y-difference always goes on top (numerator).
Mixing up which point is (x₁, y₁) and which is (x₂, y₂) mid-calculation. Pick your labels before you start and stick with them.
Confusing rise and run. Rise is the vertical change (up/down). Run is the horizontal change (left/right). Rise over run — not run over rise.
Saying a vertical line has slope 0 instead of undefined. Slope 0 is horizontal. Vertical lines have no defined slope because the run is 0.
Forgetting to simplify the slope fraction. m = 6/4 should be simplified to m = 3/2.
Practice Problems
Find the slope through (0, 1) and (4, 9).
Hint: Use the slope formula: m = (y₂ − y₁) / (x₂ − x₁).
Find the slope through (−3, 7) and (1, −1).
Hint: Be careful with the negative signs.
What is the slope of y = −3x + 7?
Hint: Identify the coefficient of x.
What is the slope of 4x − 2y = 8? First solve for y.
Hint: Subtract 4x, then divide by −2.
A line passes through (2, 5) and (2, −3). What is its slope?
Hint: What is the run? What does that tell you?
Frequently Asked Questions
What is the slope formula?
The slope formula is m = (y₂ − y₁) / (x₂ − x₁), where (x₁, y₁) and (x₂, y₂) are any two points on the line. It measures the rise (vertical change) divided by the run (horizontal change).
What does a negative slope mean?
A negative slope means the line falls from left to right. As x increases, y decreases. For example, a slope of −2 means the line drops 2 units for every 1 unit it moves to the right.
What is the slope of a horizontal line?
A horizontal line has a slope of 0. It has no rise — it goes neither up nor down. Its equation is y = k for some constant k.
What is the slope of a vertical line?
A vertical line has undefined slope. The run is 0, and division by zero is undefined. Its equation is x = k for some constant k.
How do you find slope from an equation?
Rewrite the equation in slope-intercept form y = mx + b by solving for y. The slope is the coefficient of x (the value of m).
Related StudyBAP Lessons
Still have a question?
Submit your Algebra question here. The best questions are answered every week on StudyBAP.
Ask a Question