GPS Distance Calculator: Great Circle & Vincenty Algorithms
Enter the latitude and longitude (WGS84, decimal degrees) of two points to calculate the distance between them. The primary result is the geodesic distance from Vincenty's inverse formula on the WGS84 ellipsoid (accurate to about 0.5 mm). The great-circle distance from the Haversine formula on a spherical Earth is shown alongside for comparison.
Coordinate systems matter! Mixing WGS84 and local datums (like Tokyo Datum or NAD27) without converting causes positional shifts of 400 to 450 meters (such as between Tokyo Datum Bessel 1841 and WGS84). Always double-check your map's assumed datum before use in the field.
Point A (Start)
Point B (End)
Calculation Results
Frequently Asked Questions (FAQ)
What is the difference between Haversine (Great-Circle) and Vincenty (Geodesic) distance?
The Haversine formula assumes the Earth is a perfect sphere with an average radius of 6,371 km. While fast and suitable for short distances, it introduces errors up to 0.5% (several kilometers across continents). The Vincenty inverse method accounts for Earth's ellipsoidal oblateness (WGS84 flattening f = 1/298.257223563), achieving sub-millimeter theoretical precision.
Why are initial bearing and final bearing different on a geodesic curve?
Because the shortest path between two points on a curved sphere or ellipsoid (a great circle or geodesic line) does not follow a line of constant compass heading (a rhumb line). As you travel along the geodesic curve, your heading continuously changes. The initial bearing is your departure angle, while the final bearing is the angle at which you arrive.
Can I use Euclidean (Pythagorean) distance for GPS coordinates?
No. Euclidean flat-plane formulas (dx² + dy²) cause catastrophic distortion unless points are within a few hundred meters. Because lines of longitude converge at the poles (1° of longitude equals ~111 km at the equator but 0 km at the poles), flat formulas severely warp east-west distances at higher latitudes.
How does elevation affect geodesic ground distance?
Standard GPS geodesic calculations measure distance along the reference ellipsoid at Mean Sea Level (MSL / geoid). If both points are at high altitude (e.g. 2,000 meters above sea level), the physical ground distance is slightly longer than the ellipsoidal distance by a scale factor of (1 + h/R), creating roughly 31 cm of extra ground distance per kilometer.
Precision Penalty: Scale Factor Distortion & SPCS Liability
In mountainous US SPCS zones (e.g., Colorado, California), combined scale factor errors reach 15cm per kilometer. Treating grid coordinates as ground distances without applying (Grid x Elevation) corrections has resulted in costly construction errors, including mislocated utilities, when offset stakes were interpreted without proper grid-to-ground correction.