How It Works Under the Hood
The haversine formula gives the shortest distance over a sphere: a = sin²(Δφ/2) + cos φ1 cos φ2 sin²(Δλ/2), d = 2R·asin(√a), using the mean Earth radius 6,371.0088 km. Initial bearing and the midpoint use standard spherical trigonometry.
Step-by-Step Instructions
Enter latitude and longitude of point A and point B in decimal degrees.
Choose the distance unit.
Read distance, initial bearing, compass direction and midpoint.
Key Features & Performance
- km, miles and nautical miles
- Bearing and 16-point compass
- Midpoint coordinates
- Validates ranges
Worked Examples & Edge Cases
London to Paris
51.5074, -0.1278 to 48.8566, 2.3522
About 343.5 km
Limitations, Scope & Accuracy Notes
- • Treats Earth as a sphere, so results can differ from ellipsoidal methods by up to about 0.5%.
- • It is straight-line distance, not road distance.
Local Browser Processing & Privacy
Traditional web converters upload your documents, snippets, or media files to remote servers. Haversine Distance Calculator runs inside your browser tab:
Your input text and files are processed locally without uploading payloads to a processing server.
Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).
Working outputs stay in your browser tab and are released when you reset the tool or close the tab.
Frequently Asked Questions
How accurate is it?
Usually within a fraction of a percent for most routes; for survey-grade work use an ellipsoidal formula such as Vincenty.
Do I need decimal degrees?
Yes. Use the GPS Coordinate Converter to convert from degrees-minutes-seconds.
Is data stored?
No.
Explore Related Micro-Tools
GPS Coordinate Converter (DD, DMS, DDM)
Convert between decimal degrees, degrees-minutes-seconds and degrees-decimal-minutes
Fleet Fuel Cost Calculator
Fuel used and cost for trips and fleets; L/100 km, km/L and MPG
E-Commerce Dimensional Weight & Print DPI Calculator
Compare carrier DIM weight vs scale weight (UPS/FedEx/USPS/DHL/IATA) and verify artwork resolution at 300 DPI