How to Find the Slope of a Line — Formula and Examples
Grade: 8–9 | Topic: Algebra
What You Will Learn
By the end of this page, you will be able to calculate the slope of a line from two points using the slope formula, interpret what positive, negative, zero, and undefined slopes mean visually, and use slope in the slope-intercept equation .
Theory
What Is Slope?
Slope measures how steep a line is and which direction it goes. It tells you: for every 1 unit you move to the right along the x-axis, how many units does the line go up or down?
Slope is often described as rise over run:
The Slope Formula
Given two points and on a line:
The order matters — use the same point as "point 1" for both the numerator and denominator. Swapping both is fine; swapping only one gives the wrong sign.
Types of Slope
| Slope | Line goes... | Example |
|---|---|---|
| Positive () | Uphill left to right | |
| Negative () | Downhill left to right | |
| Zero () | Perfectly horizontal | |
| Undefined | Perfectly vertical |
A vertical line has undefined slope because the denominator , and division by zero is undefined.
Slope in
In the slope-intercept form :
- is the slope
- is the y-intercept (where the line crosses the y-axis)
You can read the slope directly from the equation without calculating.
Worked Examples
Example 1: Slope from Two Points
Problem: Find the slope of the line passing through and .
Step 1: Label the points: and .
Step 2: Apply the slope formula.
Answer: The slope is (for every 1 unit right, the line goes 2 units up).
Example 2: Negative Slope
Problem: Find the slope of the line through and .
Step 1: Apply the formula.
Answer: The slope is (the line goes downhill).
Example 3: Reading Slope from an Equation
Problem: What is the slope of ?
Step 1: Identify in .
The coefficient of is .
Answer: Slope (the line falls 3 units for every 4 units to the right).
Example 4: Slope from a Table of Values
Problem: The table shows values of and for a linear relationship.
| 0 | 2 | 4 | 6 | |
|---|---|---|---|---|
| 1 | 5 | 9 | 13 |
Find the slope.
Step 1: Pick any two points, e.g. and .
Step 2: Verify with another pair: and .
Answer: Slope
Common Mistakes
Mistake 1: Subtracting x-values and y-values in the Wrong Order
❌ (run over rise)
✅ (rise over run). It is always the difference on top.
Mistake 2: Mixing Up Which Point is "Point 1"
❌ (used instead of ).
✅ Be consistent — subtract in the same order top and bottom. You can use either point as point 1, but you must use the same order for both the numerator and denominator.
Mistake 3: Calling a Horizontal Line "Undefined"
❌ The line has undefined slope.
✅ is horizontal — slope = 0 (not undefined). A vertical line like has undefined slope.
Practice Problems
Try these on your own before checking the answers:
- Find the slope through and .
- Find the slope through and .
- Find the slope through and .
- What is the slope of ?
- A ramp rises 1.2 metres over a horizontal distance of 4 metres. What is its slope?
Click to see answers
- = undefined (vertical line)
- (horizontal line)
- Slope (coefficient of )
Summary
- Slope formula: — always on top (rise), on bottom (run).
- Positive slope = uphill; negative slope = downhill; zero = horizontal; undefined = vertical.
- In , the slope can be read directly from the equation.
- Always subtract in a consistent order — same point as "point 1" for both numerator and denominator.
Related Topics
- How to Graph Linear Equations
- Linear Equations — How to Solve Step by Step
- The Coordinate Plane — Plotting Points
Need help with slope?
Take a photo of your math problem and MathPal will solve it step by step.