On this page
The UK has 121 postcode areas: the one or two letters at the start of a postcode, such as AB for Aberdeen or BT for Northern Ireland. Shopify's own zones can't price them separately. To charge by area, put the areas into regions with their own rates in a postcode shipping app, plus a catch-all region for the rest.
You can type these area rules in a region, or build many UK regions in the visual region editor.
How a UK postcode is built
A UK postcode has two parts separated by a space. The outward code, before the space, is the area plus the district. The inward code, after the space, narrows it to a street or building.
| Part | Example in IV1 1AA |
What it tells you |
|---|---|---|
| Area | IV |
Inverness. One or two letters. |
| District | IV1 |
The area plus a number, sometimes followed by a letter in central London, such as EC1A. |
| Sector | IV1 1 |
The district plus the first digit after the space. |
| Unit | IV1 1AA |
The full postcode, usually a street or part of one. |
The six formats are A9 9AA, A99 9AA, A9A 9AA, AA9 9AA, AA99 9AA and AA9A 9AA, where A is a letter and 9 is a digit. Rates are almost always set at area or district level, because couriers price that way.
How to set it up
- Decide which areas cost more. Start from your courier's price list. Many couriers price the mainland the same and charge more for the Scottish Highlands and Islands, Northern Ireland, the Isles of Scilly and the Isle of Wight.
- Create a United Kingdom shipping zone in Postcode Shipping and make sure Postcode Shipping is added to your UK zone in Shopify.
- Add a region for each price band, such as Highlands and Islands or Northern Ireland, and paste the area or district rules from the table below, one per line.
- Give each region its rates. Use Flat, Weight Band or Weight Surcharge rates, and name them so customers understand the price, such as Standard (Northern Ireland).
- Add a catch-all region called UK mainland with your standard rates and any free-shipping rule.
- Test a postcode from each region in the Rate Sandbox, then switch rates live.
Which rule to use
| You want to match | Rule | Matches |
|---|---|---|
| A whole two-letter area | AB* |
Every Aberdeen postcode |
| A whole one-letter area | B1* to B9*, one per line |
Every Birmingham postcode, without BA, BS or BT |
| One district | IV1 * |
IV1 only. The space stops it matching IV10 to IV19. |
| A run of districts | IV10 *-IV28 * |
IV10 to IV28. Both sides need the same format, so split runs that cross from one digit to two. |
| One sector | PA20 1* |
Part of a district, when a courier surcharges only some streets |
All 121 UK postcode areas
Area names follow Royal Mail's naming, as listed on Wikipedia's list of UK postcode areas. Areas do not follow county borders, so an area named after one town can cover a wide region.
| Area | Name | Rule to match the whole area |
|---|---|---|
| AB | Aberdeen | AB* |
| AL | St Albans | AL* |
| B | Birmingham | B1* to B9*, one per line |
| BA | Bath | BA* |
| BB | Blackburn | BB* |
| BD | Bradford | BD* |
| BH | Bournemouth | BH* |
| BL | Bolton | BL* |
| BN | Brighton | BN* |
| BR | Bromley | BR* |
| BS | Bristol | BS* |
| BT | Belfast | BT* |
| CA | Carlisle | CA* |
| CB | Cambridge | CB* |
| CF | Cardiff | CF* |
| CH | Chester | CH* |
| CM | Chelmsford | CM* |
| CO | Colchester | CO* |
| CR | Croydon | CR* |
| CT | Canterbury | CT* |
| CV | Coventry | CV* |
| CW | Crewe | CW* |
| DA | Dartford | DA* |
| DD | Dundee | DD* |
| DE | Derby | DE* |
| DG | Dumfries | DG* |
| DH | Durham | DH* |
| DL | Darlington | DL* |
| DN | Doncaster | DN* |
| DT | Dorchester | DT* |
| DY | Dudley | DY* |
| E | East London | E1* to E9*, one per line |
| EC | East Central London | EC* |
| EH | Edinburgh | EH* |
| EN | Enfield | EN* |
| EX | Exeter | EX* |
| FK | Falkirk | FK* |
| FY | Blackpool | FY* |
| G | Glasgow | G1* to G9*, one per line |
| GL | Gloucester | GL* |
| GU | Guildford | GU* |
| HA | Harrow | HA* |
| HD | Huddersfield | HD* |
| HG | Harrogate | HG* |
| HP | Hemel Hempstead | HP* |
| HR | Hereford | HR* |
| HS | Hebrides | HS* |
| HU | Hull | HU* |
| HX | Halifax | HX* |
| IG | Ilford | IG* |
| IP | Ipswich | IP* |
| IV | Inverness | IV* |
| KA | Kilmarnock | KA* |
| KT | Kingston upon Thames | KT* |
| KW | Kirkwall | KW* |
| KY | Kirkcaldy | KY* |
| L | Liverpool | L1* to L9*, one per line |
| LA | Lancaster | LA* |
| LD | Llandrindod Wells | LD* |
| LE | Leicester | LE* |
| LL | Llandudno | LL* |
| LN | Lincoln | LN* |
| LS | Leeds | LS* |
| LU | Luton | LU* |
| M | Manchester | M1* to M9*, one per line |
| ME | Rochester | ME* |
| MK | Milton Keynes | MK* |
| ML | Motherwell | ML* |
| N | North London | N1* to N9*, one per line |
| NE | Newcastle upon Tyne | NE* |
| NG | Nottingham | NG* |
| NN | Northampton | NN* |
| NP | Newport | NP* |
| NR | Norwich | NR* |
| NW | North West London | NW* |
| OL | Oldham | OL* |
| OX | Oxford | OX* |
| PA | Paisley | PA* |
| PE | Peterborough | PE* |
| PH | Perth | PH* |
| PL | Plymouth | PL* |
| PO | Portsmouth | PO* |
| PR | Preston | PR* |
| RG | Reading | RG* |
| RH | Redhill | RH* |
| RM | Romford | RM* |
| S | Sheffield | S1* to S9*, one per line |
| SA | Swansea | SA* |
| SE | South East London | SE* |
| SG | Stevenage | SG* |
| SK | Stockport | SK* |
| SL | Slough | SL* |
| SM | Sutton | SM* |
| SN | Swindon | SN* |
| SO | Southampton | SO* |
| SP | Salisbury | SP* |
| SR | Sunderland | SR* |
| SS | Southend-on-Sea | SS* |
| ST | Stoke-on-Trent | ST* |
| SW | South West London | SW* |
| SY | Shrewsbury | SY* |
| TA | Taunton | TA* |
| TD | Galashiels | TD* |
| TF | Telford | TF* |
| TN | Tunbridge Wells | TN* |
| TQ | Torquay | TQ* |
| TR | Truro | TR* |
| TS | Cleveland | TS* |
| TW | Twickenham | TW* |
| UB | Southall | UB* |
| W | West London | W1* to W9*, one per line |
| WA | Warrington | WA* |
| WC | West Central London | WC* |
| WD | Watford | WD* |
| WF | Wakefield | WF* |
| WN | Wigan | WN* |
| WR | Worcester | WR* |
| WS | Walsall | WS* |
| WV | Wolverhampton | WV* |
| YO | York | YO* |
| ZE | Lerwick | ZE* |
Guernsey (GY), Jersey (JE) and the Isle of Man (IM) are not in this list because Shopify treats them as separate countries. See shipping to Northern Ireland, the Channel Islands and the Isle of Man.
Example price bands
| Region | Rules | Rate at checkout |
|---|---|---|
| UK mainland | Catch-all | Standard £4.95, free over £50 |
| Northern Ireland | BT* |
Standard (Northern Ireland) £9.95 |
| Highlands and Islands | District rules from the Highlands and Islands guide | Standard (Highlands and Islands) £14.95 |
These prices are illustrations. Base yours on what your courier charges you for each area. For districts inside the Highlands and Islands, use the district list in that guide rather than whole areas, because areas such as AB, KA and PA are only partly surcharged.
Frequently asked questions
How many postcode areas are there in the UK?
There are 121 geographic postcode areas, from AB (Aberdeen) to ZE (Lerwick). Guernsey (GY), Jersey (JE) and the Isle of Man (IM) use three more, but Shopify treats them as separate countries.
What is the difference between a postcode area and a postcode district?
The area is the one or two letters at the start, such as IV. The district is the area plus its number, such as IV1. Areas hold anywhere from 3 districts (ZE) to 81 (BT).
Why not use B* for Birmingham?
Because B* also matches every area that starts with B, such as BA, BS and BT. For the eight single-letter areas (B, E, G, L, M, N, S and W), match the letter followed by each digit: B1* to B9*.
Can Shopify set shipping rates by UK postcode on its own?
No. Shopify's UK zone splits only into England, Scotland, Wales and Northern Ireland. Pricing by postcode area or district needs an app that returns rates by postcode.
Do I need to type the space in a UK postcode rule?
Only when you match a whole district. IV1 * matches IV1 only, while IV1* also matches IV10 to IV19. Area rules such as AB* don't need a space.
Set UK postcode-area rates in minutes with Postcode Shipping
Paste the area and district rules from this guide into regions, and each region gets its own price at checkout, with a catch-all for the rest of the UK.
Build and test it free in the Sandbox, with no time limit. Customers see your rates once you activate Live rates ($20 USD a month), and the 7-day trial starts when you set up billing. Requires Shopify carrier-calculated shipping.
