What is deviation?

The short version: your boat's compass is pulled off course by the boat itself, by a different amount depending on which way you're pointing. That error is called deviation.

Where does a compass actually point?

A compass doesn't point at the North Pole. It lines up with the Earth's magnetic field, which points (roughly) to the magnetic north pole, currently wandering about the Arctic north of Canada and drifting towards Siberia.

The angle between true north and magnetic north is called variation (or "declination" if you're a pilot or a scientist). It depends on where you are in the world and changes slowly over the years. It's printed in the compass rose on your chart, along with how much it changes each year.

And then there's your boat

Your compass doesn't live in a vacuum. Right next to it are an engine block, a keel, fittings, speakers, the autopilot and the chart plotter. All of them bend the magnetic field a little, so the compass ends up pointing at a sort of "boat north" that's a few degrees off magnetic north.

That extra error is deviation. The tricky bit is that it changes with the boat's heading. Turn the boat and the engine moves to a different side of the compass, pulling it a different way. You might have 3° of deviation heading east and none at all heading south.

Three norths: true north straight up, magnetic north a few degrees to one side (variation), and compass north a little further over (deviation). True north Magnetic north Compass north variation deviation
Variation is the gap between true and magnetic north, and it depends on where you are. Deviation is the gap between magnetic north and where your compass points, and it depends on your boat and its heading.

True, magnetic and compass

So every heading can be written three ways:

Easterly variation and deviation are counted as plus, westerly as minus, and going from compass towards true you add them:

Compass + deviation = Magnetic. Magnetic + variation = True.
Sailors remember this as CADET: Compass ADd East to get True. Going the other way you subtract east, or remember "error east, compass least; error west, compass best".

A worked example

You've plotted a course of 045°T. Variation here is 2°W, and your deviation table says that on this heading your compass has 2.9°W of deviation.

True045°from the chart
Variation2°Wwest is minus, so going away from true we add it back
Magnetic047°45 + 2
Deviation2.9°Wfrom your deviation table, on 047°M
Compass050°47 + 2.9, rounded: steer this

That's three opportunities to get a sign wrong when you're tired and wet. An OmniRose, a conversion rose made for your boat, does the whole sum for you: find 45 on the true ring and read across.

Keeping your compass clean

A deviation card can only allow for things that stay put. The engine and the keel are always in the same place, so measuring their effect once is enough. Anything that moves around near the compass, or gets switched on and off, can throw it out again by an amount no card can predict. A little compass hygiene keeps your card honest:

Do I really need to bother?

If your deviation is under a degree or two everywhere, it's lost in the noise of steering in a seaway, and many sailors happily ignore it. But you won't know that until you've measured it, and it's often bigger than people expect:

A good habit is to check your deviation after any refit or new installation near the compass, and every year or so anyway. If it turns out to be large (more than about 5°), a professional compass adjuster can reduce it with small corrector magnets. Then measure again and make a fresh table for what's left.

Next: how to measure it I've got readings already