Use this distance between two points calculator to determine the exact distance in 2D or 3D space. Enter the x, y, and optionally z coordinates.
For 2D points, ignore z coordinates.
x₁, y₁, z₁ = coordinates of the first point
x₂, y₂, z₂ = coordinates of the second point
d = distance
The distance formula calculates the straight-line distance between two points in 2D or 3D space.
| Point 1 | Point 2 | Distance (d) |
|---|---|---|
| (0,0) | (3,4) | 5.000000 |
| (1,2) | (4,6) | 5.000000 |
| (0,0,0) | (1,1,1) | 1.732051 |
| (2,3) | (5,7) | 5.000000 |
| (-1,-1) | (2,3) | 5.000000 |
To manually calculate the distance between two points:
1. Subtract the x, y, and optionally z coordinates: (x₂ - x₁), (y₂ - y₁), (z₂ - z₁).
2. Square each difference.
3. Sum the squared differences.
4. Take the square root of the sum.
This distance between two points calculator instantly calculates the straight-line distance in 2D or 3D with up to six decimal places. Useful for geometry, physics, and engineering.
• The distance formula is derived from the Pythagorean theorem.
• In 3D space, it generalizes to include z-coordinates.
• Distance calculations are essential in navigation and GPS.
• It is used in computer graphics to measure pixel distances.
• Engineers use it to calculate lengths of beams and structures.