PASSPORT

Journal

How Flight Distance and Estimated Hours in the Air Are Calculated

How a flight log can estimate distance with the great-circle formula and hours with a simple rule, with worked JFK, Berlin and Heathrow examples.

The Aviation Ledger showing estimated hours in the air and distance (illustrative sample data)

A flight log can estimate distance by taking the coordinates of the two airports and measuring the shortest path between them over the Earth's surface, called the great-circle distance. It can then estimate time in the air by dividing that distance by an assumed speed and adding a small allowance. The results are estimates of a typical flight, not a record of what happened on any particular day.

Great-circle distance, simply

Imagine stretching a string between two cities on a globe. The shortest route follows an arc of a great circle: a circle whose centre is the centre of the Earth, like the equator or a line of longitude. On a flat map that arc looks curved, which is why long flight paths seem to bow towards the poles.

The usual way to compute it from latitude and longitude is the haversine formula. Wikipedia describes it as giving the great-circle distance between two points on a sphere from their latitudes and longitudes. Because the Earth is slightly flattened rather than a perfect sphere, a spherical result can differ from an ellipsoidal calculation by roughly half of one per cent, which is small beside the other uncertainties in a flight.

The recipe, in plain words:

  1. Convert each airport's latitude and longitude from degrees to radians.
  2. Work out the difference in latitude and in longitude.
  3. Combine them with the haversine expression, which accounts for how lines of longitude converge towards the poles.
  4. Multiply the resulting angle by the Earth's radius.

PASSPORT's Flight Log uses a mean Earth radius of 6,371.0088 km. Miles are converted from kilometres using a factor of 0.621371192.

Where the airport coordinates come from

The Flight Log works from an offline catalogue of 12,092 airports. Its airport reference data draws on OurAirports. The OurAirports data page states that all of its data is released to the public domain, with no guarantee of accuracy or fitness for use. We repeat that caution: coordinates identify a point at or near an airport, and the data is no more exact than its sources.

Three worked examples

These use the airport coordinates held in the app's catalogue and the formula above.

Route Coordinates (latitude, longitude) Distance Estimated hours (unrounded)
JFK to LAX 40.6394, -73.7793 to 33.9425, -118.4080 3,974 km (2,469 mi) 5.27
BER to FRA 52.3617, 13.5023 to 50.0267, 8.5584 431 km (268 mi) 0.84
LHR to HKG 51.4707, -0.4599 to 22.3118, 113.9149 9,630 km (5,984 mi) 12.34

Take Berlin to Frankfurt. The two airports differ by about 2.3 degrees of latitude and 4.9 degrees of longitude. Feed those into the formula with the Earth's radius and you get around 431 km, which is about 268 miles. London Heathrow to Hong Kong comes to roughly 9,630 km. You can reproduce any of these in a spreadsheet or a few lines of code, or with any tool that offers a haversine function.

From distance to estimated hours

Distance alone does not tell you how long a flight takes, so the app applies a deliberately simple rule:

estimated hours = kilometres ÷ 800 + 0.3, with a minimum of 0.5 hours

The 800 is an assumed average speed in kilometres per hour. The 0.3 hour, about 18 minutes, is a flat allowance for the parts of a flight that do not run at average speed, such as taxiing, take-off and landing. The minimum of half an hour means that even a very short hop is counted as at least that. Under this rule the minimum applies to routes shorter than about 160 km.

Because it is deterministic, the same route always produces the same number. That is a feature of a personal log: you can compare years and routes on equal terms. It is also why the number is labelled an estimate. This is not data about any actual flight.

How the numbers are displayed

The app keeps the unrounded figures for its sums and only rounds for display:

  • A single leg is shown to the nearest quarter hour when it is under 3 hours, and to the nearest half hour from 3 hours up.
  • A total is shown to the nearest hour below 100 hours, to the nearest 10 hours from 100, and to the nearest 100 hours from 10,000.

Totals are summed from the unrounded legs, so rounding does not pile up. For the three examples above, the display values are:

Route Unrounded Shown for a single leg
JFK to LAX 5.27 h 5.5 h
BER to FRA 0.84 h 0.75 h
LHR to HKG 12.34 h 12.5 h

In every case the label that goes with it is "estimated hours in the air", and it should be read that way.

Why real flights differ

A rule based only on distance leaves out almost everything that shapes a real journey. In particular:

  • Routing. Aircraft follow air-traffic corridors, avoid restricted airspace and navigate around weather, so the distance flown is usually longer than the great-circle line.
  • Winds. A strong tailwind or headwind changes the time between the same two airports. The same route can take noticeably longer in one direction than the other.
  • Airport time. Taxiing, holding, queueing for a runway and a delayed arrival slot all affect the time between pushback and arrival. The flat 0.3-hour allowance can only be an average of these.
  • Aircraft and schedule. Different aircraft types cruise at different speeds, and airlines publish scheduled times with their own padding.
  • Climb and descent. A short flight spends a larger share of its time climbing and descending, so its average speed is lower than a long flight's.

For all these reasons, treat a figure from the app as a way to compare and tally your own flights, not as a statement of the time you spent in the air.

What these numbers are for

An estimate based on a fixed rule is a good fit for a personal log. You can ask how far you have flown in total, how that compares with the circumference of the Earth, which route is your longest, and which year you flew most. Those comparisons only need consistency, not precision to the minute.

They are not suitable for anything that depends on exact flown time, such as a pilot's regulated record, or for checking a delay or a compensation claim. The log is not a live tracker and holds no data about aircraft, schedules or delays.

Where PASSPORT fits

The Flight Log is coming in the next PASSPORT update, as an optional purchase inside the free PASSPORT app. It keeps your flights and lone airports in a navy-bound logbook with airport stamps, joins connecting legs, and includes a Route Atlas, Flight and Station Dossiers and an Aviation Ledger that shows estimated distance and hours, rankings and year-by-year totals. It supports CSV import and export, and works from the offline airport catalogue described above.

If you are starting from a pile of old confirmations, our guide to rebuilding your flight history in a digital logbook takes you through gathering the records and preparing a file.

To see how the app presents these estimates, read about The Flight Log.