A Social Security number has nine digits

A Social Security number (SSN) is always nine digits long. The format is XXX-XX-XXXX — three digits, then two digits, then four digits, separated by hyphens. You will see it written that way on official documents, in your mail, and on your Social Security card.

Those nine digits are not random. Each section means something. The first three digits are the area number, the middle two are the group number, and the last four are the serial number. Together, they create a unique identifier assigned to you by the Social Security Administration.

If you ever see something claiming to be a Social Security number that is longer or shorter than nine digits, or that uses a different format, it is not a real SSN. Scammers sometimes use fake numbers in phishing emails or phone calls, so knowing the correct format helps you spot a fraud.

Key Takeaways

  • A Social Security number is always exactly nine digits in the format XXX-XX-XXXX.
  • The first three digits are the area number, the middle two are the group number, and the last four are the serial number.
  • If a number you receive is longer, shorter, or in a different format, it is not a legitimate Social Security number.
  • The Social Security Administration assigns SSNs; no other organization issues them.

Why the format matters when you are giving out your number

When you write your Social Security number on a form — at a doctor's office, a bank, or a government agency — use the standard format with hyphens: XXX-XX-XXXX. This is what the organization expects and what their computer systems are set up to read.

Some online forms ask you to enter the number without hyphens, just nine digits in a row. Follow the instructions on that specific form. If the form rejects what you typed, it usually means the system is looking for a different format — try adding or removing the hyphens.

Never give your full Social Security number to someone who calls you, texts you, or emails you asking for it. The Social Security Administration, your bank, and your doctor's office already have your number on file. If they need to confirm it, they will ask you to verify the last four digits only.

What to do if you lose track of your number

If you need to find your Social Security number, check documents you already have. Your SSN appears on your Social Security card, your tax return, your W-2 form from your employer, and any mail from Social Security or the IRS.

You can also create a my Social Security account at ssa.gov. Once you set up an account with your name, date of birth, email address, and a phone number, you can log in to see your number and other information Social Security has on file for you. This account also lets you check your earnings record and see estimates of your future benefits.

If you have lost your Social Security card itself, you can order a replacement through your my Social Security account or by visiting your local Social Security office in person. You will need to bring proof of identity and proof of citizenship or legal residency. There is no charge for a replacement card.

How Social Security numbers are assigned

The Social Security Administration assigns a number to you when you are born or when you first move to the United States. You do not choose your number, and you cannot change it once it is assigned to you.

For many years, the area number (the first three digits) told you which state the number was issued in. That is no longer true. Since 2011, Social Security has assigned numbers randomly, so you cannot figure out where someone's number came from by looking at the first three digits.

Each number is assigned only once. Two people will never have the same Social Security number. This is why it is so important to protect your number — if someone else uses it, it can create problems with your taxes, your credit, and your benefits.

Protecting your nine-digit number

Your Social Security number is sensitive information. Treat it the way you would treat a password. Do not carry your Social Security card in your wallet unless you need it that day. Do not write your number on a check. Do not post it on social media or in emails.

When you are at a doctor's office or a business and they ask for your Social Security number, you can ask why they need it. Many organizations ask for it out of habit, but do not actually need it. If you are uncomfortable sharing it, ask if they can use a different form of identification instead.

If you think someone has stolen your Social Security number, contact the Social Security Administration right away. You can call 1-800-772-1213 or visit ssa.gov to report the theft. You should also place a fraud alert with the three credit bureaus (Equifax, Experian, and TransUnion) and monitor your credit report for unauthorized accounts.

Frequently Asked Questions

Can I change my Social Security number?

You cannot change your number straightforward because you want a different one. The Social Security Administration will assign you a new number only in cases of identity theft, harassment, or religious or cultural objections to your current number. You must have a valid reason and provide documentation. Contact your local Social Security office to discuss your situation.

What if I see a Social Security number with more or fewer than nine digits?

It is not a real Social Security number. Scammers sometimes create fake numbers for phishing schemes or identity theft. If you received a number that does not follow the XXX-XX-XXXX format, do not trust it. Report it to the Social Security Administration if you believe it was part of a fraud attempt.

Do I need to memorize my Social Security number?

It is helpful to know your number, but you do not have to memorize it. Keep it written down in a safe place at home — a locked drawer or safe, not on a sticky note on your desk. You can also store it in a password-protected document on your computer. Never store it in your phone's notes app or in an unencrypted email.

Is my Social Security number the same as my tax ID number?

For most people, yes. Your Social Security number serves as your tax identification number when you file taxes. However, if you are self-employed or own a business, you may have an Employer Identification Number (EIN) in addition to your SSN. An EIN is nine digits but is used for business purposes, not personal identification.