Skip to main content
AirMilesCalc
Menu
Reference

Methodology

Every formula and data source AirMilesCalc uses — Vincenty on WGS-84, DEFRA 2024 emission factors, Lee 2021 radiative forcing, and OpenFlights base data.

Updated 2026-06-0112 min read
Primary sources · 9
  1. [1] Vincenty (1975)Direct and Inverse Solutions of Geodesics on the Ellipsoid with Application of Nested Equations · Survey Review XXIII (176), pp. 88–93 · April 1975 https://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf
  2. [2] NGA.STND.0036_1.0.0_WGS84Department of Defense World Geodetic System 1984: Its Definition and Relationships with Local Geodetic Systems · National Geospatial-Intelligence Agency Standard · Version 1.0.0, July 2014 https://earth-info.nga.mil/index.php?dir=wgs84&action=wgs84
  3. [3] DESNZ / DEFRA 2024 conversion factorsGreenhouse gas reporting: conversion factors 2024, condensed and full sets plus methodology paper · UK Department for Energy Security and Net Zero · Published June 2024 https://www.gov.uk/government/publications/greenhouse-gas-reporting-conversion-factors-2024
  4. [4] Lee et al. (2021)The contribution of global aviation to anthropogenic climate forcing for 2000 to 2018 · Atmospheric Environment vol. 244, 117834 · January 2021 https://doi.org/10.1016/j.atmosenv.2020.117834
  5. [5] OpenFlightsAirport, airline, and route databases under the Open Database License (ODbL) · openflights.org/data.php · Routes data: final 3rd-party feed June 2014; airports: community-maintained https://openflights.org/data.php
  6. [6] ICAO CORSIACarbon Offsetting and Reduction Scheme for International Aviation — phase definitions and baseline rules · International Civil Aviation Organization · CORSIA FAQs, April 2024 update https://www.icao.int/environmental-protection/CORSIA/Pages/default.aspx
  7. [7] IATA Fly Net Zero 2050Resolution committing member airlines to net-zero by 2050, passed at the 77th IATA AGM in Boston · International Air Transport Association · 4 October 2021 https://www.iata.org/en/programs/sustainability/flynetzero/
  8. [8] BIPM SI Brochure (nautical mile)International nautical mile defined as exactly 1,852 m at the First International Extraordinary Hydrographic Conference, Monaco, 1929 · Bureau International des Poids et Mesures · Conference 1929; BIPM SI Brochure 9th edition 2019 https://www.bipm.org/en/publications/si-brochure
  9. [9] IEA Aviation trackingAviation accounted for 2.5% of global energy-related CO₂ emissions in 2023, ≈950 Mt CO₂ · International Energy Agency · Updated 2024 https://www.iea.org/energy-system/transport/aviation

AirMilesCalc computes geodesic distance, flight duration, and per-cabin CO₂ from a closed set of published formulas and reference data. Every figure on this site traces back to a primary source — there are no rounding shortcuts and no mocked numbers. This page lays out what we calculate, how, and where the constants come from.

0.5 mm
Vincenty distance precision on WGS-84
Vincenty 1975
1 ⁄ 298.257223563
WGS-84 inverse flattening (1/f)
NGA.STND.0036
1.9 ×
Radiative-forcing uplift on CO₂ for non-CO₂ aviation effects
DESNZ 2024 / Lee 2009 base
1,852 m
International nautical mile, defined exactly
Monaco 1929 / BIPM

How we compute distance

The shortest path between two points on Earth is a geodesic — the ellipsoidal cousin of a straight line. Treating Earth as a sphere (the Haversine formula) gets you within roughly 0.5 % of the true distance, fine for most rough navigation but inadequate for aviation flight planning. We use Thaddeus Vincenty's 1975 iterative inverse formula on the WGS-84 ellipsoid because it converges to sub-millimetre precision in standard double-precision arithmetic.

Great-circle (curved on Mercator) vs rhumb line (straight on Mercator) — JFK to Hong Kong
JFKHKGGreat-circle (≈ 12,983 km, what aircraft fly)Rhumb line (≈ 15,200 km, constant compass bearing)
Source: Calculated from WGS-84 Vincenty inverse; rhumb line length from rhumb formula on the same ellipsoid

The great-circle path between JFK and HKG measures about 12,983 km, while the rhumb-line course you would steer by holding a single magnetic heading runs roughly 15,200 km — a 17 % detour on the same trip. That 2,200-km gap is the whole reason every long-haul jet uses geodesic navigation rather than a constant compass bearing. The bigger the latitude swing, the bigger the penalty for steering a straight line on a Mercator map.

WGS-84 ellipsoid vs perfect sphere — the polar flattening exaggerated for clarity
a = 6,378,137 m (equatorial)b = 6,356,752.314 m(polar)a − b ≈ 21.4 kmNSWGS-84 ellipsoid (flattening exaggerated)Reference sphere (Haversine assumption)
Source: NGA.STND.0036_1.0.0_WGS84 (2014)
  1. 1
    Reduce the latitudes

    Convert geographic latitudes φ₁, φ₂ to reduced latitudes U₁, U₂ via tan U = (1 − f) tan φ. This step collapses the latitude problem onto an auxiliary sphere of radius b/a so the rest of the algorithm can use spherical trigonometry.

  2. 2
    Iterate λ until convergence

    Starting with λ = L (the longitude difference), compute σ, sin α, and cos 2σm, then update λ from those quantities. Vincenty's inner loop contains six trigonometric terms; we run it for up to 100 iterations with a 10⁻¹² rad convergence tolerance — typical real-world pairs converge in 4–8 passes.

  3. 3
    Resolve fallback for near-antipodes

    For points within about half a degree of being antipodal the inverse problem may not converge — Vincenty himself flagged this in the original paper. We fall back to the Haversine formula, which always returns a finite value and is accurate to a few hundred metres at antipodal scale.

  4. 4
    Apply the final ellipsoid correction

    Compute u² from cos²α and the squared semi-axes, derive the series coefficients A and B (Vincenty equations 3 and 4), then return the surface distance s = b·A·(σ − Δσ) in metres. We then convert to km, statute miles (× 0.621371), and nautical miles (× 0.539957).

Vincenty inverse iteration — λ converges typically in 4–8 steps for non-antipodal pairs
10⁻810⁻610⁻410⁻210tolerance 10⁻¹² rad0123456iteration|λᵢ − λᵢ₋₁| (rad)
Source: Worked example: London Heathrow → Sydney Kingsford Smith, residual logged each iteration

The chart above plots the residual between successive λ values on the London → Sydney route — a 17,016-km flight that is geometrically aggressive but well-behaved for Vincenty. The residual halves through the first two iterations and then drops six orders of magnitude per step once σ stabilises. The 10⁻¹² rad tolerance corresponds to roughly 6 micrometres of position error at Earth scale, well below the precision of any GNSS receiver.

WGS-84 ellipsoid — the constants used in every distance calculation
ParameterSymbolValue
Semi-major axis (equatorial)a6,378,137.0 m
Inverse flattening1/f298.257223563
Flatteningf0.003352810664747...
Semi-minor axis (polar, derived)b = a(1 − f)6,356,752.314 m
Equatorial circumference2π a40,075.017 km
Polar (meridional) circumference≈ 40,007.863 km
First eccentricity squared0.00669437999014
Mean radius (arithmetic)(2a + b)/36,371,008.8 m
Source: NGA.STND.0036_1.0.0_WGS84, 2014 (defining and derived parameters)

Earth is not a sphere — its 24-hour rotation flattens it by 21.4 km between equatorial and polar radii. Using the sphere approximation on a London → Tokyo route produces an error of about 40 km; Vincenty's ellipsoid solution drops that to under a millimetre. That difference is the entire reason aviation flight plans, ETOPS clearance, and oceanic track allocation depend on geodesic math rather than spherical shortcuts.

Earth's true shape — equatorial vs polar radius
Equatorial radius (a)6378.137 kmPolar radius (b)6356.752 km
Source: NGA.STND.0036, 2014

How we estimate flight time

A modern narrow-body cruises at Mach 0.78 — about 833 km/h true airspeed at FL370 — while a long-haul wide-body holds Mach 0.85 (≈ 903 km/h). We use 850 km/h as a single cruise reference because it sits midway between those two operating points and matches the block-time arithmetic published by most airline planning teams. Then we add ground time for taxi, climb-out, descent, and arrival taxi.

Cruise speeds that anchor the 850 km/h reference
AircraftClassCruise MachCruise km/h
Boeing 737-800Narrow-body0.789≈ 842
Airbus A320 / A320neoNarrow-body0.78≈ 833
Embraer E195-E2Regional jet0.78≈ 833
Boeing 777-300ERWide-body0.84≈ 905
Boeing 787-9 DreamlinerWide-body0.85≈ 903
Airbus A350-900Wide-body0.85≈ 903
Airbus A380Wide-body0.85≈ 900
Source: Manufacturer specifications: Boeing.com, Airbus.com

Ground time scales with distance because long-haul flights typically depart from larger airports with longer taxi-out queues and have more elaborate descent procedures. We use 30 minutes for routes under 1,500 km, 40 minutes for 1,500–4,000 km, and 50 minutes beyond 4,000 km. The total is rounded to the nearest minute and split into hours-and-minutes for display.

How we calculate CO₂

The base emission factor comes from the UK Government's annual greenhouse-gas reporting tables, published by the Department for Energy Security and Net Zero (DESNZ, the body that took over from DEFRA's GHG inventory work). The 2024 tables give kg CO₂ per passenger-kilometre for three distance bands; the cabin-class multipliers reflect how much aircraft floor area each ticket buys; and a 1.9 × radiative-forcing uplift converts CO₂ to CO₂-equivalent for the warming effect of contrails, NOₓ, and water vapour at altitude.

DEFRA / DESNZ 2024 air-travel emission factors — economy baseline, with radiative forcing
Distance band (UK origin)kg CO₂e per pax-kmWhy the rate changes
Domestic / short-haul (under ~480 km)0.255Climb and descent dominate fuel burn
Short-haul (~480 – 3,700 km)0.156Stable cruise dominates the burn profile
Long-haul (over 3,700 km)0.150Most efficient per-km but the longest exposure
Source: UK DESNZ 2024 Greenhouse gas reporting conversion factors, condensed set
Cabin-class multipliers applied to the economy factor
CabinMultiplierRationale
Economy1.00 ×Baseline — densest seat layout
Premium economy1.60 ×Roughly 1.6 × more floor area per seat
Business2.90 ×Lie-flat suites consume close to 3 × economy space
First4.00 ×Largest seat pitch and amenity area on the aircraft
Source: DESNZ 2024 methodology — proportional to allocated cabin floor area
Aviation's effective radiative forcing components (2018)
Contrail cirrus57.4 mW m⁻²CO₂34.3 mW m⁻²NOₓ-derived (net)17.5 mW m⁻²
Source: Lee et al. 2021, Atmospheric Environment 244:117834

For a return economy flight London → New York our calculator returns roughly 1,668 kg CO₂e — more than the per-capita 2-tonne annual carbon target that the IPCC's 1.5 °C scenarios require by 2030, and about 1.6 months of the average UK resident's full personal carbon budget. That arithmetic is the point of showing the number prominently: it lets you compare a trip against your annual footprint rather than reading an abstract figure with no anchor.

Time-zone and jet-lag estimation

We read both airports' IANA time-zone strings (sourced from OpenFlights) and let the browser's Intl.DateTimeFormat resolve the current UTC offset, including daylight-saving transitions. The hour difference becomes a jet-lag severity band — none (≤ 2 h), mild (3–5 h), moderate (6–9 h), and severe (10 h or more). Recovery days follow the well-documented circadian asymmetry: westward travel realigns at about 92 minutes per day, eastward at about 57 minutes.

Airport, airline, and route data

OpenFlights is our base data layer — about 7,698 airport rows of which ~3,000 carry IATA codes, ~6,162 airline rows, and 67,663 route rows captured before the third-party route feed stopped supplying updates in June 2014. We treat the route table as a topology hint (which carriers historically flew which pairs), never as a current schedule. Coordinates, IATA codes, and time-zone strings are kept because they describe physical attributes that do not expire.

OpenFlights data — what we use and how fresh each table is
FileRecordsFreshnessWhat we use it for
airports.dat≈ 7,698Periodic, community-maintainedCoordinates, IATA, ICAO, country, timezone
airlines.dat≈ 6,162Periodic, community-maintainedDisplay name, IATA, ICAO, country, active flag
routes.dat67,663Final 3rd-party feed June 2014 — not currentTopological route existence and airline associations only
Source: openflights.org/data.php, retrieved at build time

Limitations and disclaimers

These figures are decision-support estimates, not flight plans or compliance documents. Actual aircraft paths bend around restricted airspace, oceanic tracks rotate daily with the jet stream, and DESNZ emission factors are fleet-wide averages across many aircraft and load factors. We surface the underlying constants so you can substitute your own when a more precise number is available.

Frequently asked

Why use the Vincenty formula over Haversine?
Haversine treats Earth as a sphere and accumulates error up to about 0.5 % — roughly 40 km on a London-Tokyo route. Vincenty solves the geodesic on the WGS-84 ellipsoid and converges to sub-millimetre precision in double-precision arithmetic. For aviation flight planning, ETOPS clearance, and oceanic track allocation, that difference matters.
Where do the DEFRA 2024 factors actually come from?
They are published annually by the UK Department for Energy Security and Net Zero (DESNZ, formerly BEIS, originally part of DEFRA). The factors derive from UK aviation fuel data combined with passenger-load and seat-allocation assumptions. The methodology PDF is openly available on gov.uk.
Why is the radiative-forcing multiplier 1.9 × and not the IPCC's CO₂-only number?
Aviation's non-CO₂ climate effects — contrails, NOₓ-driven ozone, and water vapour at altitude — account for roughly two-thirds of its effective radiative forcing (Lee et al. 2021). The 1.9 × multiplier is the DESNZ-recommended approximate uplift, traceable to Lee et al. 2009 and adopted by the UK Committee on Climate Change. Some 2024 methodologies are migrating to 1.7 ×; we publish both kg CO₂ and kg CO₂e so users can apply either.
How accurate is the flight-time estimate?
Within about 10 % for typical scheduled flights in calm-wind conditions. Headwinds, jet streams, ATC routing, and airport congestion can each shift the actual block time by 10–60 minutes. Our number is a still-air estimate, useful for planning but not for booking.
Why does OpenFlights' route table stop in 2014?
OpenFlights pulled route data from a third-party feed that stopped supplying updates in June 2014. The route table remains useful for historical topology (which airline-pair city combinations existed) but should not be relied on for current schedules — use an airline API or an aggregator for that.
Do you account for the well-to-tank emissions of jet fuel?
Not in the base CO₂ figure. DESNZ publishes a separate 1.2 × well-to-tank uplift factor for life-cycle accounting; if you need that, multiply our kg CO₂e output by 1.2.
What happens for antipodal point pairs?
Vincenty's inverse formula may fail to converge for points within roughly half a degree of true antipodality — Vincenty himself flagged this in the 1975 paper and proposed an alternative iteration in an unpublished follow-up. We detect non-convergence after 100 iterations and fall back to the Haversine spherical formula, which always returns a finite value accurate to a few hundred metres at antipodal scale.
How is the nautical mile defined?
Exactly 1,852 metres, fixed at the First International Extraordinary Hydrographic Conference in Monaco in 1929. The value comes from dividing the meridional quarter-circumference (10,000,000 m by historical metric definition) by 90 × 60 — one minute of arc on a meridian. The BIPM SI Brochure lists the nautical mile as a non-SI unit accepted for use with SI.

Deeper on the methodology