tools.haversineCalculator.description
Point A
Point B
The Haversine formula gives the shortest distance between two points on a sphere — the same path a plane takes when flying between two cities. Enter any two latitude/longitude pairs and instantly see the distance in kilometers and miles, the initial bearing, and the geographic midpoint. Everything runs in your browser; no server calls needed.
How to Use
- 1Enter the latitude and longitude of Point A (or load an example city pair)
- 2Enter the latitude and longitude of Point B
- 3Click 'Calculate Distance' to see the result
- 4Read the distance in km and miles, plus the bearing (compass direction) from A to B
- 5Use the midpoint coordinates to find the halfway location between the two points
Frequently Asked Questions
What is the Haversine formula?
The Haversine formula calculates the shortest distance between two points on the surface of a sphere using their latitudes and longitudes. It accounts for Earth's curvature, making it accurate for navigation and mapping applications.
How accurate is this calculator?
It treats Earth as a perfect sphere with a radius of 6,371 km. Real-world distances may differ by up to 0.3% because Earth is slightly flattened at the poles (an oblate spheroid). For precise geodetic work, use the Vincenty formula instead.
What format should I use for coordinates?
Enter decimal degrees (e.g. 40.7128 for latitude and -74.0060 for longitude). South latitudes and West longitudes are negative. You can find these in Google Maps by right-clicking any location.