compass deviation calculator

Compass Deviation Calculator

Calculate compass deviation using either known magnetic heading, or true heading + magnetic variation.

Sign convention used in this calculator: Compass + Deviation = Magnetic. Positive deviation is East; negative deviation is West.

Optional: Compass Course to Steer

After calculating deviation, enter a desired magnetic course and get the compass course to steer.

A compass deviation calculator helps navigators quickly quantify the error introduced by local magnetic influences on board a vessel or aircraft. Even with modern GNSS systems, understanding deviation remains an essential navigation skill for safety, redundancy, and good seamanship.

What is compass deviation?

Compass deviation is the angular error of a compass caused by magnetic fields near the compass itself. These fields come from engines, wiring, speakers, tools, steel structures, and even portable electronics.

Deviation is different on different headings. For example, your compass may read nearly perfect on a northerly heading but show a 3° error on an easterly heading. That is why deviation is often recorded as a table (a deviation card), not a single fixed value.

Variation vs. deviation (critical distinction)

  • Variation (magnetic declination): Difference between true north and magnetic north at your location on Earth.
  • Deviation: Difference between magnetic heading and what your onboard compass reads.
  • Variation changes by geographic location and time.
  • Deviation changes with vessel configuration, onboard equipment, and heading.

Formula used by this calculator

The calculator applies these standard relationships:

  • C + D = M (Compass + Deviation = Magnetic)
  • M + V = T (Magnetic + Variation = True)
  • Rearranged: D = M − C
  • If true heading is provided: M = T − V (East variation positive, West negative)

Angles are normalized to a 0°–360° range, and deviation is shown as the shortest signed angle (East/West) for practical use.

How to use this tool effectively

Method 1: Known magnetic heading

Use this when you have a trusted magnetic reference (for example, from charted bearings corrected for variation, or a calibrated instrument). Enter magnetic heading and observed compass heading, then calculate.

Method 2: Known true heading + variation

If you start with true heading (e.g., from chart work) and known local variation, the calculator first derives magnetic heading, then computes deviation from your compass reading.

Interpreting the result

  • 2.5° E means your deviation is easterly.
  • 3.0° W means your deviation is westerly.
  • 0.0° means no detected deviation for that heading.

Example deviation card format

Once you repeat this process on multiple headings, you can build a practical deviation card:

Compass Heading Magnetic Heading Deviation
000° 001° 1° E
045° 043° 2° W
090° 087° 3° W
135° 136° 1° E
180° 182° 2° E

Best practices for accurate deviation checks

  • Keep phones, tools, and portable speakers away from the compass during measurement.
  • Run engines and normal onboard electronics in typical operating state while checking.
  • Take readings in calm conditions and hold steady heading for long enough to stabilize.
  • Re-check after major electrical work, new equipment installation, or structural changes.
  • Document date, location, variation source, and instrument used for traceability.

Frequently asked questions

Can deviation be the same on all headings?

Usually no. Deviation typically changes by heading due to how local magnetic fields interact with compass orientation.

How often should I update my deviation card?

Update whenever equipment changes, after maintenance involving electrical systems, or if heading performance seems inconsistent.

Is GPS course the same as heading?

Not always. GPS often reports track over ground, which can differ from heading due to wind, current, or drift. Use care when comparing values.

Bottom line

Compass deviation is small in appearance but significant in navigation outcomes. A few degrees of uncorrected error can become a large positional offset over distance. Use this calculator to quantify deviation quickly, then maintain a heading-by-heading correction habit for safer navigation.

🔗 Related Calculators