Distance Calculator

You can use this distance calculator to find out the distance between two or more points anywhere on the earth. In other words, the distance between A and B. Click once on the map to place the first marker and then click again to position the second marker. The distance between the points will then be displayed. You can also build up a series of locations to find a total distance.

[Map Height : Small - Medium - Large]

Use search result as a distance marker?


Upload Coordinates

Please paste in the list of coordinates to add to your route in the text box below:

An important feature of this distance calculator tool is that is "as the crow flies", so traveling in real life will normally involve larger distances, but this may also help those who need to measure off-road distances.

Want to save your route? Try the Advanced Google Maps Distance Calculator

How To Use

  1. Zoom and drag the map to find the location of marker 1
  2. Click to place marker 1.
  3. Zoom and drag the map to find the location of marker 2.
  4. Click to place marker 2.
  5. The distance will be calculated then displayed below the map in miles or kilometers. You can change between miles or km at any time
  6. Add as many points as required and the distance will build up.
  7. You can also drag and drop markers after they have been put on the map
  8. To share your route and distance calculation use the option [Generate Link For This Route]. You can then copy the link generated and send this via Twitter or Facebook.


All distances are estimations so Daft Logic does not accept any responsibility that may arise when the value reported is incorrect.

You can move the markers after they have been positioned so you can modify you route on the fly and see how the distance will be effected.


  • Click [Clear Last] to undo the last marker placed
  • Click [Zoom To Fit] to zoom the map around all markers
  • Click [Clear Map] to erase all markers and start again
  • Use the Quick Find text box to quickly relocate the map
  • You can choose between miles and kilometers (km) for the Total Distance readout
  • Click [Show Elevation] to get a chart showing the elevation of your route

How it Works

Clearly you, the user inputs two 'points' that are used to calculate the distance. Calculating the "As the Crow Flies" distance is a matter of using Great Circle formula. Then the main problem is converting the Google Map unit to miles and kilometers.

The map will also automatically save your route in your temporary internet cookies so that you can return and see the route as you last left it. If you ever need to start from scratch then use the [Clear Map] button.

Benchmark Tests

Mary Peters Track in Belfast

Map showing the Mary Peters Track in South Belfast. The reading shows 0.394km which is clearly a reasonable measurement for an athletics track.

Map between New York and Paris

Map showing the estimated distance between New York and Paris. All references that can be found suggest that this is an accurate measurement.

Seven Mile Straight in Antrim

Map showing the Seven Mile Straight in County Antrim, Northern Ireland. This shows a reading of 6.910 miles.

Map between Belfast and Dublin

Map showing the distance between Belfast and Dublin. As far as I can see this is an accurate estimate (if there is such a thing). This trip would be approximately 100 miles by road so the proverbial crow would have less distance to travel.

Relevant Links

Google Maps API

Further Uses and Ideas

  • Show difference in altitude between markers

Version History

Version Date Description of Updates
1.0 29/12/2005 The Beginning
2.0 19/01/2006 Stop post back between clicks
Calculate Mid Point
Zoom to fit feature
More than one marker as running total
3.0 15/06/2007 Move to API v2
Great Circle display and distance calculation
Option to resize map height
3.1 25/09/2007 Added print map option
3.2 01/10/2007 Added Quick Find
4.0 20/01/2008 Added Scroll Wheel Zoom in and out
Complete conversion to API v2
Better Zoom to Fit Functionality
Added crosshairs curser
4.1 21/02/2008 Removed Scroll Wheel Zoom in and out
Added marker drag and drop functionality
Removed Print Option (Ctrl+Print Screen works better)
4.2 10/06/2008 Added Nautical Miles option
4.3 20/10/2008 Added drop down map type option
4.4 17/12/2008 Map saves last position for when you next visit
4.5 04/01/2009 Fixed autopan issue when map is resized
4.6 28/09/2009 Removed Quick Find
Added Google Search bar
4.7 06/10/2009 Brought Back Quick Find!
Removed Google Search bar!
Added Route Autosave via cookies
Added Marker tooltip showing marker id and lat/lng
Added Feet measurement
Added Metres measurement
4.8 08/10/2009 Google Search can now be enabled by a check box
More settings are now saved such as toggle markers, Google Search and Map Type
5.0 31/07/2010 Implemented Google Maps Javascript API V3
Google Search bar at bottom left is not yet available. sorry!
Removed show mid point button
Uses new cookie so any previous systems/settings on your machine will be erased! sorry!
Please report any issues or bugs!
5.1 02/08/2010 Fixed autopan issue when map is resized
5.2 09/08/2010 Updated Quick Find. Now places marker at location
5.3 31/07/2010 Updated Quick Find. Now adds a distance marker upon finding a result unless the user opt's out of this
Updated Quick Find. Now allows enter/return to be hit to cause the search. No need to click the Search button
Updated Quick Find. Now pre-selects text after a search is complete to allow rapid input of multiple locations
Updated Quick Find. If you perform an unattached search (not a distance marker), the search result marker can be easily removed from the map by clicking on that marker
5.4 05/02/2012 Updated Quick Find. Now zooms in to find the location
5.5 14/02/2012 Fixed issue where a marker that had been repositioned retained its original lat/lng in the text that appears during hover over
5.6 15/02/2012 Added new upload coordinates function
5.7 10/11/2013 Removed Google Local Search API (Deprecated)
5.8 22/01/2014 New option added to allow you to share your distance calculator route on Twitter, Facebook or email
5.9 25/01/2014 New option added to show the elevation of your route on a bar chart
5.10 18/11/2015 Implemented a mouseover event so when you hover over the elevation chart, a marker on the map highlights the location
5.11 30/12/2015 Its now possible add a marker to the route midway along the route. You can also delete a marker by right clicking on the dot below the marker
5.12 04/04/2016 Updates to print formatting

