What azimuth is and why you need it

Azimuth is a compass direction expressed as an angle measured clockwise from north. It ranges from 0° (north) to 360°, so east is 90°, south is 180°, and west is 270°. If you need to navigate to a specific location, orient a map, or describe a direction precisely, azimuth gives you a number instead of vague language like "northeast-ish".

You compute azimuth when you have two points — your current location and a destination — and you want to know the exact bearing between them. Surveyors, hikers, pilots, and anyone working with maps use this calculation regularly. The math is straightforward once you understand the pieces: the difference in latitude and longitude between two points, and a function called arctangent that converts that difference into an angle.

Key Takeaways

  • Azimuth is measured clockwise from north as a number between 0° and 360°, where 90° is east, 180° is south, and 270° is west.
  • The basic formula uses the difference in longitude and latitude between two points, then applies the arctangent function to get the angle.
  • You must adjust the raw arctangent result based on which quadrant your destination lies in relative to your starting point.
  • Online calculators and GPS devices compute azimuth automatically, but understanding the manual method helps you verify results and work without tools.

The formula and what each part means

The standard azimuth formula is:

Azimuth = arctan(sin(Δlong) / (cos(lat1) × tan(lat2) − sin(lat1) × cos(Δlong)))

Breaking this down: Δlong is the difference in longitude between your two points. lat1 is your starting latitude, and lat2 is your destination latitude. The arctan function (also called inverse tangent or tan⁻¹) converts a ratio into an angle in degrees. Most calculators have an arctan button, and spreadsheet software includes it as ATAN or ATAN2.

This formula accounts for the fact that longitude lines converge toward the poles, so a straightforward angle between two points on a flat map does not give you the true bearing on a sphere. The result is the azimuth in degrees, but you may need to adjust it depending on which direction your destination lies.

Step-by-step calculation with a real example

Suppose you are at latitude 40.7128° N, longitude 74.0060° W (New York City), and you want to find the azimuth to latitude 51.5074° N, longitude 0.1278° W (London). First, calculate the differences:

  • Δlat = 51.5074 − 40.7128 = 10.7946°
  • Δlong = −0.1278 − (−74.0060) = 73.8782°

Next, plug these into the formula. Convert degrees to radians if your calculator requires it (multiply by π/180). Calculate sin(Δlong) and cos(Δlong), then work through the denominator: cos(lat1) × tan(lat2) − sin(lat1) × cos(Δlong). Divide the numerator by the denominator and take arctan of the result. You should get approximately 51°, meaning London lies roughly northeast of New York.

If your result is negative or greater than 360°, add or subtract 360° to bring it into the 0° to 360° range. Some formulas return values between −180° and 180°, so check your calculator's convention and adjust accordingly.

Adjusting for quadrants

The arctangent function returns angles between −90° and 90°, so you must account for which quadrant your destination occupies. If your destination is northeast (positive Δlat, positive Δlong), the raw arctangent result is usually correct. If it is southeast (negative Δlat, positive Δlong), add 180° to the result. If it is southwest (negative Δlat, negative Δlong), add 180°. If it is northwest (positive Δlat, negative Δlong), add 360° to a negative result or use the ATAN2 function, which handles this automatically.

The ATAN2 function takes two arguments — the y-component (sin of the longitude difference) and the x-component (the denominator from the formula above) — and returns the angle in the correct quadrant without manual adjustment. Most modern spreadsheets and programming languages include ATAN2, so using it saves a step and reduces errors.

Using a spreadsheet to compute azimuth

Open a spreadsheet and set up columns for your starting latitude, starting longitude, destination latitude, and destination longitude. In a new cell, enter a formula like this for Google Sheets or Excel:

=DEGREES(ATAN2(SIN(RADIANS(D1−B1)), COS(RADIANS(A1))×TAN(RADIANS(C1))−SIN(RADIANS(A1))×COS(RADIANS(D1−B1))))

Replace A1, B1, C1, and D1 with the cell references for your starting latitude, starting longitude, destination latitude, and destination longitude. The RADIANS function converts degrees to radians, and DEGREES converts the result back. The formula returns a value between −180° and 180°, so add 360° to any negative result to get the standard 0° to 360° range.

This method is fast and repeatable. Once you set up the formula, you can paste it down for dozens of point pairs without retyping. Save the spreadsheet as a template for future navigation work.

Online tools and GPS devices

If you do not want to calculate by hand, several free online azimuth calculators exist. Search "azimuth calculator" and enter your two coordinates; the tool returns the bearing when ready. These calculators use the same formula but handle the math and quadrant adjustments for you. They are useful for quick checks or when you lack a calculator.

GPS devices and smartphone mapping apps (like Google Maps or specialized navigation software) display azimuth or bearing directly. On many devices, you can long-press a location to see its coordinates, then use a separate calculator or the app's built-in bearing tool. Some hiking and surveying apps show azimuth as you move, updating in real time.

Common mistakes and how to avoid them

The most frequent error is forgetting to convert degrees to radians before using trigonometric functions. If your calculator is in degree mode, you do not need to convert; if it is in radian mode, multiply each angle by π/180 before entering it. Check your calculator's mode indicator before you start.

Another mistake is mixing up latitude and longitude or using the wrong sign for western or southern coordinates. Latitude ranges from −90° (south) to 90° (north). Longitude ranges from −180° (west) to 180° (east). Write out your coordinates clearly and double-check the signs before plugging them in.

Finally, forgetting to adjust the result to the 0° to 360° range causes confusion. If your formula returns −45°, add 360° to get 315° (northwest). If it returns 400°, subtract 360° to get 40° (northeast). A negative or out-of-range result is not wrong; it just needs conversion to the standard format.

Frequently Asked Questions

What is the difference between azimuth and bearing?

Azimuth and bearing are often used interchangeably and both describe direction as an angle from north. Azimuth is always measured clockwise from north (0° to 360°). Bearing sometimes refers to the same thing, but in some contexts it means a direction given as an angle from either north or south, like "S 45° E" (south 45 degrees east). For navigation and surveying, azimuth is the standard term.

Do I need to account for magnetic declination?

The azimuth formula gives you the true bearing relative to geographic north (the North Pole). Magnetic north, where a compass needle points, is offset from geographic north by an angle called magnetic declination. If you are using a compass to follow an azimuth, you must add or subtract the declination for your location. Check a declination map or your local surveying office for the current value in your area.

Can I use azimuth on a flat map?

On a small, flat map, you can estimate azimuth by drawing a line from your starting point to your destination and measuring the angle with a protractor. This works for short distances where the Earth's curvature does not matter much. For longer distances or precise navigation, use the formula or a calculator, which accounts for the spherical shape of the Earth.

What if my coordinates are in a different format?

Coordinates come in decimal degrees (40.7128° N), degrees-minutes-seconds (40° 42′ 46″ N), or other formats. Convert everything to decimal degrees before calculating. To convert degrees-minutes-seconds to decimal, divide the minutes by 60 and the seconds by 3600, then add both to the degrees. For example, 40° 42′ 46″ becomes 40 + (42/60) + (46/3600) = 40.7128°.

Why does my azimuth calculator give a different answer than my spreadsheet?

Different tools may use slightly different formulas or rounding methods, especially for very long distances or points near the poles. Check that both tools are using the same coordinate system (usually WGS84 for GPS) and that you entered the coordinates identically. Small differences (within 1°) are normal and usually do not matter for navigation.