Skip to content
Press Equals

Find the slope of the line through (1, 2) and (3, 8)

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

How it's worked out

  1. Slope m = (y₂ − y₁) ÷ (x₂ − x₁) = (8 − 2) ÷ (3 − 1) = 6 ÷ 2 = 3
  2. y-intercept b = y₁ − m × x₁ = 2 − 3 × 1 = -1
  3. Equation: y = 3x - 1
  4. 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 - 1
y-intercept (b)
-1
x-intercept
0.3333
Rise (change in y)
6
Run (change in x)
2
Angle from the x-axis
71.57°
Grade
300%
Distance between the points
6.3246
246811.522.53(1, 2)(3, 8)x
Slope 3: y = 3x - 1.
How it’s worked out
  1. Slope m = (y₂ − y₁) ÷ (x₂ − x₁) = (8 − 2) ÷ (3 − 1) = 6 ÷ 2 = 3
  2. y-intercept b = y₁ − m × x₁ = 2 − 3 × 1 = -1
  3. Equation: y = 3x - 1
  4. Angle = arctan(m) = 71.57°, and grade = m × 100 = 300%