How to Use the Distance Calculator
Three modes in one calculator: distance between two points in 2D or 3D, exact conversion between nine distance units, and the hypotenuse of a right angled triangle.
Step-by-Step Instructions
- 1 Choose what you want from the first dropdown: distance between points, convert between units, or the hypotenuse from two sides.
- 2 For points, choose 2D or 3D and enter the coordinates for point A and point B.
- 3 For units, enter the value and pick the source and target units. Every conversion is exact and all nine appear at once.
- 4 For Pythagoras, enter the two leg lengths and read the hypotenuse along with the area and perimeter.
- 5 Use the How this is worked out panel to copy the calculation into your own working.
Understanding the Inputs
points
Two points as coordinates. In 2D these are x and y for each point. In 3D an extra z coordinate is added for each point.
How to find it: Coordinates from a map, a graph, a game engine, a survey or a spreadsheet. Order within the pair does not matter, since the distance is the same either way round.
Why it matters: Distance is invariant under swapping the two points, which this calculator relies on, and it holds regardless of the units the axes use as long as both axes share them.
units
A single distance value plus a source unit and a target unit, chosen from kilometres, metres, centimetres, millimetres, miles, yards, feet, inches and nautical miles.
How to find it: Anything mixing metric and imperial, such as a running distance in miles reported against a training plan in kilometres, or a nautical chart distance against a road distance.
Why it matters: Each unit is an exactly defined constant, so conversions are exact rather than rounded, and they round trip back to the original value without drift.
sides
The two leg lengths of a right angled triangle, from which the hypotenuse is found using the Pythagorean theorem.
How to find it: Any right triangle, or any situation where you know the two perpendicular offsets and need the diagonal, such as checking whether a ladder clears a wall.
Why it matters: The hypotenuse is the diagonal of the right triangle formed by the two perpendicular sides, and it is the shortest distance between two points given those two offsets.
Tips & Best Practices
- ✓ Use exact unit definitions rather than the rounded figures you remember.
- ✓ Swap the two points freely if it makes the subtraction easier to follow.
- ✓ Round only the final answer, never the intermediate squared terms.
- ✓ Remember the straight line is a lower bound for any real journey.
by CalculatorPro Tools · Updated