If and are two points in a coordinate plane, the distance between them, can be found.
The horizontal and vertical distance between the points can be thought of as and respectively.
As can be seen in the diagram above, which gives the distance between points and is the hypotenuse of the right triangle whose legs are and An equation can be created for using the Pythagorean Theorem, and are the differences between the coordinates of the points. They can be written as and Here, the absolute values are included to ensure the distances are positive. Rearranging the equation and substituting these values gives the following.
Because squares are always positive, the absolute value bars can be removed. Then, can be isolated.