Skip to content
Press Equals

Find the slope of the line through (0, 4) and (3, 1)

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

How it's worked out

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

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)

-1

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