Understanding UK Postcode Structure

Every UK postcode follows a structured format that encodes geographic information at four levels. This tool breaks down any postcode into its area, district, sector and unit, showing you what each part means, where it covers, and how it connects to surrounding postcodes.

The Four Parts of a Postcode

A UK postcode like M25 0AA splits into an outward code (M25) and an inward code (0AA), separated by a space. Inside those two halves are four hierarchical components: the area, district, sector and unit. Each one narrows the location further.

Postcode Area

The first one or two letters identify the postcode area, the broadest geographic division. There are 121 postcode areas in the UK, each typically named after a major town or city. M covers Manchester, B covers Birmingham, and SW covers South West London. Areas vary massively in size. L (Liverpool) covers a compact urban area while IV (Inverness) spans much of the Scottish Highlands.

Postcode District

Adding the digits after the area letters gives you the postcode district, such as M25 or SW1A. Each area contains multiple districts, ranging from a handful in smaller towns to over 90 in London areas. The district is the level used most often in property searches, delivery zoning, and local services. There are roughly 2,900 postcode districts across the UK.

Postcode Sector

The sector adds the first digit of the inward code, giving references like M25 0 or SW1A 1. Sectors subdivide districts into smaller zones, each covering a few thousand addresses. There are around 11,000 sectors in the UK. Insurance companies, census analysts, and market researchers commonly work at this level.

Postcode Unit

The full postcode (e.g. M25 0AA) is the unit, the most precise level. Each unit typically covers around 15 addresses, though this varies. A single large building, a short stretch of street, or a cluster of rural properties might share one unit. There are approximately 1.8 million active postcode units in the UK.

How Postcodes Are Allocated

Royal Mail manages the UK postcode system and allocates new postcodes as developments are built. The area letter was originally linked to the sorting office responsible for that region, though this connection has weakened over time as mail processing has centralised. District numbers are assigned sequentially within each area, but not always contiguously. Some numbers are skipped or reserved.

Postcodes can be terminated when addresses are demolished or reorganised. Terminated postcodes are not reissued for several years to avoid confusion with mail and records still referencing the old code.

Postcode Formats

UK postcodes use six standard formats depending on the area and district. The area can be one or two letters, the district number can be one or two digits (sometimes with a trailing letter), and the inward code is always one digit followed by two letters. The possible formats are: A9 9AA, A99 9AA, A9A 9AA, AA9 9AA, AA99 9AA, and AA9A 9AA. The letters C, I, K, M, O, and V are not used in the first position of the inward code, and Q, V, and X are not used in the second position.

Uses of Postcode Data

Local SEO & Business Targeting

Knowing which districts and sectors fall within your service area helps you create targeted landing pages, define delivery zones, and structure location-based content. Listing the specific postcode districts you cover gives search engines clear geographic signals about where you operate.

Data Analysis & Segmentation

Analysts use postcode hierarchy to aggregate data at different geographic levels. Demographic data, property prices, health statistics and census results are all commonly analysed at district or sector level. Understanding the hierarchy helps you pick the right level of granularity for your analysis.

Logistics & Delivery

Courier and delivery companies define their coverage and pricing zones by postcode district. Knowing which districts neighbour each other, and how many postcodes fall within each, helps optimise route planning and set realistic delivery expectations.

Property & Planning

Estate agents, developers and planners use postcode districts to define market areas, compare property values, and analyse planning applications. The district level gives enough geographic specificity to be meaningful while containing enough data points for solid statistical analysis.