Postal codes are given at the building block level and also to designated addresses with high volumes of mail.
The first digit designates one of nine postal regions; the following two digits designate postal distribution centers; the fourth digit is 0 if it belongs to a capital of municipality, 5 if not, or any other digit if it is a designated address; the last three digits sort building blocks and designated addresses.
The more important the city, the more rounded is the number formed by the first four digits.
In 1976, a national postal code system was introduced, with a four-digit structure, and designated addresses added "CODEX" (abbreviation of código extraordinário) to the postal location: Postal regions (first digit of postal code): [citation needed] Note that, although the regions' names are connected to the (extinct) provinces of Portugal of 1936, their limits (with the exception of Algarve) are not exactly the same.
People can also search for postal codes at the CTT Correios website.