All tools · 📊 Math
📏 Distance Formula Calculator
The distance formula computes the straight-line distance between two points. For 2D: √((x₂−x₁)² + (y₂−y₁)²). For 3D: add the z-component. Also returns the midpoint and the angle from the positive x-axis.
Loading tool…
Examples
2D distance
Input
(1,2) to (4,6)Output
5.0 · midpoint (2.5, 4) · angle 53.13°3D distance
Input
(0,0,0) to (3,4,12)Output
13.0 (3-4-12 Pythagorean triple)Frequently asked questions
Why is it called Euclidean distance?
After Euclid — the standard "straight line" distance in flat geometry. Other metrics (Manhattan, Chebyshev) measure differently.
When is Manhattan distance better?
When movement is constrained to grid axes (city blocks, chess king, taxicab). Manhattan dist = |x₂−x₁| + |y₂−y₁|.
About this tool
Distance Formula Calculator runs entirely in your browser using standard Web APIs. No data is sent to any server. The source for this tool is in our public GitHub repository.
Related tools
- 📈 Slope Calculator — Slope and y-intercept from two points. Distance, midpoint included.
- 📐 Triangle Calculator — Solve any triangle given 3 known parts (SSS, SAS, ASA, etc.).
- 📊 Quadratic Equation Solver — Solve ax² + bx + c = 0 — real and complex roots.
Why this tool
vs typical free web-tool sites
| 1vw | Typical free site | |
|---|---|---|
| Price | Free | Free |
| Signup required | No | Often (for premium features) |
| Ads inside the tool | No | Yes (banner + video) |
| Data sent to server | No (browser-only) | Yes (inputs analyzed for ads) |
| Total tools | 96 | Often <20 or scattered across sites |
| Bookmarkable URL per tool | Yes | Mixed |
| Loads in under 1s | Yes (static) | Often slow (ad tracking) |
| Multilingual | EN / ES / PT / FR / DE | Usually EN only |
| Open source | Yes | No |