The four parts of a postcode
Take SW1A 1AA. Each step narrows the place down, from a region to a handful of front doors.
| Part | Example | What it is |
|---|---|---|
| Area | SW | One or two letters for a city or region: SW is South West London, LS is Leeds, EH is Edinburgh. |
| District | SW1A | The area plus a number, sometimes with a letter: the outward code mail is sorted on. |
| Sector | SW1A 1 | The district plus the first digit of the inward code: a few streets or a few villages. |
| Unit | SW1A 1AA | The full postcode: on average about 15 addresses, sometimes one building. |
The outward code and the inward code
The part before the space is the outward code. It gets the post to the right delivery office. The part after the space is the inward code, always a digit and two letters, which gets it to the right street and the right side of it.
Because the inward code is always three characters, you can always find the space: it sits before the last three. That is how our API reads "sw1a1aa", "SW1A 1AA" and "sw1a-1aa" as the same postcode.
Large users and non-geographic postcodes
Some postcodes belong to a single organisation that gets a lot of post, such as a bank, a government department or a big retailer. These are large-user postcodes. Others, such as PO boxes, have no fixed place on the ground at all.
Our data marks every postcode as small or large user, and each district page tells you how many of its postcodes are large users.
Why postcodes change
New postcodes are created every month for new homes and new streets, and old ones are terminated when buildings are demolished or routes are redrawn. A terminated postcode never comes back.
The ONS publishes the full list every quarter. Our edition is August 2026; the next is due in November 2026. Look up a terminated postcode and we tell you when it ended and the nearest live postcode.
Postcodes and councils don't line up
Postcodes follow delivery routes, not council or constituency boundaries. One district can sit in two or three councils, and one council has dozens of districts. The only safe way to find the council for an address is to look up its full postcode: try the postcode to council tool.
Checking a postcode in code
A format check with a regular expression tells you a postcode could exist. Only a lookup tells you it does. The API answers both in one call, free up to 10,000 postcode lookups a month.
curl "https://api.clearpostcode.co.uk/v1/postcodes/SW1A%201AA/validate"Questions
How many postcodes are there in the UK?
About 1.7 million live postcodes in Great Britain, the Channel Islands and the Isle of Man, plus Northern Ireland's BT postcodes, in the ONS edition of August 2026.
What is a postcode district?
The outward code: the area letters plus the district number, such as SW1A or LS6. Each district page on this site lists its sectors, councils and every postcode.
What is a postcode sector?
The district plus the first digit of the inward code, such as SW1A 1. A sector holds about 160 live postcodes on average.