← All text tools

Distance between two coordinates calculator

Calculate the great-circle distance and the initial bearing between two latitude and longitude points, in kilometres, miles and nautical miles.

  • Free
  • No sign-up
  • Works on any device

About Distance between two coordinates calculator

The shortest route between two points on the Earth's surface follows a great circle. The haversine formula finds it from the latitudes and longitudes: it combines the sine of half the latitude difference and the cosines of both latitudes, and multiplies the angle by the Earth's mean radius of 6,371 km. New York (40.7128, -74.0060) to London (51.5074, -0.1278) comes to 5,570.2 km. The tool also gives the initial compass bearing, the distance in miles and nautical miles, and the midpoint. Use negative numbers for south and west.

How to use Distance between two coordinates calculator

  1. Type the latitude and longitude of the first point in decimal degrees.
  2. Type the latitude and longitude of the second point, using negative numbers for south and west.
  3. Read the distance in kilometres, miles and nautical miles, together with the bearing and the midpoint.

Why use this tool?

Also known as

Frequently asked questions

How accurate is the haversine distance?

It treats the Earth as a perfect sphere, so it can be off by up to about 0.5 percent. For surveying use an ellipsoid-based method such as Vincenty's.

Is the result the driving distance?

No. It is the straight line over the Earth's surface, as an aeroplane would fly. Roads, rivers and mountains make actual travel longer.

What is the initial bearing?

It is the compass direction, clockwise from north, in which you set off from the first point. On long routes the heading changes along the great circle.

Is Distance between two coordinates calculator free?

Yes. Distance between two coordinates calculator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Distance between two coordinates calculator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools