Skip to content

GPS Distance Calculator — Straight-Line Distance Between Two Points

Calculate the great-circle (as-the-crow-flies) distance between two GPS coordinates using the Haversine formula.

Start Point

End Point


How We Calculate This

Haversine Formula

The Haversine formula calculates the great-circle distance — the shortest path over the surface of a sphere — between two points from their latitudes and longitudes.

a = sin²(Δlat/2) + cos(lat₁) × cos(lat₂) × sin²(Δlon/2)

distance = 2 × R × atan2(√a, √(1−a))

Where R is the Earth's mean radius, 6,371 km (the IUGG-recommended value that minimises RMS error against true geodesic distance).

Initial Bearing

The forward azimuth at the start point is found from:

θ = atan2( sin(Δlon)×cos(lat₂), cos(lat₁)×sin(lat₂) − sin(lat₁)×cos(lat₂)×cos(Δlon) )

normalised to 0–360° clockwise from true north.

Straight-line, not ridden distance

This is the as-the-crow-flies distance. Your actual ridden route will be longer because roads wind and climb — typically 20–40% further on UK roads. For true ridden distance, plan the route in a GPS route planner.

Frequently Asked Questions

Last updated: 2025-02-20

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