How to Find the Slope of a Line from Two Points
Learn how to calculate the slope of a straight line when given any two points on the line, with a step-by-step example and common mistakes to avoid.
Updated:
If you know two points on a straight line, you can always find the slope (also called the gradient) of that line. After this lesson, you’ll be able to calculate the slope from any two points, understand what the slope means, and spot common mistakes students make.
What Is the Slope?
The slope of a line measures how steep it is. Mathematically, it’s the change in divided by the change in between two points:
This tells you how much increases (or decreases) for every unit increase in .
Why Does Slope Matter?
Slope is everywhere: it tells you how fast a car is climbing a hill, how quickly a business’s profits are rising, or whether a roof is too steep. In algebra, it’s a key part of the equation of a line ().
Step-by-Step Example
Let’s say you’re given two points: and . What is the slope of the line through these points?
Step 1: Label your points. Let and , so , , , .
Step 2: Plug into the formula:
Step 3: Calculate:
So the slope is .
Real-Life Application
If a road rises 8 meters in elevation for every 3 meters you travel forward, its slope is . This helps engineers design safe roads and ramps.
Common Mistakes (and How to Avoid Them)
- Switching the order: Make sure you subtract and values in the same order. If you do , you must do .
- Dividing by zero: If , the denominator is zero. This means the line is vertical and the slope is undefined.
- Forgetting negatives: Watch out for negative signs, especially if the line goes down as increases.
Try It Yourself
Find the slope of the line passing through and .
Takeaway
Whenever you have two points, you can always find the slope using . Understanding slope will help you with graphing lines, solving equations, and real-world problems.