Haversine Distance Calculator
Calculate the great-circle distance between two geographic coordinates using the Haversine formula.
Coordinates
Quick Presets
Enter two coordinates and click Calculate.
Kilometers
—
km
Miles
—
mi
Nautical Miles
—
nmi
Haversine Calculation Steps
Δlat (radians)
—
Δlon (radians)
—
a = sin²(Δlat/2) + cos(φ1)·cos(φ2)·sin²(Δlon/2)
—
c = 2·atan2(√a, √(1−a))
—
d = R · c (R = 6371 km)
—
Copied!
Summary
Calculate the great-circle distance between two geographic coordinates using the Haversine formula.
How it works
- Enter the latitude and longitude for Point A in decimal degrees (e.g. 40.7128, -74.0060).
- Enter the latitude and longitude for Point B in decimal degrees.
- Click Calculate to apply the Haversine formula: a = sin²(Δlat/2) + cos(lat1)·cos(lat2)·sin²(Δlon/2).
- The central angle c = 2·atan2(√a, √(1−a)) is multiplied by Earth's mean radius (6371 km).
- Results are displayed in kilometers, miles, and nautical miles.
- Use the city presets or paste coordinates directly from a map application.
Use cases
- Calculate straight-line distance between two cities for travel planning.
- Verify GPS distances in geospatial software development.
- Understand spherical trigonometry in a hands-on, visual way.
- Compute proximity between two points for logistics and delivery routing.
- Check coverage radius for antennas, cell towers, or service zones.
- Educational demonstrations of great-circle geometry in geography courses.
- Cross-validate distances computed by mapping APIs.
- Estimate fuel requirements for aviation or maritime routes.
Frequently Asked Questions
Related tools
Last updated: 2026-05-29 ·
Reviewed by Nham Vu