By · Updated

Measure Distance on Map

Measure a Route in km, Miles, Feet or Nautical Miles by Clicking Points

No ratings yet

OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.

How the Map Distance Measurer works

Measure distance on map routes by clicking: drag and zoom to the place you want, then click to drop points along the way. Each click adds a leg and the total updates in kilometres, miles, feet or nautical miles, with the straight-line distance between the first and last point alongside, so you can see how much a winding road adds. Undo point removes the last click and Close loop joins the end back to the start for a lap or a boundary.

Why measure distance on map routes yourself

Routing apps tell you how far it is by the route they chose. To measure distance on a map along a path you choose, you need to trace it yourself. Common cases:

Click the points and the page adds up the legs. Nothing leaves your browser except requests for map tiles.

How the distance is calculated

Each leg is a great-circle distance: the shortest path between two points on the surface of a sphere. It is found with the haversine formula, using the Earth's mean radius of 6,371,008.8 metres. The total is the sum of the legs.

The Earth is slightly flattened, its polar radius about 21 km shorter than the equatorial, so a spherical model is off by up to about 0.5% on long lines and usually far less. Survey-grade tools use an ellipsoid such as WGS84 with Vincenty's or Karney's method. For anything clicked by hand, the click is the bigger error. A point placed at city zoom can be 20 m from where you meant, and missing one bend in a lane costs more than the formula does.

Reading the result

Conversions used

A statute mile is exactly 1,609.344 m, set by the 1959 international yard agreement. A nautical mile is exactly 1,852 m, adopted internationally in 1929 and close to one minute of latitude. A foot is exactly 0.3048 m. Common race distances look like this:

Distance Kilometres Miles Feet
parkrun / 5K 5.000 3.107 16,404
10K 10.000 6.214 32,808
Half marathon 21.098 13.109 69,218
Marathon 42.195 26.219 138,435

Tips for an accurate route

Taking the route with you

Download GPX saves the points as a GPX 1.1 route, which Garmin Connect, Strava, Komoot, OsmAnd and most sports watches import. It holds only the clicked coordinates, in order, to six decimal places. To open or tidy a file you already have, use the GPX viewer. To plan a finish time from the distance, try the GPX pace calculator. To cost a drive, use the fuel cost calculator. To switch units for a whole list, use km to miles. For a circle of fixed distance around one point, use the radius map.

FAQ

Why is my distance shorter than the car's odometer?

Because clicks are joined by straight lines, not the road. Zoom in and add a point at every bend and the figure closes in on the driven distance; the fewer the clicks, the more corners are cut.

Can it follow roads automatically?

No. Routing needs a road-network server and this page runs entirely in your browser, so you place the points yourself. A dozen clicks along a road takes seconds and gives a result within a percent or two.

What is the straight-line figure for?

It is the crow-flies distance from the first point to the last, so you can see how much a winding route adds. For a closed loop it is zero, which is correct.

Which apps open the GPX file?

Garmin Connect, Strava, Komoot, OsmAnd, Ride with GPS and most watches and bike computers. It is saved as a GPX 1.1 route containing just the points you clicked.

See also: all Maps & GPS tools, Everyday Maths, Loans & Savings, Dates & Time, Health, Home & DIY, Unit Converters, Education, Science, Creative, Garden & Farm, Gaming & PC, Work & Business, Fun, DIY & Building, Cost Estimators, Sport & Clubs.

Related tools