Distance Formula Calculator
Enter two points and see the exact distance between them.
The x-coordinate of the first point.
The y-coordinate of the first point.
The x-coordinate of the second point.
The y-coordinate of the second point.
Try
Result
You entered
Exact
Show the work
Distance formula
The distance is the hypotenuse of a right triangle whose legs are the horizontal and vertical differences between the points. Here and .
Square the differences and add
Work out each difference, square it so that the sign no longer matters, and add the two squares. The horizontal difference is and the vertical difference is .
Square root of a perfect square
The number under the root is a perfect square, so the distance is exact.
Result
So the distance is .