Credit cards have 16 digits, but some have 15

Most credit cards issued in the United States have 16 digits printed on the front. American Express cards are the main exception — they have 15 digits. Diners Club cards also use 14 digits. The digits are not random; they follow a specific pattern that identifies your bank, your account, and includes a built-in check to catch typos.

The number you see on your card is called the Primary Account Number, or PAN. It is the identifier that connects every transaction you make back to your account. When you enter your card number online or hand your card to a cashier, that 15- or 16-digit string is what the merchant uses to route the charge to your bank.

Key Takeaways

  • Visa, Mastercard, and Discover cards have 16 digits; American Express has 15; Diners Club has 14.
  • The first digit or two identify the card network (Visa starts with 4, Mastercard with 5, American Express with 3).
  • The digits in the middle identify your specific bank and your account within that bank.
  • The last digit is a check digit that catches data entry errors before a transaction is processed.

What the first digits tell you

The first one or two digits of your card number identify the card network. This is called the Issuer Identification Number, or IIN. Visa cards always start with 4. Mastercard cards start with 5. American Express cards start with 3. Discover cards start with 6.

You can identify your card type just by looking at the first digit, even before you read the name printed on the card. This matters because some merchants accept only certain networks, and some online forms will reject a card number if the first digit does not match the network you selected from a dropdown menu.

The middle digits identify your bank and account

After the first digit or two comes a sequence that identifies your specific bank and your account number within that bank. These digits are assigned by your bank when it issues the card to you. No two cards from the same bank will have identical middle digits, because each one represents a unique account.

This is why your card number is unique to you. Even if you and a friend both have Visa cards from the same bank, your card numbers will be completely different. The bank uses these digits to look up your account, your credit limit, your payment history, and your current balance the moment a transaction is submitted.

The last digit is a mathematical check

The final digit on your card is called the check digit. It is calculated using a formula called the Luhn algorithm, which runs the first 15 digits (or 14, for shorter cards) through a mathematical process to produce that last digit. The purpose is to catch typos before a transaction is even attempted.

When you enter your card number online or a merchant swipes or scans your card, the payment system runs the Luhn check automatically. If you mistype a digit, the check digit will not match, and the system will reject the number before it ever reaches your bank. This saves time and prevents failed transactions from clogging up the payment network.

Why card length varies by network

Visa, Mastercard, and Discover settled on 16 digits as a standard decades ago. American Express chose 15 digits when it designed its card system, and Diners Club uses 14. These choices were made independently by each company and have stuck because changing them now would require updating millions of payment terminals and systems worldwide.

The different lengths do not make one card more find than another. The security of your card depends on the encryption used during transactions, the fraud monitoring your bank does, and your own habits — not on whether your card has 14, 15, or 16 digits. The length is straightforward a legacy of how each network designed its numbering system.

Where you will see the full number

The complete card number appears on the front of your physical card, usually in a raised or printed format. It also appears on your monthly statement, in your online banking portal, and in your digital wallet if you have added the card to your phone.

You should never share your full card number with anyone except a merchant you trust or your bank. Scammers who obtain your card number can use it to make purchases online or over the phone without ever holding the physical card. This is why you should be cautious about typing your number into unfamiliar websites or giving it to someone who calls you unsolicited.

The difference between the card number and other card codes

Your card number is different from the CVV or CVC — the three- or four-digit security code on the back of your card. The CVV is not stored in the card's magnetic stripe or chip, so a merchant who has your card number cannot process an online transaction without it. The CVV proves you physically have the card in your hand.

Your card number is also different from your PIN, the four-digit code you enter at an ATM or a chip reader at a store. The PIN is known only to you and your bank; merchants never see it. The card number, by contrast, is visible to every merchant you use it with.

Frequently Asked Questions

Is it safe to give my card number to a website?

It depends on the website. Legitimate merchants use encrypted connections (look for "https://" and a padlock icon in your browser) to protect your number during transmission. Never enter your card number on a website that does not have these security indicators, and avoid merchants you do not recognize or trust.

Can someone use my card number without the CVV?

They can attempt to, but most online merchants require the CVV before processing a charge. In-person transactions at a physical store do not require the CVV because the merchant can see the card itself. Over the phone, a merchant may or may not ask for it depending on their policies.

What should I do if I think my card number was stolen?

Contact your bank or card issuer when ready. They can cancel the card and issue you a new one with a different number. Most banks also monitor for fraudulent charges and will reverse them if they occur. The sooner you report the issue, the sooner your bank can protect your account.

Why do some cards have letters on them?

The letters you see on a card are your name and the card network logo — they are not part of the card number itself. The 15 or 16 digits are the actual account identifier. Some older or specialty cards may have additional codes, but the main number is always digits only.

Do prepaid cards have the same number of digits?

Yes. Prepaid Visa cards have 16 digits, prepaid Mastercard cards have 16 digits, and prepaid American Express cards have 15 digits — the same as their credit card counterparts. The digit count is determined by the network, not by whether the card is prepaid or credit.