Mathematics · Interactive tool
Great-Circle Central Angle
Calculate a robust central angle between two spherical coordinates.
Your inputs
Result
Calculated output
Enter inputs to calculate.
Δλ=λ2−λ1; x=cosφ2 sinΔλ; y=cosφ1 sinφ2−sinφ1 cosφ2 cosΔλ; z=sinφ1 sinφ2+cosφ1 cosφ2 cosΔλ. Central angle θ=atan2(sqrt(x²+y²),z), great-circle distance=rθ.
φ are latitudes in [−π/2,π/2], λ longitudes, r sphere radius. This is spherical great-circle geometry; it does not calculate ellipsoidal geodesics. atan2 retains the correct quadrant, including antipodal points.