ThisCalculator

Everyday

Bearing to Angle Calculator: Convert Bearings to Angles

Updated · Standard formula, shown below

Angle from East (degrees) 45.00 deg
Angle (radians)
0.7854 rad
Result
Bearing (degrees)
45 deg
You entered

This calculator converts a bearing (given as a compass direction in degrees, typically 0° to 360°) into a standard mathematical angle measured counterclockwise from the positive x-axis (east). You enter the bearing in degrees, and the calculator returns the equivalent angle in degrees, along with the same value in radians. The conversion is straightforward: angle = (90° – bearing) adjusted to fall within 0° to 360°.

Formula

The relationship between a compass bearing and a standard mathematical angle is:

θ = (90° – B) mod 360°

Where:

  • θ = the angle in degrees measured counterclockwise from east (the positive x-axis).
  • B = the bearing in degrees, measured clockwise from north (0° = north, 90° = east, 180° = south, 270° = west).
  • mod 360 ensures the result is between 0° and 360°.

To get radians, multiply the degree result by π/180.

Worked Example

Using the default bearing of 45° (which is northeast):

  1. Start with the formula: θ = (90° – 45°) mod 360°.
  2. Compute the subtraction: 90 – 45 = 45.
  3. Since 45 is already between 0 and 360, no modulo adjustment is needed.
  4. So the angle from east is 45°.
  5. In radians: 45 × π/180 ≈ 0.7854 radians.

This matches the calculator output: 45.00° and 0.7854 rad.

Understanding Bearings vs. Standard Angles

Bearings and mathematical angles are two different ways of describing direction. A bearing is measured clockwise from north, so north is 0°, east is 90°, south is 180°, and west is 270°. In contrast, a standard mathematical angle is measured counterclockwise from the positive x-axis (east), so east is 0°, north is 90°, west is 180°, and south is 270°.

This difference matters in navigation, surveying, engineering, and computer graphics. For example, if a surveyor gives you a bearing of 135° (southeast), the corresponding mathematical angle is (90 – 135) mod 360 = -45 mod 360 = 315°. That means the direction is 315° counterclockwise from east, which is indeed southeast.

Why Convert Between Bearing and Angle?

Many software tools, especially those for CAD, GIS, or physics simulations, expect angles in the standard mathematical convention. If you receive data in bearings from a compass or a field survey, you must convert them before using them in formulas like sine, cosine, or tangent. For instance, to calculate the x and y components of a vector given a bearing and distance:

  • x = distance × cos(angle)
  • y = distance × sin(angle)

But the angle here must be the standard angle, not the bearing. Using the conversion ensures your components point in the correct direction.

Common Mistakes and How to Avoid Them

One frequent error is forgetting the modulo 360 step. If you subtract a bearing larger than 90 from 90, you get a negative number. For example, bearing 270° (west) gives 90 – 270 = -180°. The correct angle is 180° (west is 180° from east). Adding 360 gives 180°. Always ensure the final result is between 0 and 360.

Another mistake is mixing up the direction of measurement. Bearings are always clockwise from north, while standard angles are counterclockwise from east. If you reverse the formula, you’ll get a completely different direction. Double-check which convention your source uses.

Also, be careful with units. Some calculators or programming languages use radians by default. If you need radians, convert after the degree calculation. The calculator above provides both, so you can cross-check.

When to Use This Conversion

Use this conversion whenever you need to:

  • Plot a bearing on a Cartesian coordinate system.
  • Compute vector components for physics or engineering problems.
  • Convert compass data for use in software that expects standard angles.
  • Translate between navigation and mathematical conventions in robotics or game development.

It is also useful for reverse conversion: if you have an angle and need a bearing, you can use the same formula rearranged: B = (90° – θ) mod 360°. The calculator can be adapted by swapping the input and output if needed.

Limitations and Considerations

This conversion assumes a flat, two-dimensional plane. For global navigation, you need to account for the Earth’s curvature, and bearings are often given as great-circle or rhumb-line bearings. However, for local surveying, small-scale maps, or vector calculations, the planar assumption is usually sufficient.

Also, the formula works for any bearing from 0° to 360°, but some conventions use bearings in the range 0° to 180° with a quadrant label (e.g., N45E). In such cases, convert to the full 0–360 range first. For example, N45E is 45°, S45E is 135°, S45W is 225°, and N45W is 315°.

Frequently Asked Questions

What is the difference between a bearing and an azimuth?

In many contexts, bearing and azimuth are used interchangeably, both meaning the angle measured clockwise from north (0° to 360°). However, some fields use “azimuth” specifically for astronomical or geodetic measurements, while “bearing” is more common in navigation and surveying. The conversion formula is the same regardless of the term.

Can I use this for converting angles to bearings?

Yes. Rearrange the formula to B = (90° – θ) mod 360°. For example, if you have an angle of 315°, the bearing is (90 – 315) mod 360 = -225 mod 360 = 135°, which is southeast. You can use the calculator by entering the angle as the “bearing” and reading the result as the angle, but note the labels would be swapped.

Why do some formulas use atan2(y, x) instead of this conversion?

atan2(y, x) gives the standard angle from the positive x-axis to a point (x, y). If you have Cartesian coordinates, atan2 is more direct. The bearing-to-angle conversion is useful when you start with a bearing and a distance, not with x and y coordinates. If you have both, you can use either method, but ensure consistency.

Does this work for negative bearings?

Yes, but you should normalize them to 0–360 first. For example, a bearing of -45° is equivalent to 315°. The formula with modulo will handle it if you add 360 before converting, or you can rely on the modulo operation to wrap negative results. In the calculator, you can enter negative values, but the output will be normalized to 0–360.

What if my bearing is given in mils or grads?

You need to convert to degrees first. There are 6400 mils in a circle, so multiply mils by 360/6400 = 0.05625 to get degrees. Grads (gons) are 400 per circle, so multiply grads by 0.9 to get degrees. Then apply the formula above.

Is this conversion used in real-time GPS navigation?

GPS devices often display bearings directly, but when computing routes or headings, the software internally converts to standard angles for calculations. This conversion is a fundamental step in many navigation algorithms, though the details may be hidden inside libraries.

Related

Formula used
in b | Bearing (degrees) | deg | 45 | 0
out angle | Angle from East (degrees) | deg | (90 - b + 360) % 360 | 2
out radians | Angle (radians) | rad | ((90 - b + 360) % 360) * pi / 180 | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.