How to use it
- Pick 2D or 3D.
- Enter the coordinates of point 1 and point 2.
- Read the distance and midpoint. Copy either with the button next to it.
How it works
The distance is the square root of the sum of the squared differences along each axis. The midpoint averages each pair of coordinates. Results show up to 10 significant digits.
Worked example
Points (1, 2) and (4, 6): the differences are 3 and 4, so the distance is √(9 + 16) = 5 and the midpoint is (2.5, 4).
In 3D, (1, 2, 3) and (4, 6, 15): the differences are 3, 4 and 12, so the distance is √169 = 13 and the midpoint is (2.5, 4, 9).
Tips
- The squared distance is useful when you only need to compare distances without roots.
- If one endpoint and the midpoint are known, the other endpoint is 2 × midpoint − endpoint.