How This Tool Works
The Haversine formula is a mathematical equation used to calculate the great-circle distance between two points on the surface of a sphere given their longitudes and latitudes. Essentially, it treats the Earth as if it were a perfect sphere (though reality is closer to an oblate spheroid). Our tool takes four inputs: Latitude 1 (Lat1), Longitude 1 (Lon1), Latitude 2 (Lat2), and Longitude 2 (Lon2).
It then applies the complex trigonometric functions of the Haversine formula, incorporating the Earth's mean radius (approximately 6371 km) to convert the angular difference into a linear distance. This ensures the resulting measurement is accurate regardless of how far apart the two coordinates are. For example, calculating the distance between New York and London requires this method because simple planar geometry would yield an incorrect result.
- Input Requirement: All coordinates must be in decimal degrees.
- Output Unit: Results are displayed in kilometers (km), but the calculation can adapt to miles if preferred.