Geodesic Bearing Calculator — Initial & Final Bearing with Vincenty Formula
Geodesy Navigation Great-Circle Vincenty Formula WGS-84 Haversine
Whether you're planning a transoceanic flight path, aiming a satellite dish, working on a GIS project, or simply satisfying your curiosity about how far apart two cities are, the HeLovesMath Geodesic Bearing Calculator gives you precise answers. Enter any two points on the Earth in decimal degrees and instantly receive the initial bearing, final bearing, and great-circle distance — all calculated using rigorous mathematical models based on the WGS-84 ellipsoid.
This guide explains every concept from scratch: what a geodesic is, how the Vincenty and Haversine formulas work (with fully rendered mathematical expressions), why initial and final bearings differ, what WGS-84 means, and how all of this is used in the real world. By the end, you'll understand not just how to use the calculator but why each result is what it is.
Free Online Geodesic Bearing Calculator
🌐 Geodesic Bearing Calculator — Vincenty · WGS-84 · Haversine
Calculator ready. Enter coordinates for two points and click Calculate.
What Is a Geodesic? Spheres vs. Ellipsoids
In mathematics and physics, a geodesic is the generalisation of a straight line to curved surfaces — it is the locally shortest path between two points on a surface. On a flat plane, a geodesic is an ordinary straight line. On a sphere, it is an arc of a great circle — any circle whose plane passes through the sphere's centre.
The Earth is not a flat plane, and it is not a perfect sphere either. More precisely, it is an oblate spheroid — a sphere that is slightly flattened at the poles and bulging at the equator, due to its rotation. The equatorial radius (semi-major axis, a) is approximately 6,378 km, while the polar radius (semi-minor axis, b) is approximately 6,357 km — a difference of about 21 km or 0.33%.
This small but non-zero flattening means that truly accurate geodesic calculations — for aviation, satellite positioning, surveying, and military applications — require ellipsoidal geometry rather than simple spherical geometry. This is why the Vincenty formula (which models the Earth as a WGS-84 ellipsoid) is preferred over the simpler Haversine formula (which assumes a perfect sphere) when high accuracy is needed.
Assumes uniform radius R ≈ 6,371 km. Simple, fast formulas (Haversine). Maximum distance error ≈ 0.5%. Acceptable for casual use, rough estimates, and distances under a few hundred km.
Uses semi-major axis a and flattening f. Requires iterative algorithms (Vincenty, Karney). Distance accurate to 0.5 mm. Bearings accurate to sub-arcsecond. Required for aviation, GPS, and precise surveying.
The actual equipotential surface of Earth's gravity field — lumpy and irregular. Used in precise vertical datums (heights above mean sea level). For horizontal distance and bearing calculations, the WGS-84 ellipsoid is an excellent approximation.
Bearings, Azimuths & Compass Directions Explained
A bearing is the horizontal angle between the direction to a target and True North, measured clockwise from North. Bearings range from 0° (due North) through 90° (East), 180° (South), 270° (West), and back to 360° (North again). They are the fundamental output of this calculator.
Initial Bearing vs. Final Bearing
On a flat surface, the bearing from A to B is constant — you just point and walk. But on a sphere or ellipsoid, the shortest path (geodesic) continuously curves relative to the local meridians. This means:
- Initial bearing (α₁): The compass direction you face at Point 1 to set off on the geodesic toward Point 2.
- Final bearing (α₂): The compass direction at which the geodesic arrives at Point 2 from Point 1's direction.
For example, a great-circle flight from London (51.5°N, 0°W) to Tokyo (35.7°N, 139.7°E) departs at approximately 040° (northeast) but arrives from approximately 325° (northwest) — a difference of nearly 105°. Without understanding this, a navigator who maintained a constant course of 040° would miss Tokyo entirely, flying a longer rhumb-line path instead of the geodesic.
Standard Compass Points
| Direction | Abbreviation | Bearing (°) | Quadrant |
|---|---|---|---|
| North | N | 0° / 360° | — |
| North-Northeast | NNE | 22.5° | NE |
| Northeast | NE | 45° | NE |
| East | E | 90° | — |
| Southeast | SE | 135° | SE |
| South | S | 180° | — |
| Southwest | SW | 225° | SW |
| West | W | 270° | — |
| Northwest | NW | 315° | NW |
Haversine Formula — Great-Circle Distance on a Sphere
The Haversine formula is the classic method for computing the great-circle distance between two points expressed as latitude–longitude pairs, under the assumption that the Earth is a perfect sphere. It is named after the haversine (half-versed sine) trigonometric function.
The Haversine formula's maximum error is approximately 0.5% because the Earth is not a perfect sphere. For the 3,940 km New York–Los Angeles route, Haversine gives ≈ 3,940 km while the true ellipsoidal distance is ≈ 3,944 km — a difference of only 4 km. For most practical purposes this is entirely acceptable.
Bearing Calculation on a Sphere
The initial bearing between two points on a sphere is:
Vincenty Formula — Ellipsoidal Bearings & Distance
The Vincenty formula was developed by Polish-American geodesist Thaddeus Vincenty in 1975 and published in the journal Survey Review. It accounts for the Earth's ellipsoidal shape (via WGS-84 parameters) and iteratively solves for the geodesic distance and bearings to sub-millimetre accuracy. This is the algorithm powering the bearing calculations in this tool.
Step 1: Reduced (Parametric) Latitude
First, geodetic latitudes φ are transformed into reduced latitudes U, which project the ellipsoid onto an auxiliary sphere:
Step 2: Iterative Solution for λ
The longitude difference on the auxiliary sphere, λ, is found iteratively. Start with λ = L (the actual longitude difference) and iterate:
Step 3: Bearings from Converged Values
WGS-84 — The World Geodetic System Explained
WGS-84 (World Geodetic System 1984) is the standard reference frame adopted by GPS and used by virtually all modern navigation, mapping, and GIS systems. It defines the Earth's shape, orientation, and origin so that positions anywhere on Earth can be described unambiguously and shared between systems.
| Parameter | Symbol | WGS-84 Value | Meaning |
|---|---|---|---|
| Semi-major axis | a | 6,378,137.0 m | Equatorial radius |
| Flattening | f | 1 / 298.257223563 | Degree of polar flattening |
| Semi-minor axis | b | 6,356,752.3142 m | Polar radius (derived: b = a(1−f)) |
| First eccentricity² | e² | 6.69438 × 10⁻³ | Measure of ellipse departure from circle |
| Geocentric gravitational constant | GM | 3.986004418 × 10¹⁴ m³/s² | Earth's mass × grav. constant |
| Angular velocity | ω | 7.292115 × 10⁻⁵ rad/s | Earth's rotation rate |
Degrees–Minutes–Seconds ↔ Decimal Degrees Conversion
Geographic coordinates are traditionally expressed in degrees–minutes–seconds (DMS) format (e.g., 40° 42′ 46″ N). This calculator requires decimal degrees (DD). Here are the conversion formulas:
DMS → DD Example: 51° 30′ 26″ N, 0° 7′ 39″ W (London)
✅ London: Lat = 51.5072°, Lon = −0.1275°
Rhumb Lines vs. Great Circles — A Critical Navigation Distinction
The two most important types of navigational paths are great circles (geodesics on a sphere) and rhumb lines (loxodromes). Understanding their difference is essential for practical navigation.
The great-circle path between two points is the shortest possible route on a sphere. Every great circle divides the Earth into two equal hemispheres. All meridians and the equator are great circles.
Advantage: Minimum distance — saves time and fuel for long-haul aviation and shipping.
Disadvantage: Bearing constantly changes, requiring continuous course corrections.
A rhumb line crosses every meridian at the same angle — so a ship or aircraft can maintain a constant compass heading throughout the journey.
Advantage: Simple to navigate — set a fixed compass bearing and hold it.
Disadvantage: Longer path than the great circle (except along the equator or pure N/S routes).
Real-World Applications of Geodesic Bearing Calculations
Long-haul routes (e.g., London–Tokyo, New York–Singapore) are planned along great-circle paths to minimise flight time and fuel cost. The initial bearing tells pilots the departure heading; autopilot systems then continuously update the heading along the geodesic.
To align a satellite antenna at a ground station toward a geostationary satellite, engineers compute both azimuth (bearing) and elevation angle from the station's coordinates to the satellite's orbital slot over the equator. Bearing accuracy of <0.05° is required.
Ocean-going vessels plan great-circle routes to reduce voyage time and fuel consumption. A voyage from Los Angeles to Yokohama follows a great circle that passes through the northern Pacific — appearing curved on a Mercator chart but being the shortest path.
Geographic information systems use geodesic calculations for proximity searches ("find all hospitals within 50 km"), geofencing, buffer zone creation, and visualising coverage areas — all requiring accurate great-circle distances and bearings.
Point-to-point microwave links, terrestrial radio relays, and radar installations must be aimed with precise bearings between transmitter and receiver sites. Errors of even 0.1° can cause signal degradation over long links.
Very Long Baseline Interferometry (VLBI) combines signals from radio telescopes on different continents to create a virtual telescope the size of the Earth. Precise geodesic baselines between telescopes are needed to correlate observations and image distant radio sources.
Formula Comparison — Haversine vs. Vincenty vs. Karney
| Property | Haversine (Sphere) | Vincenty (Ellipsoid) | Karney (2013) |
|---|---|---|---|
| Earth model | Perfect sphere | WGS-84 ellipsoid | WGS-84 ellipsoid |
| Distance accuracy | ±0.5% (max ~30 km) | ±0.5 mm | ±15 nm (nanometres) |
| Bearing accuracy | ~0.3° | sub-arcsecond | sub-arcsecond |
| Computation speed | Instant (closed form) | Fast (2–3 iterations) | Moderate (series expansion) |
| Antipodal points | Handles | May not converge | Always converges |
| Complexity | Low | Medium | High |
| Best use case | Quick estimates, <500 km | General navigation, GIS | Surveying, space geodesy |
Worked Examples — Step-by-Step Calculations
Example 1 — Haversine Distance: New York City to London
✅ NYC to London ≈ 5,565 km (Haversine) / 5,570 km (Vincenty)
Example 2 — Initial Bearing: New York to London
✅ Approximate initial bearing NYC → London ≈ 050°–051° (northeast). Use the calculator above for the exact Vincenty result.
Example 3 — DMS to Decimal: Sydney Airport (33° 56′ 46″ S, 151° 10′ 37″ E)
✅ Sydney Airport: Lat = −33.9461°, Lon = +151.1769°
Example 4 — Why Initial ≠ Final Bearing: Los Angeles to Tokyo
✅ LA → Tokyo: Initial ≈ 296°, Final ≈ 038°, Distance ≈ 8,815 km. Enter coordinates above to verify with full precision.


