Skip to content
Press Equals

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

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

How it's worked out

  1. Slope m = (y₂ − y₁) ÷ (x₂ − x₁) = (3 − 1) ÷ (6 − 2) = 2 ÷ 4 = 0.5
  2. y-intercept b = y₁ − m × x₁ = 1 − 0.5 × 2 = 0
  3. Equation: y = 0.5x
  4. Angle = arctan(m) = 26.57°, and grade = m × 100 = 50%

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)

0.5

Slope as a fraction
1/2
Equation of the line
y = 0.5x
y-intercept (b)
0
x-intercept
0
Rise (change in y)
2
Run (change in x)
4
Angle from the x-axis
26.57°
Grade
50%
Distance between the points
4.4721
11.522.5323456(2, 1)(6, 3)x
Slope 0.5: y = 0.5x.
How it’s worked out
  1. Slope m = (y₂ − y₁) ÷ (x₂ − x₁) = (3 − 1) ÷ (6 − 2) = 2 ÷ 4 = 0.5
  2. y-intercept b = y₁ − m × x₁ = 1 − 0.5 × 2 = 0
  3. Equation: y = 0.5x
  4. Angle = arctan(m) = 26.57°, and grade = m × 100 = 50%