Nautical Science › Bridge Equipment › Magnetic compass
Introduction
Deviation is the error caused by the ship’s own magnetism; it is made up of five parts (coefficients A to E) that change in known ways with heading and latitude, so it can be measured by swinging the ship, reduced with correctors and recorded on a deviation card.
This article is part of the MarineWise Bridge Equipment series, in the section “Magnetic compass”. It explains deviation and compass error, where the ship's magnetism comes from, the five coefficients, heeling error, swinging the ship and the deviation card, when to adjust and retentive error and Gaussin error.
Before reading, it helps to know The magnetic compass and binnacle: bowl, gimbals and correctors.
Deviation and compass error
- Deviation (δ): the angle between the magnetic meridian and the direction in which the compass needle points. Easterly deviation is +, westerly is −.
- Compass error = variation + deviation (combined with signs). True = Compass + error if easterly; − error if westerly (“Error East, Compass Least”).
- Magnetic bearing ~ compass bearing = deviation; true bearing ~ compass bearing = error; error ~ variation = deviation.
- Deviation changes with heading because the ship’s magnetism turns with the ship while the Earth’s field does not; part of it also changes with magnetic latitude.
Where the ship’s magnetism comes from
| Type | Cause | Behaviour | Causes | Corrected by |
|---|---|---|---|---|
| Permanent (hard iron) | Built on one heading in the Earth’s field, with hammering, heating and welding currents | Forces P (fore-and-aft), Q (athwartship) and R (vertical) are constant; their deviation varies inversely as H | Permanent B, permanent C, permanent heeling error | Fore-and-aft and athwartship magnets; heeling error magnets |
| Induced in horizontal soft iron | The Earth’s horizontal force H (changes with heading) | Deviation does not change with latitude (H induces it and also directs the compass) | Coefficients D, E and real A; reduces the directive force | Soft iron spheres |
| Induced in vertical soft iron | The Earth’s vertical force Z (changes with latitude and hemisphere, not with heading) | Deviation varies as Z ÷ H, i.e. as tan dip; changes sign across the magnetic equator | Induced B (funnel, masts), induced C, induced heeling error | Flinders bar; heeling error magnets |
| Sub-permanent | A long time on one heading, pounding, vibration | Decays over a few hours after an alteration | Retentive error | Not corrected; check the error often |
The details, with the nine soft-iron “rods” used to explain induced magnetism, are in Ship’s magnetism: hard iron, soft iron and the nine soft-iron rods.
The five coefficients
A coefficient is the maximum deviation (in degrees, not a force) caused by one group of the ship’s magnetic forces. A coefficient is + if it gives an easterly deviation on headings just to the right of north (000° to 045°). With the ship upright, the deviation on any compass course is:
δ = A + B sin Co + C cos Co + D sin 2Co + E cos 2Co
| Coefficient | Type of deviation | Caused by | Maximum on | Changes with latitude? | Corrected by (Topic) |
|---|---|---|---|---|---|
| A | Constant, same on every heading | Unsymmetrical horizontal soft iron (real A), or errors such as a misaligned lubber line (apparent A) | All headings | No | Not usually corrected; allowed for (57) |
| B | Semicircular, varies as sin Co | Fore-and-aft field: permanent force P (PB) + vertical soft iron forward or abaft (iB) | E and W | PB ∝ 1/H; iB ∝ tan dip | F&A magnets (PB), Flinders bar (iB) (57) |
| C | Semicircular, varies as cos Co | Athwartship field: permanent force Q (PC) + vertical soft iron to port or starboard (iC) | N and S | PC ∝ 1/H; iC ∝ tan dip | Athwartship magnets (PC), Flinders bar slewed (iC) (57) |
| D | Quadrantal, varies as sin 2Co | Horizontal soft iron symmetrical about the fore-and-aft line (beams and girders) | NE, SE, SW, NW | No | Spheres athwartships (+D) (58) |
| E | Quadrantal, varies as cos 2Co | Horizontal soft iron symmetrical about a 45° line (rare) | N, E, S, W | No | Spheres slewed 45° (58) |
Heeling error
- Heeling error is the change of deviation when the ship heels, on the same heading. When the ship heels the compass stays level in its gimbals, but the vertical fields of the ship (permanent force R, vertical iron below the compass and the athwartship beams) now have a horizontal part.
- A blue pole below the compass pulls the needle to the high side; a red pole below pulls it to the low side. As the ship rolls the card swings from side to side: an unsteady compass.
- It is greatest on north and south headings and is corrected by vertical magnets in the heeling error bucket, set with the vertical force instrument (Heeling error and the vertical force instrument).
Swinging the ship and the deviation card
- Prepare the ship (Compass adjustment: order of correctors, methods and precautions): seagoing condition, upright, derricks and cranes stowed, anchors housed, no loose iron near the compass.
- Find the magnetic bearing of a distant object: the mean of its compass bearings on at least four (preferably eight) equidistant headings, assuming no coefficient A. Or use transits, the Sun’s azimuth or a corrected gyro.
- Steady the ship on each heading (cardinal and intercardinal points by compass) and swing slowly; deviation = magnetic bearing ~ compass bearing.
- Work out the coefficients (table below), adjust the correctors, swing again and record the residual deviations on the deviation card or curve, with the positions of all correctors, the date, place and variation used.
| Coefficient | From the deviations on a swing |
|---|---|
| A | (δN + δNE + δE + δSE + δS + δSW + δW + δNW) ÷ 8 |
| B | (δE − δW) ÷ 2 |
| C | (δN − δS) ÷ 2 |
| D | (δNE − δSE + δSW − δNW) ÷ 4 |
| E | (δN − δE + δS − δW) ÷ 4 |
Swing: N +2°, NE +5°, E +6°, SE +3°, S −2°, SW −4°, W −4°, NW +1°. A = 7 ÷ 8 = +0.9°; B = (6 + 4) ÷ 2 = +5°; C = (2 + 2) ÷ 2 = +2°; D = (5 − 3 − 4 − 1) ÷ 4 = −0.75°; E = (2 − 6 − 2 + 4) ÷ 4 = −0.5°. Deviation on 030°(C) = 0.9 + 5 sin 30° + 2 cos 30° − 0.75 sin 60° − 0.5 cos 60° = 0.9 + 2.5 + 1.73 − 0.65 − 0.25 = 4.2° E.
When to adjust
| A full correction is necessary | An adjustment is necessary |
|---|---|
| When the compass is first installed | Three to six months after the first correction (the new ship’s magnetism settles) |
| After large structural alterations or repairs that change the ship’s permanent magnetism | Once a year as a routine |
| When electrical equipment or magnetic material near the compass is altered | After carrying and discharging cargoes of a magnetic nature |
| After the ship is struck by lightning | After loading or discharging with electromagnets |
| After a major fire | When the ship re-enters service after being laid up |
| After a collision or stranding |
Every magnetic compass must be properly adjusted and a table or curve of residual deviations must be available at all times. Compare magnetic and gyro headings every watch and after large alterations, and take an azimuth or amplitude when possible; make a new deviation card after each adjustment.
Retentive error and Gaussin error
| Retentive error | Gaussin error | |
|---|---|---|
| Cause | After a long time on one heading the ship’s structure acquires sub-permanent magnetism from vibration and pounding: a red pole on the side towards north and a blue pole towards south. It is kept for some hours after an alteration. | When the ship turns quickly her structure cuts the Earth’s field, setting up eddy currents whose field opposes the swing (Lenz’s law), and the induced poles in the soft iron lag behind (hysteresis). |
| Deviation | Semicircular about the old heading: westerly on any new course up to 180° to the right of the old heading, easterly up to 180° to the left. | Swinging to starboard: deviation westerly; swinging to port: easterly, whatever the heading (amount varies with the ship’s shape). |
| How long | Decays over a few hours (check for about six hours) | Only while turning; gone within a couple of minutes of steadying |
| Precautions | Check the compass error frequently after a large alteration; do not swing or adjust the compass soon after a long time on one heading | Do not take bearings or read the error while the ship is swinging; let the compass settle |
- Mixing up deviation (ship) and variation (Earth).
- Saying the Flinders bar corrects permanent magnetism: it corrects induced B, from vertical soft iron.
- Treating a coefficient as a force: it is the maximum deviation, in degrees.
- Forgetting heeling error is largest on north and south headings.
- Reading the compass error while the ship is still turning (Gaussin error).
Conclusion
Deviation, heeling error and compass adjustment in brief: the points below are what an examiner expects you to state clearly and what you will use on watch.
- δ = A + B sin Co + C cos Co + D sin 2Co + E cos 2Co; E + and W −.
- B: (E − W)/2; C: (N − S)/2; D: (NE − SE + SW − NW)/4; E: (N − E + S − W)/4; A: mean of all.
- Permanent → magnets; vertical soft iron → Flinders bar; horizontal soft iron → spheres; heeling → vertical magnets.
- Full correction: new, structural change, electrical change, lightning, fire, collision/stranding. Adjustment: 3–6 months, yearly, magnetic cargo, electromagnets, after lay-up.
- Retentive: W’ly to the right of the old course, decays in hours. Gaussin: turning to stbd W’ly, to port E’ly, gone in minutes.
Next in the series: Ship's magnetism: hard iron, soft iron and the nine soft-iron rods.
Asked in exams
Every Bridge Equipment topic, solved exam questions and an AI assistant for seafarers.
Open the MarineWise app← The magnetic compass and binnacle: bowl, gimbals and correctors · All Bridge Equipment topics · Ship's magnetism: hard iron, soft iron and the nine soft-iron rods →

Leave a Reply