Flight Mileage Calculator
Enter the latitude and longitude of two points to find the one-way or round-trip great-circle distance in miles, kilometres and nautical miles.
Use decimal degrees (positive for North/East, negative for South/West).
Enter latitudes from −90 to 90 and longitudes from −180 to 180 in decimal degrees.
How great-circle distance is calculated
This calculator uses the haversine formula to find the great-circle distance — the shortest path between two points along the surface of a sphere, which is how commercial flights actually route over the curved Earth rather than following a straight line on a flat map.
The formula converts the latitude and longitude of both points to radians, then calculates the central angle between them using trigonometric functions, finally multiplying by Earth's radius to get the distance.
Frequently asked questions
Why is the great-circle distance shorter than it looks on a map?
Flat maps distort the true shape of the Earth's surface. A straight line on a flat map (a Mercator projection, for example) is usually not the shortest actual path between two points — the true shortest path curves toward the poles, which is why long flights often appear to arc on a map.
Does this match the actual distance a flight travels?
It's close but not exact — actual flight paths deviate from the pure great-circle route due to air traffic routes, weather avoidance, wind patterns, and airspace restrictions, so real flown distance is typically slightly longer than the great-circle distance.
Where do I find an airport's latitude and longitude?
Airport coordinate data is publicly available from aviation databases and mapping services — search for the airport's ICAO or IATA code along with "coordinates" to find its published latitude and longitude.
How long is the flight and how many miles do I earn?
A rough airline rule is 500 mph cruising plus 30 minutes for taxi, climb and descent: 2,470 mi from New York JFK to Los Angeles ≈ 5 h 26 min. For your own speed use the flight time estimator. Distance-based programmes usually credit the great-circle miles flown, so a round trip earns about twice the one-way distance; check your airline’s rules.
How we verified this calculator
The calculator is checked against 5 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Trip = One way
Point A latitude = 40.6413
Point A longitude = -73.7781
Point B latitude = 33.9416
Point B longitude = -118.4085
|
Distance (miles): 2469.565555
Distance (km): 3974.380508
Distance (nautical miles): 2145.993795
|
| 2 |
Trip = Round trip
Point A latitude = 40.6413
Point A longitude = -73.7781
Point B latitude = 33.9416
Point B longitude = -118.4085
|
Distance (miles): 4939.131109
Distance (km): 7948.761016
Distance (nautical miles): 4291.98759
|
| 3 |
Trip = One way
Point A latitude = 0
Point A longitude = 0
Point B latitude = 0
Point B longitude = 0
|
Distance (miles): 0
Distance (km): 0
Distance (nautical miles): 0
|
| 4 |
Trip = Round trip
Point A latitude = 51.47
Point A longitude = -0.4543
Point B latitude = -33.9399
Point B longitude = 151.1753
|
Distance (miles): 21151.21645
Distance (km): 34039.58328
Distance (nautical miles): 18379.90458
|
| 5 |
Trip = One way
Point A latitude = 90
Point A longitude = 0
Point B latitude = -90
Point B longitude = 180
|
Distance (miles): 12436.937
Distance (km): 20015.30993
Distance (nautical miles): 10807.40277
|