A: 40.7128, -74.0060B: 34.0522, -118.2437Runs entirely in your browser — your inputs never leave this page.
How this tool works
- 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
- Distance Between 2 PlacesMeasure great-circle geodesic distance (crow-flies) alongside turn-by-turn driving distance, travel duration, and detour percentage.
- Crow-Flies vs DrivingVisualize the direct geodesic arc compared side-by-side with road network routing, showing terrain detour factors.
- Distance Between CitiesInstant lookup of straight-line and highway miles between any two US or global cities or ZIP codes.
- Multi-Stop Route OptimizerPlan trips with up to 25 waypoints. Drag stops to reorder, optimize for fastest driving path, toggle round-trip, and export to CSV.
- Distance Matrix GridCompute an N x N distance and travel time matrix for 2 to 50 locations. Visualize with interactive heatmap and export CSV.
- Halfway Point FinderFind the exact geographic or driving midpoint between two people. Discover cities, hotels, and restaurants to meet in the middle.
- Map Radius ToolDraw accurate geodesic distance circles around any location from 100 feet to 3,000 miles. Layer multiple radius rings with custom colors.
- Drive Time IsochronesGenerate 10, 15, 30, 45, 60, and 90-minute reachable travel time polygons for driving, bicycling, or walking.
- Map Area CalculatorClick to draw any polygon on the map to calculate land area in acres, square feet, hectares, square miles, or square kilometers.
- Horizon DistanceCalculate how far away the physical Earth horizon is based on observer eye elevation above sea level, accounting for atmospheric refraction.
- Distance From MeSelect any target destination and watch your live GPS update your real-time crow-flies distance, heading arrow, and travel speed continuously.
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.
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.
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.
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 →