Skip to content
ClearPostcode

EH postcode area · Edinburgh

EH20 postcode district

EH20 is a postcode district in the EH (Edinburgh) area covering Loanhead, New Pentland and Straiton in Midlothian, Scotland. It has 236 live postcodes in 2 sectors (EH20 0 to EH20 9), centred on 55.87881, -3.1572.

236 live postcodes2 sectorsMidlothianDownload CSV
500 m
Live postcodes across EH20, plotted from their coordinates. The pin marks the district's centre.

EH20 at a glance

Council
Midlothian
Constituency
Midlothian
Region
Scotland
Police force
Scotland
Urban share
100% urban
Newest postcode
EH20 9FS, June 2026

Places in EH20: Loanhead, New Pentland, Straiton.

Sectors

The 2 postcode sectors in EH20

A sector is the district plus the first digit of the inward code, such as EH20 0. Each one lists every postcode inside it.

SectorLive postcodesTerminated
EH20 015
EH20 923544

Councils and wards

Share of EH20's live postcodes in each council and ward.

Wards

  • Midlothian West99%
  • Bonnyrigg1%

Deprivation

Live postcodes by deprivation decile, Scottish Index of Multiple Deprivation 2020: 1 is the most deprived tenth of neighbourhoods, 10 the least. Decile 2: 12 postcodes. Decile 3: 2 postcodes. Decile 4: 15 postcodes. Decile 5: 69 postcodes. Decile 6: 138 postcodes.

Constituencies

Check a postcode

Look up any postcode in EH20

Council, ward, constituency, coordinates and status for a single postcode, straight from the live API.

For developers

EH20 in your app

Every live postcode in the district in one call, free up to the monthly allowance. Get a free key.

curl "https://api.clearpostcode.co.uk/v1/outcodes/EH20/postcodes" \
  -H "x-api-key: $CLEAR_KEY"

Or download EH20 as CSV: 236 rows, free, under the Open Government Licence.

Questions

EH20 postcode questions

What area does the EH20 postcode cover?

EH20 covers Loanhead, New Pentland and Straiton. It is one of the districts in the EH (Edinburgh) postcode area.

Which council is EH20 in?

Midlothian: every live postcode in EH20 sits in it.

How many postcodes are in EH20?

236 live postcodes in 2 sectors, plus 49 terminated ones, in the ONS edition of August 2026. 3 of the live postcodes belong to a single large user, such as a business or a PO box.

Which constituency is EH20 in?

Midlothian.

Is EH20 urban or rural?

Urban: 100% of its live postcodes are in urban areas.

How do I get every EH20 postcode?

Download the free CSV on this page, or call https://api.clearpostcode.co.uk/v1/outcodes/EH20/postcodes with a free key: every live postcode with its coordinates, council, ward and constituency.