Primary sources · 9
- [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] NGA.STND.0036_1.0.0_WGS84 — Department 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] DESNZ / DEFRA 2024 conversion factors — Greenhouse 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] 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] OpenFlights — Airport, 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] ICAO CORSIA — Carbon 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] IATA Fly Net Zero 2050 — Resolution 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] 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] IEA Aviation tracking — Aviation 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.
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.
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.
- 1Reduce 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.
- 2Iterate λ 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.
- 3Resolve 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.
- 4Apply 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).
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.
| Parameter | Symbol | Value |
|---|---|---|
| Semi-major axis (equatorial) | a | 6,378,137.0 m |
| Inverse flattening | 1/f | 298.257223563 |
| Flattening | f | 0.003352810664747... |
| Semi-minor axis (polar, derived) | b = a(1 − f) | 6,356,752.314 m |
| Equatorial circumference | 2π a | 40,075.017 km |
| Polar (meridional) circumference | ≈ 40,007.863 km | — |
| First eccentricity squared | e² | 0.00669437999014 |
| Mean radius (arithmetic) | (2a + b)/3 | 6,371,008.8 m |
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.
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.
| Aircraft | Class | Cruise Mach | Cruise km/h |
|---|---|---|---|
| Boeing 737-800 | Narrow-body | 0.789 | ≈ 842 |
| Airbus A320 / A320neo | Narrow-body | 0.78 | ≈ 833 |
| Embraer E195-E2 | Regional jet | 0.78 | ≈ 833 |
| Boeing 777-300ER | Wide-body | 0.84 | ≈ 905 |
| Boeing 787-9 Dreamliner | Wide-body | 0.85 | ≈ 903 |
| Airbus A350-900 | Wide-body | 0.85 | ≈ 903 |
| Airbus A380 | Wide-body | 0.85 | ≈ 900 |
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.
| Distance band (UK origin) | kg CO₂e per pax-km | Why the rate changes |
|---|---|---|
| Domestic / short-haul (under ~480 km) | 0.255 | Climb and descent dominate fuel burn |
| Short-haul (~480 – 3,700 km) | 0.156 | Stable cruise dominates the burn profile |
| Long-haul (over 3,700 km) | 0.150 | Most efficient per-km but the longest exposure |
| Cabin | Multiplier | Rationale |
|---|---|---|
| Economy | 1.00 × | Baseline — densest seat layout |
| Premium economy | 1.60 × | Roughly 1.6 × more floor area per seat |
| Business | 2.90 × | Lie-flat suites consume close to 3 × economy space |
| First | 4.00 × | Largest seat pitch and amenity area on the aircraft |
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.
| File | Records | Freshness | What we use it for |
|---|---|---|---|
| airports.dat | ≈ 7,698 | Periodic, community-maintained | Coordinates, IATA, ICAO, country, timezone |
| airlines.dat | ≈ 6,162 | Periodic, community-maintained | Display name, IATA, ICAO, country, active flag |
| routes.dat | 67,663 | Final 3rd-party feed June 2014 — not current | Topological route existence and airline associations only |
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.