CalcWorldHub
Free online calculator · no signup

WGS84 Ellipsoidal Geodesic Distance Calculator

Estimate the shortest surface distance between two WGS84 coordinates on the reference ellipsoid.

4,000 tools
WGS84 Ellipsoidal Geodesic Distance Calculator — Point 1 latitude, degrees, Point 1 longitude, degrees, Point 2 latitude, degrees and calculation method
WGS84 Ellipsoidal Geodesic Distance Calculator: inputs and calculation method.

How to use this calculator

Estimate the shortest surface distance between two WGS84 coordinates on the reference ellipsoid.

  1. Enter Point 1 latitude, degrees, Point 1 longitude, degrees, Point 2 latitude, degrees, Point 2 longitude, degrees. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Geodesy calculation

How this calculation works

The inverse geodesic problem finds the shortest path between two points on an ellipsoid of revolution. This calculator implements Vincenty’s compact iterative solution for WGS84 and reports the surface distance and forward azimuth.

Inputs and units

latitude1 — Point 1 latitude, degrees
Geodetic latitude from −90° to 90°.
longitude1 — Point 1 longitude, degrees
Longitude from −180° to 180°.
latitude2 — Point 2 latitude, degrees
Geodetic latitude from −90° to 90°.
longitude2 — Point 2 longitude, degrees
Longitude from −180° to 180°.

Formula

Displayed formula

Vincenty inverse solution on the WGS84 ellipsoid; distance s = bA(σ − Δσ), with iterative longitude correction.

Method

Convert geodetic latitudes to reduced latitudes, iterate the auxiliary longitude until it converges, then apply the ellipsoidal series correction to obtain distance. The same converged solution gives the initial forward azimuth.

Worked example

Between New York (40.7128° N, 74.0060° W) and London (51.5074° N, 0.1278° W), the WGS84 ellipsoidal geodesic distance is about 5,585.234 km.

Assumptions and limits

Uses the WGS84 ellipsoid and Vincenty’s inverse algorithm. The iteration can fail to converge for nearly antipodal points; such cases are reported instead of silently falling back to a less accurate spherical distance. Coordinates use degrees, and longitude is wrapped across the antimeridian.

Frequently asked questions

How is this different from a great-circle distance?

A great-circle calculation assumes a sphere; this calculation follows the WGS84 reference ellipsoid.

What is the inverse geodesic problem?

It finds distance and direction between two specified points on an ellipsoid.

Why can the result fail near antipodes?

Vincenty’s iterative inverse formula may not converge for some nearly opposite point pairs; a robust geodesic library is needed for those cases.

How do I use the WGS84 Ellipsoidal Geodesic Distance Calculator?

Enter Point 1 latitude, degrees, Point 1 longitude, degrees, Point 2 latitude, degrees, Point 2 longitude, degrees. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of WGS84 Ellipsoidal Geodesic Distance?

Between New York (40.7128° N, 74.0060° W) and London (51.5074° N, 0.1278° W), the WGS84 ellipsoidal geodesic distance is about 5,585.234 km.