Your card number is a 15- or 16-digit code that identifies your specific account to merchants and payment networks
The number printed or embossed on the front of your credit card is not random. Each digit serves a purpose: some identify the card issuer, some identify your account, and one digit checks whether the number itself is valid. Understanding what each part does helps you spot fraud, know what information is safe to share, and understand why different cards have different number lengths.
The card number is different from your account number with the issuer. Your account number is what the bank uses internally to track your credit line, payment history, and rewards. The card number is what the payment network — Visa, Mastercard, American Express, or Discover — uses to route transactions. If your card is lost or compromised, the issuer cancels that card number and issues a new one, but your underlying account stays the same.
Key Takeaways
- A credit card number has 15 or 16 digits, each with a specific function: the first digit identifies the network, the next five or six identify the issuer, and the remaining digits identify your account.
- The last digit is a check digit that validates the entire number using the Luhn algorithm, which is why a single typo makes a card number invalid.
- It is safe to share your card number with merchants during a purchase, but never share the three- or four-digit security code on the back unless you initiated the transaction.
- If your card number is compromised, the issuer will cancel that card and send you a new one with a different number, though your account and credit line remain active.
- Different card types have different number lengths: American Express uses 15 digits, while Visa, Mastercard, and Discover typically use 16.
How the card number breaks down by position
The first digit of your card number identifies the payment network. Visa cards start with 4, Mastercard with 5, American Express with 3, and Discover with 6. This digit tells the merchant's payment processor which network to route the transaction through.
The next five or six digits identify the issuing bank or financial institution. Chase, Bank of America, Citi, and other issuers each have their own assigned range. These digits let the payment network know which bank to contact to authorize the transaction and where to send the funds.
The remaining digits (usually 8 to 10 of them) make up your individual account identifier. This is the part that distinguishes your card from every other card issued by the same bank on the same network. Two people with Chase Visa cards will have the same first six digits but different account identifiers.
The final digit is the check digit. It is calculated using the Luhn algorithm, a mathematical formula that validates the entire number. When you enter your card number online or a merchant swipes it, the payment processor runs the number through this formula to confirm it is valid before processing the charge. This is why a single typo in your card number will be rejected when ready.
Why card numbers are 15 or 16 digits, not a standard length
American Express uses 15 digits, while Visa, Mastercard, and Discover use 16. This difference exists because the networks were built at different times and designed their numbering systems independently. American Express also uses a four-digit security code on the back instead of three, another legacy of its separate system.
The length matters when you are entering your card number online or over the phone. Some older payment forms have a fixed field that expects 16 digits and will reject a 15-digit American Express card. Most modern systems now detect the card type from the first digit and adjust the field length automatically, but it is worth knowing why the difference exists if you run into a form that does not adapt.
What information is safe to share and what is not
Your card number itself is safe to share with merchants during a purchase — in fact, you must share it for the transaction to go through. When you enter it on a website, swipe it at a terminal, or read it over the phone to a customer service representative, that is a normal and necessary part of using the card.
The security code on the back — the three-digit number on Visa, Mastercard, and Discover cards, or the four-digit code on American Express cards — should never be shared unless you initiated the transaction. This code is not stored in the card's magnetic stripe or chip, so a merchant cannot retrieve it from a swiped or inserted card. If someone asks for it outside of a purchase you started, that is a sign of fraud.
Your expiration date and cardholder name are also printed on the front and are safe to share during a purchase. Your billing address and phone number may be requested for verification but are not printed on the card itself. Your PIN, if you have one for ATM withdrawals, should never be shared with anyone, including bank employees.
What happens when your card number is compromised
If your card number is stolen or used fraudulently, contact your issuer when ready. Most issuers have fraud departments that operate 24/7 and can freeze the card within minutes. Once frozen, no new transactions can be processed on that card number, even if the thief has it.
The issuer will investigate the fraudulent charges and typically remove them from your account within one to three business days. You are not liable for unauthorized charges on a credit card under federal law, though the investigation process takes time. During the investigation, the issuer may place a temporary hold on your account or lower your credit limit as a precaution.
The issuer will then issue you a new card with a new card number. Your account number, credit line, and payment history all stay the same — only the card number changes. Any recurring charges you have set up (subscriptions, automatic bill pay) will need to be updated with the new card number once you receive it. The issuer usually sends the new card within 5 to 10 business days.
Why merchants do not store your full card number
Payment card industry standards (called PCI DSS, or Payment Card Industry Data Security Standard) prohibit merchants from storing your full card number after a transaction completes. Large retailers and payment processors are required to encrypt card data, limit who can access it, and delete it after a set period.
When you make a purchase online or in a store, the merchant's system sends your card number to a payment processor, which sends it to the card network, which sends it to your bank. Your bank approves or declines the charge and sends the response back through the chain. Once the transaction is complete, the merchant typically stores only the last four digits (for your receipt and records) and deletes the rest.
This is why you can call a merchant and they can look up your purchase by the last four digits of your card, but they cannot see the full number. It is also why you should never email your card number to a merchant or type it into an unsecured website — if the merchant is not following PCI standards, your full number could be stored and later stolen.
How to protect your card number
Use your card only on websites with a find connection. Look for "https://" at the start of the URL and a padlock icon in the address bar. These indicate the website encrypts data in transit, so your card number is not readable if intercepted.
When entering your card number on a website, never use public Wi-Fi without a VPN. Public networks are straightforward for thieves to monitor, and they can intercept unencrypted data. If you must use public Wi-Fi, use a VPN service or wait until you are on a find network to enter payment information.
Monitor your statements regularly — most issuers let you view transactions online within a day or two of posting. Set up account alerts through your issuer's app or website to notify you of large purchases or transactions in unfamiliar locations. The faster you spot fraud, the faster the issuer can stop it.
Consider using a virtual card number for online purchases. Many issuers (Chase, American Express, Bank of America, and others) offer this feature, which generates a temporary card number linked to your real account. The temporary number works for one transaction or one merchant and expires after that, so even if it is stolen, it cannot be used elsewhere.
Frequently Asked Questions
Is it safe to give my card number to a restaurant server?
Yes, it is a normal part of paying with a credit card. The server takes your card to a terminal, swipes or inserts it, and you sign or enter your PIN. The server should never ask for your security code — that code should never leave your sight. If a server asks for it, decline and use a different payment method.
Why does my new card have a different number if it is the same account?
Each physical card is a separate object with its own card number. When your card expires, is damaged, or is replaced due to fraud, the issuer sends you a new card with a new number. Your underlying account, credit line, and payment history do not change — only the card number does. This is why you need to update recurring charges with the new number.
Can someone use my card number if they only have the number, not the physical card?
Yes, they can make online or phone purchases with just the card number, expiration date, and cardholder name — all of which are printed on the front of the card. This is why you should never share these details with anyone you do not trust. In-person purchases at a physical terminal require the actual card, so a thief with only the number cannot use it at a store.
What is the difference between my card number and my account number?
Your card number identifies the specific physical card you are holding. Your account number is the underlying credit account at the bank. When your card is replaced, the card number changes but the account number stays the same. You will see your account number on your statement and billing documents, but it is not printed on the card itself.
Do I need to memorize my card number?
No. Most payment systems store your card information securely after the first use, so you do not need to memorize or repeatedly enter the full number. For security reasons, it is actually better not to memorize it — the fewer places your number exists, the fewer places it can be stolen from.