Home › Calculators › Bearing Calculator

Bearing Calculator

Find the direction from one point on Earth to another. Enter two latitude and longitude pairs to get the initial and final great-circle bearing, the compass point, the distance and a list of waypoints along the route.

Last updated:

Point A (start)

Decimal degrees (south negative) or D M S with N/S

Decimal degrees (west negative) or D M S with E/W

Point B (destination)
Enter your values to see the result.
Advertisement
Advertisement

How to use the Bearing Calculator

  1. Enter point A, your starting position, as latitude and longitude. Use negative values for south and west, or type 40°38'29"N style values.
  2. Enter point B, the destination.
  3. Choose a distance unit: kilometers, miles or nautical miles.
  4. Press Calculate to see the initial bearing, the final bearing, the compass direction and the distance.
  5. Use the waypoint table to follow the great-circle route in steps, or download it as CSV.

Bearing formulas used

  • Initial bearing: θ = atan2(sin Δλ · cos φ₂, cos φ₁ · sin φ₂ − sin φ₁ · cos φ₂ · cos Δλ), normalized with (θ + 360) mod 360.
  • Final bearing: compute the initial bearing from B to A and add 180°.
  • Haversine distance: a = sin²(Δφ/2) + cos φ₁ · cos φ₂ · sin²(Δλ/2); c = 2 · atan2(√a, √(1 − a)); d = R · c with R = 6,371.0088 km.
  • Rhumb line: Δψ = ln(tan(π/4 + φ₂/2) / tan(π/4 + φ₁/2)); bearing = atan2(Δλ, Δψ).
  • Ellipsoid: Vincenty's inverse formula on WGS 84 (a = 6,378,137 m, f = 1/298.257223563), iterated to 10⁻¹² radians.

Example: from New York JFK (40.6413° N, 73.7781° W) to London Heathrow (51.4700° N, 0.4543° W) the initial bearing is about 51° (northeast), but the aircraft arrives heading about 108° (east-southeast). The great-circle distance is about 5,540 km, while a constant-heading rhumb line of 78° would be about 5,760 km.

Compass points and bearings

PointNameCenter bearingRange
NNorth0°348.75° - 11.25°
NNENorth-northeast22.5°11.25° - 33.75°
NENortheast45°33.75° - 56.25°
ENEEast-northeast67.5°56.25° - 78.75°
EEast90°78.75° - 101.25°
ESEEast-southeast112.5°101.25° - 123.75°
SESoutheast135°123.75° - 146.25°
SSESouth-southeast157.5°146.25° - 168.75°
SSouth180°168.75° - 191.25°
SSWSouth-southwest202.5°191.25° - 213.75°
SWSouthwest225°213.75° - 236.25°
WSWWest-southwest247.5°236.25° - 258.75°
WWest270°258.75° - 281.25°
WNWWest-northwest292.5°281.25° - 303.75°
NWNorthwest315°303.75° - 326.25°
NNWNorth-northwest337.5°326.25° - 348.75°

Tips

  • Surveyor (quadrant) bearings such as N 51.35° E start from north or south and turn toward east or west. The calculator shows both styles.
  • For short distances (a few kilometers) the great-circle and rhumb line bearings are practically identical, so a single compass heading works.
  • Crossing the antimeridian (180° longitude) is handled automatically: the route always takes the shorter way around.
  • Get coordinates from a map app by long-pressing a location, or from your phone's GPS with the GPS Coordinates tool.

Frequently asked questions

How do you calculate the bearing between two points?

The initial bearing from point A to point B on a sphere is θ = atan2(sin Δλ · cos φ₂, cos φ₁ · sin φ₂ − sin φ₁ · cos φ₂ · cos Δλ), where φ is latitude, λ is longitude and Δλ is the difference in longitude. The result is converted to degrees and normalized to 0-360° measured clockwise from true north.

What is the difference between initial and final bearing?

A great circle, the shortest route on a sphere, crosses each meridian at a different angle. The initial bearing is the heading you start on at point A; the final bearing is the heading you are on when you arrive at point B. They are only equal when you travel along a meridian or the equator.

What is a rhumb line?

A rhumb line (loxodrome) is a path that keeps the same compass bearing the whole way. It is easier to steer and appears as a straight line on a Mercator map, but it is longer than the great-circle route, sometimes by several percent on long east-west trips.

Is the bearing true or magnetic?

The calculator gives true bearings, measured from geographic north. To follow one with a magnetic compass, adjust for the local magnetic declination: subtract east declination or add west declination. The Magnetic Declination Calculator gives the value for your location.

What is a back bearing?

The back bearing (reciprocal bearing) points from B back toward A at the start of the line. It is the bearing plus 180°, wrapped to 0-360°. For example the back bearing of 51° is 231°.

