Math · Geometry

Slope Calculator

Find the slope of a line through two points, get the equation in slope-intercept form, the angle of inclination and the mid-distance.

Slope m
—
Slope: m = (y₂ − y₁) / (x₂ − x₁)    Point-slope: y − y₁ = m(x − x₁)    Angle: θ = atan(m)
Special: m = 0 horizontal, m undefined vertical, m > 0 rising, m < 0 falling.

Line equation

Slope-intercept y = mx + b built from your two points.

Angle & type

Inclination angle in degrees plus rising/falling/flat.

Vertical handling

Correctly identifies vertical lines with undefined slope.

Instant results

Every keystroke recalculates slope and equation.

More Geometry Tools

Explore geometry and line calculators.