Great circle distance and bearing calculator

The shortest path between two points on a sphere is a great circle, which on a Mercator chart looks like a curve.

kt
Great circle distance
5540.02km
≈ Rounded Great circle distance
In nautical miles
2991.37
In statute miles
3442.41
Initial bearing
287.94 degrees
Flight time at that ground speed
6:38:51
Angular separation
49.8225 degrees
Show the working
  1. From latitude = 51.47
  2. From longitude = -0.4543
  3. To latitude = 40.6413
  4. To longitude = -73.7781
  5. Ground speed = 450
  6. phi1 = rad(51.47) = 0.898 321
  7. phi2 = rad(40.6413) = 0.709 324
  8. dphi = rad(40.6413 - 51.47) = -0.188 996
  9. dlambda = rad(-73.7781 - -0.4543) = -1.279 74
  10. a = sin(-0.188 996/2)^2 + cos(0.898 321)*cos(0.709 324)*sin(-1.279 74/2)^2 = 0.177 421
  11. c_angle = 2 * atan2(sqrt(0.177 421), sqrt(max(1 - 0.177 421, 0))) = 0.869 567
  12. Great circle distance = 0.869 567 * 6371.0088 = 5540.02
  13. In nautical miles = 5540.02 / 1.852 = 2991.37
  14. In statute miles = 5540.02 / 1.609344 = 3442.41
  15. Initial bearing = mod(deg(atan2(sin(-1.279 74)*cos(0.709 324), cos(0.898 321)*sin(0.709 324) - sin(0.898 321)*cos(0.709 324)*cos(-1.279 74))), 360) = 287.943
  16. flight_hours = 450 > 0 ? 2991.37 / 450 : 0 = 6.647 49
  17. Flight time at that ground speed = 6.647 49 * 3600 = 23 931
  18. Angular separation = deg(0.869 567) = 49.8225

Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.

Scenarios & local history

Compare a saved scenario

Recent calculations

    The formula

    • haversine: a = sin^2(dphi/2) + cos(phi1)cos(phi2)sin^2(dlambda/2)
    • distance = 2 R atan2(sqrt(a), sqrt(1-a)) with R the mean Earth radius, 6371.0088 km
    • a nautical mile is exactly 1852 m, originally one minute of arc

    The haversine formula assumes a spherical Earth and is accurate to about 0.3%. Vincenty on the WGS84 ellipsoid is better for surveying.

    The initial bearing changes continuously along a great circle. A constant-bearing rhumb line is longer but easier to steer.

    This is a planning and study tool. Use certified charts, an approved flight manual and official publications for anything operational.

    Related calculators

    Settings

    Theme

    System follows your operating system and changes with it.

    Text size
    High contrast

    Maximises text and border contrast and removes the grid background.

    Graph-paper background

    Round to
    Notation
    Thousands separators
    Decimal mark
    Nearest fraction

    Shows the result as the nearest tape-measure fraction, with the error it costs.


    Accessibility & interaction
    Reduce motion Stops interface animations even when the operating system does not.
    Underline links Keeps links visually distinct without relying on colour.
    Larger touch targets Makes buttons and form controls easier to tap.
    Shorter reading lines Limits article width for easier scanning.
    Monochrome display Removes colour as an information cue.
    Always-visible focus Makes the keyboard focus ring persistent and stronger.
    Verbose screen-reader results Announces the complete conversion equation.
    Sticky action bars Keeps converter and calculator actions within reach.
    Select values on focus Replaces a value immediately when you start typing.
    Left-handed mobile layout Moves key mobile actions toward the left thumb.

    Your data

    Settings, recent conversions and favourites live in this browser only. Nothing is sent anywhere.

    Offline library