Distance Between UK Postcodes

This tool can be used to find the distance between postcodes in the UK. Type in the two postcodes and click the Show button.

Map Showing the Distance Between Two UK Postcodes


Postcode 1 Postcode 2


Measure in : miles km
Distance as the Crow Flies : As the crow Flies
Distance by Land Transport : Land Transport

Switch to Full Screen

How to Use Postcode Tool

Type in the first and second postcode then click the Show button. The map will then display the location of the two postcodes and also show the routes for:

  • As the crow flies - the straight distance between the points
  • By land transport - by car and/or boat

You will also see the distance displayed below the map for the distance as the crow flies and also by land transport. You can then type in more postcodes and click the show button to see more distances.

Note : This Postcode distance finder will measure the distance between full UK Postcodes.

Format of Outward Code / Out Code

Use the format "A(A)0(0)(A)", where:

  • A is a character
  • 0 is a digit
  • () means optional

Format of Full UK Postcode

Use the format "A(A)0(0)(A)_0AA", where:

  • A is a character
  • 0 is a digit
  • () means optional
  • _ is a space

So any input of 2,3 or 4 characters is assumed to be an Out Code format and anything longer than 4 characters is assumed to be a full UK postcode.

Uses of This Postcode Tool

This tool has a wide range of possible uses from delivery estimation to point to point measurement. If you know of a useful application of this tool, let us know.

Problems or Suggestions

If you notice any errors or have suggestions for further development, then please contact freemaptools.

  • Change land route colour from blue as it is easy to mix up with motorways.

Version History

  • 8th January 2015 - New function that generates link to share the result
  • 5th November 2013 - Implemented Google Maps API V3 including new google.maps.DirectionsService.
  • 20th September 2011 - Resolved issue where a postcode not found in the right hand textbox would be reported as not finding the value of the left hand textbox.
  • 9th October 2008 - Resolved issue when Show button is clicked multiple times and distance keeps changing. Improved automatic zoom function.
  • 23rd December 2007 - Added enter to submit function
  • 22nd December 2007 - Improvements to back end storage system and some of the text on this page
  • 16th December 2007 - Version 1 of functional system completed
  • 15th December 2007 - Page created

Relevant Links

Google Maps API

Information on UK Postcodes

Previous Comments For This Page

So I thought I wonder how far in a straight line I have to go. Googled it, directed here, got the answer. Superb. Does exactly what it says on the tin.
By P. D. on 23/11/2015

Super system, many thanks
By Roger on 20/11/2015

Excellent sevice,could not be improved
On 11/11/2015

very good site used it for long time now
By Richie on 10/11/2015

very useful site
On 08/11/2015

Hi Simon, I can see what it outputs now, but I can only speculate what might have happened. Every time it runs, it will re-run the algorithm so if any updates (or corrections) to the road network have been made on the map over time, it could lead to a difference.
By Free Map Tools on 20/10/2015

OK, many thanks, an example then....the distance by land between EH105LZ and EH144AS when I looked a year ago was 8.626 miles....today its only 7.726 miles. Might it be anything to do with the road layout at Heriot Watt University? Cheers, Simon
By Simon E on 19/10/2015

Simon, there is no reason why this should happen. Can you give an example? Thanks
By Free Map Tools on 19/10/2015

Hello - I've noticed that the distance between a number of postcodes in Edinburgh is now showing as different (by up to a mile) to when I did the same exercise about a year ago. Is there any reason why this would be happening? Cheers, Simon
By Simon E on 19/10/2015

Ian L, you can download the full UK postcode list with latitude and longitude here. CB22 will be inside so you can filter the rest out.
By Free Map Tools on 15/10/2015

This is a really good tool. I don't suppose you have a complete list of all UK postcodes from CB22 postcode that I could use for a "Lookup" table?
By Ian L on 15/10/2015

Love this site, really useful and accurate
On 24/09/2015

the Nth Sth East West navigating tool appears to have been left out, this is a pity as I found this very usful, and will not be using this site ever again. bye bye
By Allan on 17/09/2015

an easy clear unfussy site, does just what it says on the tin! Been using it for years! Thank you!
On 10/09/2015

Hi Said, please have a look at Find UK Postcodes Inside a Radius.
By Free Map Tools on 02/09/2015

Is it possible to do a proximity search based on returning more than one result?
By Said Hafiz on 02/09/2015

Brilliant site, so helpful Thank you!
By Anna on 05/08/2015

Hi DML, I think the issue is with the WD1 postcode. This is no longer used [https://en.wikipedia.org/wiki/WD_postcode_area].
By Free Map Tools on 19/07/2015

Hi; IG1 - WD1 seems to create a problem.
By DML on 17/07/2015

The best site ! Always use it !
On 22/06/2015

Showing the most recent 20 out of 573 comments. Click to see all the comments.

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

Comments :

Your Name (optional) :