Finding Slope from Two Coordinate Pairs
Given points (x₁, y₁) and (x₂, y₂), slope m = (y₂ − y₁)/(x₂ − x₁), the change in y divided by the change in x.
More key points
- Keep the coordinate order consistent.
- A positive denominator of zero means the line is vertical and its slope is undefined.
On this page13 sections
- Use the slope formula
- Interpret the sign
- Avoid sign errors
- Connect slope to a graph and equation
- Keep the point order consistent
- Interpret slope as a rate of change
- Recognize horizontal and vertical cases
- Connect the points to a line equation
- Check the sign visually
- Calculate vertical change over horizontal change
- Interpret slope in context
- Connect slope to the equation of a line
- Exam takeaway
Slope measures how much y changes for each unit change in x. With two points, subtract the y-coordinates and divide by the matching change in x.
Use the slope formula
For points (2, 3) and (6, 11), m = (11 − 3)/(6 − 2) = 8/4 = 2. The line rises 2 units for every 1 unit it moves right. Either point can be labeled first as long as the same point order is used in the numerator and denominator.
Interpret the sign
- Positive slope: the line rises as x increases.
- Negative slope: the line falls as x increases.
- Zero slope: y does not change; the line is horizontal.
- Undefined slope: x does not change; the line is vertical.
Avoid sign errors
A frequent mistake is reversing only one subtraction. If the numerator is y₂ − y₁, the denominator must be x₂ − x₁. For example, (3 − 11)/(6 − 2) = −2 is incorrect for the given pair order; the correct reversed subtraction is (3 − 11)/(2 − 6) = 2.
Connect slope to a graph and equation
On a graph, slope is rise over run between two points on the line. In slope-intercept form y = mx + b, the coefficient m is the slope and b is the y-intercept. A point pair with the same x-coordinate creates a vertical line, which cannot be written as y = mx + b with a finite slope.
Keep the point order consistent
Label the points (x₁, y₁) and (x₂, y₂) before subtracting. If you compute y₂ − y₁ in the numerator, compute x₂ − x₁ in the denominator. Reversing both differences multiplies the numerator and denominator by −1, leaving the slope unchanged. Reversing only one makes the sign incorrect. For (−1, 4) and (3, −4), m = (−4 − 4)/(3 − (−1)) = −8/4 = −2.
Interpret slope as a rate of change
Slope describes the change in y for each unit change in x. If a graph relates hours to distance in miles and the slope is 55, the rate is 55 miles per hour, assuming the units are ordered that way. If the axes are reversed, the units reverse too. A negative slope means y decreases as x increases; it does not necessarily mean either variable is physically negative.
Recognize horizontal and vertical cases
When y-values are equal, the numerator is zero and the line is horizontal with slope zero. When x-values are equal, the denominator is zero and the line is vertical, so its slope is undefined. Division by zero is not allowed; do not call a vertical slope zero. Two identical points do not determine a unique line, so the slope formula gives 0/0, which is undefined and signals that more information is needed.
Connect the points to a line equation
Once slope is known, substitute one point into y = mx + b to find the y-intercept. With slope −2 through (−1, 4), 4 = −2(−1) + b, so b = 2 and the line is y = −2x + 2. Substitute the second point to verify: −4 = −2(3) + 2. A point-slope form, y − y₁ = m(x − x₁), can also be used directly.
Check the sign visually
Plot or imagine the points in left-to-right order. If the line rises as you move right, its slope is positive; if it falls, its slope is negative. This visual check does not replace arithmetic, but it catches a reversed-sign error. Check that the result is consistent with the coordinate changes and preserve units when the points represent measured quantities.
Calculate vertical change over horizontal change
Slope measures the change in y for each unit change in x. Given points (x₁, y₁) and (x₂, y₂), use m = (y₂ − y₁)/(x₂ − x₁), often called rise over run. Keep the order consistent: if y₂ − y₁ is in the numerator, pair it with x₂ − x₁ in the denominator. For (2, 3) and (6, 11), slope is (11 − 3)/(6 − 2) = 8/4 = 2.
A positive slope rises from left to right; a negative slope falls. A zero slope describes a horizontal line. A vertical line has undefined slope because x₂ − x₁ = 0 and division by zero is undefined. A line through (2, 1) and (2, 7) is vertical, not slope zero.
Interpret slope in context
If x is time in hours and y is distance in miles, slope has units miles per hour. A slope of 2.5 means distance increases by 2.5 miles for each hour when the relationship is linear. In a graph of a decreasing quantity, slope may be negative even though the physical amount itself stays positive; the sign describes direction of change.
In a table, choose two distinct points and calculate the same ratio. If every pair gives the same slope, the points lie on a line. If the slope changes, the data are not linear. Plotting can help reveal the pattern, but use exact coordinates when available rather than estimating from the picture.
Connect slope to the equation of a line
Once slope m is known, substitute a point into y = mx + b to find the y-intercept b. For slope 2 through (2, 3), solve 3 = 2(2) + b, so b = −1 and the line is y = 2x − 1. Verify the second point as well. Point-slope form, y − y₁ = m(x − x₁), is another direct way to write the line.
The formula requires distinct x-values for a finite slope. If both points are identical, they do not determine a unique line. If the line is vertical, describe it with x = a rather than trying to force it into slope-intercept form. Check signs and units in the final interpretation.
- Subtract coordinates in the same order in numerator and denominator.
- A negative slope falls; zero is horizontal; vertical slope is undefined.
- Use exact points instead of estimating from a graph when possible.
- Interpret slope as a rate with units in a real situation.
- Substitute a known point to find an equation and verify it.
Exam takeaway
Subtract y-values over the matching x-value change, preserving point order. Check the sign and ask whether the line rises, falls, stays level or is vertical.
Common questions
Can I swap the two points in the slope formula?
Yes, if you reverse both coordinate differences so the order stays consistent.
What is the slope through (4, 1) and (4, 9)?
Undefined: the x-coordinate does not change, so the line is vertical.
Can a slope be a fraction?
Yes. A fractional slope describes the vertical change for each one-unit horizontal change.