b2KIT

Geographic Distance Calculator

Calculate great-circle distance between two coordinates using Haversine and Vincenty formulas.

Tested tool guide Tested browser tools Checked August 16, 2026

What Geographic Distance Calculator does and how it behaves

Enter two latitude-longitude pairs to compare a spherical Haversine distance with an ellipsoidal Vincenty distance. Both describe the shortest surface separation between the coordinates, so the results may differ slightly because they use different Earth models. The common mistake is to read either value as a road, walking, or terrain distance; neither follows a route or includes elevation. Latitude and longitude can also be accidentally reversed. Because coordinates may reveal sensitive locations, the calculation stays in the browser and does not upload them.

How the result is produced

1

Haversine distance

The Haversine calculation turns the latitude and longitude differences into a central angle between the two points, then converts that angle to distance with a spherical Earth radius. It returns a great-circle estimate that is symmetric when the endpoints are exchanged. The spherical model ignores flattening, terrain, altitude, road geometry, and barriers.

2

Vincenty distance

The Vincenty inverse calculation treats latitude and longitude as positions on a reference ellipsoid and solves for the geodesic between them. Flattening is included, so this result usually differs slightly from the Haversine value. Comparing the two values shows the effect of the Earth model for the selected coordinate pair, not measurement uncertainty at either endpoint.

Good uses

  • Compare the straight-line surface separation of two GPS waypoints before planning a field visit.
  • Check how much a spherical estimate differs from an ellipsoidal one for an airport-to-airport coordinate pair.
  • Screen whether two geocoded records are roughly nearby when network travel distance is irrelevant.

Limits and checks

  • Confirm which field is latitude and which is longitude. Latitude must be within -90 to 90 degrees; longitude is conventionally within -180 to 180 degrees.
  • Do not infer accuracy from displayed decimal places. Rounded, geocoded, or low-quality source coordinates can dominate the uncertainty in either calculated distance.
  • Nearly antipodal pairs are a known weak case for the classic Vincenty inverse method because its iteration may not converge. Treat any failure as a method limitation, not as zero distance.

Common questions

Why do the Haversine and Vincenty distances differ?

Haversine assumes a sphere, while Vincenty accounts for flattening through an ellipsoid. The difference depends on the endpoints and path orientation, so there is no single correction factor. For ordinary coordinate pairs, a small disagreement is expected. It does not mean the tool has found two different routes.

Can this calculate driving distance or three-dimensional separation?

No. These are geodesic surface distances derived only from latitude and longitude. They do not include road networks, legal access, turns, grades, terrain, or the altitude of either point. Use a routing service for travel distance. For true three-dimensional separation, you also need compatible elevations and a defined coordinate model.

References and verification

The behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools