Coordinate Distance Calculator
Calculate the great-circle distance between two lat/lng points in km, miles, and nautical miles with the Haversine formula, plus the initial bearing and compass direction.
Loading tool...
What is Coordinate Distance Calculator?
The Coordinate Distance Calculator computes the great-circle distance between two latitude/longitude points using the Haversine formula, showing the result in kilometers, miles, and nautical miles together with the initial bearing and its compass direction.
Key Benefits
- True over-the-Earth distance, not flat-map approximation
- Three distance units and the initial bearing in one result
- Range validation catches swapped or out-of-bounds coordinates
- Live, private, and completely client-side
Common Use Cases
- •Measuring flight or shipping routes between cities and airports
- •Checking GPS geofence radii and delivery coverage areas
- •Verifying distances in surveying, hiking, and marine planning
- •Estimating travel feasibility for logistics and dispatch
- •Teaching spherical geometry with real-world coordinates
Calculate Distance Between Coordinates
- Enter point A: Type the latitude and longitude of your starting point in decimal degrees, e.g. 13.7563 and 100.5018 for Bangkok.
- Enter point B: Type the latitude and longitude of the destination the same way.
- Read the distance: The tool applies the Haversine formula over the Earth sphere and shows the distance in kilometers, miles, and nautical miles.
- Check the bearing: The initial bearing from A to B appears in degrees with a compass direction such as SE or NW - useful for flight and voyage planning.
Key Features
- Haversine great-circle distance on the Earth sphere
- Results in kilometers, miles, and nautical miles at once
- Initial bearing in degrees with an 8-point compass direction
- Validates latitude (-90..90) and longitude (-180..180) ranges
- Live results on every keystroke - no button needed
- Pure client-side math, instant and private