Ultimate Calculator
Geometry

Slope Calculator

Find the slope, angle and equation of the line through two points.

Slope

3

Equation
y = 3x − 1
y-intercept
−1
x-intercept
0.3333333333
Angle
71.565°
Grade
300%
  1. Rise: 8 − 2 = 6
  2. Run: 3 − 1 = 2
  3. Slope = 6 ÷ 2 = 3
  4. Intercept: b = y₁ − m × x₁ = −1

The formula

m = (y₂ − y₁) ÷ (x₂ − x₁)

Slope measures steepness: how far a line rises for each unit it runs to the right. Positive slopes climb, negative slopes fall, zero is flat and a vertical line has no defined slope.

How to use this calculator

  1. Enter x₁.
  2. Enter y₁.
  3. Enter x₂.
  4. Enter y₂.
  5. Read the answer on the right. It updates as you type, and the numbered steps underneath show how it was worked out.

Worked example

Using x₁: 1; y₁: 2; x₂: 3; y₂: 8.

  1. Rise: 8 − 2 = 6
  2. Run: 3 − 1 = 2
  3. Slope = 6 ÷ 2 = 3
  4. Intercept: b = y₁ − m × x₁ = −1

Slope: 3

Common questions

What does a slope of 2 mean?

For every 1 unit you move right, the line goes up 2 units.

How do I turn a slope into an angle?

Take the inverse tangent of the slope. A slope of 1 is a 45° angle.