Azimuth Calculator (Bearing Between Two Points)

Quick answer

The azimuth calculator finds the direction from one place to another – the initial azimuth measured clockwise from true north – together with the back azimuth, the final bearing, the compass point and the great-circle distance, from latitude and longitude in decimal or DMS format.

°

Positive north, negative south

°

Positive east, negative west

°

Positive north, negative south

°

Positive east, negative west

Azimuth (initial bearing)
219.26 °
Compass direction
SW
Final bearing on arrival
205.32 °
Back azimuth (from the destination to the start)
25.32 °
Great-circle distance
9,277.4
Azimuth in NATO mils
3,898 mil
Azimuth in gradians
243.63 gon

An azimuth is a direction expressed as an angle measured clockwise from north: 0° is north, 90° east, 180° south and 270° west. Surveyors, navigators, hikers with a map and compass, radio amateurs aiming antennas and anyone pointing a satellite dish use azimuths because a single number is more precise than “south-south-west”.

Between two points on Earth the relevant azimuth is the direction of the great circle – the shortest route over the globe. You start out on the initial azimuth, but unless you travel along a meridian or the equator the direction slowly changes, so the calculator also gives the final bearing on arrival and the back azimuth, which is the direction you would set off in to return.

Enter both points as decimal degrees or degrees, minutes and seconds. All bearings are relative to true north; to use them with a magnetic compass, add or subtract the local magnetic declination shown on your map or by NOAA’s declination calculator.

How to use the Azimuth Calculator

  1. Coordinates in
  2. Starting point – latitude — Positive north, negative south
  3. Starting point – longitude — Positive east, negative west
  4. Starting point – latitude degrees
  5. minutes
  6. seconds
  7. N / S
  8. Starting point – longitude degrees
  9. minutes
  10. seconds
  11. E / W
  12. Destination – latitude — Positive north, negative south
  13. Destination – longitude — Positive east, negative west
  14. Destination – latitude degrees
  15. minutes
  16. seconds
  17. N / S
  18. Destination – longitude degrees
  19. minutes
  20. seconds
  21. E / W
  22. Earth radius

Results update as you type, every field has its own unit menu, and everything is calculated in your browser.

How it works

The calculator converts both points to radians and applies the spherical forward-azimuth formula, normalising the result to 0–360°. The distance comes from the haversine formula and the back azimuth is the azimuth from the destination back to the start.

Worked example

From London (51.5074° N, 0.1278° W) to Rio de Janeiro (22.9068° S, 43.1729° W): Δλ = −43.0451°. The numerator sin Δλ · cos φ₂ = −0.6825 × 0.9211 = −0.6287 and the denominator cos φ₁ · sin φ₂ − sin φ₁ · cos φ₂ · cos Δλ = 0.6224 × (−0.3892) − 0.7827 × 0.9211 × 0.7310 = −0.7693. atan2(−0.6287, −0.7693) = −140.7°, i.e. an azimuth of about 219.3°. The great-circle distance is about 9,277 km, and the final bearing on arrival is 205.3°, so the back azimuth is 25.3°.

Compass points and azimuths

Direction Azimuth Direction Azimuth
N 0° S 180°
NE 45° SW 225°
E 90° W 270°
SE 135° NW 315°

Tips

  • Use decimal degrees (negative for south and west) or the degrees–minutes–seconds fields.
  • Great-circle distances assume a spherical Earth (error under 0.5%).
  • Every field has its own unit menu.
  • Everything is calculated in your browser.

Common mistakes to avoid

  • Swapping latitude and longitude.
  • Forgetting the minus sign for southern and western coordinates.
  • Mixing magnetic and true north for bearings.

Inputs explained

Field What to enter
Coordinates in Choose one: Decimal degrees (−90…90, −180…180), Degrees, minutes, seconds
Starting point – latitude In °. Positive north, negative south
Starting point – longitude In °. Positive east, negative west
Starting point – latitude degrees In °
minutes In ′
seconds In ″
N / S Choose one: N, S
Starting point – longitude degrees In °
minutes In ′
seconds In ″
E / W Choose one: E, W
Destination – latitude In °. Positive north, negative south
Destination – longitude In °. Positive east, negative west
Destination – latitude degrees In °
minutes In ′
seconds In ″
N / S Choose one: N, S
Destination – longitude degrees In °
minutes In ′
seconds In ″
E / W Choose one: E, W
Earth radius Choose one: Mean radius – 6,371 km, Equatorial – 6,378.137 km, Polar – 6,356.752 km

What each result means

  • Compass direction = mod(round([Azimuth (initial bearing)]÷22.5), 16)
  • Back azimuth (from the destination to the start) = mod([Final bearing on arrival] + 180, 360)
  • Great-circle distance = 2×[Earth radius]×atan2(sqrt([a]), sqrt(1 – [a]))
  • Azimuth in NATO mils = [Azimuth (initial bearing)]÷360×6400
  • Azimuth in gradians = [Azimuth (initial bearing)]÷0.9

Formula

Azimuth θ = atan2(sin Δλ · cos φ₂, cos φ₁ · sin φ₂ − sin φ₁ · cos φ₂ · cos Δλ), converted to 0–360° · Back azimuth = final bearing ± 180° · Distance d = 2R · asin(√a)

Worked example

Inputs — Coordinates in: Decimal degrees (−90…90, −180…180); Starting point – latitude: 51.5074 °; Starting point – longitude: -0.1278 °; Destination – latitude: -22.9068 °; Destination – longitude: -43.1729 °; Earth radius: Mean radius – 6,371 km.
Results — Azimuth (initial bearing) = 219.26 °; Compass direction = SW; Final bearing on arrival = 205.32 °; Back azimuth (from the destination to the start) = 25.32 °; Great-circle distance = 9,277.4 km; Azimuth in NATO mils = 3,898 mil; Azimuth in gradians = 243.63 gon.

Key terms

Azimuth
Direction angle measured clockwise from true north, 0–360°.
Back azimuth
The reverse direction, from the target back to the observer.
Magnetic declination
The angle between true north and magnetic north at a place.
Mil
Military angle unit; 6,400 NATO mils make a full circle.

Frequently asked questions

What is an azimuth?

The horizontal angle measured clockwise from true north to the direction of a target – 0° north, 90° east, 180° south, 270° west.

What is the azimuth from London to Rio de Janeiro?

About 219° (south-west) along the great circle, over a distance of about 9,277 km. The back azimuth from Rio to London is about 25°.

What is a back azimuth?

The direction from the destination back to the start. On a flat map it is the azimuth ± 180°; on the globe it is the final bearing ± 180°.

What is the difference between azimuth and bearing?

Azimuth is always 0–360° from north. Bearings are often written as quadrant angles such as S 39° W, which is the same as azimuth 219°.

Does the calculator use magnetic or true north?

True north. Correct for magnetic declination (east declination: subtract; west: add) before using a compass.

How do I find the azimuth for a satellite dish?

Enter your location and the satellite's sub-satellite point on the equator (latitude 0°, the satellite's longitude); the initial azimuth is the dish direction.

Sources

  1. Great-circle navigation – Wikipedia
  2. NOAA National Geodetic Survey – Inverse and forward geodetic tools
  3. NOAA NCEI – Magnetic field calculators (declination)

Cite this calculator

Speedy Calculator. (2026). Azimuth Calculator (Bearing Between Two Points). Speedy Calculator. https://speedycalculator.com/calculators/other/azimuth/