Credit cards have 16 digits, but not all of them are the same

Most credit cards issued in the United States have 16 digits printed on the front. These digits are split into four groups of four, which makes them easier to read and remember. However, the length can vary: American Express cards have 15 digits, and some specialty cards or international cards may differ. The digits themselves are not random — each one serves a specific purpose, and understanding what they do helps you spot fraud and use your card safely.

The 16-digit number is called your Primary Account Number, or PAN. It is the main identifier that links the card to your account. When you make a purchase online, over the phone, or in person, the merchant's system reads this number to process the transaction. Your bank uses it to track which account the charge belongs to and whether you have enough available credit.

Key Takeaways

  • Most U.S. credit cards have 16 digits; American Express has 15; the number is called your Primary Account Number.
  • The first digit identifies the card network (Visa, Mastercard, Discover, or American Express), and the first six digits together identify your bank.
  • Digits 7 through 15 are your individual account number, unique to you within your bank's system.
  • The last digit is a check digit that catches typos and fraud attempts using a mathematical formula.
  • Never share your full 16-digit number online unless you are on a secure, encrypted payment page.

What the first digit tells you about your card network

The very first digit of your credit card number identifies which card network issued it. This is called the Major Industry Identifier, or MII. Visa cards always start with 4. Mastercard cards start with 5. Discover cards start with 6. American Express cards start with 3 (followed by a 4 or 7 in the second position). This single digit is how payment systems instantly know which network to route your transaction through.

You can test this yourself: look at any Visa card and the first number will be 4. Look at a Mastercard and it will be 5. This is not a coincidence or a choice — it is a rule set by the card networks themselves. If a card number starts with any other digit, it is either a debit card, a prepaid card, or not a valid payment card at all. Knowing this digit matters if you are troubleshooting a declined transaction or verifying that someone handed you the right type of card.

Digits 2 through 6 identify your specific bank

The first six digits of your card number, taken together, are called the Issuer Identification Number, or IIN. These six digits tell the payment network which bank issued your card. Chase, Bank of America, Citi, Capital One, and every other card issuer has its own set of IIN codes. When a merchant swipes or scans your card, the payment processor uses these six digits to route the transaction to your bank for approval.

This is why your card number changes if you switch banks or get a replacement card from the same bank. The IIN stays the same (because it is still your bank), but the remaining digits shift. You will notice this if you have had the same card for years and then request a replacement due to damage or fraud — the new card will have a different 16-digit number, even though it is linked to the same account.

Digits 7 through 15 are your unique account identifier

After the bank identifier comes your individual account number. These nine digits (positions 7 through 15) are unique to you within your bank's system. No other customer of your bank will have the same sequence in these positions. This is what actually ties the card to your specific credit line, your balance, and your payment history.

The account number is why your bank can instantly pull up your information when you call customer service, even if you do not mention your name. They type in your card number, and the system knows exactly which account, which credit limit, and which payment schedule belongs to that number. If you have multiple cards from the same bank, each one will have a different account number in these positions, even though they may draw from the same overall credit line.

The last digit is a check digit that prevents errors and fraud

The 16th and final digit is called the check digit. It is calculated using a mathematical formula called the Luhn algorithm, which uses all the preceding digits to generate a single number that should appear in the last position. This digit serves two purposes: it catches typos when someone manually enters your card number, and it helps fraud detection systems spot fake or altered card numbers.

Here is how it works in practice: if you mistype your card number by one digit when entering it online, the payment system runs the Luhn check and discovers that the last digit does not match what the formula predicts. The transaction is rejected before it even reaches your bank. Fraudsters know about this check too, which is why they cannot simply guess random 16-digit numbers and hope one works — the check digit will fail almost every time. This is a small but effective layer of protection built into every card number.

Why American Express cards have 15 digits instead of 16

American Express is the exception to the 16-digit rule. Amex cards have 15 digits, arranged in four groups: four digits, six digits, five digits, and then the check digit. The structure is different because American Express operates its own payment network, unlike Visa and Mastercard, which are networks that other banks use to issue cards. Amex issues its own cards directly to consumers, so it designed its numbering system differently.

The first digit on an Amex card is always 3, the second is either 4 or 7, and the remaining digits follow the same logic as other cards — bank identifier, account number, and check digit. If you are entering an Amex number into a form that expects exactly 16 digits, it will reject the card. Most modern payment systems now recognize both 15 and 16-digit cards, but older systems sometimes do not. This is one reason why some online merchants have trouble processing Amex cards, even though the card itself is valid.

Where you will see these digits and how to protect them

Your 16-digit number appears on the front of your physical card, printed or embossed in the center. It also appears on your monthly statement, in your online banking portal, and in your digital wallet if you have added the card to Apple Pay, Google Pay, or another mobile payment app. Each of these places is secure — your bank controls them, and they use encryption to protect the number from being intercepted.

The places to be cautious are anywhere you enter the number manually: email, text message, unfamiliar websites, or over the phone to someone who called you. Legitimate companies will never ask for your full card number via email or text. If you are shopping online, only enter your card number on a page that shows a padlock icon in the address bar and begins with "https://" — the "s" means the connection is encrypted. When in doubt, call the company directly using a phone number from their official website, rather than one provided in an email or text.

Frequently Asked Questions

Is it safe to share my card number online if the website looks legitimate?

Only if the website has a padlock icon and the address starts with "https://". Even then, only enter it on the checkout page itself, not in an email or chat. Legitimate companies never ask for your full card number via email, text, or phone call unless you initiated the contact.

What if I accidentally memorized my card number — should I be worried?

No. Memorizing your card number does not put you at risk. The number alone cannot be used to make a purchase without the card itself (for in-person transactions) or the CVV and expiration date (for online transactions). You would need all three pieces of information for someone to charge your card.

Do all credit cards have 16 digits?

No. American Express has 15 digits. Some specialty cards, business cards, or international cards may have different lengths. Debit cards can also vary. If a card does not fit the standard length, it is usually still valid — the payment system will recognize it.

Can I use my card number without the physical card?

Yes, for online and phone purchases. You will need the 16-digit number, the expiration date, and the CVV (the three-digit security code on the back). For in-person purchases, you need the physical card itself, though some stores now accept contactless payments from your phone.

What does the CVV have to do with the 16 digits?

The CVV is separate from the 16-digit number. It is a three-digit code on the back of your card (or four digits for American Express, on the front). Together, the 16-digit number, expiration date, and CVV make up the information needed for online purchases. The CVV is never stored in the payment system, which is why merchants cannot process a transaction if they only have your card number.