Skip to main content

IBAN format by country

Portugal IBAN format: length, structure and example

An IBAN from Portugal always has 25 characters: the country code PT, two check digits and the 21-character BBAN, made up of the 4-digit bank code, 4-digit branch code, 11-digit account number and 2-digit national check digits. Example: PT50 0002 0123 1234 5678 9015 4.

IBAN length
25 characters
Country code
PT (positions 1-2)
Check digits
Positions 3-4, mod-97
BBAN structure
4n 4n 11n 2n (4 digits, 4 digits, 11 digits, 2 digits)
Bank code
Positions 5-8
SEPA
Yes, euro

Validate an IBAN from Portugal

Runs entirely in your browser. Nothing you type is sent, stored or tracked.

Try

Portugal IBAN structure

Positions count from the first character of the IBAN. Values in the last column come from the specimen for Portugal in the SWIFT IBAN Registry, release 102 (June 2026).

FieldPositionsLengthSpecimen
Country code1-22PT
IBAN check digits3-4250
Bank code5-840002
Branch code9-1240123
Account number13-231112345678901
National check digits24-25254

SWIFT notation: PT2!n4!n4!n11!n2!n, where n = digits, a = upper-case letters, c = letters or digits and "!" means a fixed length.

Portugal IBAN example

PT50000201231234567890154

Print format: PT50 0002 0123 1234 5678 9015 4

  • Country code: PT
  • IBAN check digits: 50
  • Bank code: 0002
  • Branch code: 0123
  • Account number: 12345678901
  • National check digits: 54

This is the published specimen from the SWIFT IBAN Registry, not a real customer account. It passes the mod-97 check, so use it to test forms and integrations; never send money to it.

National account format in Portugal

NIB (Número de Identificação Bancária), 21 digits: bank, branch, account number and two check digits.

To find the bank code in any IBAN from Portugal, read characters 5-8. The validator above splits every field out for you.

SEPA and direct debits in Portugal

Portugal uses the euro, so recurring collections from its IBANs can run on SEPA Direct Debit (Core for consumers, B2B for businesses).

SEPA Direct Debit lets a creditor collect from any SEPA IBAN under a signed mandate. Each mandate carries a unique mandate reference (UMR) and the creditor's SEPA Creditor Identifier. Under the Core scheme a payer can ask for a refund within 8 weeks of an authorised debit and within 13 months of an unauthorised one; the B2B scheme has no refund right.

Collections that fail come back as R-transactions: rejects before settlement, returns after it and refunds requested by the payer. Each carries an ISO 20022 reason code, for example AC04 (account closed), AM04 (insufficient funds), MD01 (no mandate) or MS02 (refused by the payer).

Every SEPA reason code, with what to do next, is in the SEPA Direct Debit reason code reference.

Why a direct debit fails even with a valid IBAN

An IBAN validator only proves the number is well formed. A direct debit can still come back unpaid because of what sits behind the account:

  • Account closed or moved: the IBAN was valid when the mandate was signed (SEPA reason code AC04).
  • Insufficient funds: the most common soft failure, and the one where the timing of the next attempt matters most (SEPA AM04).
  • Mandate problems: no valid mandate, a cancelled instruction or a payer who refused the debit (SEPA MD01 and MS02).
  • Account cannot be debited: savings accounts and some e-money or blocked accounts reject direct debits outright (SEPA AC06 and AG01).
  • Refunds after the fact: under the SEPA Core scheme a payer can reclaim an authorised debit for 8 weeks, so a collection that "succeeded" can still reverse.

Look up any return code in the SEPA Direct Debit reason codes, or see how Slicker handles failed direct debits.

Frequently asked questions

How many characters does an IBAN from Portugal have?

An IBAN from Portugal always has 25 characters: the country code PT, two check digits and a 21-character BBAN made up of the 4-digit bank code, 4-digit branch code, 11-digit account number and 2-digit national check digits.

What does an IBAN from Portugal look like?

The SWIFT IBAN Registry specimen for Portugal is PT50 0002 0123 1234 5678 9015 4 (electronic format PT50000201231234567890154). It is a published sample, not a real customer account, and it passes the mod-97 check.

Is Portugal part of SEPA?

Yes. Portugal is in the SEPA schemes' geographical scope. It uses the euro, so SEPA Direct Debit can collect from its IBANs.

Where is the bank code in an IBAN from Portugal?

Characters 5-8 (0002 in the specimen) are the bank code. Characters 9-12 (0123) are the branch code. The account number is characters 13-23. Positions count from the first letter of the country code.

Other IBAN formats

Losing subscription revenue to failed direct debits?

Slicker reads the reason code of every failed SEPA, Bacs or card payment and decides whether, when and how to retry, or when only the customer can fix it. Smart retries run on your existing billing platform, and you only pay when we outperform your current setup in a 50/50 test.

Cookie preferences

Your privacy matters

We use analytics to understand how you use our site and improve your experience. Privacy Policy