Skip to content

GPS Distance Calculator — Point-to-Point with Elevation

Calculate the distance between two GPS coordinates with elevation correction.

Start Point

e.g. 51.5074 (London)

e.g. -0.1278

End Point

e.g. 51.4545 (Reading)

e.g. -0.9781

Set to 0 for flat distance only


How We Calculate This

Haversine Formula

The Haversine formula calculates the great-circle distance between two points on a sphere from their latitudes and longitudes.

a = sin^2(dlat/2) + cos(lat1) * cos(lat2) * sin^2(dlon/2)

distance = 2 * R * atan2(sqrt(a), sqrt(1-a))

Where R is the Earth's radius (6,371 km).

Elevation Correction

The corrected distance accounts for total elevation gain using Pythagoras: actual = sqrt(flat^2 + elevation^2)

Frequently Asked Questions

Last updated: 2025-02-20

All calculations are estimates. Always verify results and consult a professional bike fitter where appropriate.