Calculators4All
Home / Math / Slope calculator
Math calculator

Slope calculator

Find the slope between two points, along with the line equation and distance between them.

Point 1
Point 2
Slope (m)
Line equation
Y-intercept
Distance between points
Angle of incline

How slope is calculated

Slope measures how steep a line is — it's the ratio of vertical change to horizontal change between two points, calculated as m = (y2 − y1) ÷ (x2 − x1). A slope of 2 means the line rises 2 units for every 1 unit it moves right; a negative slope means the line falls as it moves right.

From slope to the full line equation

Once you know the slope and one point on the line, you can find the y-intercept using b = y1 − m × x1, which gives you the complete equation in slope-intercept form: y = mx + b. This calculator also reports the straight-line distance between your two points using the distance formula, and the angle the line makes with the horizontal axis.

Special cases

This tool works for any two points on a standard Cartesian (x, y) plane.