Coordinate Geometry
Slope, distance, and midpoint from two points
Three different questions answered from the same pair of coordinates.
By AllMath · Published and reviewed October 25, 2026
This guide is designed to help you decide what to calculate, organize the known information, and judge whether the result makes sense. Use the connected calculators to carry out the arithmetic after you understand the setup.
Organize the points
Label the points (x₁, y₁) and (x₂, y₂). You may swap which point is first, but each subtraction must use the same order.
Slope describes direction
Slope divides vertical change by horizontal change. It is a signed rate, and it is undefined when the horizontal change is zero.
Distance describes separation
Distance squares both coordinate changes, adds them, and takes the square root. Point order therefore cannot make distance negative.
Midpoint describes the center
Average corresponding coordinates. The midpoint should fall between the endpoint coordinates and is an ordered pair rather than a length.
Put it into practice