
Advanced distance calculations in 2D, 3D, and on Earth's surface
2D Distance Calculator
Calculate the Euclidean distance between two points on a 2D plane
2D Distance Formula
d = √[(x₂ - x₁)² + (y₂ - y₁)²]
Where (x₁, y₁) and (x₂, y₂) are the coordinates of the two points
3D Distance Calculator
Calculate the Euclidean distance between two points in 3D space
3D Distance Formula
d = √[(x₂ - x₁)² + (y₂ - y₁)² + (z₂ - z₁)²]
Where (x₁, y₁, z₁) and (x₂, y₂, z₂) are the 3D coordinates
Geographic Distance Calculator
Calculate the great-circle distance between two points on Earth
Haversine Formula
a = sin²(Δφ/2) + cos(φ₁) * cos(φ₂) * sin²(Δλ/2)
c = 2 * atan2(√a, √(1−a))
d = R * c (where R is Earth's radius ≈ 6371 km)
φ is latitude, λ is longitude (both in radians)
Map Distance Calculator
Click on the map to set points and calculate the distance between them
About Great-circle Distance
The shortest path between two points on a sphere (like Earth) follows a great circle.
This calculator uses the Haversine formula with Earth's mean radius (6371 km).
For higher precision, Lambert's formula for ellipsoids would be used.