Distance formula calculator
Measure the straight-line distance between two points.
No files selected
Use consistent units on both axes. The result uses those same units. This is a flat-plane calculation, not driving distance or geographic distance on a globe. Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.
Your result
How to use Distance formula calculator
- Enter the values you want to calculate and choose the relevant units or settings.
- The result updates as you type. Adjust the available settings if needed.
- Review the result, then use Copy result or a download link when available.
Useful next steps
How to use it
Enter two x-y coordinate pairs. The result uses the distance formula: square root of (x2 - x1)² + (y2 - y1)².
A worked example
From (1, 2) to (4, 6), the horizontal difference is 3 and the vertical difference is 4. The straight-line distance is 5.
What to know
Use consistent units on both axes. The result uses those same units. This is a flat-plane calculation, not driving distance or geographic distance on a globe.