Distance between two points
Measure the straight-line distance on a coordinate plane.
Inputs
Use the units shown—
Enter your values and select Calculate.
Formula & explanation
d = √[(x₂−x₁)² + (y₂−y₁)²]
Variables & units
- First point · x₁
- Numeric value · minimum -1000000000, maximum 1000000000
- First point · y₁
- Numeric value · minimum -1000000000, maximum 1000000000
- Second point · x₂
- Numeric value · minimum -1000000000, maximum 1000000000
- Second point · y₂
- Numeric value · minimum -1000000000, maximum 1000000000
Worked example
The distance from (0, 0) to (6, 8) is 10 units.
Assumptions
Use the same scale on both coordinate axes.
Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.
Practice with an example
Use the default input values to find the answer. The reset icon restores those values.
Calculated on your device. Your latest 100 calculations stay in this browser.