Great-Circle Distance Calculator
Enter two latitude/longitude points to calculate the shortest distance over Earth’s surface.
Point A
Point B
Latitude must be between -90 and 90. Longitude must be between -180 and 180.
If you’ve ever wondered how far two places are “as the crow flies,” this tool is for you. The distance on Earth calculator computes the great-circle distance between two coordinates using a standard geodesic approach. It’s useful for travel planning, aviation estimates, shipping routes, education, and geospatial projects.
What this calculator measures
This calculator gives the shortest path over the Earth’s surface between two points defined by latitude and longitude. That path follows a curve on a sphere (or near-sphere), not a straight line through 3D space and not a road network route.
- Great-circle distance: shortest surface path between two coordinates
- Initial bearing: the direction you start traveling from Point A
- Midpoint: halfway coordinate along the great-circle route
Formula used (Haversine)
Under the hood, the calculator uses the Haversine formula with Earth’s mean radius (R = 6371.0088 km):
a = sin²(Δφ/2) + cos(φ1) · cos(φ2) · sin²(Δλ/2)
c = 2 · atan2(√a, √(1−a))
d = R · c
Where φ is latitude in radians and λ is longitude in radians.
How to use this distance on earth calculator
- Enter Point A latitude and longitude.
- Enter Point B latitude and longitude.
- Select your preferred output unit (km, mi, or nm).
- Click Calculate Distance.
You can also click Use My Location for Point A to automatically fill your current coordinates (browser permission required), then enter a destination for Point B.
Example
Try New York City (40.7128, -74.0060) and London (51.5074, -0.1278). You’ll get a distance around 5,570 km (varies slightly by Earth model and rounding).
Important accuracy notes
- This is not driving distance. Roads, rail lines, and flight corridors are different.
- Earth is an oblate spheroid, not a perfect sphere. Haversine is very good for most practical use cases.
- GPS noise, coordinate precision, and rounding can change results slightly.
Common real-world use cases
Travel and logistics
Estimate direct distances between cities for rough planning, fuel estimates, or route sanity checks.
Education and STEM
Teach coordinate systems, trigonometry, and map projection concepts with fast feedback.
Data projects
Use coordinate-to-coordinate distance in clustering, nearest-neighbor analysis, geofencing, and ranking locations by proximity.
FAQ
Why does my map app show a larger value?
Map apps usually report route distance over roads or travel lanes, not geodesic surface distance.
Can I use decimal degrees only?
Yes. Enter values in decimal degrees. North/East are positive; South/West are negative.
Is this good for aviation?
It’s good for quick estimates. Operational flight planning includes wind, altitude, airways, and regulations.
Final thoughts
The distance on Earth calculator is a fast way to convert raw coordinates into meaningful location insight. Whether you’re planning travel, building a geo app, or just curious about how far two places are, this great-circle approach gives a dependable answer in seconds.