Comments For This Page

Brillaint tool. I use it all the time.
By S on 26/05/2016
Best map,Good work.
On 21/05/2016
simple and clear. Many thanks
On 12/05/2016
Karl, the level of zoom (max zoom) depends on the map type (Map / Satellite) and also the area of the earth you are viewing. Some areas have higher resolution maps.
By Daft Logic on 09/05/2016
Hello, still enjoying this website, but the map no longer zooms in as far as it used to making small buildings tricky to measure. Did something get updated to change this? Can it be changed back? Still love it though. :D
By Karl on 09/05/2016
Agwego, thanks for reporting this. I was able to replicate the issue. It should now be resolved.
By Daft Logic on 05/05/2016
The latest version seems to be broken on Chrome 50.0.2661.94 m, (autopan not working properly as well) seeing : Uncaught TypeError: Cannot read property 'push' of undefined 2projects-google-maps-distance-calculator.js:183 in the console when trying to drop a pin, works fine on Firefox 45.0.2
By Agwego on 05/05/2016
Hi Daryl, what format are the coordinates in?
By Daft Logic on 04/05/2016
Why does it no longer recognize GPS coordinates?
By Daryl on 04/05/2016
Great tool. I used to measure distance from Andacollo to Tololo Telescope, and it worked fine.
By Carlos Tondreau on 11/04/2016
Pretty nice, however it wouldn't hurt to add being able to choose the color of the cross hair (for better contrast), also if the cross hair could remain fixed in the center of the image and only the map moved when panning would make picking the center point much easier and faster.
By Dale B Baker on 09/04/2016
Hi Jeff, can you try it on a different web browser and see if that helps?
By Daft Logic on 01/04/2016
This isn't working for me anymore. I cannot scroll on the map, nor can I put points in.
By Jeff on 31/03/2016
Thanks LIME
By Daft Logic on 29/03/2016
I have been using this tool for years to map my runs. Much appreciated!
By LIME on 29/03/2016
Thanks for the comments Motaz.
By Daft Logic on 25/03/2016
I use Distance Calculator to map my run everyday .. Thank you a looooot !!!
By Motaz Bellah Mohamed on 25/03/2016
Thanks for the feedback Edward
By Daft Logic on 21/03/2016
This is a terrific tool for measuring buildings and distances between buildings. Sometimes I cannot walk all the way around a building to measure it on-site, so this is the place to get those hidden dimensions. I have noticed that east-west dimensions are usually quite accurate, whereas north-south dimensions tend to be off by about 4% or less for the USA, probably due to foreshortening from the satellite location above the equator. I check the resulting dimensions against photos of the buildings in question to check for roof overhangs and my work is complete! Thanks so much for such a useful tool!
By Edward on 18/03/2016
By Paul on 15/03/2016
This is great! I bike to my classes and this has helped me figure out which route is the fastest by way of bike (which involved a detour through a trail not accessible by cars). I shouldn't worry about elevation- I live in Florida.
On 15/03/2016
Hello! Is there any way to integrate this program with a spreadsheet to automatically calculate the distance between a set of countries?
By Greg on 07/03/2016
This distance calculator always helps me, first at uni then at work, and now in my master's programme. Thanks for the good work mate, keep it up.
On 06/03/2016
It would be nice it you could draw a circle around a user selected point to see what is within the circle area. This could be useful when trying to find what city from Country B is the closest to where you are, in Country A. Same for different States, Cities, etc.
On 02/03/2016
Thank you for this distance calculator
By Dr23 on 23/02/2016
I LOVE THIS WEBSITE :-D very very very useful
By Jomari Reyes Philippines on 22/02/2016
Josh, if you click the icon on the map that looks like 4 small tiles, it will switch back to the standard top-down view.
By Daft Logic on 09/02/2016
Where is the option to turn off the 45 degree satellite view?
By Josh on 09/02/2016
Thanks for the kind comments captaininge.
By Daft Logic on 08/02/2016
This is great! Use it when I navigate in the North of Norway. The best ever.
By captaininge on 08/02/2016

30 out of 1976 comments shown. See all comments.

Add your own comment below and let others know what you think:

Share This Page

Share this page with others using one of the methods below. Telling others about Daft Logic is good and we appreciate your support!