Slope Calculator
Calculate the slope, distance, and midpoint between two points on a coordinate plane.
What slope tells you
Slope measures steepness — how much y changes for every unit change in x. A positive slope rises left to right, a negative slope falls left to right, a slope of zero is a perfectly horizontal line, and an undefined slope (when x doesn't change at all) represents a vertical line.
Slope is calculated as 'rise over run' — the change in y divided by the change in x between two points, which is exactly what this calculator computes from your coordinates.
Distance and midpoint formulas
The distance between two points uses the Pythagorean theorem — treating the horizontal and vertical differences as the two legs of a right triangle, with the direct distance as the hypotenuse. This is why the distance formula looks like the Pythagorean theorem rearranged.
Midpoint is simply the average of the two x-coordinates and the average of the two y-coordinates — the point exactly halfway between the two given points.
Frequently asked questions
What does an undefined slope mean?
It means the line is perfectly vertical — since slope requires dividing by the change in x, and a vertical line has no change in x, the division is undefined.
How is the distance formula related to the Pythagorean theorem?
The distance formula is essentially the Pythagorean theorem applied to coordinate geometry — the horizontal and vertical differences between two points form the legs of a right triangle, and the direct distance is the hypotenuse.