Social Security Number Format — How SSNs Work in the United States
Educational purposes only
This article explains the format and history of Social Security Numbers for educational and testing purposes. Never share, sell, or misuse a real SSN. Identity theft is a federal crime.
A Social Security Number (SSN) is a nine-digit number issued by the Social Security Administration (SSA) to US citizens, permanent residents, and eligible temporary residents. Originally created in 1936 to track individual earnings for Social Security benefits, the SSN has become the de facto national identification number used for taxes, credit, employment, and government services.
SSN Structure: AAA-GG-SSSS
Every Social Security Number follows the format AAA-GG-SSSS — nine digits separated into three groups by hyphens:
Area Number History
Pre-2011: Geographic Assignment
From 1936 to June 25, 2011, the first three digits (area number) were assigned based on the state where the SSN application was filed. The SSA divided area numbers among states, with more populous states receiving larger ranges.
Some notable area number assignments:
| Area Numbers | State / Territory |
|---|---|
001-003 | New Hampshire |
004-007 | Maine |
008-009 | Vermont |
010-034 | Massachusetts |
050-134 | New York |
135-158 | New Jersey |
159-211 | Pennsylvania |
221-222 | Maryland |
223-231 | Virginia |
261-267 | Florida |
303-317 | Indiana |
318-361 | Illinois |
387-399 | Wisconsin |
449-467 | Texas |
545-573 | California |
577-579 | District of Columbia |
This geographic system meant that someone's state of origin (at the time of SSN application, usually birth) could be inferred from the first three digits. This was a known privacy weakness.
Post-2011: Randomized Assignment
On June 25, 2011, the SSA implemented SSN Randomization. Under this system:
- Area numbers are no longer assigned by geographic region
- Group numbers are no longer assigned in the old non-sequential pattern
- All nine digits are effectively randomized (within the valid ranges)
- The change was made to extend the lifespan of the numbering system and improve identity protection
SSNs issued before June 25, 2011 still follow the old geographic pattern. Only new SSNs are randomized.
Group Numbers Explained
The middle two digits (group number, 01-99) were historically assigned in a specific non-sequential order within each area number. The assignment followed this pattern:
- Odd numbers from 01 to 09
- Even numbers from 10 to 98
- Even numbers from 02 to 08
- Odd numbers from 11 to 99
This unusual assignment order was designed to facilitate manual filing systems in the 1930s. It allowed SSA clerks to organize cards efficiently in physical filing cabinets. The group number 00 was never assigned — it serves as a marker for invalid SSNs.
Serial Numbers
The last four digits (serial number) were assigned sequentially from 0001 to 9999 within each area-group combination. The number 0000 was never assigned.
This means that within a given area and group, up to 9,999 SSNs could be issued. The "last four" of an SSN are the digits most commonly used for identity verification (last 4 of SSN), which is ironic given that they were the most predictable part of the pre-2011 system.
Invalid SSN Ranges
The Social Security Administration has permanently reserved certain number combinations that will never be assigned to individuals:
| Invalid Range | Reason |
|---|---|
000-XX-XXXX |
Area number 000 is never assigned |
666-XX-XXXX |
Area number 666 is permanently excluded (historical reasons — perceived as offensive) |
900-999-XX-XXXX |
Area numbers 900-999 were reserved for IRS Individual Taxpayer Identification Numbers (ITINs) and are never used for SSNs |
XXX-00-XXXX |
Group number 00 is never assigned |
XXX-XX-0000 |
Serial number 0000 is never assigned |
078-05-1120 |
The Woolworth wallet SSN (see below) — permanently retired |
219-09-9999 |
Used in an SSA advertising campaign — permanently retired |
The Woolworth Wallet Incident
In 1938, a wallet manufacturer named E.H. Ferree included a sample Social Security card in wallets sold at Woolworth department stores across the country. The card displayed the SSN 078-05-1120, which was actually the real SSN of Ferree's secretary, Hilda Schrader Whitcher.
Over the next several decades, more than 40,000 people reported using this number as their own SSN. At its peak in 1943, 5,755 people were simultaneously using Whitcher's SSN. The SSA voided the number permanently, and Mrs. Whitcher was issued a new SSN.
This incident remains one of the most cited examples of why SSNs should never be printed on documents or used as general identification numbers — a lesson that society has largely failed to learn.
How to Protect Your SSN
Your SSN is the single most valuable piece of personal data you have. If compromised, it can be used for identity theft, tax fraud, employment fraud, and more. Here is how to protect it:
- Never carry your Social Security card — store it in a secure location at home (safe, lockbox). You almost never need the physical card
- Question every request for your SSN — ask if an alternative identifier is acceptable. Many businesses request it out of habit, not legal necessity
- Never share your SSN via email, text, or phone — legitimate organizations will not ask for your full SSN through these channels
- Monitor your credit reports — use AnnualCreditReport.com to check for unauthorized accounts opened in your name
- Consider a credit freeze — a freeze prevents anyone (including you) from opening new credit accounts until you lift it. It is free and highly effective
- File your taxes early — tax identity theft involves criminals filing a fraudulent return using your SSN before you do
- Shred documents that contain your SSN before discarding them
What to Do if Your SSN is Stolen
If you believe your SSN has been compromised, take these steps immediately:
- Place a fraud alert — contact any one of the three credit bureaus (Equifax, Experian, or TransUnion). They are required to notify the other two
- Freeze your credit — contact all three bureaus individually to place a credit freeze. This is free under federal law
- Report to the FTC — file a report at IdentityTheft.gov. You will receive a personalized recovery plan
- File a police report — this creates an official record you may need for disputes with creditors
- Review your credit reports — look for accounts, inquiries, and addresses you do not recognize
- Contact the SSA — in extreme cases, you can request a new SSN, though this is rare and comes with significant complications
- Monitor your accounts — watch for unauthorized transactions, unfamiliar medical bills, and unexpected tax notices
SSN Generator — Coming Soon
We are developing an SSN generator for software testing purposes that will produce structurally valid but guaranteed-unused numbers from the reserved/invalid ranges. Visit our About page for updates on new tools.
Frequently Asked Questions
An SSN has three parts separated by hyphens: AAA-GG-SSSS. Before 2011, the first three digits (area number) indicated the state where the SSN was issued. The middle two digits (group number) were assigned in a non-sequential pattern for administrative purposes. The last four digits (serial number) were assigned sequentially within each group. Since 2011, all nine digits are randomized.
Yes, the Social Security Administration has permanently reserved certain ranges. SSNs beginning with 000, 666, or 900-999 are never issued. SSNs with 00 in the group number position or 0000 in the serial number position are also invalid. The most famous invalid SSN is 078-05-1120, which was accidentally distributed to millions through a Woolworth wallet insert in 1938.
If your SSN is compromised, act immediately: place a fraud alert or credit freeze with all three credit bureaus (Equifax, Experian, TransUnion), file a report at IdentityTheft.gov, review your credit reports for unauthorized accounts, file a police report for documentation, and monitor your accounts and tax returns for suspicious activity going forward.
Yes, employers are legally required to collect your SSN for tax reporting purposes (W-2 forms, tax withholding). However, many other entities that request your SSN — such as medical offices, landlords, and utility companies — are not legally required to have it. You can often ask if an alternative identifier is acceptable.