How the distance is found
Enter two points. The points (0, 0) and (3, 4) have distance 5, a change in x of 3, and a change in y of 4.
The points (0, 0) and (1, 1) have distance 1.41421356237. The points (1, 2) and (1, 2) have distance 0. A blank field has no result.
How to use this calculator
- Choose 2D or 3D.
- Enter the coordinates of both points.
- Read the distance. The rows below are the change in each coordinate.
Distance from two points
Square each change, add the squares, then take the square root.
In 2D both z coordinates are 0, so that term drops out. The points (−1, −1) and (2, 3) also give 5.
Source
Euclidean distance is defined on the Wikipedia page that defines Euclidean distance.
Worked examples
Example: (0, 0) and (3, 4)
The changes are 3 and 4. The distance is 5.
Example: (0, 0, 0) and (1, 2, 2)
The changes are 1, 2, and 2. The distance is 3.
What to keep in mind
The points (1, 2, 3) and (4, 6, 3) have distance 5, with changes 3, 4, and 0. Each coordinate is from −1,000,000 through 1,000,000. A completed result, including the coordinates you entered, can be saved in this browser’s local history and never leaves your device. Clear it with the history Clear action or by clearing site data.
Common questions about the distance formula
What do (0, 0) and (3, 4) give?
Distance 5, a change in x of 3, and a change in y of 4.
What do (0, 0) and (1, 1) give?
Distance 1.41421356237.
What if both points are the same?
Distance 0. That result is saved.
What do (0, 0, 0) and (1, 2, 2) give?
Distance 3, with changes 1, 2, and 2.
What do (1, 2, 3) and (4, 6, 3) give?
Distance 5, with changes 3, 4, and 0. A blank coordinate has no result. Each coordinate is from −1,000,000 through 1,000,000.
Does this calculator store my points?
A completed result can be saved in this browser’s local history, including the coordinates you entered. It stays on your device and is not sent to our servers or to analytics. Clear it with the history Clear action or by clearing site data.