Credit card numbers are 13 to 19 digits long, most commonly 16
A credit card number is the long string of digits printed or embossed on the front of your card. The length varies by card type and issuer. Visa, Mastercard, and Discover cards are typically 16 digits. American Express cards are 15 digits. Some specialty cards, store cards, and international cards can be 13, 14, or 19 digits, though these are less common in the United States.
The number itself is not random. Each digit has a purpose, and the entire sequence encodes information about your account, your bank, and the card network. Understanding this structure helps you spot errors when you enter your number online or over the phone, and it explains why your card number is so long in the first place.
Key Takeaways
- Visa, Mastercard, and Discover cards have 16 digits; American Express has 15 digits.
- The first digit identifies the card network (4 for Visa, 5 for Mastercard, 3 for American Express, 6 for Discover).
- Digits 2 through 6 identify your bank and the type of card you hold.
- The last digit is a check digit that validates the entire number using a mathematical formula.
- The remaining digits in the middle are your unique account number at that bank.
What the first digit tells you
The first digit is the Major Industry Identifier (MII). It tells you which card network issued your card. A 4 means Visa. A 5 means Mastercard. A 3 means American Express (though American Express cards starting with 34 or 37 are the most common). A 6 means Discover.
This is why you can often tell what type of card someone has just by looking at the first digit. It is also why payment processors can instantly reject a card number that starts with a digit that does not match the network you claim to be using. If you type a number starting with 4 into a Mastercard-only form, the system will catch it before it even tries to process the charge.
Digits 2 through 6: Your bank and card type
The next five digits (positions 2 through 6) make up the Issuer Identification Number (IIN), also called the Bank Identification Number (BIN). These digits identify which bank issued your card and what kind of card it is — whether it is a rewards card, a business card, a secured card, or a standard card.
When you call your bank's customer service line and give them your card number, they use these digits to pull up your account instantly. Merchants and payment processors also use the IIN to route your transaction to the correct bank and to check whether your card is active and in good standing. If your card is flagged for fraud, the bank updates the IIN records so that future transactions are declined.
The middle digits: Your account number
The digits between the IIN and the final check digit are your account number. On a 16-digit Visa or Mastercard, this is typically digits 7 through 15 — nine digits that are unique to your account at your bank. On a 15-digit American Express card, it is digits 7 through 14.
This is the part of your card number that ties the physical card to your specific account. Two people with cards from the same bank will have the same first six digits but different account numbers. Your bank uses this section to match the card to your balance, your payment history, and your credit line.
The last digit: The check digit
The final digit is a check digit, calculated using the Luhn algorithm (also called the mod-10 algorithm). Your bank computes this digit based on all the other digits in your card number. When you enter your card number online or swipe it at a terminal, the payment processor runs the same calculation to verify that the number is mathematically valid.
This is a fraud-prevention measure. If you mistype even one digit, the check digit will not match, and the transaction will be rejected before it ever reaches your bank. Scammers cannot simply guess random 16-digit numbers and expect them to work — the check digit makes that nearly impossible. This is also why you should double-check your card number when you type it in; a single typo will cause the payment to fail.
Why card numbers are so long
The length of your card number exists because the payment system needs to encode multiple pieces of information in a single string. The first digit identifies the network. The next five identify your bank and card type. The middle digits are your account number. The last digit validates the whole thing. All of this has to fit into a number that is easy enough to read and type, but long enough to be mathematically secure.
A shorter number would not provide enough unique combinations to give every cardholder a distinct account number. A longer number would be harder to read and more prone to typing errors. Sixteen digits (for Visa and Mastercard) strikes a balance between security, uniqueness, and usability. American Express uses 15 digits because their card structure is slightly different, but the principle is the same.
How to verify your card number is correct
If you are entering your card number into a website or over the phone, you can catch errors before you submit. First, count the digits — you should have 16 for Visa, Mastercard, or Discover, or 15 for American Express. Second, check that the first digit matches your card type (4 for Visa, 5 for Mastercard, 3 for American Express, 6 for Discover). Third, look at the card itself to make sure you are reading the embossed or printed numbers correctly, not the security code or expiration date.
If a payment is declined and you are sure your card is active and has available credit, a mistyped card number is often the culprit. Go back and re-enter it slowly, digit by digit. Many payment forms will also tell you if the number fails the check digit test — you will see an error like "invalid card number" rather than "transaction declined," which signals a typo rather than an account problem.
Frequently Asked Questions
Why is my card number different from my account number?
Your card number is a 16-digit identifier for that specific physical card. Your account number is the 9-digit sequence embedded within it (digits 7 through 15 on most cards). You can have multiple cards linked to the same account, and each card will have a different card number but the same underlying account number. Your bank uses both to process transactions correctly.
Can someone use my card number if they only have the 16 digits?
They can attempt an online purchase, but most merchants also require the expiration date and the three-digit security code on the back of the card. If they have only the card number, they cannot use it at a physical store that requires a chip or magnetic stripe. For online fraud, the security code is the main barrier — it is not printed on receipts and is not stored in merchant databases, so a stolen card number alone is usually not enough.
Do all Visa cards start with 4?
Yes. All Visa cards start with the digit 4. All Mastercard cards start with 5. All American Express cards start with 3. All Discover cards start with 6. This is part of the card network standard and never changes. If a card number starts with a different digit, it is either not a valid card or it belongs to a different payment network.
What does the security code have to do with the card number?
The security code (CVV or CVC) is separate from the card number. It is a three- or four-digit code printed on the back of your card that is not part of the embossed number. It serves as proof that you physically have the card in your hand. The card number and security code together are what merchants need to process an online purchase.
If my card number is 16 digits, why do some forms ask for more?
Forms that ask for more than 16 digits are usually asking for additional information — your name, expiration date, security code, or billing address — in separate fields. The card number itself is always 16 digits for Visa, Mastercard, and Discover. If a form is asking for more than 16 digits in a single "card number" field, that is unusual and you should verify the form is legitimate before entering any information.