keepcalculator

06 Numbers and Powers

Compass Error Calculator: Find Deviation

Card No. 06·0864 · Updated · Standard formula, shown below

Compass error 2.0 deg
Deviation
2.0 deg
Result
True bearing
90 deg
You entered
Compass bearing
92 deg
You entered
You enter
True bearing, Compass bearing, Magnetic variation
You get
Compass error, Deviation
Rounding
1 dp

This calculator works out the compass error—the difference between true north and the direction your compass points—by comparing a known bearing to the one your compass shows. You enter the true bearing and the compass bearing, and it returns the error in degrees, telling you whether your compass reads east or west of truth. It also gives the deviation, which is the error caused by the boat or vehicle itself, once you account for magnetic variation.

Formula

Compass error is simply the difference between the bearing your compass reads and the true bearing. In symbols:

Compass Error (CE) = Compass Bearing (C) − True Bearing (T)

Deviation is the part of that error caused by local magnetic fields (metal, wiring, electronics) and is found by subtracting the magnetic variation from the compass error:

Deviation (D) = Compass Bearing (C) − True Bearing (T) − Magnetic Variation (V)

All angles are in degrees, measured clockwise from north (0° to 360°). A positive error means the compass reads clockwise (east) of the true bearing; a negative error means it reads counterclockwise (west).

Worked Example

Using the default values: true bearing = 90° (due east), compass bearing = 92°, and magnetic variation = 0°.

  1. Compass error = 92 − 90 = 2°
  2. Deviation = 92 − 90 − 0 = 2°

So the compass reads 2° east of true. If you were steering by this compass, you would actually be heading 2° west of where you intend.

Why Compass Error Matters

Whether you’re sailing, flying, or driving off-road, knowing your compass error is essential for accurate navigation. A small error of a few degrees can put you miles off course over a long journey. For example, over a 60-nautical-mile leg, a 1° error translates to about 1 nautical mile of lateral displacement. On land, a 5° error over 10 kilometers puts you roughly 870 meters off to the side.

Compass error is the sum of two parts: variation (also called declination) and deviation. Variation is the difference between true north and magnetic north, caused by the Earth’s magnetic field. It changes with location and slowly over time. Deviation is the error introduced by magnetic influences on your vessel or vehicle, such as engines, speakers, or cargo. Unlike variation, deviation changes with heading because the influence of nearby metal rotates relative to the compass.

How to Use the Calculator

To get the most out of this tool, you need two pieces of data: a true bearing and a compass bearing. Here’s how to obtain them:

  • True bearing: From a chart or map, measure the bearing between two points using a protractor or a chart plotter. This is the bearing relative to true north.
  • Compass bearing: While at the location, point your compass at the same distant object and read the bearing it shows. This is the bearing your compass gives.
  • Magnetic variation: Look this up for your location from a chart, a GPS unit, or an online magnetic field calculator. It’s usually given in degrees east or west.

Enter the three values, and the calculator will show both the total compass error and the deviation. If you don’t know the variation, you can still get the total error—just leave variation at 0.

Common Mistakes and Misconceptions

One frequent error is mixing up the sign convention. Some navigators use “error” as the amount you must add to a compass bearing to get a true bearing, which is the negative of what this calculator shows. Always be clear about which convention you’re using.

Another common mistake is forgetting that deviation changes with heading. A single deviation value is only valid for the heading at which it was measured. To correct a compass fully, you need a deviation table or a swing—a procedure where you compare compass readings at multiple headings. This calculator gives you a snapshot for one heading.

Also, remember that variation changes over time (typically a few minutes of arc per year). For high-precision navigation, use the variation for the current year, not an old chart.

Limitations of the Formula

The formula assumes you have accurate inputs. A compass bearing read from a handheld compass has reading error—often 1° to 2° even with care. The true bearing from a chart also has uncertainty, especially if you’re working with small-scale maps. The result is only as good as the inputs.

For aviation, compass errors can be more complex due to acceleration and turning errors (northerly turning error). This calculator handles only the static error—the difference at a steady heading. Pilots should consult their aircraft’s compass correction card for accurate in-flight corrections.

Frequently Asked Questions

What is the difference between variation and deviation?

Variation (declination) is the angle between true north and magnetic north, caused by the Earth’s magnetic field. It is the same for all compasses at a given location. Deviation is the angle caused by local magnetic interference from metal or electronics, and it varies with the heading of the vessel or vehicle.

Why does my compass error change when I turn the boat?

Because deviation changes with heading. The magnetic field from nearby metal rotates relative to the compass as you turn, so the error it causes changes. That’s why ships have a deviation table for different headings.

How do I find the magnetic variation for my area?

Look at a nautical or aeronautical chart—they usually show variation and the annual change. GPS units and online magnetic field calculators also give the current variation for any location.

Can I use this calculator for a car or on land?

Yes, the same math applies. A car’s compass can have deviation from the car’s metal and electronics. The calculator works for any compass, as long as you have a true bearing and a compass bearing.

What should I do if the compass error is more than a few degrees?

If the error is large (more than 5°), check for nearby magnetic interference—move away from metal objects, electronics, or magnets. If the error persists, the compass may need calibration or adjustment by a professional.

Is a positive compass error always east?

In this calculator, yes. A positive error means the compass bearing is greater (clockwise) than the true bearing, which is an easterly error. A negative error is westerly. However, some texts use the opposite sign, so always check the convention.

Related

Formula used
in t | True bearing | deg | 90 | 0 | 360
in c | Compass bearing | deg | 92 | 0 | 360
in v | Magnetic variation | deg | 0 | -180 | 180
out ce | Compass error | deg | c - t | 1
out dev | Deviation | deg | c - t - v | 1

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.

More cards in this drawer

The whole Numbers and Powers drawer →