Skip to content

Distance calculator

Click points on the map or search two places, and read the distance between them at once.

Click the map to set the start point

Each place you pick adds a point. You can also click the map, or type a latitude and a longitude.

Total distance

0 km

Shortest path over the Earth's surface between each pair of points. Long legs curve on the map: that curve is the straight line on a globe.

QGIS

AI Agent for QGIS

Ask AI Agent in QGIS to measure distances across a whole layer: each site to its nearest road, school or station, as a table and as lines on the map.

Get the free QGIS plugin

Free plan, no credit card.

Guide

This tool measures the distance between points on a map. Click a start point and an end point, or search two towns or addresses, and the straight-line distance appears in kilometres, miles, metres, feet and nautical miles. Keep clicking to follow a road, a trail or a coastline: the total adds up and each leg shows its own length and compass bearing. Drag any point to adjust it, share the link, or download the path as GeoJSON, KML or GPX.

Distance on the WGS84 ellipsoid · km, mi, m, ft, nmi · GeoJSON, KML, GPX · no account

How to measure a distance on the map

  1. Search a place or zoom the map to your start, then click it.
  2. Click the end point. The straight-line distance shows at once, in the unit you pick.
  3. Click more points to follow a road, a path or a shoreline. Drag a point to move it, or undo the last one.
  4. Copy the distance, share the link to the same path, or download it as GeoJSON, KML or GPX.

How accurate the distance is

Each leg is computed on the WGS84 ellipsoid with Vincenty's formula, the same Earth model GPS uses. The math is good to under a millimetre; the real limit is where you click. At street zoom a click lands within a few metres, so a 1 km measure is right to about 1 percent and a 100 km one to a few metres.

The result is the distance as the crow flies along the points you set, not a driving route. To get close to a road or trail distance, add a point at each bend.

Kilometres, miles and nautical miles

One mile is 1.609344 km and one nautical mile is 1.852 km, one minute of latitude. The tool shows all five units at once: kilometres and metres, miles and feet, and nautical miles for sailing and flying.

What people measure

The distance between two cities, the length of a run or a walk before going out, how far a property is from a school or a station, the length of a fence or a cable, a boat leg in nautical miles, or the straight-line range of a drone or a radio link.

Share and reuse the path

The link in the address bar holds the whole path, so opening it shows the same measure. The KML opens in Google Earth, the GPX loads on a GPS watch or a phone app as a route, and the GeoJSON opens in QGIS with the length written in its attributes.

Measuring in QGIS

In QGIS the Measure Line tool gives the same ellipsoidal distance when the project ellipsoid is WGS84. For many distances at once, such as each shop to its nearest warehouse, use a distance matrix or ask AI Agent to compute it on your layers.

Limits

  • A path holds up to 200 points.
  • No driving, walking or transit routing: the tool measures along the points you click.
  • Distances are measured at sea level. On steep ground the walked distance is a little longer.

Frequently asked questions

How do I measure the distance between two points on a map?

Click the first point, then the second. The distance appears at once in kilometres, miles, metres, feet and nautical miles. Click more points to measure a path with several legs.

Is this the straight-line distance or the driving distance?

It is the straight-line distance, as the crow flies, between the points you set. It is shorter than the driving distance. To approach a road distance, click along the road at each bend.

How do I find the distance between two cities?

Type the first city in the search box and pick it, then do the same for the second. Each one becomes a point and the distance between their centres is shown, with the path on the map.

Can I measure a running or walking route?

Yes. Zoom in, click the start, then click along the streets or the trail. The total updates at each click, and you can download the route as GPX for a watch or a phone.

Is this Google Maps?

No. The map is built on OpenStreetMap data and open satellite imagery. Google Maps has its own Measure distance command on a right click; this page adds five units, leg lengths, bearings, a share link and file downloads.

How accurate is the result?

The calculation uses the WGS84 ellipsoid and is exact to under a millimetre. In practice the accuracy is that of your clicks: a few metres at street zoom.