Saved

Press the star next to a tool's name to save it.

All my tools

Azimuth Calculator

Use this azimuth calculator to find the initial bearing from one latitude and longitude to another, the final bearing, the return direction and the great-circle distance.

Restored your last values ·

Enter the latitude and longitude of the start and of the end in decimal degrees, with north and east as positive. The calculator gives the compass direction to set out in, measured clockwise from north, the direction on arrival and the shortest distance over the surface.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Enter the coordinates of the two places, then press Calculate.

See full result

An azimuth calculator gives the compass direction from one place to another, and the distance between them, from their latitudes and longitudes. Enter the start and the end in decimal degrees, and you get the initial bearing, which is the direction to head in at the start, the final bearing on arrival, the direction to return, and the great-circle distance. It runs in your browser.

How to use the azimuth calculator

  1. Choose US or Metric units for the distance.
  2. Enter the latitude and longitude of the start.
  3. Enter the latitude and longitude of the end.
  4. Press Calculate.

Azimuth and bearing

The Wikipedia article on azimuth defines it in navigation as a horizontal angle measured clockwise from a north base line, or meridian, and says that it is usually measured in degrees in the range 0° to 360°, or in the signed range −180° to 180°.[2] Moving clockwise, east has an azimuth of 90°, south 180° and west 270°.[2] The article on bearing says that the bearing, or azimuth, is the horizontal angle between the direction of an object and north, and that on land it is calculated clockwise from a reference direction of 0°. The US Army calls this measure an azimuth.[3] The calculator gives the result in this form, and with the nearest of the 16 compass points.

The initial bearing

The article on great-circle navigation gives the initial bearing α₁ from point 1 to point 2 by tan α₁ = cos φ₂ sin λ₁₂ ÷ (cos φ₁ sin φ₂ − sin φ₁ cos φ₂ cos λ₁₂), where φ is the latitude, λ₁₂ is the difference of the longitudes, latitude is positive north and longitude is positive east.[1] The quadrant is set by the signs of the numerator and the denominator, which is what an atan2 function does. The final bearing is tan α₂ = cos φ₁ sin λ₁₂ ÷ (−cos φ₂ sin φ₁ + sin φ₂ cos φ₁ cos λ₁₂).[1] A negative angle is turned into the range 0° to 360° by adding 360°.

The distance

The page gives the central angle σ between the two points, and the distance along the great circle as s = Rσ, with σ in radians. With R = 6,371 km, the results are within 1 percent of the geodesic length on the WGS84 ellipsoid.[1] A simpler form of the central angle is cos σ = sin φ₁ sin φ₂ + cos φ₁ cos φ₂ cos λ₁₂, which the page says is numerically less accurate when σ is small.[1] The calculator uses the more robust form with the tangent. The distance is shown in miles or kilometers.

The worked example from the article

The page's example is a route from Valparaíso, at latitude −33° and longitude −71.6°, to Shanghai, at 31.4° and 121.8°. The longitude difference is −166.6°. It gives an initial bearing of −94.41°, a final bearing of −78.42°, a central angle of 168.56° and a distance of 18,743 km on a sphere of radius 6,371 km.[1] In the range from 0° to 360°, the bearings are 265.59° and 281.58°. Enter these coordinates and the calculator gives 265.59° (west) and 281.58° (west-northwest), and a distance of 11,646 miles, which is 18,742 km. The small differences from the page come from rounding.

Why the bearing changes along the way

The article on bearings points out that following a great circle does not keep the same bearing.[3] Unless you travel along the equator or a meridian, a great-circle route crosses the meridians at different angles, so the direction changes as you go. That is why the calculator gives two bearings, one at the start and one on arrival. The direction to head back is the final bearing plus 180°, which is shown as the bearing from the end. For a route from London to New York, the initial bearing is about 288° and the distance is about 5,570 km, or 3,461 miles.

Examples for simple routes

From a point on the equator at longitude 0° to the equator at 90° east, the bearing is 90°, due east, and the distance is a quarter of the circumference of the Earth, 10,007.5 km. From the equator to the North Pole, the bearing is 0°, due north. For points on the same meridian, the bearing is 0° or 180°. These are good tests of your own work, and the calculator treats them exactly.

Using the result

You can use the initial bearing to point a compass, an antenna or a map ruler toward a destination, using magnetic declination to convert between true north and the compass reading. This calculator gives true bearings, relative to the north pole of the Earth and not to magnetic north. For aviation and sailing, the great-circle route is the shortest, but pilots and sailors often follow a series of legs with a steady bearing. The calculator shows the distance, so you can compare routes.

Compass points

The compass point shown in brackets is the nearest of the 16 points, each 22.5 degrees wide. North covers bearings from 348.75° to 11.25°, north-northeast from 11.25° to 33.75°, and so on around the circle. The number of degrees is the exact value, and the point is a quick description that you can say aloud or find on a map.

Checking with a map

On a flat map, a straight line between two places is not the same as a great-circle route, because maps distort directions and distances, especially far from the equator and over long distances. The initial bearing that the calculator gives is for the great circle, so it may differ from the angle that you measure on a map, particularly for flights over the poles or across an ocean.

Common mistakes

  • Mixing up the signs. West and south are negative.
  • Assuming a steady bearing. A great circle changes the bearing on the way.
  • Using magnetic north. The bearings here are relative to true north.
  • Swapping latitude and longitude. Latitude comes first.

What next

Use this often? Add Azimuth to your Home screen.

Frequently asked questions

What is an azimuth calculator?

A tool that gives the compass direction from one place to another, measured clockwise from north, from their latitudes and longitudes.

What is the initial bearing?

The direction to set out in at the start of the shortest route. It changes along a great-circle route, so the bearing on arrival is different.

How is the bearing measured?

Clockwise from north, from 0° to 360°. East is 90°, south 180° and west 270°.

How accurate is the distance?

It uses a sphere of radius 6,371 km, which is within about 1 percent of the distance on the real Earth.

Are these magnetic or true bearings?

True bearings, relative to the geographic north. Use the local magnetic declination to convert to a compass reading.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Unit Converters