ROAD AND STRAIGHT LINE

Distance Calculator

Work out the distance between any two places: by road, on foot, by bike or in a straight line. Enter towns, addresses, UK postcodes, US ZIP codes or coordinates to get the driving distance and time, the straight-line distance and how much longer the road is.

Drive, walk, cycle · 25 stops · CSV, GPX and KML export

Calculate Any Distance

Enter two places — or click the map twice — to get the straight-line distance, bearing, midpoint and how it compares with the road.

Try:
Radius check — is it within X miles?
Bulk distance calculator — paste or upload a CSV

One pair per line: from,to. Each side can be a place, UK postcode, US ZIP or coordinates in quotes ("51.5072,-0.1276"). Four numeric columns (lat1,lon1,lat2,lon2) also work. A header row is detected automatically.

How this calculator works

Straight-line distance is the shortest path over the Earth's surface (a geodesic). We solve it on the WGS84 ellipsoid — the model GPS uses — with Vincenty's inverse formula, accurate to well under a millimetre. The haversine (perfect sphere) result is shown alongside so you can see the difference, typically up to 0.5%.

Bearing is the initial compass direction from the first point. The midpoint is halfway along the great-circle path. The rhumb line is the longer constant-bearing route that a compass course would follow. Road, walking and cycling distances come from OpenStreetMap routing, and the detour figure compares them with the straight line.

Which distance do you need?

DistanceWhat it measuresUse it for
As the crow fliesShortest path over the Earth’s surface (great circle)Radius rules, “how far is…”, property and school catchments
DrivingAlong roads, from a routing engineTrips, mileage claims, fuel cost
Flight (air miles)Great circle between airportsFlight time, frequent-flyer miles, CO₂ estimates
Walking / cyclingFootpaths and cycle routesCommutes, school runs, training
Flat (x, y)Pythagoras on a planeMaths, CAD, game maps

Road distances are typically 20–40% longer than the straight line; across mountains, lakes or coastlines the gap can be far bigger.

25

stops in one route

500

pairs in the bulk calculator

5

export formats: CSV, GPX, KML, GeoJSON, PNG

22%

longer by road from London to Manchester

How to calculate the distance between two places

Three steps, from typing two places to sharing the result.

1

Enter both places

Type the start and the destination, or click them on the map. You can also use your current location.

2

Read the distances

The straight-line distance is at the top, with the driving, walking and cycling distances and times underneath.

3

Switch, add or share

Change between miles, kilometres and nautical miles, add stops for a longer trip, or copy a link to share the result.

Driving distance vs straight-line distance

The straight-line distance is the shortest path over the Earth’s surface. The driving distance follows real roads, so it is always longer. The calculator shows the difference as a percentage: the detour.

It is small on direct motorways and interstates and much bigger where roads must go around water, mountains or private land.

Bar chart of the extra road distance compared with the straight line for 10 US and UK routes, from 6% (Dallas to Houston) to 22% (London to Manchester).

A driving distance calculator, a map and more

Driving distance calculator

Get the driving distance between two points by road, the drive time and how much longer the road is than the straight line, for towns, addresses or postcodes.

Distance calculator with a map

Every result is drawn on a map, the straight line and the road route, so you can see the trip and click the map to move either end.

Travelling distance on foot or by bike

Switch to walking or cycling to see the travelling distance and time on paths and cycle routes, which can differ a lot from the drive.

Distance between cities: examples by road

RouteStraight lineBy roadDrive time
Edinburgh to Glasgow41.8 mi46.1 miabout 1 h 4 min
London to Manchester163.0 mi199.4 miabout 4 h 4 min
New York to Boston190.4 mi213.6 miabout 4 h 41 min
Dallas to Houston224.3 mi238.3 miabout 4 h 13 min
Los Angeles to San Francisco347.4 mi381.9 miabout 7 h 8 min
Chicago to Houston940.7 mi1,086.4 miabout 19 h 52 min

City centre to city centre, calculated with this tool using OpenStreetMap routing in October 2026. Drive times are free-flow estimates without traffic or stops.

