Credit card numbers have 13 to 19 digits, depending on the card type and issuer
The length of a credit card number is not random. Each digit serves a purpose, and the total count depends on which card network issued it. Visa cards typically have 16 digits. Mastercard cards also have 16 digits. American Express cards have 15 digits. Discover cards have 16 digits. Some specialty cards and older cards may fall outside these ranges, but these four account for the vast majority of cards in circulation.
The digits are divided into sections that identify the issuer, the account, and include a security check. Understanding this structure helps you recognize a valid card number when you see one, though the length alone does not may provide the card is real or active.
Key Takeaways
- Visa, Mastercard, and Discover cards contain 16 digits; American Express cards contain 15 digits.
- The first digit or first few digits identify the card network (Visa starts with 4, Mastercard with 5, American Express with 3, Discover with 6).
- The digits in the middle identify your specific bank and account number.
- The last digit is a check digit calculated using the Luhn algorithm to detect typos or fraud.
What each section of the number means
A credit card number breaks down into four parts. The first digit or first few digits identify the card network. Visa always starts with 4. Mastercard always starts with 5. American Express always starts with 3. Discover always starts with 6. This is called the Major Industry Identifier, or MII.
The next five to seven digits identify the bank or financial institution that issued the card. This section is called the issuer identification number, or IIN. Different banks have different IINs, so two Visa cards from different banks will have different digits in this section.
The middle digits make up your account number. This is the unique identifier for your specific account at that bank. No two cards from the same bank have the same account number in this section.
The last digit is the check digit. It is calculated mathematically from all the other digits using the Luhn algorithm. Payment processors use this digit to verify that the card number was entered correctly and has not been altered.
Why the length varies between card types
American Express uses 15 digits because it issues and processes its own cards, so it does not need as much space for issuer identification. Visa, Mastercard, and Discover use 16 digits because they are networks that work with thousands of banks worldwide. The extra digit gives them room to encode information about which bank issued the card and which account it belongs to.
Some older cards or specialty cards may have 13 or 14 digits, though these are rare in everyday use. International cards and corporate cards sometimes fall outside the standard ranges as well. The important thing to know is that if a card number does not match the expected length for its network, it is likely either a data entry error or not a valid card number.
How to count the digits on your own card
Look at the front of your card. The long number printed or embossed on the front is your card number. Count each digit from left to right, including any zeros. Do not count spaces or dashes — those are just formatting.
If you are looking at a digital wallet or online account, the card number may be displayed with spaces between groups of four digits. Count only the numbers themselves. For example, if you see "4532 1234 5678 9010", that is 16 digits total, not 16 plus the spaces.
The Luhn algorithm and the check digit
The last digit on your card is not random. It is calculated from the other digits using a formula called the Luhn algorithm. This formula was designed to catch straightforward errors like a single digit being typed wrong or two adjacent digits being reversed.
When you enter your card number online or at a payment terminal, the processor runs the Luhn check automatically. If the check digit does not match the calculation, the transaction is rejected. This is one reason why a single typo in your card number will cause a payment to fail — the check digit will not match the rest of the number.
You do not need to calculate this yourself. It is purely a security measure that runs behind the scenes. But knowing it exists helps explain why card numbers are not just random strings of digits.
What the card number does and does not tell you
The card number tells you which network issued the card, which bank issued it, and which account it belongs to. It does not tell you the cardholder's name, address, or expiration date — those are stored separately. It also does not tell you the card's current balance or whether the account is active.
Knowing the card number length and structure is useful for recognizing whether a number is plausible, but it is not a substitute for actually processing the card through a payment system. A number that is the correct length and passes the Luhn check could still be inactive, stolen, or belong to someone else.
Frequently Asked Questions
Why does American Express have 15 digits instead of 16?
American Express issues and processes its own cards rather than working through a network of banks. This means it needs less space in the number to identify the issuer. The 15-digit format has been standard for American Express since the card was introduced and remains their standard today.
Does the card number length change if the card is renewed?
No. When your card expires and you receive a replacement, the new card will have the same number of digits as the old one. The actual number will be different, but the length will stay the same. A Visa card will always have 16 digits, whether it is your first Visa or your tenth.
Can I tell if a card number is fake just by counting the digits?
Counting digits is a first check, but it is not enough. A number can be the correct length and still be invalid, inactive, or belong to someone else. The Luhn algorithm check catches some errors, but only a payment processor can tell you whether the card is real and active.
What if my card number has a different length than expected?
If your Visa, Mastercard, or Discover card has fewer than 16 digits, or your American Express has fewer than 15, double-check that you are reading the entire number. Some cards have the number split across two lines or printed in a way that makes it straightforward to miss a digit. If you have counted carefully and the number is still shorter than expected, contact your bank to confirm the card is valid.
Is it safe to share my card number if I know how it is structured?
Understanding the structure of a card number does not make it safer to share. Never share your full card number, expiration date, or security code with anyone except a trusted merchant during a legitimate transaction. The structure of the number is public knowledge, but your specific number is sensitive financial information.