How Angle Subtraction Calculator Works?
The Angle Subtraction Calculator works by subtracting the second angle from the first and reporting both the raw difference and the shortest signed difference in (−180°, 180°].
- Enter the first angle (α). For example, a target heading.
- Enter the second angle (β). For example, the current heading.
- Read α − β. The raw difference can exceed 180°.
- Read the shortest turn. 10° − 350° = −340° raw, but the shortest turn is +20°.
Angle Subtraction Calculator Formula
Angle subtraction is Δ = α − β, and the shortest signed difference is Δ = ((α − β + 180°) mod 360°) − 180°.
Worked Example
Find the turn from 350° to 10°. 10 − 350 = −340. ((−340 + 180) mod 360) − 180 = 20. The shortest turn is +20° (clockwise in compass terms).
Angle Subtraction Calculator Conversion Table
The angle subtraction conversion table lists 8 pairs with raw and shortest differences.
| α | β | α − β | Shortest difference |
|---|---|---|---|
| 90° | 30° | 60° | 60° |
| 30° | 90° | −60° | −60° |
| 10° | 350° | −340° | 20° |
| 350° | 10° | 340° | −20° |
| 180° | 0° | 180° | 180° |
| 270° | 45° | 225° | −135° |
| 45° | 270° | −225° | 135° |
| 200° | 20° | 180° | 180° |
What is Angle Subtraction Calculator?
An Angle Subtraction Calculator is a tool that finds the difference between 2 angles and the shortest rotation from one to the other.
The raw difference ignores wraparound at 360°. The shortest signed difference is the value controllers and navigators need, since turning 20° is better than turning 340°.
A difference of exactly 180° has 2 equal shortest paths; the calculator reports +180°.
What are the uses of Angle Subtraction Calculator?
There are 4 main uses of an Angle Subtraction Calculator.
- Steering control: Compute heading error for autopilots and robots.
- Geometry: Find a missing angle from a total and a known part.
- Wind correction: Find the angle between wind direction and course.
- Game AI: Turn characters toward targets the short way.