How to Find the Slope Between Two Points
Slope measures how steep a line is: how far it rises (or falls) for each step to the right. It's "rise over run." With two points you can also find where the line crosses the y-axis, write its equation in slope-intercept form, and measure the distance between the points.
The formulas
Slope m = (y2 − y1) ÷ (x2 − x1)
Y-intercept b = y1 − m × x1, so the line is y = mx + b
Distance = √[(x2 − x1)² + (y2 − y1)²]
Angle = arctan(m)
Example
For the points (2, 3) and (6, 11), the rise is 11 − 3 = 8 and the run is 6 − 2 = 4, so the slope is 8 ÷ 4 = 2. The y-intercept is 3 − 2 × 2 = −1, so the equation is y = 2x − 1. The points are √(16 + 64) = 8.94 apart, and the line rises at 63.43°.
Reading the slope
- Positive: the line goes up from left to right.
- Negative: it goes down from left to right.
- Zero: a flat, horizontal line (y = b).
- Undefined: a vertical line (x = a number), because the run is zero.
Frequently Asked Questions
Does it matter which point is first?
No. Swapping the points flips the sign of both the rise and the run, so the slope stays the same.
How do I turn slope into a percent grade?
Multiply the slope by 100. A slope of 0.06 is a 6% grade, which is common for roads and ramps.
What is point-slope form?
It's y − y1 = m(x − x1). For the example, y − 3 = 2(x − 2), which simplifies to the same y = 2x − 1.
Tips
- Slope is a ratio of rise to run. Simplify it with the ratio calculator.
- Need a missing value in an equal ratio? Use the proportion calculator.