Bearing calculator

Two places, and the direction from one to the other: the true bearing, the magnetic bearing your compass shows, the back bearing, the compass point, and the distance.

How to use it

  1. Set the start point and the destination: search, use your location, or click the map.
  2. Read the true bearing, the magnetic bearing and the distance. The dashed line at the start points true north.
  3. Drag either pin to change the points. Press Swap to get the reverse bearing.

5 practical uses

  1. Set a compass course for a hike, a sail or a flight leg.
  2. Aim a directional antenna, a satellite dish or a solar array.
  3. Describe a direction in a report: "the mast lies 235° from the house".
  4. Work out the back bearing to find your way home.
  5. Check the direction to Mecca, a landmark or a distant peak.

The maths behind it

The initial bearing from (φ₁, λ₁) to (φ₂, λ₂) is θ = atan2(sin Δλ cos φ₂, cos φ₁ sin φ₂ − sin φ₁ cos φ₂ cos Δλ), normalised to 0 to 360°. The final bearing is the initial bearing of the reverse path plus 180°. The magnetic bearing is the true bearing minus the declination from the World Magnetic Model at the start point.

True and magnetic

The true bearing is measured from true north, the direction of the North Pole, and is what a map gives. A compass points at magnetic north, which is off by the magnetic declination of the place; the magnetic bearing is the true bearing minus the declination (east declination is positive). It is computed from the World Magnetic Model 2025 for today's date at the start point. See the magnetic declination tool for the details.

On a long path the bearing changes as you go: the initial bearing is the one to set off on, the final bearing the one you arrive on, and the back bearing is the direction from the destination back to the start.

Questions and answers

What is the difference between true and magnetic bearing?

A true bearing is measured from the direction of the North Pole. A compass points at magnetic north, which is off by the local declination, so the magnetic bearing is the true bearing minus the declination (east declination positive).

What is a back bearing?

The bearing from the destination back to the start, the final bearing plus or minus 180 degrees.

Which declination does it use?

The World Magnetic Model 2025 at the start point for today's date. See the magnetic declination tool for the full figures.

Embed this tool on your website

Paste this code where the tool should appear. It shows the tool alone, without this page's text, and links back here. It is free to use; the map data credit stays on the map.

<iframe src="https://waymorphic.com/tools/bearing-calculator?embed=1" width="100%" height="760" style="border:0;border-radius:12px;max-width:100%" loading="lazy" allow="geolocation; fullscreen; clipboard-write" title="Bearing calculator – Waymorphic Map"></iframe>

Change height to suit your page. To open the tool with a place already set, add the settings from this page's address bar (the part after #) to the end of the src. The embedded tool asks the visitor's browser for their location only when they press the button, and the allow attribute lets that work inside the frame.