The Social Security Administration assigns numbers using a formula, not randomly
Social Security numbers are not random. The Social Security Administration (SSA) generates them using a specific system that encodes information about when and where a number was issued. The SSA stopped using the original formula in 2011 and switched to randomization, but understanding how numbers were built — and how they are now — shows why the SSA structured them this way.
For decades, the first three digits (the area number) indicated the state where someone applied for a Social Security number. The middle two digits (the group number) and the last four digits (the serial number) followed a separate pattern. This meant a number could reveal roughly when and where it was issued, which created privacy concerns and made numbers easier to guess or forge.
Today, all three sections are randomized. The SSA generates numbers by computer without regard to geography or issue date. This makes numbers harder to predict and reduces the risk that someone could construct a fake number that passes basic checks.
Key Takeaways
- Before 2011, Social Security numbers encoded the state where they were issued in the first three digits, making them partly predictable.
- The SSA switched to full randomization in 2011, meaning new numbers no longer reveal where or when they were assigned.
- The nine-digit format remains the same: three digits, then two, then four, but each section is now generated randomly.
- The SSA does not issue numbers to people who are not U.S. citizens or permanent residents, and it does not reissue numbers after someone dies.
How the old area number system worked
From 1936 to 2011, the first three digits of a Social Security number corresponded to a specific state or region. Connecticut had area numbers 001 to 003. New York had 050 to 665. California had 545 to 573. If you knew the area number, you could narrow down where the person applied for the number.
This system made sense when the SSA issued numbers in person at local offices. The area number helped the SSA track which office had issued which number. But it also meant that someone could guess whether a number was real by checking whether the area number matched a valid state range. Scammers and identity thieves used this information to construct fake numbers that would pass initial verification checks.
The group number (the middle two digits) and serial number (the last four digits) also followed patterns. Group numbers were not issued in straightforward order — they jumped around — but they were not fully random either. This made the entire nine-digit sequence partly predictable if you knew the formula.
Why the SSA switched to randomization in 2011
The SSA announced the shift to randomization in 2007 and implemented it on June 25, 2011. The main reason was security. As identity theft and fraud increased, the predictability of Social Security numbers became a liability. If someone could guess the format, they could create numbers that looked real enough to pass a quick check.
Randomization also addressed privacy concerns. Under the old system, a number revealed something about where you lived when you applied for it. For people who had moved or who wanted to keep their location private, this was unwanted information embedded in their number.
The SSA also wanted to reduce the administrative burden of managing area numbers. As people moved and the population shifted, the old system required constant updates to which area numbers belonged to which states. Randomization eliminated that overhead.
How numbers are generated today
The SSA now uses a computer system to generate Social Security numbers randomly. When someone applies for a number — either as a newborn, a new immigrant, or a permanent resident — the SSA's system assigns a nine-digit number with no connection to geography or timing.
The only restrictions are technical. The SSA does not issue numbers that begin with 000, 666, or 900 to 999. These ranges are reserved or excluded for administrative reasons. Within the remaining ranges, numbers are generated without pattern.
This means two people born in the same state on the same day could have completely unrelated Social Security numbers. It also means you cannot reverse-engineer where or when someone got their number by looking at the digits alone.
Who gets a Social Security number and when
The SSA issues Social Security numbers to U.S. citizens and permanent residents. Most people receive a number shortly after birth, when a parent or hospital applies on their behalf. Immigrants who become permanent residents can explore for a number as part of the immigration process.
The SSA does not issue numbers to people on temporary visas, such as students or workers on H-1B visas, unless they have a specific reason to need one (such as opening a bank account). Some people in this situation may have an Individual Taxpayer Identification Number (ITIN) instead, which serves a similar function for tax purposes.
Once a number is issued, it stays with that person for life. The SSA does not reissue numbers after someone dies, and it does not reassign numbers to other people. This means each of the roughly 450 million numbers the SSA has issued is unique and permanent.
What changed and what stayed the same
| Feature | Before 2011 | After 2011 |
|---|---|---|
| First three digits (area number) | Indicated the state where the number was issued | Randomized; no geographic meaning |
| Middle two digits (group number) | Followed a semi-predictable pattern | Randomized |
| Last four digits (serial number) | Followed a semi-predictable pattern | Randomized |
| Format | XXX-XX-XXXX (nine digits) | XXX-XX-XXXX (nine digits) |
| Excluded ranges | 000, 666, 900–999 | 000, 666, 900–999 |
The nine-digit format has not changed. Social Security numbers are still written as three digits, a hyphen, two digits, a hyphen, and four digits. The excluded ranges — 000, 666, and 900 to 999 — remain the same. What changed is that the digits themselves are now generated randomly rather than encoded with information about where or when the number was issued.
Frequently Asked Questions
Can I tell when someone got their Social Security number by looking at the digits?
Not if the number was issued after June 2011. Numbers issued before that date may reveal the state where the person applied, but even then, you cannot determine the exact year. Numbers issued after 2011 have no geographic or temporal meaning — the digits are random.
What do the numbers 000, 666, and 900 to 999 mean?
These ranges are not issued. The SSA excludes them by design. Numbers in these ranges are not valid Social Security numbers, so if you see one, it is either a fake number or a placeholder used in examples and training materials.
Can someone create a fake Social Security number that will pass a check?
It is harder now than it was before 2011. Because numbers are randomized, there is no formula to follow. However, any nine-digit number that does not fall into the excluded ranges (000, 666, 900–999) will pass a basic format check. Real verification requires checking against SSA records, which only the SSA and authorized organizations can do.
Do immigrants get Social Security numbers right away?
Not always. Permanent residents can explore for a number, but the timing depends on their immigration status and whether they have a reason to need one. Someone on a temporary work visa might not receive a number unless their employer or the government requires it for tax or employment purposes.
What happens to a Social Security number after someone dies?
The number remains assigned to that person and is not reissued. The SSA keeps records of deaths and marks numbers as deceased in its system. This prevents the number from being used fraudulently and preserves the historical record.