Great Circle Distance Calculator: Flight Path and Geodesic Distance Tool
Calculate the shortest flight path distance between any two points on Earth using the Haversine formula. Enter coordinates or look up IATA airport codes for instant great-circle distance and initial compass bearing.
The Complete Guide to Great Circle Distance and Flight Path Geodesics
When you book a long-haul flight, the route displayed on the in-flight map often appears to arc strangely far north or south compared to what you might expect from a straight line on a standard world map. This is not a quirk of the airline's routing. It is basic geometry: the surface of the Earth is curved, and on a curved surface, the shortest path between two points is always a great circle arc, not a straight line on a flat projection.
You can enter your origin and destination coordinates in one of two ways. First, type a valid IATA airport code (such as JFK, LHR, or HND) into the airport code field and click "Look Up" to automatically fill in that airport's latitude and longitude. Second, type decimal-degree coordinates directly into the latitude and longitude fields. The calculation fires automatically on every input change with no submit button required. The results panel updates instantly with the great-circle distance in kilometers, statute miles, and nautical miles, along with the initial compass bearing (azimuth) from Point A to Point B. The visualization panel draws the arc path across a flat equirectangular projection so you can see how the great circle curves relative to the "straight line on the map" path.
The most common world map projection (Mercator) preserves compass bearings and shapes of small areas but severely distorts distances and sizes at high latitudes. Greenland appears as large as Africa on a Mercator map, even though Africa is about 14 times larger. Because of this distortion, a straight line drawn on a Mercator map between two cities at similar latitudes (such as Los Angeles and London) appears to be the shortest route. It is not. That straight line corresponds to a rhumb line: a path that crosses every meridian at the same compass angle. A rhumb line is easy to follow on a compass but it is longer than the great circle route. A flight from Los Angeles to London following the great circle arcs far north over Canada and the North Atlantic, cutting hundreds of miles off the journey.
The Haversine formula is a specialized application of the spherical law of cosines, designed to handle the numerical precision challenges that arise when computing distances between points that are very close together. The formula works in four steps. First, the latitude and longitude of both points are converted from degrees to radians (radians = degrees multiplied by pi divided by 180). Second, the differences in latitude (delta-lat) and longitude (delta-lon) are calculated. Third, the Haversine function is applied: a = sin(delta-lat / 2) squared plus cos(lat1) times cos(lat2) times sin(delta-lon / 2) squared. Fourth, the central angle c = 2 multiplied by arctan2(sqrt(a), sqrt(1 minus a)) is computed, and the distance is d = R multiplied by c, where R is the Earth's mean radius of 6,371 km. This tool also computes the initial bearing using the atan2 formula: bearing = atan2(sin(delta-lon) times cos(lat2), cos(lat1) times sin(lat2) minus sin(lat1) times cos(lat2) times cos(delta-lon)), converted to degrees and normalized to a 0 to 360 degree compass heading.
Airlines use great circle routing as a starting point for every long-haul flight plan. The actual flown route is then refined by factoring in jet stream winds, restricted airspace, overflight permit requirements, and airport slot availability. Typically, a flight from New York (JFK) to London (LHR) has a great circle distance of about 5,540 km. Due to favorable jet stream winds blowing eastward across the North Atlantic, the actual flight eastbound often takes a slightly longer northern arc to maximize tailwind benefit, while the westbound return takes a more southerly track to avoid headwinds. Understanding the baseline great circle distance is the essential first step in all of this planning.