Azimuth Calculator - From Coordinates, GPS and Bearing

    Get the azimuth and quadrant bearing between two survey points or two GPS locations, lay out a new point from a direction and a distance, or convert an azimuth to a bearing.

    Parameters

    Enter data for calculations

    Each mode shows its own fields

    Azimuth from coordinates, from GPS points, or from a bearing

    Type the northing and easting of two points and you get the azimuth from the first to the second, the quadrant bearing, the back azimuth and the distance. Point A at N 1,000, E 1,000 and point B at N 1,300, E 1,400 give an azimuth of 53.1301°, which is 53°07'48.4" or the bearing N 53°07'48.4" E, and a distance of 500 in whatever unit the coordinates use. Three more modes sit behind the same form: the azimuth between two latitude and longitude points along a great circle, the coordinates of a new point from a direction and a distance, and a straight azimuth to bearing converter that also works the other way around.

    0° to 360°
    the range of an azimuth, measured clockwise from north
    0° to 90°
    the range of the angle inside a quadrant bearing such as S 45° E
    6,371 km
    the mean Earth radius behind the GPS mode (3,958.8 mi)
    0.1"
    the resolution of every angle in degrees, minutes and seconds

    Which mode to pick, and what goes in its boxes

    1. What do you want to calculate? - "Azimuth from northing and easting" for survey, state plane, UTM or any grid where north is up; "Azimuth from GPS coordinates" for latitude and longitude; "Point B from a direction and a distance" to lay out a new point; "Convert azimuth and bearing" when you only need to switch the notation.
    2. Northing and easting of A and B - the grid mode. Northing grows to the north (up the map), easting grows to the east (to the right). Large state plane values are fine, with or without commas between thousands: 684,512.37 and 684512.37 read the same.
    3. Latitude and longitude of A and B - the GPS mode. Decimal degrees straight from a map app (40.7128 and -74.0060) or degrees, minutes and seconds with a letter (40°42'46" N, 74°00'22" W). South and west are negative, or use the letters S and W.
    4. Northing and easting of A, direction, distance - the point B mode. The direction can be an azimuth (242.2583 or 242°15'30") or a quadrant bearing (S 62°15'30" W); the calculator tells which one it read. The distance must be horizontal and in the same unit as the coordinates.
    5. Azimuth or bearing - the converter. Type 200 and you get S 20° W; type N 30 W and you get 330°. Spaces, the degree sign and the minute and second marks are all optional.

    The four quadrants on one card

    An azimuth runs all the way around the circle, clockwise from north. A quadrant bearing never goes past 90°: it starts from north or from south, whichever is closer, and turns toward east or west. The US Navy surveying course uses the same two examples printed in the converter: an azimuth of 135° lies between 90° and 180°, so it is in the southeast quadrant and reads S 45° E, and N 30° W becomes 360° minus 30°, which is 330°. The table collects the rule for every quadrant in both directions, with a worked value next to each.

    QuadrantAzimuth rangeBearing from azimuthAzimuth from bearingExample
    NE0° to 90°N (Az) EAz = angle53.1301° = N 53°07'48.4" E
    SE90° to 180°S (180° - Az) EAz = 180° - angle135° = S 45° E
    SW180° to 270°S (Az - 180°) WAz = 180° + angle200° = S 20° W
    NW270° to 360°N (360° - Az) WAz = 360° - angleN 30° W = 330°

    The four directions that sit exactly on a boundary get a label in the result: 0° is N 00°00'00.0" E (due north), 90° is N 90° E (due east), 180° is S 00° E (due south) and 270° is N 90° W (due west). Some field books write due south as S 0° W or due west as S 90° W; the direction is the same, only the letter convention differs.

    The back azimuth is the azimuth plus or minus 180°. The back bearing is even simpler: keep the angle and swap both letters, so N 53°07'48.4" E seen from the other end is S 53°07'48.4" W. That rule holds on a flat grid. Along a long great-circle route it does not, which is the subject of a section further down.

    The 16-point compass rose in azimuths and bearings

    Every result names the nearest of the 16 compass points. Each point covers a slice of 22.5°, half on each side of its center, so the slice of NE runs from 33.75° to 56.25°. Use the table to sanity-check a result: an azimuth of 202.6199° falls in the SSW slice, and its bearing S 22°37'11.5" W sits right next to the center of that slice, S 22°30' W.

    PointNameAzimuthBearingSlice
    Nnorth0°N 0° E348.75° to 11.25°
    NNEnorth-northeast22.5°N 22°30' E11.25° to 33.75°
    NEnortheast45°N 45° E33.75° to 56.25°
    ENEeast-northeast67.5°N 67°30' E56.25° to 78.75°
    Eeast90°N 90° E78.75° to 101.25°
    ESEeast-southeast112.5°S 67°30' E101.25° to 123.75°
    SEsoutheast135°S 45° E123.75° to 146.25°
    SSEsouth-southeast157.5°S 22°30' E146.25° to 168.75°
    Ssouth180°S 0° E168.75° to 191.25°
    SSWsouth-southwest202.5°S 22°30' W191.25° to 213.75°
    SWsouthwest225°S 45° W213.75° to 236.25°
    WSWwest-southwest247.5°S 67°30' W236.25° to 258.75°
    Wwest270°N 90° W258.75° to 281.25°
    WNWwest-northwest292.5°N 67°30' W281.25° to 303.75°
    NWnorthwest315°N 45° W303.75° to 326.25°
    NNWnorth-northwest337.5°N 22°30' W326.25° to 348.75°

    Seven inputs and the directions they produce

    Each card below is a real run of the calculator. The coordinates in the grid cases are sample numbers of the size a state plane survey in US survey feet produces; the GPS cases use the coordinates a map app shows for the city centers.

    Grid, northeast

    A: N 1,000, E 1,000. B: N 1,300, E 1,400.

    Latitude 300, departure 400, azimuth 53.1301° (N 53°07'48.4" E), back azimuth 233.1301°, distance 500. The 3-4-5 triangle makes the distance easy to check by eye.

    Grid, state plane size

    A: N 684,512.37, E 2,051,347.82. B: N 684,398.15, E 2,051,521.44.

    ΔN -114.22, ΔE 173.62, azimuth 123.3399°, bearing S 56°39'36.5" E, distance 207.822 ft. Compass point ESE.

    Grid, southwest

    A: N 0, E 0. B: N -120, E -50.

    Azimuth 202.6199° (S 22°37'11.5" W), back azimuth 22.6199°, distance 130. Both deltas negative, so the quadrant rule is 180° + β.

    GPS, New York to London

    40.7128, -74.0060 to 51.5074, -0.1278.

    Initial azimuth 51.2126° (NE), final azimuth 108.3297°, great-circle distance 3,461.2 mi (5,570.2 km, 3,007.7 nmi).

    GPS, across the National Mall

    38.8977, -77.0365 to 38.8893, -77.0502.

    Initial azimuth 231.7741° (S 51°46'26.6" W), final 231.7654°, distance 0.938 mi. Over a mile the course barely changes.

    Point B from a bearing

    A: N 5,000, E 5,000. Direction S 62°15'30" W, distance 248.36.

    Read as azimuth 242.2583°; latitude -115.608, departure -219.812; B at N 4,884.392, E 4,780.188.

    Converter, both ways

    296.565 in, then N 45°30'15" E in.

    296.565° gives N 63°26'06.0" W (WNW). N 45°30'15" E gives 45.5042°, back azimuth 225.5042°.

    New York to Los Angeles and back: why the two azimuths are not 180° apart

    Run the GPS mode from New York (40.7128, -74.0060) to Los Angeles (34.0522, -118.2437). The initial azimuth is 273.6871°, a hair north of due west, and the final azimuth on arrival is 245.9188°. Swap the points and the trip from Los Angeles starts at 65.9188°. If the Earth were flat, the return azimuth would be 273.6871° minus 180°, which is 93.6871°. It is almost 28° off from that.

    The shortest route on a sphere is an arc of a great circle, and the angle it makes with the meridians changes as you travel. Leaving New York, the arc bulges north before it bends down to Los Angeles, so it starts slightly north of west and ends well south of west. The calculator therefore prints three directions in this mode: the initial azimuth, the final azimuth at B, and the azimuth from B back to A. The last one equals the final azimuth plus 180°, which is exactly how Movable Type Scripts defines the final bearing. The distance between the two cities on the 6,371 km sphere is 2,445.6 mi.

    For a pilot or a sailor, holding the initial azimuth is not the same as following the great circle. A constant heading is a rhumb line, which is longer on east-west routes. Over a short leg like the National Mall case the difference disappears: initial and final azimuth differ by less than 0.01°.

    Grid north, true north and magnetic north

    "Azimuth" always needs a north to be measured from, and there are three of them in practice.

    Grid north is the direction of the northing axis on a map projection: state plane coordinates, UTM, or a local site grid. The northing and easting mode and the point B mode work in this north, because that is the only north the numbers know about. On a projected grid, grid north and true north differ by the convergence angle, which grows with the distance from the central meridian of the zone. The calculator does not apply it; your survey software or the zone parameters give it when you need true azimuths from grid coordinates.

    True north points along the meridian to the geographic North Pole. The GPS mode measures in true north, as stated by Movable Type Scripts, whose formulas it uses.

    Magnetic north is where a compass needle points. The angle between it and true north is the magnetic declination, which depends on where you are and drifts from year to year, so a compass reading and a computed azimuth only agree after you add or subtract the local declination. NOAA publishes the current value for any location through its magnetic field calculators.

    Azimuth and bearing questions from the field and the classroom

    How do I calculate an azimuth from northing and easting by hand?

    Subtract to get the latitude ΔN = NB - NA and the departure ΔE = EB - EA. Take β = arctan(|ΔE| / |ΔN|), read the quadrant from the signs of ΔN and ΔE, and apply the matching rule from the quadrant table. With ΔN = -114.22 and ΔE = 173.62, β is 56.6601°, the quadrant is SE, and the azimuth is 180° minus β, 123.3399°. The distance is the square root of ΔN² + ΔE².

    Is a bearing the same thing as an azimuth?

    They describe the same direction in two notations. The azimuth is a single number from 0° to 360°; the quadrant bearing is an angle up to 90° framed by N or S and E or W. In navigation, "bearing" is often used for what surveyors call an azimuth (a 0° to 360° number), so check which one a document means. A value above 90° with no letters is always an azimuth.

    My spreadsheet ATAN2 gives a different angle. Which one is right?

    Usually both, measured differently. Math and most CAD programs measure counterclockwise from the +x (east) axis; an azimuth is clockwise from north. The two are related by azimuth = 90° minus the math angle, wrapped into 0° to 360°, and the result shows the math angle as its own tile: 36.8699° for the 3-4-5 example, whose azimuth is 53.1301°. Also note that Excel's ATAN2 takes x first and y second, the reverse of many programming languages.

    Can I use this to aim solar panels or a satellite dish?

    The converter and the compass point tile help with the notation, but the panel or dish azimuth itself comes from the position of the sun or the satellite, which this calculator does not compute. Remember that installers usually quote true azimuths (south = 180°), so a compass needs the magnetic declination correction before you set the angle.

    How accurate is the GPS mode?

    The formulas treat the Earth as a sphere of radius 6,371 km. According to Movable Type Scripts, that puts the distance off by generally less than 0.3%, and up to 0.55% on routes crossing the equator. Azimuths are affected far less over short and medium distances. For legal boundary work, use an ellipsoidal inverse such as the one in NOAA's geodetic toolkit instead.

    Why can't I get an azimuth from the North Pole?

    Standing on the North Pole, every direction is south, so there is no single angle from north to measure. The calculator stops with a message instead of printing a meaningless number. The same happens for two points on exactly opposite sides of the Earth (antipodes), where every great circle through A reaches B. If B is on a pole, the initial azimuth is still defined (0° or 180°) and only the final azimuth is undefined.

    Does the distance in the grid mode include elevation?

    No. Northing and easting describe a horizontal position, so the distance is the horizontal distance between the two points on the grid. A slope distance measured along the ground is longer whenever there is a difference in elevation; reduce it to horizontal before you use it in the point B mode.

    Related tools

    Coordinate Calculator

    Distance and midpoint between two x, y points - See the calculator

    Angle Unit Converter

    Degrees, radians, gradians and more, for angles outside the compass - See the calculator

    Polygon Area Calculator

    Area of a parcel from the same northing and easting corners - See the calculator

    Triangle Angle Calculator

    Interior angles of a triangle from its sides - See the calculator

    Pythagorean Theorem Calculator

    The same square root that turns latitude and departure into a distance - See the calculator

    Linear Interpolation Calculator

    Values between two known points, for stations along a line - See the calculator

    Distance Converter

    Miles, kilometers, nautical miles and feet - See the calculator

    Similar calculators from this section