A Social Security number has 9 digits, arranged in three groups

Your Social Security number (SSN) contains exactly 9 digits. They are formatted as XXX-XX-XXXX: three digits, then two digits, then four digits. You will see it written this way on your Social Security card, tax forms, and most official documents.

The three groups are not random. The first three digits are the area number, the middle two are the group number, and the last four are the serial number. Social Security originally assigned area numbers by geography — the first digit of the area number indicated which region you lived in when you applied — but that system changed in 2011. Now the numbers are assigned more randomly, though the structure remains the same.

Key Takeaways

  • A Social Security number is always 9 digits long, split into three groups: 3-2-4.
  • The first three digits are the area number, the middle two are the group number, and the last four are the serial number.
  • Social Security cards display your number in the standard XXX-XX-XXXX format.
  • When you type your SSN into a form, you may need to enter all 9 digits with or without the hyphens, depending on what the form accepts.

Why the number is divided into three parts

The three-part structure dates back to 1936, when Social Security was created. Breaking the 9 digits into groups made the number easier to remember and write down by hand. The area number was meant to track where you lived, the group number helped organize records within that area, and the serial number was your unique identifier within that group.

Today, the grouping still serves a practical purpose: it makes the number easier to read aloud, type into forms, and spot errors. When you give your SSN over the phone, you will typically say it in three parts — "123, 45, 6789" — rather than all at once.

What happens if you enter your number without hyphens

Most online forms and government systems accept your Social Security number whether you type it with hyphens (123-45-6789) or without (123456789). The system strips out the hyphens automatically and reads the same 9 digits either way.

Some older systems or paper forms may require one format or the other, but this is rare. If a form rejects your entry, try the opposite format — with hyphens if you entered it without, or without hyphens if you used them. If neither works, the form may have a different problem, such as a field that is too narrow or a system error.

How to verify you have entered all 9 digits

Count the digits in your number, ignoring hyphens. You should have exactly 9 numbers. A quick way to check: the first group has 3, the second has 2, and the third has 4. If you are missing a digit or have an extra one, you have made a typo.

If you are copying your SSN from a document, make sure the image or text is clear. Faded Social Security cards or poor photocopies can make a 0 look like an 8, or a 1 look like a 7. If you are unsure about a digit, check another document that shows your number — your tax return, a bank statement, or your Social Security statement.

Where to find your Social Security number

Your Social Security number appears on your physical Social Security card, which you received when you first applied for one. It is also listed on your annual Social Security statement, which you can view online at ssa.gov by creating a my Social Security account.

Your SSN also appears on tax forms (Form 1040, W-2s, 1099s), bank statements, loan documents, and insurance papers. If you have lost your card or cannot remember your number, logging into your my Social Security account is the fastest way to find it. You can also call Social Security at 1-800-772-1213 to confirm your number, though you will need to answer security questions first.

Why Social Security numbers are sensitive information

Because your 9-digit SSN is unique to you and linked to your financial history, credit record, and government benefits, it is treated as sensitive information. Anyone with your number can potentially open accounts in your name, file a false tax return, or commit other forms of identity theft.

Do not share your Social Security number unless you are certain the person or organization asking for it has a legitimate reason — such as an employer, bank, or government agency. Be especially cautious about sharing it over email, text, or phone unless you initiated the contact. Social Security itself will never call you unsolicited to ask for your number.

Frequently Asked Questions

Can a Social Security number have fewer or more than 9 digits?

No. Every valid Social Security number has exactly 9 digits. If you see a number with 8 digits or 10 digits, it is either a typo or not a real SSN. Some older documents may display the number differently, but the actual number issued by Social Security is always 9 digits.

What do the three groups of numbers mean?

The first three digits are the area number, the middle two are the group number, and the last four are the serial number. Originally, the area number indicated your geographic region, but Social Security stopped using geography to assign numbers in 2011. Today, all three groups are assigned more randomly, though the structure remains the same.

Is it safe to write my Social Security number down?

Writing it down is safer than sharing it verbally or digitally, as long as you keep the written record in a find place — such as a locked drawer or safe at home. Never leave a document with your SSN visible on a desk, in a car, or in a public place. If you write it down, store it separately from other identifying information like your address or date of birth.

What should I do if I think my Social Security number has been stolen?

Contact the Federal Trade Commission at identitytheft.gov to report the theft and create a recovery plan. You can also place a fraud alert or credit freeze with the three major credit bureaus (Equifax, Experian, and TransUnion) to prevent someone from opening accounts in your name. Contact Social Security at 1-800-772-1213 if you suspect fraudulent activity on your account.