Payment-card account number containing an issuer identifier, issuer-assigned account identifier, and check digit for authorization and routing.
A Primary Account Number (PAN) is the payment-card account number used to identify an issuer and card account for authorization, clearing, and related processing. It is commonly the long number displayed on a physical or virtual card, but it is not the same as a deposit-account number, PIN, security code, or payment token.
A simplified PAN can be represented as:
1[ IIN ][ issuer account identifier ][ check digit ]
| Component | Function |
|---|---|
| Issuer Identification Number | Leading eight digits identifying the issuer range and supporting routing |
| Issuer-assigned account identifier | Distinguishes the card account within the issuer’s numbering system |
| Check digit | Final digit commonly used for Luhn validation |
The commercial term BIN is still widely used for the issuer prefix. Older systems can use the first six digits as a BIN range, while the current ISO structure defines an eight-digit IIN.
Do not assume the visible PAN maps one-to-one to a single piece of plastic. An account can have replacement cards, virtual credentials, network tokens, or separate PANs for authorized users depending on issuer design.
The Luhn algorithm checks whether a number is internally consistent with its check digit. In simplified form, it:
Luhn validation detects many common typing errors. It does not contact the issuer or prove that:
Use generated test numbers supplied by payment processors or networks in development. Do not put real PANs in source code, tickets, screenshots, analytics, or test logs.
| Data element | Purpose | Important distinction |
|---|---|---|
| PAN | Identifies and routes the card account | Core cardholder-data element under PCI DSS |
| IIN or BIN | Identifies the issuer range | Only the leading part of the PAN |
| Expiration date | Supports card lifecycle and authorization checks | Not part of the PAN |
| Card security code | Supports card-not-present authentication controls | Sensitive authentication data, not a PAN component |
| PIN | Authenticates the cardholder in supported transactions | Must not be confused with the PAN |
| Payment token | Substitute credential mapped to a PAN for a defined use domain | Can reduce exposure of the underlying PAN |
| Deposit-account number | Identifies a bank account for ACH or other account payments | Governed by different formats and payment rules |
Knowing one element does not validate the others. A merchant should collect and retain only the data required by its payment design and applicable rules.
EMV payment tokenization replaces a PAN in a transaction flow with an alternative value. The token can be restricted by merchant, device, wallet, channel, or other domain controls, reducing the usefulness of compromised transaction data.
Tokenization is not the same as displaying a masked PAN:
Each method has different architecture and PCI implications. A format-preserving value that looks like a PAN is not automatically out of scope.
Assume an online merchant authorizes a $240 purchase. Its processor returns:
1234.The customer-service system needs to locate the order and tell two cards apart. It generally does not need the full PAN. The merchant can retain the transaction ID, approved token where appropriate, brand, and a compliant masked or truncated display under its payment-provider and PCI design.
The authorization still does not guarantee final payment. The transaction can fail in capture, be reversed, be disputed, or become a chargeback. The merchant should reconcile authorization, capture, clearing, settlement, refund, and dispute records rather than treat the PAN as proof of payment.
The PAN can appear, directly or through protected substitutes, during:
Different participants should not expose the full PAN merely because it travels through the payment ecosystem. Tokenization, point-to-point encryption, hosted payment fields, and processor vaults can reduce merchant handling of raw card data when properly implemented.
PCI SSC states that PCI DSS applies to environments that store, process, or transmit covered payment-card account data. PAN is the defining cardholder-data element; cardholder name, service code, and expiration date are also cardholder data when present with PAN.
Practical questions include:
Compliance conclusions require the current PCI DSS, payment-brand rules, environment scope, and advice from qualified specialists where needed.
Payment-card standards and network rules can change. This page provides general education, not PCI-compliance, payment-processing, cybersecurity, legal, or fraud-management advice.