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.
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.
Councils and wards
Share of EH20's live postcodes in each council and ward.
- Midlothian100%
Wards
- Midlothian West99%
- Bonnyrigg1%
Deprivation
Constituencies
- Midlothian100%
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.