Calculating Slope from Two Points
What you'll learn: You'll learn how to calculate the exact slope of a line when you know any two points on it.
The Slope Formula
You already understand slope geometrically as "rise over run"—the steepness of a line. Now you'll learn the slope formula, which lets you calculate slope precisely from coordinates.
When you have two points, say (x₁, y₁) and (x₂, y₂), the slope m is:
m = (y₂ - y₁)/(x₂ - x₁)
This formula literally calculates rise over run:
- Rise = y₂ - y₁ (the vertical change)
- Run = x₂ - x₁ (the horizontal change)
How It Works
Let's say you have two points: (2, 3) and (5, 9).
-
Label your points:
- Point 1: x₁ = 2, y₁ = 3
- Point 2: x₂ = 5, y₂ = 9
-
Substitute into the formula:
m = (9 - 3)/(5 - 2) -
Simplify:
m = 6/3 = 2
The slope is 2, meaning the line rises 2 units for every 1 unit it runs to the right.
Why Order Doesn't Matter
You can pick either point as "point 1" or "point 2"—you'll get the same answer! If we switched them:
m = (3 - 9)/(2 - 5) = -6/-3 = 2
Same result! Just be consistent: whichever point's y-value you subtract first, use that point's x-value first in the denominator too.
Think of It This Way
The formula is like measuring how much a hill climbs (rise) compared to how far forward you walk (run). Two landmarks give you enough information to measure that steepness exactly.
Key Takeaway: The slope formula m = (y₂ - y₁)/(x₂ - x₁) calculates the exact slope between any two coordinate points by dividing the vertical change by the horizontal change.