Distance Calculator

Find the distance between two points in a 2D plane, 3D space, or by latitude and longitude.

Result
—

How to calculate

Subtract matching Cartesian coordinates, square and add the differences, then take the square root. For geographic coordinates, multiply the smaller central angle in radians by the sphere radius.

Worked example

Use Coordinate system 2D plane · First point, comma-separated 0, 0 · Second point, comma-separated 3, 4. The result is 5 units.

Input and result notes

Each Cartesian point needs exactly two or three coordinates, according to the selected mode. Geographic distance uses a spherical Earth with an optional custom radius.

NASA Earth mean radius

Related calculators