Home · Math · Distance Calculator
Distance Calculator
Find the straight-line distance between two points in 2D or 3D coordinate space.
Input Coordinates
Results
| Distance (d) | — |
|---|---|
| Formula Used | — |
Understanding Distance Formulas
The straight-line distance between two points in a cartesian coordinate system represents the shortest path connecting them. This is computed using the **Euclidean distance** formula.
2D Distance Formula
In a two-dimensional cartesian plane, the distance between points $(x_1, y_1)$ and $(x_2, y_2)$ is: $$d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$$
3D Distance Formula
In three-dimensional space, adding a $z$-axis represents height or depth. The distance between points $(x_1, y_1, z_1)$ and $(x_2, y_2, z_2)$ is: $$d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}$$