How Far Apart Are Two Points?
On a number line, the distance between two points is easy: subtract and take the size. But on a plane, points have both an and a , so a single subtraction is not enough.
We need a way to measure the straight-line distance between and .
It Is Just Pythagoras
Here is the trick. The horizontal gap and the vertical gap between the two points form the two legs of a right triangle. The straight-line distance is the hypotenuse.
- The horizontal leg has length
- The vertical leg has length
- The distance is the hypotenuse
Pythagoras says . Take the square root and you have the formula.
The Formula
That is the distance formula, and it is nothing more than the Pythagorean theorem written in coordinates.
Example
Find the distance between and .
Order Does Not Matter
You might worry about which point comes first. It never matters, because the differences are squared:
A negative gap and a positive gap square to the same thing. Subtract in whichever order you like.
Example With Negatives
Find the distance between and .
The squaring quietly handles every sign for you.