Skip to content
Press Equals

Find the slope of the line through (-3, -1) and (1, 7)

The slope is 2: (7 − (-1)) ÷ (1 − (-3)) = 8 ÷ 4. The line's equation is y = 2x + 5.

How it's worked out

  1. Slope m = (y₂ − y₁) ÷ (x₂ − x₁) = (7 − -1) ÷ (1 − -3) = 8 ÷ 4 = 2
  2. y-intercept b = y₁ − m × x₁ = -1 − 2 × -3 = 5
  3. Equation: y = 2x + 5
  4. Angle = arctan(m) = 63.43°, and grade = m × 100 = 200%

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)

2

Slope as a fraction
2
Equation of the line
y = 2x + 5
y-intercept (b)
5
x-intercept
-2.5
Rise (change in y)
8
Run (change in x)
4
Angle from the x-axis
63.43°
Grade
200%
Distance between the points
8.9443
0246-3-2-101(-3, -1)(1, 7)x
Slope 2: y = 2x + 5.
How it’s worked out
  1. Slope m = (y₂ − y₁) ÷ (x₂ − x₁) = (7 − -1) ÷ (1 − -3) = 8 ÷ 4 = 2
  2. y-intercept b = y₁ − m × x₁ = -1 − 2 × -3 = 5
  3. Equation: y = 2x + 5
  4. Angle = arctan(m) = 63.43°, and grade = m × 100 = 200%