Credit card numbers have 13 to 19 digits, depending on the card type

Most credit cards in the United States have 16 digits. Visa, Mastercard, and Discover cards all use 16-digit numbers. American Express cards use 15 digits. Some specialty cards and cards issued outside the US may use 13, 14, or 19 digits, though these are less common in everyday use.

The digits are not random. Each one serves a purpose: the first digit or two identify the card issuer (Visa, Mastercard, etc.), the next several digits identify your specific bank or credit union, and the remaining digits are your unique account number. The final digit is a check digit — a mathematical verification that the number itself is valid.

Key Takeaways

  • Visa, Mastercard, and Discover cards have 16 digits; American Express has 15.
  • The first digit or two identify the card network; the middle digits identify your bank; the last digit verifies the number is mathematically valid.
  • You need all the digits to process a transaction, but you should never share your full card number except with a merchant you trust.
  • The card number itself is different from the CVV (the 3 or 4 digit security code on the back), which is a separate piece of security information.

Why card numbers are different lengths

The length of a credit card number is set by the card network, not by individual banks. Visa decided on 16 digits decades ago and has kept that standard. American Express chose 15 digits for its own reasons — partly historical, partly because American Express issues its own cards rather than licensing the brand to banks the way Visa and Mastercard do.

Discover, which launched in 1986, also settled on 16 digits to match Visa and Mastercard. This standardization makes it easier for payment systems to recognize and process cards without needing to know the issuer in advance.

What each part of the number means

The first digit is the Major Industry Identifier (MII). For credit cards, this is always 3, 4, 5, or 6. Visa cards start with 4. Mastercard cards start with 5. American Express cards start with 3. Discover cards start with 6.

The next several digits (usually 5 to 8 of them) identify your bank or credit union — the institution that issued the card to you. This is called the Issuer Identification Number (IIN) or Bank Identification Number (BIN). When you swipe or insert your card, the payment terminal reads this part first to route the transaction to the right bank.

The digits in the middle are your account number — the unique identifier for your account at that bank. This is the part that ties the card to your specific credit line.

The final digit is the check digit. It is calculated using the Luhn algorithm, a mathematical formula that validates the entire number. If you type in a card number wrong, the check digit will not match, and the system will reject it before even trying to process a charge.

How the Luhn algorithm protects against typos

The Luhn algorithm works by doubling every other digit, adding them together, and checking whether the sum is divisible by 10. If someone types in a card number with a single digit wrong, the check digit will not match, and the transaction will fail immediately.

This does not prevent fraud — a criminal with your full card number can still use it. But it does catch honest mistakes. If you are entering your card number manually and make a typo, the system will tell you the number is invalid before you submit payment.

American Express cards look different

American Express cards have 15 digits instead of 16, and the check digit is in a different position. The first two digits are always 34 or 37. The next 13 digits are your account number and bank identifier combined.

American Express also prints a 4-digit security code on the front of the card, above the account number. Visa, Mastercard, and Discover print a 3-digit code on the back. This difference is one reason some older payment systems have trouble with American Express — they were built expecting 16-digit numbers and a 3-digit security code.

Why you should not share your full card number

Your card number, along with your expiration date and CVV, is all a criminal needs to make an online purchase in your name. You should only enter your full card number on a website you trust, or give it over the phone to a merchant you called yourself (not someone who called you).

When you use your card in person, the merchant does not need to see all 16 digits — they only see the last four on the receipt. Online, reputable merchants use encryption to protect your number during transmission. If a website does not have a padlock icon in the address bar or does not start with "https://", do not enter your card number there.

Card numbers and fraud monitoring

Your card issuer monitors the digits themselves as part of fraud detection. If your card number appears in a data breach, the bank may issue you a new card with a new number even if no fraudulent charges have appeared yet. This is why you might receive a new card in the mail without requesting one — the bank is being proactive.

The card number is also tied to your credit history. When you close an account, that number is retired. If you get a replacement card for the same account (because the old one expired or was damaged), you will get a new number, not the old one reissued.

Frequently Asked Questions

Why does American Express have 15 digits instead of 16?

American Express set its own standard when it launched its card network. The 15-digit format has worked for decades, and there is no technical reason to change it. Visa and Mastercard use 16 digits, but both standards are equally valid.

Is the card number the same as the account number?

No. The card number includes the account number, but also includes the bank identifier, the industry identifier, and the check digit. Multiple cards can be linked to the same account (like a primary card and a backup), and each will have a different card number.

Can someone use my card number if they only have the first four digits?

No. They need the full card number, expiration date, and CVV to make a purchase. The first four digits alone tell them only which bank issued the card, not which account it belongs to.

What happens if I type in a card number with one digit wrong?

The payment system will reject it as invalid before attempting to charge you. The Luhn algorithm catches single-digit errors, so the transaction will fail at the validation stage.

Do debit cards have the same number of digits as credit cards?

Yes. Debit cards issued by Visa or Mastercard have 16 digits, just like credit cards from those networks. The number of digits depends on the card network, not on whether the card is debit or credit.