Whole circle bearing and distance from coordinates
The whole circle bearing (WCB) of a line is its direction measured clockwise from grid north, from 0° to 360°. Together with the horizontal distance, it is the most used calculation in surveying: setting out, traverses, boundary checks. Here is the method and a worked example.
The formula
For a line from A to B, compute the coordinate differences ΔE = EB − EA and ΔN = NB − NA. Then:
- Distance:
D = √(ΔE² + ΔN²) - Reduced (acute) angle:
α = arctan(|ΔE| / |ΔN|) - Whole circle bearing from the quadrant:
| Signs | Quadrant | WCB (degrees) | WCB (grads) |
|---|---|---|---|
| ΔE ≥ 0, ΔN > 0 | NE | α | α |
| ΔE ≥ 0, ΔN < 0 | SE | 180 − α | 200 − α |
| ΔE < 0, ΔN < 0 | SW | 180 + α | 200 + α |
| ΔE < 0, ΔN > 0 | NW | 360 − α | 400 − α |
In a spreadsheet or a program, atan2(ΔE, ΔN) gives the bearing in one step (add 360° if negative). Note the order: east first, because bearings are measured from north, not from the x-axis as in mathematics.
Worked example
A (E 486,298.080; N 362,191.330) and B (E 486,412.550; N 362,105.870).
- ΔE = +114.470 m, ΔN = −85.460 m
- D = √(114.470² + 85.460²) = 142.852 m
- α = arctan(114.470 / 85.460) = 53.2560°
- ΔE > 0 and ΔN < 0: south-east quadrant, so WCB = 180 − 53.2560 = 126.7440° (126°44′38″), or 140.8266 grads
- Back bearing B → A = 126.7440 + 180 = 306.7440°
Back bearing
The bearing of the same line in the opposite direction differs by exactly 180° (200 grads): add 180° if the bearing is below 180°, subtract it otherwise.
Do it online
The bearing and distance calculator gives the bearing in degrees, DMS or grads, the distance, the back bearing, a diagram and the detail of the calculation. To go the other way (a new point from a bearing and a distance), use the coordinates calculator: E = E₀ + D × sin θ, N = N₀ + D × cos θ.
Frequently asked questions
What is the difference between bearing and azimuth?
In plane surveying they are usually the same: an angle clockwise from north. Some fields use "azimuth" for true or geodetic north and "bearing" for grid north, and quadrant bearings (N 53°15′ E) in some countries.
Why sine for east and cosine for north?
Because the angle is measured from the north (Y) axis. The northward component is D × cos θ and the eastward component D × sin θ.
Can I work in grads (gon)?
Yes. The calculators switch between grads, decimal degrees and DMS with one button. A full circle is 400 grads.