Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
The distance formula finds the straight-line distance between two points, and is simply the Pythagorean theorem applied to the differences in each coordinate.
This calculator finds the distance between two points in 2D or 3D space.
How it works
Choose 2D or 3D, then enter the coordinates of both points. The calculator finds the difference in each coordinate, squares them, sums the squares, and takes the square root.
- Enter dimension.
- Enter point 1 — x.
- Enter point 1 — y.
- Enter point 1 — z (3D only).
- Enter point 2 — x.
- Enter point 2 — y.
- Enter point 2 — z (3D only).
- Click Calculate to see your results.
Examples
(0,0) to (3,4)
The distance between (0,0) and (3,4) is exactly 5 — the classic 3-4-5 right triangle.
Who should use it
- Checking geometry or coordinate-plane coursework.
- Computing distances between points in a 3D modeling or game development context.
Industry applications
- Geometry and mathematics education
- Computer graphics, robotics, and game development
Advantages
- Supports both 2D and 3D coordinate systems.
- Directly applies the standard, universally recognized distance formula.
Limitations
- Not suitable for geographic (latitude/longitude) distance calculations, which require a different formula.
Common mistakes to avoid
- Using this for GPS latitude/longitude coordinates, where the Earth's curvature makes a different formula necessary.
- Forgetting to switch to 3D mode (and fill in z-coordinates) when working with three-dimensional points.
Best practices
- Use the 2D mode for flat, Cartesian coordinate problems and reserve 3D for genuinely three-dimensional geometry.
Tips
- The distance formula generalizes to any number of dimensions — just keep adding squared differences for each additional coordinate before taking the square root.