Distance formulas convert coordinates into a geometric length so you can measure how far two points are apart. In coordinate geometry, the distance between points is derived from the Pythagorean theorem: horizontal differences and vertical differences form perpendicular legs, and their squares add up to the squared distance. This Distance Calculator provides an educational way to compute the result quickly and consistently from your inputs.
How to Use
- Enter x and y for the first point.
- Enter x and y for the second point.
- Optionally enter z coordinates for 3D distance.
- Choose the correct dimension mode if your tool offers it.
- Read the computed distance value.
The Math / Logic Behind It
2D distance: d = √((x2 − x1)^2 + (y2 − y1)^2). 3D distance adds depth: d = √((x2 − x1)^2 + (y2 − y1)^2 + (z2 − z1)^2).
Real-World Examples
- Points (0,0) and (3,4) give distance √(3^2 + 4^2) = 5.
- If both points share the same x coordinate, distance reduces to the absolute y difference.
- In 3D, adding a z difference increases total distance beyond the 2D projection.
