Measure the distance and bearing between two latitude and longitude points, by Vincenty on the WGS-84 ellipsoid and by great circle.
Ask two different tools how far apart two coordinates are and you will often get two different answers, several hundred metres apart. Neither is broken. One is treating the Earth as a sphere, the other as the squashed ellipsoid it actually is, and this Geodetic Distance Calculator shows both so you can see the gap rather than wonder about it.
Type two latitude and longitude pairs and you get the distance in six units, the bearing to set off on, the bearing you arrive at, and the midpoint of the route.
The tool opens on 23.8103, 90.4125 and 22.3569, 91.7832:
Further presses walk through London to Paris, New York to Los Angeles, Sydney to Santiago and a near-equatorial pair where the two models disagree most.
The great-circle figure comes from the haversine on a sphere of radius 6,371,008.8 m. The ellipsoidal figure comes from Vincenty’s inverse solution, which iterates on the WGS-84 flattening of 1/298.257223563 until successive passes agree to within 1e-12 radians, typically in four or five rounds. Vincenty is the one to quote: it is accurate to well under a millimetre on ordinary routes, where a sphere can be out by a fifth of a percent. Its one weakness is the near-antipodal case, where the iteration will not settle. Rather than return a wrong number, the tool stops after 200 passes, says so, and falls back to the great-circle answer.
Decimal degrees are the obvious form, but the parser also reads the degrees-minutes-seconds people copy off charts and GPS screens. -33.8688, 33 52 7 S and 33°52'07"S are all the same latitude, and a trailing S or W flips the sign for you, so you never have to convert by hand first. Every result is echoed back in DMS at the bottom, which is the quickest way to check you typed what you meant. Out-of-range values are caught rather than wrapped: a mistyped 233.8103 earns “First latitude must be between -90 and 90 degrees — 233.8103 is off the globe.” Distances follow the surface and ignore terrain, so a mountain route is longer on foot than the figure here.
Decimal degrees or degrees-minutes-seconds both work: -33.8688, 33 52 7 S and 33°52'07"S all read as the same latitude.
Distance on the WGS-84 ellipsoid
213.61 km
132.731 miles · 115.34 nautical miles
Kilometres
213.61
Miles
132.731
Nautical miles
115.34
Metres
213,609.629
Feet
700,818.993
Yards
233,606.331
Two models, two answers
Great circle on a sphere: 213.952 km
Vincenty on the WGS-84 ellipsoid: 213.61 km
The ellipsoid is shorter by 342.86 m, which is 0.16% of the trip. Vincenty is the one to quote.
Initial bearing
138.62° SE
Final bearing
139.16° SE
Midpoint
23.085078, 91.101555
Dhaka: 23° 48' 37.08" N, 90° 24' 45.00" E
Chittagong: 22° 21' 24.84" N, 91° 46' 59.52" E
Bearings are true, not magnetic, and the initial one differs from the final one on every route that is not due north or along the equator. Distances are along the surface, so they ignore terrain and altitude.