Calculate Geodesic Distance Between Two Coordinates
Enter decimal latitude and longitude for two points on Earth. This tool supports both the Vincenty (ellipsoidal) and Haversine (spherical) methods.
What is geodesic distance?
Geodesic distance is the shortest path between two points on a curved surface. On Earth, that means the shortest route across the planet’s shape, not a straight line through it and not a flat-map estimate. If you work in navigation, GIS, logistics, aviation, surveying, or location-based software, geodesic distance is usually the value you want.
Why this matters in real-world calculations
Many people start with planar (flat) distance formulas because they are simple. That can work for very short distances in small local areas, but error grows quickly over long routes, high latitudes, and cross-ocean paths. Geodesic methods account for Earth geometry and produce more reliable results.
- Flight planning: great-circle and near-geodesic paths reduce travel distance and fuel burn.
- Shipping routes: precise long-distance measurements matter for cost and timing.
- GIS analysis: accurate buffers, nearest-neighbor queries, and distance-based clustering depend on correct metrics.
- Mobile and mapping apps: location features improve when backend distance logic is geodetically correct.
How this calculator works
1) Input coordinates
Enter latitude in the range -90 to 90 and longitude in -180 to 180. Use decimal degrees (for example, 34.0522 and -118.2437).
2) Choose a method
- Vincenty: Uses the WGS84 ellipsoid and is generally more precise for geodesic distance.
- Haversine: Uses a spherical Earth model and is computationally simple and fast.
3) Read outputs
The calculator returns distance, initial bearing, final bearing, and a midpoint estimate. Bearings are shown in degrees from true north.
Vincenty vs. Haversine: which should you use?
If you need higher accuracy across long distances, Vincenty is usually the better default. Haversine is often sufficient for quick estimates and applications where a small error is acceptable.
- Use Vincenty for precision workflows (surveying, professional GIS, engineering).
- Use Haversine for performance-sensitive or approximate distance checks.
Coordinate quality tips
- Double-check sign conventions: west and south are negative.
- Avoid mixing degrees-minutes-seconds with decimal format unless converted first.
- Use consistent datum assumptions (WGS84 is standard for GPS data).
- Validate data at ingestion to prevent invalid coordinate pairs.
Practical examples
New York to London
A common test route for global distance calculations. This route highlights why curved-surface methods outperform flat-map approximations.
Inter-city logistics
For trucking and distribution models, geodesic distance can help estimate baseline route lengths before adding road-network constraints.
Marine operations
Nautical miles are often the preferred output unit in marine and aviation workflows, and this calculator supports that directly.
Limitations to keep in mind
Geodesic distance is “as-the-crow-flies” over Earth’s surface. It does not account for roads, air corridors, terrain avoidance, weather detours, or legal boundaries. For turn-by-turn travel, pair this with routing engines.