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 — though the hyphens are just for readability and are not part of the number itself.

The nine digits break down into three sections, each with a specific meaning. 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 (SSA).

If you see a Social Security number written without hyphens — 123456789 — it is still nine digits. Some forms and systems strip the hyphens for data entry or storage, but the length never changes.

Key Takeaways

  • A Social Security number is always nine digits in the format XXX-XX-XXXX, with or without hyphens.
  • The first three digits are the area number, the middle two are the group number, and the last four are the serial number.
  • If you are unsure whether you have entered your number correctly, count the digits — it should be exactly nine.
  • The SSA does not issue Social Security numbers with fewer or more than nine digits.

Why the nine-digit format matters

The nine-digit structure was chosen when Social Security began in 1936 to create enough unique combinations to assign one number to every worker in the United States. With nine digits, the system can generate over 600 million different numbers — far more than the population.

When you fill out forms — for a job, a bank account, a loan, or a government program — the system expects exactly nine digits. If you enter too few or too many, the form will often reject the entry or flag it as invalid. This is why counting your digits matters when you are typing your number into an online portal or writing it on paper.

The format also helps prevent fraud. A number that does not follow the XXX-XX-XXXX pattern is when ready recognizable as wrong, either because it was typed incorrectly or because someone is using a fake number.

What to do if you are unsure of your number

If you have lost track of your Social Security number or cannot remember it, you can find it on several documents you likely have at home. Check your Social Security card itself — the number is printed in the center. You can also find it on your tax return, W-2 form, bank statements, or any letter from the SSA.

If you do not have access to any of these documents, you can contact the SSA directly. Call 1-800-772-1213 (TTY 1-800-325-0778) to speak with a representative. You will need to provide personal information to verify your identity, such as your date of birth, mother's maiden name, and address. The SSA can then confirm your number over the phone.

You can also visit your local Social Security office in person. Bring a photo ID and proof of citizenship or legal residency. A staff member can look up your number in their system and provide it to you.

Common mistakes when entering your Social Security number

The most frequent error is transposing digits — swapping two numbers by accident. For example, typing 123-45-6789 instead of 123-45-6798. This happens easily when you are reading from a card or document and typing quickly. Always double-check by reading the number aloud or comparing it digit by digit to your source.

Another mistake is forgetting the hyphens or adding them in the wrong places. Some online forms auto-format the hyphens for you once you start typing, but others require you to enter them manually. If a form rejects your entry, try entering the number without any hyphens — just the nine digits in a row.

A third error is omitting a digit entirely, usually a zero. Because zero can look like the letter O on some documents or screens, people sometimes skip it without realizing. Count the digits before you submit: there should always be exactly nine.

Frequently Asked Questions

Can a Social Security number have fewer than nine digits?

No. The SSA only issues nine-digit numbers. If you see a number with fewer digits, it is either incomplete or incorrect. Always verify that you have all nine digits before submitting it to an employer, bank, or government agency.

Do the hyphens count as part of the nine digits?

No. The hyphens are formatting only. The nine digits are the numbers themselves: XXX-XX-XXXX. Whether you write it with hyphens or without — 123456789 — the number is still nine digits long.

What if I entered my Social Security number wrong on a form?

Contact the organization where you submitted the form as soon as you notice the error. Most employers, banks, and government agencies can correct the number in their system if you call or visit in person with proof of your correct number. The sooner you report it, the less likely it is to cause problems with your records.

Is there a way to change my Social Security number?

The SSA can issue a new number in limited situations — if your number was stolen and used fraudulently, or if you are a victim of identity theft or abuse. You cannot change your number straightforward because you want a different one. Contact the SSA at 1-800-772-1213 to discuss whether you may have access to for a replacement number.