How to use this calculator
Calculate the halfway coordinate along the shorter great-circle path between two latitude–longitude points.
- Enter Point 1 latitude (°), Point 1 longitude (°), Point 2 latitude (°), Point 2 longitude (°). Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How this calculation works
A geographic midpoint is not generally the arithmetic mean of two coordinates. This tool averages their unit vectors on a sphere and converts the result back to latitude and longitude.
Inputs and units
lat1— Point 1 latitude (°)- Latitude from −90° to 90°.
lon1— Point 1 longitude (°)- Longitude from −180° to 180°.
lat2— Point 2 latitude (°)- Latitude from −90° to 90°.
lon2— Point 2 longitude (°)- Longitude from −180° to 180°.
Formula
a = [cosφ₁cosλ₁, cosφ₁sinλ₁, sinφ₁] + [cosφ₂cosλ₂, cosφ₂sinλ₂, sinφ₂]; normalize a; φₘ = atan2(a_z, √(a_x²+a_y²)); λₘ = atan2(a_y,a_x).
Worked example
The midpoint between New York (40.7128°, −74.0060°) and London (51.5072°, −0.1276°) is approximately 52.37° N, 41.29° W along the shorter spherical arc.
Assumptions and limits
Spherical approximation; antipodal endpoints have no unique midpoint. Coordinates must use the same datum.
Frequently asked questions
Why not average the longitudes?
Longitude wrap and spherical geometry make a coordinate average incorrect for many routes.
What if the points are opposite each other?
There are infinitely many great-circle paths between antipodes, so no unique midpoint exists.
Does it choose the shorter route?
Yes, the vector-sum method gives the midpoint of the shorter arc.
How do I use the Great-circle midpoint calculator?
Enter Point 1 latitude (°), Point 1 longitude (°), Point 2 latitude (°), Point 2 longitude (°). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Great-circle midpoint?
The midpoint between New York (40.7128°, −74.0060°) and London (51.5072°, −0.1276°) is approximately 52.37° N, 41.29° W along the shorter spherical arc.
Read our calculation methodology.