geoprimsField-grade geospatial math

True course to compass heading

From true course through the wind correction, variation, and your compass deviation card to the heading to fly on the compass, each step shown.

Planning and education aid. Not for primary navigation. Full disclaimer

23°

Fly 23° on the compass: 21° magnetic, with -2° of deviation.

Each step
StepHeading
true course31.0 deg
+ wind correction: true heading28.0 deg
− variation: magnetic heading21.0 deg
− deviation: compass heading23.0 deg
True heading
Magnetic heading
Deviation
Provenance
Computed by
aviation.wind.heading-chain 1.1.0, core 0.1.0
Model
True heading = true course + wind correction; magnetic = true − variation (east positive: "east is least"); compass = magnetic − deviation, the deviation read from the card by linear interpolation between its two nearest headings, around the circle (PHAK, navigation)
Accuracy
Exact arithmetic; the deviation is as good as the card
Notes
None
Cites
Federal Aviation Administration, Pilot's Handbook of Aeronautical Knowledge, FAA-H-8083-25C

Something look off?

Your values

Showing an example. Change anything.
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: True heading = true course + wind correction; magnetic = true − variation (east positive: "east is least"); compass = magnetic − deviation, the deviation read from the card by linear interpolation between its two nearest headings, around the circle (PHAK, navigation)

Accuracy: Exact arithmetic; the deviation is as good as the card

When to use this: Use this when you fill in a navigation log by hand and need the compass heading for a leg. Enter the true course, your wind correction angle, the variation from the chart, and your compass deviation card if you have one. It walks each step, true heading, then magnetic, then compass, so you can check your work line by line. It reads between the headings listed on the card.

Limitations: The tool does no wind math; the wind correction angle comes from the wind triangle tool or your E6B. The variation is the value you enter, east positive, and is not looked up for you. The deviation is read in a straight line between the two nearest card entries, so it is only as good as the card in the airplane. Planning aid, not a compass swing.

Worked example: FAA Chickasha-to-Guthrie flight log. Source: FAA-H-8083-25C Figure 16-26: TC 031°, WCA 3° left, TH 028°, MH 021°, and CH 023°. It is golden test vector v009, and every build checks the tool still gives its answer within its tolerance.

You enter

Deviation card
021 deg, -2 deg
True course
031 deg
Variation
7 deg
Wind correction angle
-3 deg

You get

Compass heading
23°
True heading
28°
Magnetic heading
21°
Deviation
-2°

Review: Not yet independently reviewed by a flight instructor (CFI).

Last verified: 2026-10-20, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.1.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 20 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources