Formula
d = √((x₂-x₁)² + (y₂-y₁)²)
Worked example
With these values
- x₁
- 0
- y₁
- 0
- x₂
- 3
- y₂
- 4
The calculator gives
- Distance
- 5
- Midpoint
- (1.5, 2)
These values are only an illustration. Replace them with yours in the form above.
How "Distance" changes with "x₂"
| x₂ | Distance |
|---|---|
| 1.5 | 4.272002 |
| 2.4 | 4.664762 |
| 3 | 5 |
| 3.6 | 5.38145 |
| 4.5 | 6.020797 |
All other values stay as in the example.
How to use this calculator
Change any value: results update as you type. Copy a result with one click, or share a link that keeps all your values.
Read the guide
Questions
How is the result calculated?
The calculator applies this rule: d = √((x₂-x₁)² + (y₂-y₁)²)
Is it free?
Yes. It is free, needs no account, and works on phone and desktop.
Are my numbers stored?
Everything runs in your browser. Nothing you type is sent to a server.