Coordinate Distance Calculator
Measure the great-circle distance between two points on Earth from their latitude and longitude. Enter one coordinate pair per line, and with three or more lines the calculator adds up every leg of the route. Results are shown in kilometers, miles and nautical miles, computed with the haversine formula on a spherical Earth, ideal for travel planning, logistics, aviation, sailing and GIS work.
Frequently asked questions
How do I enter the coordinates?
Write one point per line as latitude and longitude in decimal degrees, separated by a comma or a space, for example 52.5200, 13.4050. Latitude comes first and must be between -90 and 90, longitude between -180 and 180. Blank lines are ignored.
Can I measure a route with more than two points?
Yes. With three or more lines the calculator measures each leg from one point to the next and adds them up, so the result is the length of the whole path in the order you entered it. The result then also shows the number of points and segments.
Which formula is used?
The distance is the great-circle distance computed with the haversine formula, the shortest path between two points along the surface of a sphere. The calculation uses the mean Earth radius of 6,371.0088 kilometers, as the Turf geospatial library does.
How accurate is the result?
Because the Earth is slightly flattened at the poles, a spherical model can differ from the exact ellipsoidal distance by up to about 0.5 percent. For travel, logistics and mapping that is well within the precision needed, while surveying calls for an ellipsoidal method such as Vincenty or Karney.
Why is the result shorter than the driving distance?
The great-circle distance is a straight line over the Earth's surface, as the crow flies. Roads, rivers and terrain make real travel routes longer, so a routing service will always report more.
Which units are shown?
Every result lists kilometers, statute miles of 1.609344 kilometers and nautical miles of 1.852 kilometers, each rounded to three decimal places. Nautical miles are the standard unit in aviation and at sea.
Can I paste coordinates in degrees, minutes and seconds?
This calculator reads decimal degrees only. Convert values such as 52°31'12"N 13°24'18"E with the DMS Converter first, then paste the decimal results here.
How many points can I enter?
Up to 10,000 coordinate lines per calculation, and the whole input may be up to 5 MiB. Longer tracks are better handled as a file in a GIS application.
What happens if a line is invalid?
The calculator stops and names the line that could not be read or whose latitude or longitude is out of range. Fix that line and run the calculation again.
Is a route across the 180th meridian measured correctly?
Yes. The haversine formula works on angles, so two points on either side of the date line, such as 179.5 and -179.5 degrees longitude, are measured the short way across it.