How accurate is the distance?

The great-circle distance uses a spherical Earth with the mean radius of 6,371 km, which is accurate to about 0.5%. The ellipsoidal value uses Vincenty's formula on the WGS 84 ellipsoid, accurate to within millimeters for most point pairs.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Flight Distance CalculatorGet the great-circle distance between two airports in miles, km and nautical miles.Magnetic Declination CalculatorFind magnetic declination, inclination and field strength for any place and date (WMM2025).Coordinate ConverterConvert GPS coordinates between decimal degrees, DMS, DDM, UTM and MGRS, auto-detected.What Are My GPS CoordinatesSee your latitude and longitude in decimal and DMS, with accuracy and maps.Lat Long to UTMConvert latitude/longitude (decimal or DMS) to UTM zone, easting and northing, one or in bulk.Gear Ratio CalculatorGear ratio, output rpm and torque for multi-stage gear trains, plus vehicle speed at rpm.BTU CalculatorEstimate air conditioner BTU, tons and heating BTU for a room from its size and conditions.Pipe Flow Rate CalculatorFlow rate from pipe diameter and velocity (GPM, L/s, m³/h), velocity from flow, or pipe size.Rebar CalculatorRebar for a slab grid: bars each way, total length, weight by bar size and stock bars.Beam Deflection CalculatorMax deflection, moment and shear for simply supported, cantilever or fixed beams.Sheet Metal Bend Allowance CalculatorBend allowance, bend deduction and flat blank length from thickness, radius, angle, K-factor.Bolt Torque CalculatorTightening torque for metric and UNC/UNF bolts from grade, lubrication and target preload.Duct Size CalculatorRound duct diameter and equivalent rectangular duct sizes from CFM and friction or velocity.Room Heat Loss CalculatorRoom heat loss in BTU/h and watts from walls, windows, ceiling, floor and air leakage.Moment of Inertia CalculatorMass moment of inertia of common shapes and area moment of beam sections, incl. I-beams.Pulley Belt and Speed CalculatorDriven RPM, belt length, belt speed and ratio from pulley diameters and center distance.Steel Weight CalculatorWeight of steel plate, bar, pipe, tube and angle in kg and lb from dimensions and material.Tap Drill Size CalculatorTap drill size for metric, UNC and UNF threads at any thread %, with a full drill chart.Pipe Volume CalculatorWater volume in a pipe by NPS/schedule or inner diameter: gallons, liters, weight, fill time.Air Changes per Hour CalculatorCalculate ACH from CFM and room size, CFM for a target ACH, ACH50 or ASHRAE ventilation.Aviation Fuel CalculatorFlight fuel required with taxi, reserves and alternate, in gallons, liters and pounds.Belt Length CalculatorBelt length from two pulley diameters and center distance, or center distance from a belt.Bolt Circle CalculatorX/Y coordinates for every hole on a bolt circle, with a drawing and CSV export.Drone Flight Time CalculatorEstimate drone flight time from battery mAh, voltage, discharge, weight and amp draw.E6B Flight ComputerOnline E6B: wind correction, heading, ground speed, time-speed-distance, fuel and conversions.G-Code ViewerPreview 3D printer and CNC G-code in 2D or 3D with layers, size and estimated time.Hydraulic Cylinder CalculatorPush and pull force, extend and retract speed, cycle time and oil volume from bore, rod and pressure.ISO Fits and Tolerances CalculatorHole and shaft limits, clearance or interference and fit type for ISO 286 fits like H7/g6.Map Distance CalculatorClick points on a map to measure a path in km, miles or nautical miles, with GPX export.Pipe Schedule ChartOD, wall thickness, ID, weight per foot and volume for any NPS and pipe schedule.Pump Power CalculatorHydraulic, shaft and motor power in kW and HP from flow, head, specific gravity and efficiency.Section Modulus CalculatorSection modulus, moment of inertia, centroid and radius of gyration for beams and shapes.Shear and Moment Diagram CalculatorDraw shear force and bending moment diagrams with reactions and max values for any beam.Spur Gear CalculatorPitch, outside and root diameters, center distance and tooth sizes from module or DP.Stress and Strain CalculatorStress, strain and Young's modulus from force, area and length change, with material checks.Tension CalculatorRope tension for a hanging mass on one or two angled ropes, a pulled object or a pulley.Screw Thread CalculatorUNC, UNF and metric thread dimensions: major, pitch and minor diameters, tap drill and limits.Aircraft Weight and Balance CalculatorAircraft weight and balance: total weight, moment and CG, plotted against your CG envelope.
See all 34 Engineering & Machining Calculators →