MapTools
distance driveFree · No signup

Bearing & Compass Calculator

Calculate initial bearing, final bearing, rhumb line heading, and magnetic declination between any two global coordinates.

Click anywhere on the map to set Point A.
Unit:
Straight-Line (Crow-Flies)Geodesic
2,445.56 mi
Great circle arc along Earth curvature
Driving Distance
Calculating...
Road network navigation route
Estimated Drive Time
Calculating...
Typical traffic drive time
Compass BearingW
273.7°
Mid: 39.5103, -97.1601
Loading Google Maps JavaScript Canvas...
Coordinates:A: 40.7128, -74.0060B: 34.0522, -118.2437

Runs entirely in your browser — your inputs never leave this page.

How this tool works

  1. 1

    Applies forward azimuth spherical trigonometric equations and applies NOAA World Magnetic Model declination adjustments.

Common uses

  • Aviation navigation
  • Marine sailing course plotting
  • Ham radio directional antenna alignment

Frequently asked questions

Because great-circle routes curve on a flat projection, the heading changes continuously from origin to destination.

More in Distance & Driving

View all →
Worked example

Setting a Compass Course from Denver Toward Boulder, Colorado

A scout leader is teaching a group of teenagers map and compass skills on a weekend trip in Colorado. For the classroom part of the lesson, the group picks two clear points: downtown Denver and the city of Boulder, about 24 miles away in a straight line. They first plot the trip on a paper map with a protractor, the slow way, and then enter both places in the Bearing and Compass Calculator to check their work and see what a compass should actually say on the walk between them.

The tool gives an initial bearing of about 330 degrees from Denver. That makes sense on the map, because Boulder sits northwest of Denver, and 330 degrees is 30 degrees west of due north. The tool also shows a rhumb line heading of about 329 degrees. The rhumb line crosses every meridian at the same angle, so a person can hold one steady compass course along it, while the true great-circle bearing slowly changes along the way. On short legs the two numbers nearly agree, which is why beginners rarely notice the difference. The leader also has the class read the course backwards, from Boulder to Denver, where the tool shows a bearing of about 150 degrees, almost exactly opposite the outbound 330, just as a healthy compass course should behave.

Next comes the part most beginners miss. The tool reports magnetic declination for the area at roughly 8 degrees east. A compass needle points to magnetic north, not true north, so the group must subtract the easterly declination from the true bearing: 330 minus 8 gives a compass course of about 322 degrees. The old memory aid applies here: east is least, so you subtract. Ignore that step and the error grows with distance; after only three miles, an 8-degree error puts you nearly half a mile off your intended line.

Finally, the tool shows the final bearing at Boulder differs slightly from the starting bearing, because a great-circle path does not keep one constant angle over the curved Earth. Over 24 miles the shift is a fraction of a degree, but on a 300-mile leg it grows to several degrees, enough to matter on a long backcountry traverse. The scouts learn to re-check their bearing at each landmark and each trail junction instead of trusting the first number all day. They finish the lesson by walking a short practice leg across the school playing field on their corrected 322-degree course, and they arrive within a few steps of the flag they planted at the far end, which convinces the class more than any whiteboard diagram could.

Common mistakes to avoid

  • Treating magnetic north as true north. Ignoring declination can throw you off by about 8 degrees in Colorado and by 15 to 20 degrees in parts of the Pacific Northwest and New England. Over a few miles that error becomes a missed trail junction or a missed campsite.
  • Holding the initial bearing forever. The initial great-circle bearing changes as you travel, so a single reading is not a fixed course for a long leg. Either re-check at waypoints or use the rhumb line heading when you need one constant course.
  • Dropping the minus sign on west longitude. Denver sits at about -104.99 degrees longitude. Enter it as a positive number and the calculator works on a point in Asia, and every bearing it returns is meaningless, however precise it looks.

Pro tips

  • Check the declination for your exact area and year, because it shifts slowly over time and differs from place to place.
  • For short hikes, the rhumb line heading is the easiest course to follow because you can hold it on a basic compass.
  • Compare the initial and final bearings before a long leg; a big gap between them is a warning that one fixed heading will not work.
Geospatial Engineering Reference & Field Manual

Distances, Routes & Drive Times: How Mapping Math Works

Why the Earth refuses to be flat, how calculators measure true distances, how road networks find your route, and what those drive-time blobs on the map really mean. Written for Bearing & Compass Calculator and the everyday mapping tasks around it.

1

The Earth Is Not Flat (and Your Math Must Know It)

For a walk to the corner store, flat math is fine. For a drive from Chicago to Denver, it is not. The Earth bulges at the equator and flattens at the poles — an oblate ellipsoid about 13 miles wider than it is tall. Ignore that shape and long distances come out wrong by miles.

Surveyors model the planet with the WGS84 ellipsoid: an equatorial radius of 3,963 miles and a polar radius of 3,950 miles. Every serious distance tool, including the ones on this site, measures along this curved surface rather than through the planet's interior.

The practical rule is simple. Under about 10 miles, flat-map math and true geodesic math agree to within a few feet. Past 100 miles, the gap grows fast. A flight from New York to London measured on a flat map would miss by over 200 miles — which is why aviation never uses flat math.

2

Haversine vs. Vincenty: Two Ways to Measure

The Haversine formula treats the Earth as a perfect sphere. It is a few lines of code, runs instantly, and gets within about 0.5% of the true distance. For store locators and "places near me" features, that is plenty. Most web maps use it under the hood.

Vincenty's method goes further. It walks the actual WGS84 ellipsoid, iterating until the answer converges, and lands within millimeters on distances of thousands of miles. The cost is complexity: the math needs a dozen steps and can fail to converge for nearly antipodal points, though modern implementations handle that gracefully.

Which should you trust? For driving estimates and everyday questions, both agree closely enough that you will never notice. For surveying, aviation, and scientific work, Vincenty or its modern successor Karney's algorithm is the standard. This site uses ellipsoidal math wherever precision matters.

One more subtlety: "distance" has flavors. Great-circle distance is the shortest path over the surface. Rhumb-line distance holds one compass bearing the whole way — longer, but easier to steer by hand, which is why sailors used it for centuries.

This page shows the first two chapters. Read the complete Distance & Drive Time field guide →