Find the slope of the line through (2, -1) and (5, 8)
The slope is 3: (8 − (-1)) ÷ (5 − 2) = 9 ÷ 3. The line's equation is y = 3x - 7.
How it's worked out
- Slope m = (y₂ − y₁) ÷ (x₂ − x₁) = (8 − -1) ÷ (5 − 2) = 9 ÷ 3 = 3
- y-intercept b = y₁ − m × x₁ = -1 − 3 × 2 = -7
- Equation: y = 3x - 7
- Angle = arctan(m) = 71.57°, and grade = m × 100 = 300%
Slope is rise over run: (y₂ − y₁) ÷ (x₂ − x₁). A positive slope goes up from left to right, a negative one goes down.
Try your own numbers
Result
Slope (m)
3
- Slope as a fraction
- 3
- Equation of the line
- y = 3x - 7
- y-intercept (b)
- -7
- x-intercept
- 2.3333
- Rise (change in y)
- 9
- Run (change in x)
- 3
- Angle from the x-axis
- 71.57°
- Grade
- 300%
- Distance between the points
- 9.4868
How it’s worked out
- Slope m = (y₂ − y₁) ÷ (x₂ − x₁) = (8 − -1) ÷ (5 − 2) = 9 ÷ 3 = 3
- y-intercept b = y₁ − m × x₁ = -1 − 3 × 2 = -7
- Equation: y = 3x - 7
- Angle = arctan(m) = 71.57°, and grade = m × 100 = 300%
Read the guide: How to find the slope of a line
More slope between two points
- Find the slope of the line through (1, 2) and (3, 8)
- Find the slope of the line through (2, 3) and (4, 7)
- Find the slope of the line through (0, 0) and (2, 4)
- Find the slope of the line through (1, 1) and (4, 7)
- Find the slope of the line through (2, 5) and (6, 13)
- Find the slope of the line through (3, 4) and (5, 8)
- Find the slope of the line through (1, 3) and (4, 9)
- Find the slope of the line through (-1, 2) and (3, 6)