A: 40.7128, -74.0060B: 34.0522, -118.2437Runs entirely in your browser — your inputs never leave this page.
How this tool works
- 1
Calculates geodesic great-circle arc length across the WGS84 reference ellipsoid using the Vincenty inverse formula.
- 2
Computes live highway driving distance, toll-road options, and typical traffic duration via routing networks.
- 3
Outputs initial true compass heading azimuth and back-bearing angle.
Common uses
- Calculating point-to-point air miles and flight paths.
- Measuring property boundary offsets and pipeline alignments.
- Comparing straight-line distance with actual road circuity.
Frequently asked questions
The calculation utilizes the WGS84 ellipsoidal model rather than a flat plane, guaranteeing millimeter-level accuracy across long continental baselines.
More in Distance Measurement
- Bearing CalculatorCalculate true compass bearings, forward azimuth, reverse back-bearing, and magnetic declination between any two global coordinates.
- Midpoint CalculatorCalculate the exact halfway geographic point between two addresses or coordinates along the great-circle arc of the Earth.
- Distance Unit ConverterConvert between twelve length units — millimeters to nautical miles — using the exact NIST SP 811 conversion factors. Includes the survey units you meet in old US land records, like chains, furlongs and US survey feet, and shows your value in every unit at once.
- Speed Distance Time CalculatorWork out any one of speed, distance or travel time from the other two. Mix mph, km/h, m/s, knots and ft/s with miles, kilometers and nautical miles, and add a start time to get an ETA clock time for your arrival.
- Equidistance Line FinderEnter two places and draw the line of points that are exactly the same distance from both. See the geographic midpoint, the full line on a map, and a proof table with sample points and their equal distances to each side.
Chicago to St. Louis: The Straight Line vs the Real Drive
A teacher in Chicago is planning a family road trip to St. Louis, Missouri, and the kids want to know how far it really is. She opens the distance calculator and marks the centers of both cities. The tool reports a straight-line geodesic distance of about 262 miles, with an initial compass bearing of roughly 210 degrees, pointing south-southwest, which matches the direction the highway signs keep promising them. The kids immediately ask why the car will not simply drive that number, which is exactly the right question.
That number surprises them, because the drive down Interstate 55 is about 297 miles. The difference is not an error. Highways bend around towns, rivers, lakes, and farmland, and on this trip the road adds about 35 miles, roughly 13 percent more than the crow flies. The tool shows both figures side by side, which settles the family argument before it starts and explains why the drive always feels longer than the map suggests. It also gives them a fair way to compare this route with the alternative through Indianapolis, which is longer in both measures.
For the drive itself they plan with the road distance. At a realistic average of about 66 mph including a fuel stop, 297 miles takes around four and a half hours, so a 9 am start means a lunchtime arrival with a small cushion. The straight-line figure still earns its keep: it is the number a pilot or a radio engineer would use, and it is the path the crow, the signal, and the weather all actually travel. She uses it once more to show the kids how far the same trip would be in a small plane, just for the pleasure of the comparison.
Before leaving, she saves both cities' coordinates from the tool so the numbers are there for the return trip too. On the way home, the kids check the bearing readout against the car's compass on a long, straight stretch of I-55 and watch it hover near the predicted direction, rising and dipping as the road bends: a small geography lesson at 70 mph that no textbook ever managed. By the time they reach Chicago, both numbers have stopped being trivia and become tools the family actually uses. The exercise sticks. Months later, planning a flight to visit relatives, the kids ask for the straight-line number first and the driving number second, in that order, without being prompted. A calculator that shows both distances, and a bearing, and explains nothing at all, has somehow taught the difference between the map's world and the road's world better than the worksheet that came home in a backpack.
Common mistakes to avoid
- Expecting the odometer to match the straight line. Road distance is almost always longer than geodesic distance because roads bend, detour, and follow valleys. A gap of 10 to 30 percent on land is normal, not a tool error, and planning fuel stops or arrival times on the shorter number is how trips quietly run late.
- Swapping latitude and longitude. Entering the numbers in the wrong order teleports your point to another continent or the middle of an ocean. Check the pin lands where you expect before reading the result, especially when pasting coordinates copied from another app or a photo's location data.
- Treating the bearing as constant. The bearing shown is the initial bearing at the start point. On a long great-circle path the direction changes as you travel, which is why flights to Europe begin by pointing northeast and still arrive from the west, and why a single compass heading will not hold a long route.
Pro tips
- Use straight-line distance for flights, boats, and radio links, and road distance for anything with wheels.
- Copy coordinates in decimal degrees with the sign: west longitudes and southern latitudes are negative.
- Compare both numbers when house-hunting; a town 20 miles away as the crow flies can still be a 45-minute drive.
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 Distance Between Two Points 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 this category field guide →