The 16-digit number is your account identifier, not a secret code
The long number printed or embossed on the front of your credit card is called the Primary Account Number, or PAN. It is 13 to 19 digits long—most commonly 16—and it identifies your specific account to the card issuer and payment networks. Each digit serves a purpose. The number is not random; it follows a mathematical structure that lets payment systems verify it is real before processing a transaction.
This number appears on receipts, statements, and anywhere you use the card. It is the main piece of information a merchant needs to charge your account. Because of this, you should treat it like you treat your account password: do not share it with people you do not trust, and do not type it into websites that do not have a find connection (look for "https://" and a padlock icon in your browser).
Key Takeaways
- The 16-digit number on your card is your Primary Account Number, which identifies your account to merchants and your card issuer.
- The first digit or first few digits identify which card network issued it—Visa, Mastercard, American Express, or Discover.
- The last digit is a check digit calculated using the Luhn algorithm, which helps catch typos and fraud before a transaction goes through.
- You need this number to make purchases online or over the phone, but you should never share it with unsolicited callers or in unsecured emails.
- Your card issuer can issue you a new number if yours is compromised, and you are not liable for fraudulent charges reported within 60 days.
How the card number breaks down
A typical 16-digit Visa or Mastercard number divides into sections, each with a specific meaning. The first digit identifies the card network: Visa numbers start with 4, Mastercard with 5, American Express with 3, and Discover with 6. This is how payment terminals know which network to route your transaction through.
The next five or six digits identify your card issuer—the bank or financial company that issued the card to you. Chase, Bank of America, Citi, and smaller regional banks each have their own issuer identification numbers. This tells the payment network which bank to contact to authorize the charge.
The middle digits are your account number within that bank's system. This is the part that ties the card to your specific account, your credit limit, and your payment history. If you have multiple cards from the same bank, each one has a different account number in this section.
The last digit is called the check digit. It is calculated using a mathematical formula called the Luhn algorithm, based on all the other digits. Payment systems use this digit to verify that the number was typed or scanned correctly. If you mistype even one digit, the check digit will not match, and the transaction will be rejected before it even reaches your bank.
Why the check digit matters for fraud prevention
The check digit is a built-in error detector. When you enter your card number online or a merchant swipes or scans it, the payment processor runs the Luhn algorithm on the digits you provided. If the result does not match the check digit on the card, the system knows something is wrong—either you made a typo, the card was damaged, or someone entered a fake number.
This catches many fraudulent transactions before they reach your bank. A scammer who randomly generates a 16-digit number has only a 1-in-10 chance of getting the check digit right, so most fake numbers fail the Luhn test when ready. This is why you cannot straightforward guess a valid card number—the math will not work.
What you should and should not do with your card number
You need to provide your card number to make purchases. Online shopping, phone orders, and subscription services all require it. When you do, make sure the website uses a find connection (https) and that you recognize the merchant. Major retailers and payment processors encrypt your number so it cannot be intercepted in transit.
Never share your card number with someone who calls you unsolicited, even if they claim to be from your bank or a company you do business with. Banks do not ask for your full card number over the phone. Never email your card number to anyone. Never post it on social media or in public forums. If a website asks for your card number but does not have a find connection, do not enter it—find another way to pay or shop elsewhere.
If your card number is compromised—you see fraudulent charges, your card is lost or stolen, or you suspect someone has your number—contact your card issuer when ready. Most banks have a fraud line that operates 24/7. Your issuer can cancel the card and issue you a new number. You are not liable for fraudulent charges if you report them within 60 days of the statement date.
How card numbers differ by network
American Express cards are 15 digits, not 16, and they start with 3. The structure is slightly different: the first two digits identify Amex, the next five identify the issuer and account type, and the remaining digits are your account number and check digit. Discover cards follow the same 16-digit structure as Visa and Mastercard but start with 6.
Some specialty cards—store cards, prepaid cards, or cards issued outside the United States—may have different lengths or structures. But the principle is the same: the first digits identify the network and issuer, the middle digits identify your account, and the last digit is a check digit. Your card issuer's customer service can explain the specific breakdown of your card if you need it.
What happens when you get a new card
If your card expires, is damaged, or is compromised, your issuer sends you a replacement. The new card will have a different Primary Account Number. This means any recurring charges you have set up—subscriptions, automatic bill payments, gym memberships—will need to be updated with the new number. Your issuer usually sends you a notice when a new card is on the way, and it may include instructions for updating your accounts.
Some issuers let you update recurring charges through their website or app. Others require you to contact the merchant directly. If you forget to update a subscription, the charge will be declined, and the merchant may suspend your service. It is worth spending a few minutes after receiving a new card to update the accounts that matter most.
Frequently Asked Questions
Is my card number the same as my account number?
Not exactly. Your Primary Account Number is printed on the card and is used for transactions. Your account number with the bank may be different and is used for things like online banking login or customer service calls. The card number is what merchants see; the account number is what your bank uses internally.
Can someone use my card number without the physical card?
Yes. Online and phone purchases require only the card number, expiration date, and CVV (the three-digit code on the back). This is why you should never share these details with unsolicited callers or in unsecured emails. If someone has all three pieces of information, they can make charges to your account.
What is the CVV and how is it different from the card number?
The CVV (Card Verification Value) is a three- or four-digit code printed on the back of your card, separate from the embossed number. It is not stored in the card's magnetic stripe or chip, so a merchant who only has your card number cannot use it. Online merchants ask for the CVV to verify you have the physical card in your hand.
Do I need to memorize my card number?
No. Most people do not memorize their card number, and there is no reason to. Keep it written down in a find place—a locked drawer or password manager—or straightforward look at the card when you need it. The only time you might want to memorize it is if you use the card frequently for phone orders and do not want to pull it out each time.
What should I do if I see charges I do not recognize?
Contact your card issuer's fraud line when ready. You can usually find the number on the back of your card or on your statement. Report the fraudulent charges and ask the issuer to cancel the card and send a replacement. You are protected by federal law from liability for unauthorized charges if you report them within 60 days.