Azimuth Calculator - GPS Bearing and Distance

Calculate the initial compass bearing and great-circle distance between two latitude and longitude coordinates.

Coordinate bearing calculator
Enter decimal-degree GPS coordinates for the starting point and destination.

Understanding azimuth, bearing, and distance

Azimuth describes a horizontal direction as an angle measured clockwise from true north. North is 0 degrees, east is 90 degrees, south is 180 degrees, and west is 270 degrees. Navigators often use the word bearing for the same idea, although surveying conventions can also express bearings by quadrant. This calculator reports a full-circle initial azimuth, which is the direction a traveler should face when leaving the starting coordinate on the shortest route over a spherical Earth. The calculation uses latitude and longitude in decimal degrees. It converts both points to radians, evaluates the spherical initial-bearing equation with the two-argument arctangent, and normalizes the answer into the range from 0 through less than 360 degrees. The compass description divides that circle into sixteen sectors, so a value near 45 degrees is northeast while a value near 337.5 degrees is north-northwest. Because a great-circle route curves relative to lines on a flat map, the bearing changes during a long journey. The displayed number is specifically the initial bearing, not one unchanging heading for the entire trip. Distance is calculated with the Haversine formula and a mean Earth radius of 6,371.0088 kilometers. Haversine is stable for both nearby and widely separated points and gives the length of the shortest arc between them. It treats Earth as a sphere, so it is excellent for route estimates, geographic comparisons, radio-link planning, and general navigation. Professional land surveys over short baselines may instead require an ellipsoidal geodesic model and a specified datum because local precision can depend on Earth flattening, elevation, and coordinate reference systems. Use negative latitude for locations south of the equator and negative longitude for locations west of Greenwich. For example, New York is approximately 40.7128 latitude and -74.0060 longitude. London is about 51.5074 and -0.1278. Coordinate order matters: reversing the points changes the initial bearing and can produce a return bearing that is not exactly 180 degrees opposite on a long great-circle route. The distance remains the same in either direction. GPS readings include measurement uncertainty, and rounded coordinates can shift a computed heading significantly when two points are close together. Use enough decimal places for the scale of your task: four decimal places represent roughly eleven meters of latitude, while six represent about eleven centimeters. At identical coordinates, distance is zero and an azimuth has no practical direction, even though a numeric implementation may display zero. Always pair the result with appropriate maps, local conditions, magnetic-declination data, and safety procedures when using it for real navigation.

Azimuth examples

RouteInitial resultUse
New York to London51.21 degrees; 5,570.23 kmA northeast initial course across the Atlantic.
Los Angeles to Tokyo306.07 degrees; 8,819.41 kmThe shortest route initially heads northwest.
Sydney to Singapore303.31 degrees; 6,305.14 kmA northwest initial bearing over a long geodesic.

How to calculate an azimuth

  1. Enter the starting latitude and longitude in decimal degrees.
  2. Enter the destination latitude and longitude, using negative values for south or west.
  3. Select Calculate azimuth to evaluate the spherical bearing and distance.
  4. Read the initial azimuth, sixteen-point compass direction, and distance in kilometers.

Azimuth calculator FAQ

What is the difference between azimuth and bearing?

Azimuth normally uses a clockwise angle from north across the full 360-degree circle. Bearing may mean the same value in navigation, but surveyors sometimes express it as an angle east or west of north or south.

Is this a true or magnetic bearing?

The result is referenced to geographic true north because latitude and longitude define a geographic coordinate system. Convert it to a magnetic compass heading with the current local magnetic declination.

Why does the bearing change along a route?

The shortest route on a sphere follows a great circle, which generally crosses map meridians at changing angles. The calculator therefore gives the initial direction at the starting point.

How accurate is the Haversine distance?

The spherical model is typically accurate enough for travel and geographic estimates, often within a small fraction of a percent. Precision surveying should use an ellipsoidal model, datum information, and elevation corrections.

Can I use degrees, minutes, and seconds?

Convert those coordinates to decimal degrees before entering them. Decimal degrees equal whole degrees plus minutes divided by 60 plus seconds divided by 3,600, with a negative sign for south or west.