Latitude Longitude Distance Converter
Calculate the distance between two GPS coordinates using the Haversine formula
Point 1
Point 2
Distance
5,570.22 km
3,461.39 miles
Meters
55,70,222.18
Feet
1,82,76,134.16
Nautical Miles
3,007.62
Flight Time (~800 km/h)
6.96 hrs
Direction
Initial Bearing
51.21°
Cardinal Direction
NE
Preset Locations
About the Calculation
This calculator uses the Haversine formula to calculate the great-circle distance between two points on a sphere (Earth).
The great-circle distance is the shortest distance between two points on the surface of a sphere, measured along the surface.
Note: Earth is not a perfect sphere, so this calculation has a small margin of error (typically less than 0.3%).
What is GPS Coordinate Distance?
GPS coordinate distance is the shortest distance between two points on the Earth's surface, measured along the great circle connecting them. A great circle is the largest possible circle that can be drawn on a sphere — imagine stretching a rubber band tightly between two points on a globe. The great-circle distance is always the shortest path between two locations on a spherical surface, which is why long-distance airline routes appear curved on flat maps.
This calculator uses the Haversine formula, which is the standard mathematical method for computing great-circle distances from latitude and longitude coordinates. The formula accounts for the Earth's curvature by treating it as a sphere with a radius of approximately 6,371 kilometers (3,959 miles). While the Earth is actually an oblate spheroid slightly wider at the equator, the spherical approximation produces results accurate to within 0.3% for most practical purposes.
The calculator accepts coordinates in decimal degrees — the standard format used by GPS devices, Google Maps, and most mapping software. It outputs distances in kilometers, miles, nautical miles, meters, and feet, along with the initial bearing (azimuth) from the first point to the second and an estimated flight time. Whether you are planning a trip, calculating shipping routes, or simply curious about distances between cities, this tool provides accurate results.
The Haversine Formula
The Haversine formula calculates the great-circle distance between two points on a sphere given their latitudes and longitudes. It is numerically well-conditioned for small distances, making it the preferred choice for most distance calculations.
Haversine Distance Formula
Where:
- Δlat= Difference in latitude between the two points (in radians)
- Δlon= Difference in longitude between the two points (in radians)
- lat₁, lat₂= Latitudes of the two points (in radians)
- R= Earth's radius: 6,371 km or 3,959 miles
- d= The great-circle distance between the two points
Understanding Latitude and Longitude
Latitude and longitude form a coordinate grid that uniquely identifies any point on Earth's surface. Understanding these coordinates is essential for accurate distance calculations.
| Coordinate | Range | Direction | Example |
|---|---|---|---|
| Latitude | -90° to +90° | North (+) / South (-) | 40.7128°N (New York) |
| Longitude | -180° to +180° | East (+) / West (-) | -74.006°W (New York) |
The Equator is at 0° latitude, and the Prime Meridian (through Greenwich, England) is at 0° longitude. These two lines divide Earth into four quadrants and provide the reference points for all coordinate measurements.
How to Use This Calculator
The latitude-longitude distance calculator provides comprehensive distance and direction information:
- Enter Point 1 coordinates: Input the latitude (-90 to 90) and longitude (-180 to 180) of your starting point in decimal degrees.
- Enter Point 2 coordinates: Input the latitude and longitude of your destination point.
- View the distance: The result shows the great-circle distance in kilometers, miles, nautical miles, meters, and feet.
- Check the bearing: The initial bearing (azimuth) shows the direction from Point 1 to Point 2 in degrees and cardinal direction.
- See flight time: An estimated flight time is provided assuming an average commercial jet speed of 800 km/h.
- Use preset locations: Click any preset city button to quickly load its coordinates and calculate distances.
Real-World Applications
GPS distance calculation is essential in aviation and maritime navigation. Pilots and ship captains plan routes along great-circle distances because these represent the shortest paths between locations on Earth. A flight from New York to London follows a great-circle route that curves northward over Newfoundland — appearing curved on a flat map but representing the shortest possible path on the globe.
In logistics and supply chain management, calculating distances between distribution centers, warehouses, and delivery points helps optimize routes and estimate shipping costs. Many logistics software systems use GPS coordinates and Haversine calculations to determine the most efficient delivery routes across multiple stops.
Outdoor recreation and fitness tracking also benefit from GPS distance calculations. Hikers, runners, cyclists, and sailors use GPS coordinates to measure distances between waypoints, track progress along routes, and plan adventures. Fitness apps use similar calculations to convert GPS traces into distance measurements for training logs.
Worked Examples
New York to London Distance
Problem:
Calculate the great-circle distance between New York (40.7128°N, 74.006°W) and London (51.5074°N, 0.1278°W).
Solution Steps:
- 1Point 1: lat₁ = 40.7128°, lon₁ = -74.006°
- 2Point 2: lat₂ = 51.5074°, lon₂ = -0.1278°
- 3Apply Haversine formula with R = 6,371 km
- 4Calculate great-circle distance
Result:
5,570 km = 3,460 miles = 3,007 nautical miles, bearing approximately 51° (NNE)
Tokyo to Sydney Distance
Problem:
How far is it from Tokyo (35.6762°N, 139.6503°E) to Sydney (-33.8688°S, 151.2093°E)?
Solution Steps:
- 1Point 1: lat₁ = 35.6762°, lon₁ = 139.6503°
- 2Point 2: lat₂ = -33.8688°, lon₂ = 151.2093°
- 3Apply Haversine formula
- 4Compute distance in multiple units
Result:
7,823 km = 4,861 miles = 4,224 nautical miles, bearing approximately 208° (SSW)
Short Distance Between Cities
Problem:
Calculate the distance between Paris (48.8566°N, 2.3522°E) and Berlin (52.5200°N, 13.4050°E).
Solution Steps:
- 1Point 1: lat₁ = 48.8566°, lon₁ = 2.3522°
- 2Point 2: lat₂ = 52.5200°, lon₂ = 13.4050°
- 3Apply Haversine formula
- 4Calculate distance and bearing
Result:
878 km = 545 miles = 474 nautical miles, bearing approximately 53° (NE)
Tips & Best Practices
- ✓Enter coordinates in decimal degrees — the format used by GPS and Google Maps
- ✓North latitudes are positive, south are negative; east longitudes are positive, west are negative
- ✓The Haversine formula is accurate to within 0.3% — sufficient for most applications
- ✓Great-circle routes are the shortest distances on a sphere — they appear curved on flat maps
- ✓1 nautical mile = 1,852 m = 1.151 statute miles — used in aviation and maritime navigation
- ✓Use preset city buttons for quick calculations between major world cities
Frequently Asked Questions
Sources & References
Last updated: 2026-06-06
Help us improve!
How would you rate the Latitude Longitude Distance Converter?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: NIST Guide to SI Units
by National Institute of Standards