Everyday tools ↗

Travel & transport / FREE BROWSER TOOL

Great-circle distance & bearing.

Use the haversine formula on a stated spherical Earth to calculate distance and initial bearing.

YOUR EVERYDAY DESKKeep your
next task close.
Switch between tools ↗
Great-circle distance & bearing
See result ↓● Live result
01 / YOUR INPUTS

Processed on this device.

02 / YOUR RESULT

Your answer

ON YOUR DEVICE

Your result will appear here.

Adjust a field to calculate.

LOCAL INPUTS / CLEAR WORKING / USEFUL OUTPUTNothing to sign in to.

Built and maintained by Operance Labs · Report a calculation or documentation issue

A LITTLE KNOW-HOW

How to use
this tool.

  1. Enter quantities in the units shown by each label.
  2. Adjust the assumptions to match your own situation.
  3. Review the formula and result breakdown before using the estimate.

What the inputs mean

Start latitude (degrees)
Enter start latitude (degrees).
Start longitude (degrees)
Enter start longitude (degrees).
End latitude (degrees)
Enter end latitude (degrees).
End longitude (degrees)
Enter end longitude (degrees).
Spherical Earth radius (km)
Enter spherical earth radius (km).
A WORKED STARTING POINT

See the working.

Inputs used in this example

These are example values, not a current price, tariff or personal recommendation. Reset example restores them in the workspace.

InputExample value
Start latitude (degrees)51.5074
Start longitude (degrees)-0.1278
End latitude (degrees)40.7128
End longitude (degrees)-74.006
Spherical Earth radius (km)6371.0088

Great-circle distance

5,570.229874 km

d = 2R atan2(√a, √(1−a)); a = sin²(Δφ/2) + cosφ₁ cosφ₂ sin²(Δλ/2)

  • Initial bearing: 288.329702° clockwise from true north.
  • Uses a sphere of radius 6371.0088 km, not an ellipsoidal geodesic, road route or navigation guarantee.

Use the haversine formula on a stated spherical Earth to calculate distance and initial bearing.

Your inputs stay here

Your input is processed on this device. PixelDesk does not upload it to a calculation or file-processing server. Copying and downloading are deliberate actions. Closing the page clears the in-memory inputs; the app remembers only its theme and public reference-rate cache.

Methods and public data ↗

Keep a useful
thing close.

All travel & transport ↗

Questions, answered.

What can I do with great-circle distance & bearing?

Use the haversine formula on a stated spherical Earth to calculate distance and initial bearing.

What does the great-circle distance & bearing example show?

With Start latitude (degrees): 51.5074; Start longitude (degrees): -0.1278; End latitude (degrees): 40.7128, the example returns 5,570.229874 km. The workspace shows the substituted formula and its assumptions; Reset example restores these inputs.

What should I check before using the result?

Use the haversine formula on a stated spherical Earth to calculate distance and initial bearing.