Slope Calculator

Slope, line equation, angle and distance from two points.

Slope m
2
y = 2x + 0
Angle
63.435°
Distance
6.708204
Grade
200%

How it works

m = (y₂ − y₁) / (x₂ − x₁), intercept b = y₁ − m × x₁, distance √(Δx² + Δy²).

Worked example

Using these inputs: x₁ 1, y₁ 2, x₂ 4 and y₂ 8.

The result is Slope m: 2.

  • y = 2x + 0
  • Angle: 63.435°
  • Distance: 6.708204
  • Grade: 200%

Formula reviewed November 2026 · How we build calculators

Frequently asked questions

How do you find the slope between two points?

Divide the change in y by the change in x: m = (y₂ − y₁) / (x₂ − x₁).

What does an undefined slope mean?

The line is vertical, so x does not change and you would divide by zero.

What does a negative slope mean?

The line goes down from left to right: y decreases as x increases.

What is the slope-intercept form?

y = mx + b, where m is the slope and b is where the line crosses the y-axis.

Esc