Finding Slope From Two Points — Formula & Examples
Finding Slope From Two Points — Formula & Examples
TL;DR
To find the slope from two points (x1,y1) and (x2,y2), use the formula ( m = \frac{y_2 - y_1}{x_2 - x_1} ) — the change in y over the change in x, read as "rise over run." This article covers the formula, where it comes from, a clean step-by-step method, six worked examples, and the order-of-subtraction mistake that trips up most students.
What Does Finding Slope From Two Points Mean?
Finding the slope from two points means calculating how steep the line through those two points is, using only their coordinates. Slope measures the steepness and direction of a line: how much the line rises or falls (the change in y) for each unit it moves horizontally (the change in x).
If you know two points lie on a line, the slope is completely determined — there is exactly one straight line through two distinct points, and it has exactly one steepness. So the two points are all the input the formula needs. The result, m, is a single number that tells you both how steep the line is (the size of m) and which way it tilts (the sign of m).
What Is The Formula For Finding Slope From Two Points?
The slope m of the line through two points (x1,y1) and (x2,y2) is: [ m = \frac{y_2 - y_1}{x_2 - x_1} ]
The variable glossary:
- m — the slope, the number you are solving for.
- (x1,y1) — the coordinates of the first point.
- (x2,y2) — the coordinates of the second point.
- y2−y1 — the rise, the vertical change between the points.
- x2−x1 — the run, the horizontal change between the points.
Read aloud, the formula is "rise over run." The numerator is how far up or down you travel from one point to the other; the denominator is how far across. This is the same m that appears in slope-intercept form ( y = mx + b ) — the formula here is how you find that m when you start from two points instead of an equation.
Where The Slope Formula Comes From
The formula is not arbitrary. It is the definition of steepness written in coordinates, and deriving it once makes it impossible to forget.
Steepness means: for every step you take horizontally, how much do you climb? Between two points, the horizontal step is the difference in their x-coordinates, and the climb is the difference in their y-coordinates.
The vertical change (rise) from point 1 to point 2: [ \text{rise} = y_2 - y_1 ]
The horizontal change (run) from point 1 to point 2: [ \text{run} = x_2 - x_1 ]
Steepness is climb per unit of horizontal travel, which is rise divided by run: [ m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1} ]
That is the formula. It is just the ratio of the two changes, with y on top because slope answers "how much does y change for each change in x."
How To Find Slope From Two Points: The Steps
- Label one point (x1,y1) and the other (x2,y2). It does not matter which is which, as long as you stay consistent.
- Subtract the y-coordinates for the rise: ( y2 - y1 ).
- Subtract the x-coordinates in the same order for the run: ( x2 - x1 ).
- Divide the rise by the run and simplify.
Does it matter which point you call first?
No, the slope comes out the same either way. What matters is that you subtract in matching order on top and bottom — both "second minus first." Flip the order on top, you must flip it on the bottom too, or the sign goes wrong.
Examples of Finding Slope From Two Points
Example 1
Find the slope of the line through (1,2) and (4,8).
Label (x1,y1)=(1,2) and (x2,y2)=(4,8).
Rise: ( 8−2=6 )
Run: ( 4−1=3 )
( m=\frac{6}{3}=2 )
The line rises 2 units for every 1 unit it runs right.
Example 2
Find the slope of the line through (−2,5) and (4,−7).
Correct. Subtract in the same order, second minus first, on both top and bottom: [ m = \frac{-7 - 5}{4 - (-2)} = \frac{-12}{6} = -2 ]
The line falls 2 units for every 1 unit it runs right.
Example 3
Find the slope of the line through (1/2,3) and (5/2,7).
Rise: ( 7−3=4 )
Run: ( \frac{5}{2}−\frac{1}{2}=\frac{4}{2}=2 )
( m=\frac{4}{2}=2 )
Example 4
A line passes through (2,k) and (6,11) with slope 3. Find k.
Set up the slope formula with the unknown: [ 3 = \frac{11 - k}{6 - 2} ] Solve for k: [ k = 11 - 12 = -1 ]
Example 5
Are the three points (0,1), (2,5), and (4,9) collinear?
Both slopes are 2, so the points lie on one straight line — they are collinear.
Example 6
A wheelchair ramp rises from the point (0,0) at floor level to (48,4). Find its slope and state whether it meets the common 1-in-12 guideline.
( m = \frac{4}{48} = \frac{1}{12} )
The slope is ( \frac{1}{12} ).
Why Slope Between Two Points Matters
Slope is one of the most reused ideas in all of mathematics, and the two-point version is its most portable form.
- Rate of change. Slope is rate of change. Any two measurements of a quantity over a changing input give a slope.
- Building line equations. Once you have the slope from two points, you can write the line in point-slope form or slope-intercept form.
- The doorway to calculus. The slope between two points is the average rate of change.
Where Students Trip Up On Finding Slope From Two Points
Mistake 1: Switching the subtraction order between top and bottom
The correct way: Subtract in the same order top and bottom. If y is "second minus first," then x must be "second minus first" too.
Mistake 2: Putting the run on top (inverting the formula)
The correct way: Rise (the y change) goes on top; run (the x change) goes on the bottom.
Mistake 3: Forgetting the vertical-line special case
The correct way: A run of 0 means the line is vertical and the slope is undefined, not 0.
Key Takeaways
- The slope from two points is ( m = \frac{y_2 - y_1}{x_2 - x_1} ) — rise over run.
- The formula is just the definition of steepness in coordinates.
- Subtract in the same order on top and bottom; the order of points does not matter, but consistency does.
- A negative slope falls, a positive slope rises, a zero rise gives slope 0, and a zero run gives an undefined slope.