Slope Calculator

From two points, get slope (rise over run), the line equation, angle of inclination, and distance.

Line properties

Slope (m)

Equation

y-intercept

Angle

Distance

Δx (run)

Δy (rise)

The formula

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

"Rise over run." Positive slope goes up to the right, negative goes down. Slope of 0 is a horizontal line; an undefined (infinite) slope is a vertical line.

From slope to equation

Once you have m, plug one of the points into y − y₁ = m(x − x₁) and rearrange to y = mx + b.