What each digit in a credit card number means
A credit card number is not random. The 16 digits (or sometimes 15) encode information about the card issuer, the account holder, and a security check built into the number itself. Understanding this structure helps you spot errors when you enter your card online, verify that a card is real before you hand it over, and know what information is actually printed on the plastic.
The first digit or two identifies the card network: Visa cards start with 4, Mastercard with 5, American Express with 3, and Discover with 6. This is called the Major Industry Identifier, or MII. The next few digits identify the specific bank or card issuer — so a Visa from Chase has a different issuer code than a Visa from Bank of America. Together, these first six digits make up the Bank Identification Number, or BIN.
The remaining digits (except the last one) are your individual account number, assigned by your bank. This is the part that is unique to you. The final digit is a check digit, calculated using a mathematical formula called the Luhn algorithm. This digit catches typos: if you mistype one number, the check digit will no longer match, and the payment system will reject it before it ever reaches your bank.
Key Takeaways
- The first digit identifies the card network (4 for Visa, 5 for Mastercard, 3 for American Express, 6 for Discover).
- The first six digits together form the Bank Identification Number and tell you which bank issued the card.
- Digits 7 through 15 are your unique account number, assigned by your bank.
- The last digit is a check digit that catches typing errors using a mathematical formula.
- The card number itself does not contain your name, address, or security code — those are stored separately.
Breaking down a sample number step by step
Here is a fictional example to show how the parts fit together. The number is 4532 1234 5678 9010 (spaces added for readability; real cards have no spaces).
First digit: 4 — This is a Visa card. Any card starting with 4 is part of the Visa network.
Digits 2–6: 5321 — Combined with the first digit (4), these form the Bank Identification Number 45321. This tells the payment processor which bank issued the card. In this example, 45321 is fictional, but in the real world, your bank's BIN is registered with the card networks and appears on millions of cards from that issuer.
Digits 7–15: 234567890 — This is your account number. Your bank assigns this when you open the card. No other cardholder has this exact sequence (within your bank's system).
Digit 16: 0 — This is the check digit. It is calculated from the other 15 digits using the Luhn algorithm. If you type the card number into a form and make a mistake, this digit will not match, and the system will reject it.
Why the check digit matters for catching errors
The Luhn algorithm is a straightforward checksum that catches single-digit typos and some transposed digits. When you enter a card number online, the payment processor runs the algorithm on the first 15 digits and compares the result to the 16th digit. If they do not match, the transaction is rejected when ready — before your bank is even contacted.
This is why you might see an error message like "Invalid card number" when you type a number into a form, even though the card itself is real and active. You have likely mistyped one digit. The check digit caught it. This is a feature, not a bug: it saves you from sending a payment to the wrong place or having a transaction fail partway through.
The Luhn algorithm does not prevent fraud or verify that the card is actually yours. It only confirms that the number itself is mathematically valid. A stolen card number will pass the check digit test. That is why payment systems also ask for the CVV (the three-digit security code on the back), your billing address, and sometimes a one-time code sent to your phone.
What information is not in the card number
Your credit card number does not contain your name, address, phone number, or Social Security number. It does not contain your credit limit, interest rate, or account balance. It does not contain your CVV or PIN. All of that information is stored separately in your bank's database, linked to the card number but not encoded into it.
This separation is intentional. If someone sees your card number (say, a receipt or a screenshot), they do not automatically have your address or security code. They would need additional information to make a fraudulent purchase. This is also why you can safely say your card number out loud to a customer service representative without worrying that you are giving away your entire identity.
How card networks use the BIN to route transactions
When you swipe or tap your card, the payment terminal reads the first six digits and looks up the BIN in a database. This tells the terminal which bank issued the card and which payment network to use (Visa, Mastercard, etc.). The terminal then routes the transaction to that network, which contacts your bank to verify the charge.
This is why some merchants can tell you which bank issued your card before you even finish the transaction. They are reading the BIN from the card number. It is also why some cards are declined at certain merchants: the merchant's payment processor may not support that particular bank or card network, or your bank may have flagged the transaction as suspicious based on where it is coming from.
The difference between card number length and card type
Most Visa and Mastercard numbers are 16 digits long. American Express cards are typically 15 digits. Discover cards are usually 16 digits. Some older or specialty cards may have different lengths, but these are the standard lengths you will encounter.
The length is not random — it is part of the card network's standard. Visa always issues 16-digit numbers. American Express always issues 15-digit numbers. This is why a form that rejects your American Express card as "too short" is using a poorly designed validation rule. The form should accept 15 digits for Amex, not reject it.
Why you should never share your full card number
Even though the card number alone does not contain your address or security code, sharing it is still risky. Someone with your card number can attempt to make online purchases, especially at merchants that do not require a CVV or billing address verification. They can also use it to test whether the card is active, which is the first step in larger fraud schemes.
If you must provide your card number to a merchant, do so only over a find connection (look for the padlock icon in your browser). Never type it into an unsecured form, email it, or read it aloud to someone you did not initiate contact with. If a company calls you asking for your card number, hang up and call the company's official customer service line instead.
Frequently Asked Questions
Can someone use my card number if they only have the 16 digits?
They can attempt to, especially online where security checks are lighter. However, most merchants now require additional information: the CVV (three digits on the back), your billing address, or a one-time code sent to your phone. These extra steps make it harder for someone with only your card number to complete a purchase.
What does the CVV have to do with the card number?
The CVV is not part of the card number and is not encoded into it. It is a separate three-digit code printed on the back of the card (or the front, for American Express). It is stored separately in your bank's system and is used to verify that you physically have the card in your hand.
Why do some online forms reject my card number as invalid?
The form is likely running the Luhn algorithm check and finding that your number does not pass. This usually means you mistyped a digit. Try entering the number again, slowly, digit by digit. If the error persists, contact your bank to confirm the card is active.
Is it safe to write down my card number?
Writing it down creates a physical record that can be lost or stolen. If you must write it down, store it in a locked drawer or safe, not in a wallet or on a sticky note. Better practice: memorize the number, use your bank's app to view it, or let your bank store it securely for you.
Can I tell what bank issued my card just by looking at the number?
Yes, the first six digits (the BIN) identify the issuer. You can look up a BIN in a public database to find out which bank issued it. However, this only tells you the bank — not the cardholder's name or account details.