Calculate Great-Circle Distance
Enter two points on Earth using latitude and longitude. This tool uses the haversine formula to compute the shortest path over the planet's surface.
Latitude must be between -90 and 90. Longitude must be between -180 and 180.
What Is an Earth Distance Calculator?
An earth distance calculator estimates the shortest distance between two points on the planet using geographic coordinates. Instead of measuring in a flat straight line on a paper map, it measures the great-circle distance, which follows the curve of Earth.
This is the same core concept used in aviation, shipping, GIS tools, logistics planning, and many mapping systems.
Why Great-Circle Distance Matters
Flat maps can mislead
Most world maps are projections, and projections distort distance. Two cities that seem close on a map may be farther in real life, and vice versa. Great-circle math fixes that by working directly from latitude and longitude.
Real-world routes are curved
If you have ever looked at long-haul flights on a globe, you have noticed arcs rather than straight lines. Those arcs are often near-optimal great-circle paths.
How This Calculator Works
This tool uses the haversine formula, a standard equation for finding the distance between two points on a sphere:
- Convert each latitude and longitude from degrees to radians.
- Compute the central angle between the points.
- Multiply by Earth’s mean radius to get distance.
It then converts the result into kilometers, miles, and nautical miles so you can use the unit that fits your project.
How to Use the Calculator (Step-by-Step)
- Enter latitude and longitude for Point A.
- Enter latitude and longitude for Point B.
- Select your preferred output unit.
- Click Calculate Distance.
You will see:
- Total great-circle distance
- Distance in all major units
- Central angle between the points
- Initial bearing and midpoint coordinates
Example Coordinate Pairs You Can Try
New York to London
Point A: 40.7128, -74.0060
Point B: 51.5074, -0.1278
Tokyo to Sydney
Point A: 35.6762, 139.6503
Point B: -33.8688, 151.2093
Cape Town to Rio de Janeiro
Point A: -33.9249, 18.4241
Point B: -22.9068, -43.1729
Common Mistakes to Avoid
- Swapping latitude and longitude: Latitude comes first, longitude second.
- Using invalid ranges: Latitude outside ±90 and longitude outside ±180 are not valid.
- Forgetting negative signs: South latitudes and west longitudes are negative.
- Assuming route distance equals travel distance: Roads, air corridors, and terrain constraints can make actual trips longer.
When to Use This Tool
This calculator is useful for:
- Travel planning and rough itinerary checks
- Comparing city-to-city distances
- Educational geography and astronomy projects
- Marine and aviation pre-planning
- Back-end geospatial apps that need quick distance checks
Final Thoughts
A reliable earth distance calculator turns raw coordinates into practical insights in seconds. Whether you are planning flights, analyzing logistics, or just satisfying curiosity, understanding great-circle distance gives you a much more accurate picture of our world than a flat map ever could.