A Social Security number is nine digits long, written as XXX-XX-XXXX
Your Social Security number (SSN) contains exactly nine digits. They are divided into three parts: the first three digits (called the area number), the middle two digits (the group number), and the last four digits (the serial number). The standard format you see on documents and statements is XXX-XX-XXXX, with hyphens separating each section.
The nine-digit structure has been the standard since Social Security numbers were first issued in 1936. Every SSN follows this same length and format, whether it was issued decades ago or recently. There are no exceptions to this nine-digit rule — if a number has a different length, it is not a valid Social Security number.
Key Takeaways
- A Social Security number is always nine digits, formatted as three digits, then two digits, then four digits (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.
- This nine-digit structure has remained unchanged since Social Security numbers were created in 1936.
- If you encounter a number that is not nine digits long, it is not a valid Social Security number.
Why the nine-digit format matters
The nine-digit length allows the Social Security Administration (SSA) to create a unique number for each person. With nine digits, there are one billion possible combinations — more than enough to assign a different number to every person in the United States and many more. The three-part structure also makes the number easier to read and remember than a single string of nine digits would be.
When you write your SSN on forms, documents, or statements, always use the XXX-XX-XXXX format with hyphens. Some digital systems may ask you to enter the number without hyphens, but the underlying number itself remains nine digits. Government agencies, employers, banks, and other organizations all expect SSNs to follow this standard format.
Where you will see your Social Security number
Your SSN appears on your Social Security card, which the SSA mails to you when your number is first issued. The card displays your nine-digit number in the standard format. You will also see it on tax documents like your W-2 form from your employer, on 1099 forms for other income, and on your tax return when you file with the Internal Revenue Service (IRS).
Banks and financial institutions display your SSN on account statements and tax documents like 1099-INT forms for interest income. Your employer uses it to report your wages to the SSA and IRS. Healthcare providers, insurance companies, and government agencies also use your nine-digit SSN to identify you in their records. In all cases, the number remains exactly nine digits.
How the three parts of your SSN are assigned
The SSA does not assign the three parts of your number randomly. The first three digits (area number) historically indicated the state where you applied for your Social Security number, though this is no longer strictly true. The middle two digits (group number) and the last four digits (serial number) are assigned in a specific order based on when your number was issued.
In 2011, the SSA changed how it assigns numbers. It stopped using the area number to indicate geography and began randomizing all nine digits. This means a new SSN issued today does not reveal where the person applied for it. However, the nine-digit length and XXX-XX-XXXX format remain exactly the same for all numbers, old and new.
Protecting your nine-digit number
Because your SSN is unique to you and used to identify you across government, financial, and healthcare systems, protecting it is important. Do not share your full nine-digit number unless you have a clear reason to do so — for example, when opening a bank account, filing taxes, or explore for a job. Be cautious about sharing it online or over the phone unless you initiated the contact and trust the organization.
When you need to write your SSN on a form, consider whether all nine digits are truly necessary. Some organizations ask for only the last four digits for verification purposes. If you are unsure whether to provide your full number, ask the organization what they actually need. Limiting who has access to your complete nine-digit SSN reduces the risk of identity theft or fraud.
What to do if you lose track of your number
If you need to find your nine-digit Social Security number, check your Social Security card first. If you no longer have the card, look at recent tax documents, W-2 forms, or bank statements — all of these display your full SSN in the standard nine-digit format. You can also contact the Social Security Administration directly to request a replacement card or to confirm your number.
To request a replacement Social Security card, visit your local Social Security office or go to ssa.gov. You will need to provide proof of identity and citizenship or legal residency. The SSA will issue you a new card with the same nine-digit number you have always had — your number never changes, even if your card is lost or damaged.
Frequently Asked Questions
Can a Social Security number be longer or shorter than nine digits?
No. Every valid Social Security number is exactly nine digits long in the format XXX-XX-XXXX. If you see a number with a different length, it is not a real Social Security number. The nine-digit structure has been standard since 1936 and applies to all numbers issued by the Social Security Administration.
Does the format change if I write my SSN without hyphens?
The number itself remains nine digits whether you write it with hyphens (XXX-XX-XXXX) or without (XXXXXXXXX). Some online forms and digital systems ask you to enter the number without hyphens for processing purposes, but the underlying nine-digit number does not change. The hyphens are straightforward a formatting choice for readability.
What do the three parts of my nine-digit SSN represent?
The first three digits are the area number, the middle two are the group number, and the last four are the serial number. Historically, the area number indicated the state where you applied, but since 2011 all digits are randomized for new numbers. The three-part structure makes the number easier to read and remember.
If I was issued a Social Security number decades ago, is it still nine digits?
Yes. Every Social Security number issued since 1936, regardless of when it was issued, is exactly nine digits long. The format XXX-XX-XXXX has never changed. Older numbers follow the same nine-digit structure as numbers issued today.