Understanding the Distance Formula

Business people looking through picture frame at the road ahead
Rocco Baveira / Getty Images

The Cartesian plane distance formula determines the distance between 2 coordinates.

Learn the Distance Formula

Consider a line segment identified by using the coordinates on a Cartesian plane.

To determine the distance between the two coordinates, consider this segment as a segment of a triangle. The distance formula can be obtained by creating a triangle and using the Pythagorean Theorem to find the length of the hypotenuse. The hypotenuse of the triangle will be the distance between the two points.

To clarify, the coordinates x2 and x1  form one side of the triangle; y2 and y1 compose the third side of the triangle. Thus, the segment to be measured forms the hypotenuse and we are able to calculate this distance.

The subscripts refer to the first and second points; it doesn't matter which points you call first or second.

x2 and y2 are the x,y coordinates for one point
x1and y1 are the x,y coordinates for the second point
d is the distance between the two points

Learn the Distance Formula