What this airport distance calculator does
This tool calculates the great-circle distance between two airports using their IATA codes. A great-circle route is the shortest path over the Earth's surface, which is the standard way to estimate air travel distance. If you're planning a trip, checking frequent-flyer miles, comparing routes, or building logistics estimates, this gives you a fast and practical benchmark.
How to use it
- Enter your origin airport code (example: JFK).
- Enter your destination airport code (example: LAX).
- Select your preferred unit: kilometers, miles, or nautical miles.
- Click Calculate Distance.
The output includes airport names, city/country labels, straight-line distance, and an estimated flight time based on a typical cruise speed. You can also use the Swap Airports button for quick reverse-route checks.
Why the result may differ from your ticketed mileage
Airlines almost never fly the exact straight-line path due to weather systems, restricted airspace, air traffic flow management, and runway routing. So the calculator's value is an accurate geographic baseline, not an exact logged flight path.
Main factors that change real flight distance
- Jet stream routing and seasonal wind patterns
- Departure and arrival procedures (SID/STAR paths)
- Holding patterns or reroutes due to congestion
- Military, political, or temporary airspace restrictions
- Operational choices made by dispatch and flight crew
How the distance is calculated
The calculator uses the Haversine formula, a standard spherical trigonometry method for finding the shortest distance between two latitude/longitude points. This approach is widely used in navigation, mapping, and travel software.
In short: each airport has geographic coordinates. The script converts the latitude/longitude difference into radians, computes the central angle between points, and multiplies by Earth's radius to obtain distance.
Supported airport codes (sample set in this calculator)
- JFK — New York
- LAX — Los Angeles
- ORD — Chicago O'Hare
- ATL — Atlanta
- DFW — Dallas/Fort Worth
- DEN — Denver
- SFO — San Francisco
- SEA — Seattle
- MIA — Miami
- BOS — Boston
- IAD — Washington Dulles
- EWR — Newark
- LAS — Las Vegas
- PHX — Phoenix
- YYZ — Toronto
- YVR — Vancouver
- MEX — Mexico City
- GRU — São Paulo
- LHR — London Heathrow
- CDG — Paris Charles de Gaulle
- AMS — Amsterdam
- FRA — Frankfurt
- MAD — Madrid
- FCO — Rome Fiumicino
- IST — Istanbul
- DXB — Dubai
- DOH — Doha
- DEL — Delhi
- BOM — Mumbai
- SIN — Singapore
- HKG — Hong Kong
- NRT — Tokyo Narita
- HND — Tokyo Haneda
- ICN — Seoul Incheon
- BKK — Bangkok
- SYD — Sydney
- MEL — Melbourne
- AKL — Auckland
- JNB — Johannesburg
- CAI — Cairo
Common use cases
- Trip planning and comparing destination options
- Quick reference for aviation enthusiasts and students
- Frequent-flyer and travel reward optimization
- Logistics and high-level route feasibility checks
Final tip
For real operations, combine this straight-line estimate with airline schedules, aircraft type, headwinds/tailwinds, and local airspace constraints. But for fast, clean comparisons, this airport-to-airport distance calculator gives you a dependable starting point.