Bearing Calculator: Calculate Bearing Using Latitude and Longitude


Bearing Calculator

A precise tool to calculate the initial bearing from one latitude and longitude to another.



In decimal degrees (e.g., 40.7128)


In decimal degrees (e.g., -74.0060)


In decimal degrees (e.g., 51.5074)


In decimal degrees (e.g., -0.1278)



Bearing Visualization

A compass visualization showing the calculated bearing. The red needle points in the direction of the initial bearing from North (0°).

What is Bearing in Navigation?

In navigation, bearing (or azimuth) is the direction from one point to another, measured as an angle in degrees clockwise from the north-south line. When you want to **calculate bearing using latitude and longitude**, you are determining the initial direction of travel along the shortest path on the Earth’s surface (a great-circle route) from a starting point to a destination. This is a fundamental calculation in aviation, maritime navigation, and geodesy. It tells you which direction to head in to reach your destination.

Unlike a constant heading on a flat map, the bearing along a great-circle path can change over the course of the journey. Our calculator provides the *initial bearing*—the precise angle you must depart on. For long distances, this path is more efficient than following a straight line on a Mercator projection map (a rhumb line). Understanding your bearing is crucial for any application that involves accurate long-distance travel planning. If you are interested in the total path, you might also want to use a distance between two coordinates calculator.

The Formula to Calculate Bearing

The calculation for the initial bearing (θ) between two points on a sphere is based on spherical trigonometry. The formula uses the latitudes (φ) and longitudes (λ) of the start (1) and end (2) points.

First, all latitude and longitude values must be converted from degrees to radians. Then, the following components are calculated:

Y = sin(Δλ) * cos(φ₂)

X = cos(φ₁) * sin(φ₂) – sin(φ₁) * cos(φ₂) * cos(Δλ)

Where Δλ is the difference in longitudes (λ₂ – λ₁).

The initial bearing in radians is then found using the `atan2(Y, X)` function, which correctly handles the signs of Y and X to return a value in the correct quadrant.

θ (radians) = atan2(Y, X)

Finally, the result is converted back to degrees and normalized to a compass bearing (0° to 360°). This process requires a proper understanding of how to convert degrees to radians for trigonometric functions.

Variables Used in Bearing Calculation
Variable Meaning Unit Typical Range
φ₁ Latitude of the starting point Degrees -90 to +90
λ₁ Longitude of the starting point Degrees -180 to +180
φ₂ Latitude of the destination point Degrees -90 to +90
λ₂ Longitude of the destination point Degrees -180 to +180
Δλ Difference in longitude Radians -2π to +2π
θ Initial bearing Degrees 0 to 360

Practical Examples

Example 1: New York to London

Let’s calculate the initial bearing for a flight from New York City to London.

  • Start Point (NYC): Latitude (φ₁) = 40.7128°, Longitude (λ₁) = -74.0060°
  • End Point (London): Latitude (φ₂) = 51.5074°, Longitude (λ₂) = -0.1278°

Using the formula, the initial bearing is approximately 51.2°. This means a plane departing from New York would initially travel in a northeast direction.

Example 2: Sydney to Los Angeles

Now, let’s find the bearing for a trip from Sydney, Australia, to Los Angeles, USA.

  • Start Point (Sydney): Latitude (φ₁) = -33.8688°, Longitude (λ₁) = 151.2093°
  • End Point (LA): Latitude (φ₂) = 34.0522°, Longitude (λ₂) = -118.2437°

The calculated initial bearing is approximately 43.6°. This illustrates that even though Los Angeles is east of Sydney across the Pacific, the shortest path (a great-circle route) starts by heading northeast. To learn more about this concept, you can read about great-circle routes.

How to Use This Bearing Calculator

Using our tool to **calculate bearing using latitude and longitude** is straightforward. Follow these steps:

  1. Enter Start Point Coordinates: Input the latitude and longitude of your starting location into the “Start Point” fields. Use negative values for South latitudes and West longitudes.
  2. Enter End Point Coordinates: Input the latitude and longitude of your destination into the “End Point” fields.
  3. Calculate: Click the “Calculate Bearing” button. The tool will instantly compute the initial bearing.
  4. Interpret Results: The primary result shows the bearing in degrees from 0° (North). The compass visualizer provides a graphical representation, and a table shows the corresponding cardinal directions.

The results also include intermediate values from the calculation, which can be useful for verification or for those interested in the underlying math of the haversine formula‘s cousin used for bearing.

Key Factors That Affect Bearing Calculation

  • Earth’s Shape: Calculations are based on a spherical Earth model. For higher precision, an ellipsoidal model (like WGS84) is used, which slightly alters the result.
  • True North vs. Magnetic North: This calculator provides the *true bearing* relative to the geographic North Pole. For practical navigation with a compass, you must account for magnetic declination—the angle between true north and magnetic north—which varies by location and time.
  • Coordinate Precision: The accuracy of your result is directly dependent on the precision of the input latitude and longitude values.
  • Great-Circle Path: The calculated bearing is for the start of a great-circle route. The bearing will change as you travel along this path, except for travel directly along the equator or a meridian.
  • Initial vs. Final Bearing: The bearing from point A to B is not simply the reverse of the bearing from B to A (except for specific cases). Our calculator provides the initial (forward) bearing.
  • Data Entry Format: Ensure your coordinates are in decimal degrees. If your data is in Degrees/Minutes/Seconds (DMS), you’ll need a latitude and longitude format converter first.

Frequently Asked Questions (FAQ)

What’s the difference between bearing and heading?

Bearing is the direction from your current location to a target object, while heading is the direction your vehicle (e.g., a ship or plane) is pointed. They can be different due to factors like wind or ocean currents (cross-track error).

Is this a true bearing or magnetic bearing?

This calculator computes the **true bearing**, which is the angle relative to the geographic North Pole. It does not account for magnetic declination.

Why isn’t the bearing from A to B the reverse of B to A?

On a sphere, lines of longitude converge at the poles. The angle a great-circle path makes with a meridian changes along the path. The final bearing at the destination will be different from the initial bearing. The reverse bearing (B to A) is calculated independently.

What do I do if my coordinates are in DMS (Degrees, Minutes, Seconds)?

You must first convert them to decimal degrees. The formula is: Decimal Degrees = Degrees + (Minutes / 60) + (Seconds / 3600). Don’t forget to use a negative sign for South latitudes and West longitudes.

What does `atan2` do in the formula?

The `atan2(y, x)` function is a variant of the arctangent function that takes two arguments. It uses the signs of both `x` and `y` to determine the correct quadrant for the resulting angle, avoiding ambiguities that arise with `atan(y/x)`.

What is a great-circle path?

It is the shortest possible path between two points on the surface of a sphere. It’s an arc of a “great circle,” which is any circle whose center coincides with the center of the Earth.

Can I use this for short distances?

Yes, the formula is accurate for both short and long distances. For very short distances (a few kilometers), simpler planar geometry can provide a good approximation, but this spherical model remains correct.

How does this relate to what is true north?

True north is the direction along the Earth’s surface towards the geographic North Pole. All bearings calculated by this tool are relative to this direction, with 0° representing true north.

© 2026 GeoCalculators Inc. All rights reserved. For educational and informational purposes only.



Leave a Reply

Your email address will not be published. Required fields are marked *