Type a pair of UK postcodes below and we'll tell you the straight-line distance between them, in miles and kilometres. Full postcodes and outward codes both work.
People come to this calculator for all sorts of reasons. A few of the most common:
Working out journey distances for quoting courier jobs, fleet planning, or setting e-commerce shipping fees.
Setting a sensible catchment radius for mobile trades and anyone who travels to customers.
Checking how far a candidate would commute, or pricing up mileage allowances for field-based roles.
Quick sanity check when house-hunting: how far is that new place from work, school, or the in-laws.
Producing a defensible mileage figure for expenses, invoicing, or HMRC submissions.
Banding customers and competitors by postcode distance to understand footfall and overlap.
A lot of online distance calculators cheat. They treat the map as if it were flat, which is fine for very short hops but starts to drift once you're looking at journeys across the country or anywhere with a noticeable north/south component. The error can easily run to several miles.
This calculator uses the Haversine formula instead. Haversine works out the great-circle distance between two points on the surface of a sphere, so it respects the fact that the Earth is round. The formula itself looks like this:
Here, lat and lon are latitude and longitude in radians, and R is the Earth's mean radius (3,958.8 miles or 6,371 kilometres). The result is accurate to well under a mile between any two UK postcodes, which is more than good enough for quoting jobs, setting catchment areas, or submitting an expense claim without worrying about the numbers.
One thing to keep in mind: this is straight-line distance, not drive distance. A lorry can't fly across a loch, so if you need actual road miles or travel time, you'll want something that routes through the road network. We build those too (see below).
This free tool handles one pair at a time. Behind the scenes, we do quite a bit more.
Primo Interactive builds postcode and geographic data solutions for businesses that need them at scale. Most of the work falls into a handful of categories:
If any of that sounds useful, or if you have a postcode problem that isn't on the list, get in touch.
Get in Touch