Distance Formula Calculator
Enter two points (x1, y1) and (x2, y2) to calculate the straight-line distance between them.
Result will appear here.
| Metric | Value |
|---|
The tool uses the 2D distance formula based on the Pythagorean theorem.
Privacy: calculations run locally in your browser. No coordinates are stored or transmitted.
How it works
Distance between two points:
d = √((x2−x1)² + (y2−y1)²)
Examples
- (1, 2) to (4, 6) → distance = 5
- (0, 0) to (3, 4) → distance = 5
FAQ
- What is the distance formula?
For points (x1, y1) and (x2, y2), distance = √((x2−x1)² + (y2−y1)²).
- Can I use decimals and negative coordinates?
Yes. The calculator supports negative numbers and decimals.
- What does the calculator return?
It returns the exact squared-distance expression used internally and the final numeric distance.
- Are my inputs stored?
No. Calculations run locally in your browser and are not stored or transmitted.