Calculate the distance between two points using the distance formula. Supports coordinate inputs, step-by-step calculations, and visual interpretation of point distances in geometry.
This calculator uses specific mathematical formulas tailored to the coordinate system you select, ensuring accuracy whether you're measuring a straight line in space or an arc on the Earth's surface.
2D 3D Geographic Multi-Point
2D Distance (Euclidean)
The shortest path between two points in a two-dimensional plane.
d = √((x₂ - x₁)² + (y₂ - y₁)²)
3D Distance
Extends the Euclidean formula to three-dimensional space.
d = √((Δx)² + (Δy)² + (Δz)²)
Geographic (Haversine)
Calculates the great-circle distance (shortest path on a sphere).
d = 2R · atan2(√a, √(1-a))
Multiple Points (Path)
Sums the 2D Euclidean distance of all sequential segments.
d_total = Σ d(Pᵢ, Pᵢ₊₁)
Key Mathematical Concepts
All distance calculations rely on the fundamental theorem derived from the Pythagorean Theorem (a² + b² = c²), which is used to find the length of the hypotenuse (the distance) between two points based on their change in coordinates (Δx and Δy).
The Haversine Formula (Geographic Mode)
When dealing with coordinates on a curved surface like the Earth, the straight-line Euclidean distance is inaccurate. The Haversine Formula calculates the distance along the great circle (the path with the shortest length connecting two points on a sphere). It takes into account the Earth's radius (R ≈ 6371 km) and uses the Haversine function to handle spherical geometry.
a = sin²(Δφ/2) + cos(φ₁) cos(φ₂) sin²(Δλ/2) d = 2R · atan2(√a, √(1-a))
Where φ is latitude, λ is longitude, and Δ denotes the difference between the two points, all converted to radians.
Ready to calculate? Start using the Distance Calculator now!