📊
Calculating the straight-line or great-circle distance between two points on the globe is essential in aviation and maritime navigation, and a common question when planning flights or estimating long-distance routes. In Spain, official mapping and geodetic reference systems are coordinated by the National Geographic Institute (IGN). In 2026, this calculator allows you to instantly determine the physical geodetic separation (great-circle path) using the mathematical Haversine formula.
If you are planning a road trip or coordinating travel finances, we recommend using the Trip Fuel Cost Calculator to project fuel expenses, or the Taxi Fare Estimator to estimate urban transport costs before arriving at your destination.
⚙️ What is great-circle distance?
Unlike a flat two-dimensional map, the shortest distance between two coordinates on the Earth’s spherical surface is actually a geodetic curve:
- Great-Circle (Orthodromic) Line: The arc of the largest possible circle that can be drawn on a sphere containing the two points, which represents the shortest path over the 3D surface.
- Rhumb (Loxodromic) Line: A line that crosses all meridians of the Earth at the same angle. While easier to navigate by keeping a constant compass heading, it is physically longer than a great-circle route.
🧮 The mathematical Haversine formula
To calculate linear separation over a sphere of constant radius without complex spherical trigonometry, the following equations are applied:
**a = sin²(Δlat/2) + cos(lat1) × cos(lat2) × sin²(Δlon/2)**
**c = 2 × atan2(√a, √(1-a))**
**Distance = R × c**
Where R is the Earth’s mean radius, standardized as 6,371 kilometers by the International Union of Geodesy and Geophysics (IUGG).
📊 Practical geodetic examples
Compare the straight-line distances calculated between various cities on the Iberian Peninsula:
- Madrid coordinates (Origin): **40.4168° N, -3.7038° E**
- Barcelona coordinates (Destination): **41.3851° N, 2.1734° E**
- Seville coordinates (Origin): **37.3891° N, -5.9845° E**
- Bilbao coordinates (Destination): **43.2630° N, -2.9350° E**
❓ Frequently Asked Questions (FAQ)
This tool calculates the straight-line distance through the air (geodetic distance). Google Maps, when providing vehicle directions, calculates the route along physical roads, streets, and highways, which must navigate geographic features and follow city grids, adding extra kilometers to the journey.
Since the Earth is not a perfect sphere but an ellipsoid slightly flattened at the poles, modern global positioning systems (GPS) use the WGS84 mathematical model to represent the Earth's shape accurately in cartography.
On intercontinental flights, planes do not follow a straight line on a flat map (rhumb line), as that would appear as a curve and take longer. Instead, they fly along the great-circle path (orthodromic route) to follow the physically shortest distance, saving time and fuel.
One nautical mile (NM) corresponds exactly to **1,852 meters** (1.852 km). It was historically defined as one minute of arc along a meridian of latitude and remains the standard unit for sea and air navigation worldwide.