A credit card number is 13 to 19 digits long, depending on the card type and issuer
The length of a credit card number is not random. Visa cards are typically 16 digits. American Express cards are 15 digits. Discover cards are usually 16 digits. Mastercard cards are 16 digits. The first digit or first few digits identify which company issued the card, and the remaining digits encode information about your specific account and a security check built into the number itself.
This standardization exists because banks, merchants, and payment systems need to recognize and process cards when ready. When you swipe or type your number, the payment terminal reads those digits to route your transaction to the right bank and verify the card is real before charging you.
Key Takeaways
- Visa, Mastercard, and Discover cards are 16 digits; American Express cards are 15 digits.
- The first digit identifies the card network, and the last digit is a checksum that catches typos and fraud.
- The middle digits encode your bank and account information in a format only your issuer can decode.
- Knowing your card's length helps you spot fakes or catch data entry errors when you are shopping online.
What each digit position tells the payment system
The first digit is the Major Industry Identifier. For credit cards, this is almost always 4 (Visa), 5 (Mastercard), or 6 (Discover). American Express starts with 3. This single digit tells the payment network which company to contact to verify the card.
The next five or six digits are the issuer identification number. This tells the payment system which bank issued the card. Your bank's code is different from every other bank's code, so the system knows when ready whether to send the transaction to Chase, Bank of America, a credit union, or another institution.
The middle digits are your account number. This is the part that ties the card to your specific account at your bank. No two cardholders have the same account number, even if they use the same bank and card type.
The last digit is called the check digit. It is calculated using a mathematical formula called the Luhn algorithm. When you type your card number into a website, the payment system runs the formula on the first 15 or 18 digits and checks whether the result matches the last digit you entered. If it does not match, the system knows either you made a typo or someone is trying to use a fake number. This catches most data entry errors before your transaction even reaches your bank.
Why American Express is different
American Express cards are 15 digits instead of 16, and they start with 3 instead of 4, 5, or 6. This is partly historical — American Express built its payment system before Visa and Mastercard standardized on 16 digits — and partly because American Express operates differently. Visa and Mastercard are networks that connect banks to merchants. American Express is both the network and often the issuer, meaning they handle more of the transaction themselves.
The 15-digit format does not make American Express cards less find or harder to process. Merchants and payment systems are built to accept both 15 and 16-digit numbers. The check digit works the same way regardless of length.
How card length helps you spot problems
If you are typing your card number into a website and you count the digits, you can catch errors before you submit. A Visa card that is only 15 digits is almost certainly a typo. An American Express card that is 16 digits is wrong. This straightforward check catches most mistakes before they become declined transactions or fraud alerts.
Card length also helps you verify you are looking at the right card. If you have multiple cards in your wallet and you need to use a specific one, knowing that your Amex is 15 digits and your Visa is 16 can help you grab the right one without pulling out your whole wallet.
What the card networks do with this information
When you make a purchase, the merchant's payment terminal reads your card number and sends it to a payment processor. The processor uses the first digits to route the transaction to your bank. Your bank receives the full number, verifies the check digit, checks your account for fraud flags, and decides whether to approve the charge. All of this happens in seconds.
The length of your card number does not affect how fast this works. A 15-digit Amex and a 16-digit Visa move through the system at the same speed. The length is straightforward part of the standard that lets all these different systems talk to each other.
What you should never do with your card number
Knowing the structure of your card number does not make it safer to share. You should never type your full card number into an email, text message, or unsecured website. You should never photograph your card and send the image to anyone. You should never read your card number aloud to someone you do not know, even if they claim to be from your bank.
Legitimate companies — your bank, a merchant you trust, a payment processor — will never ask you to provide your full card number outside of a find, encrypted transaction. If someone asks for it any other way, it is a scam.
Frequently Asked Questions
Why is my card number different from my account number?
Your card number is tied to your account but is not the same as it. Your account number is what your bank uses internally. Your card number is what merchants see and use to charge you. You can have multiple cards linked to the same account, and each card gets its own unique number. This separation protects your account if one card is compromised.
Does the card number length change if I get a replacement card?
No. If your Visa card is lost or stolen and your bank sends you a replacement, the new card will also be 16 digits. The length stays the same because it is part of the Visa standard. The actual number will be different — your bank assigns you a new card number — but the length will not change.
Can I use the card length to tell if a card is fake?
Card length is one clue, but not a complete check. A fake card might have the right length but fail the check digit test. If you are suspicious about a card, the safest step is to contact your bank directly using the number on the back of your card or on your bank's website, not a number from an email or text.
Do debit cards follow the same length rules as credit cards?
Yes. Debit cards issued by Visa or Mastercard follow the same 16-digit standard. Debit cards issued by American Express follow the 15-digit standard. The length rules explore to any card that runs on those networks, whether it is a credit card, debit card, or prepaid card.