DRIVE TIME

How the driving time is estimated

The route comes from OSRM, an open-source routing engine running on OpenStreetMap data. It finds the fastest path through the road network and adds up the time for each road using a typical speed for that type of road, plus small penalties for turns, U-turns and gates.

These are deliberately cautious averages, and they do not include live traffic. Google Maps, by contrast, combines live and historical traffic, which is why its times can be shorter at night and longer at rush hour.

Bar chart of the speeds the OSRM car profile assumes: motorway or interstate 90 km/h (56 mph), trunk 85 km/h (53 mph), primary 65 km/h (40 mph), secondary 55 km/h (34 mph), residential 25 km/h (16 mph)

Speed limits in the UK and US

UK (cars): 30 mph in built-up areas (20 mph on most such roads in Wales), 60 mph on single carriageways and 70 mph on dual carriageways and motorways. US: set by each state; the highest is 85 mph on a Texas toll road.

Trips with several stops

Add up to 25 stops to plan a route with visits along the way. You get each leg in a straight line and by road, plus the totals, and can check a radius or find the halfway point of the trip.

Bulk distances and exports

Paste or upload up to 500 pairs and download a CSV. Save any route as CSV, GPX for GPS devices, KML for Google Earth, GeoJSON for mapping software, or a PNG image.

More distance tools

Each tool is built for one job.

Crow Flies Calculator

Straight-line distance between any two places, with bearing and halfway point.

How Far Am I From?

Distance from where you are to a place, state, state line, country or home.

Distance to the Coast

How far you are from the sea, your height above sea level and the nearest beach.

Distance Between Two Addresses

Driving mileage, straight line and trip cost at 2026 IRS or HMRC rates.

Air Miles Calculator

Great-circle flight distance between 3,214 airports, with flight time.

Halfway Point Calculator

The midpoint and a fair meeting point with equal travel time.

Radius Map

Draw a circle on a map and see the towns inside it.

Google Maps Distance

How to measure a straight line in Google Maps, step by step.

Distance Between Coordinates

GPS latitude and longitude, DMS or UTM, on the WGS84 ellipsoid.

Distance Between Two Points

2D, 3D and point to line, with exact answers and working.

Horizon Calculator

How far you can see, and line of sight over the curve.

Miles to Km Converter

Miles, kilometres, mph, km/h and running pace.

Accuracy and limits

  • Straight-line distances are calculated on the WGS84 ellipsoid and are accurate to within 0.5 mm for the points used.
  • Town names use the town centre; use full addresses or postcodes for door-to-door distances.
  • Road routes reflect OpenStreetMap data and do not know about temporary closures, roadworks or ferry timetables.
  • Driving routes are only offered for land journeys; trips across oceans show the straight-line distance only.

Frequently asked questions

How do I find the driving distance between two places?

Enter both places, postcodes or ZIP codes. The driving distance and time appear under the straight-line distance.

Why is the driving distance longer than the straight-line distance?

Roads bend and go around obstacles. The detour percentage shows how much longer the drive is than the straight line.

Does the drive time include traffic?

No. It is a free-flow estimate based on typical road speeds, so allow extra time at busy hours.

Can I calculate a route with several stops?

Yes. Add up to 25 stops and you get each leg and the total.

Can I measure the distance between coordinates?

Yes. Type latitude and longitude, for example 51.5072, -0.1276, in either box.

Is this a free alternative to a Google mileage calculator?

Yes. It is free, needs no account, and can export routes as CSV, GPX or KML.

Can I work out many distances at once?

Yes. Use the bulk calculator to process up to 500 pairs and download the results.

How do I calculate the distance between two cities?

Type both cities. You get the straight-line distance plus the driving distance and time, measured from each city centre.

What is the driving distance between two points?

The length of the fastest road route between them. The calculator shows it in miles or kilometres next to the straight-line distance.

Is there a distance calculator with a map?

Yes. Every result shows the route on a map, and you can click the map to set or move either point.