Skip to content
Press Equals

Find the slope of the line through (0, 2) and (4, 5)

The slope is 0.75: (5 − 2) ÷ (4 − 0) = 3 ÷ 4. The line's equation is y = 0.75x + 2.

How it's worked out

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

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.75

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