What immigration status means for Social Security
To receive Social Security retirement, disability, or survivor benefits, you must have a valid Social Security number and a work history in the United States. Immigration status determines whether you can get a Social Security number in the first place, and whether your past work counts toward benefits.
If you are not a U.S. citizen or permanent resident, you generally cannot get a Social Security number unless you have a specific visa category that allows work authorization. Without a number, you cannot build a work record that Social Security recognizes. This means most people without legal immigration status cannot receive Social Security benefits based on their own earnings.
The rules are strict because Social Security is funded by payroll taxes, and the program tracks who paid in and for how long. The Social Security Administration (SSA) verifies both your identity and your legal right to work in order to credit your earnings to your account.
Key Takeaways
- You need a valid Social Security number to build a work record, and SSA will only issue one to people with certain visa categories or legal immigration status.
- Work done without a Social Security number does not count toward Social Security benefits, even if taxes were withheld from your paycheck.
- Permanent residents (green card holders) can receive Social Security benefits if they have worked long enough and meet age or disability requirements.
- Some visa holders—such as those on H-1B, L-1, or F-1 visas with work permission—can get a Social Security number and build a benefit record.
- If you worked under a false or borrowed Social Security number, that work does not count toward your official benefit record.
Who can get a Social Security number and build a work record
The SSA issues Social Security numbers to people in specific immigration categories. U.S. citizens born in the country automatically have the right. Permanent residents (people with a green card) can get a number. Certain temporary visa holders can also get one if their visa category permits employment.
Common visa categories that allow a Social Security number include H-1B (specialty occupations), L-1 (intracompany transfers), O-1 (individuals with extraordinary ability), P visas (athletes and entertainers), and F-1 (students with work permission). To get a number in these categories, you must show your visa and employment authorization document (EAD) to the SSA.
People without work authorization—including those on tourist visas, student visas without work permission, or those without any visa status—cannot get a Social Security number. If you work anyway and use a number that is not yours, or if an employer issues you a number illegally, that work will not be credited to your official record.
What happens to taxes withheld from paychecks without a valid number
If you work and your employer withholds Social Security and Medicare taxes from your paycheck, but you do not have a valid Social Security number, the money still goes to the federal government. However, it does not go into a personal account under your name.
The SSA calls this "earnings suspense file" money. It sits in a general account when the number on the tax form does not match any real person's record. Over time, if no one claims it, that money stays in the Social Security trust fund but is not credited to any individual's work history.
This means you pay the tax but receive no credit toward future benefits. You cannot later claim those years of work when you become a permanent resident or citizen, because the SSA has no record linking those earnings to you.
Permanent residents and Social Security benefits
Permanent residents (green card holders) are treated the same as U.S. citizens for Social Security purposes. If you have a green card and a valid Social Security number, you can receive retirement benefits at age 62 or older, disability benefits at any age if you meet medical criteria, or survivor benefits if you are the spouse or child of a deceased worker.
The only requirement is that you have worked long enough. For retirement benefits, you need 40 work credits, which is roughly 10 years of covered employment. For disability or survivor benefits, the requirement is lower and depends on your age when you became disabled or when the worker died.
Permanent residents do not lose benefits if they move outside the United States, though there are some restrictions on payments to certain countries. You can also sponsor family members for permanent residency and they can receive benefits as your spouse or dependent child.
Temporary visa holders and building a work record
If you are on a work-authorized visa—such as H-1B, L-1, O-1, or F-1 with optional practical training (OPT)—you can get a Social Security number and your earnings will count toward benefits. Each year you work, you earn credits that accumulate on your record.
The benefit you eventually receive is based on your average earnings over your highest-earning 35 years. If you work on a temporary visa for five years and then leave the country, those five years of earnings stay on your record. If you later become a permanent resident or citizen, you can claim benefits based on your full work history, including the years you worked on a visa.
If your visa expires and you do not change to another work-authorized status, you cannot legally work. Any work after that point will not be credited to your Social Security record, even if taxes are withheld.
Undocumented immigrants and the Individual Taxpayer Identification Number (ITIN)
Some people without legal immigration status work and pay taxes using an Individual Taxpayer Identification Number (ITIN) instead of a Social Security number. An ITIN is issued by the IRS for tax purposes only and does not give you work authorization or Social Security benefits.
If you have an ITIN and pay income taxes, that money goes to the federal government, but it does not build a Social Security work record. The IRS and Social Security are separate agencies with different rules. An ITIN cannot be converted to a Social Security number later, even if your immigration status changes.
Some states have passed laws allowing people with ITINs to get driver's licenses or access certain services, but these do not affect Social Security may be able to access. Social Security still requires a valid Social Security number and legal work authorization.
What changes if your immigration status changes
If you become a permanent resident or citizen after working on a temporary visa, your previous work counts toward Social Security benefits. The SSA will combine all your earnings under your Social Security number, regardless of what visa you held when you earned them.
If you were working without authorization and later become a permanent resident, you cannot retroactively claim credit for work done without a valid Social Security number. However, once you have permanent residency and a valid number, any future work will count.
The key is having a valid Social Security number at the time you work. If you worked under a false number, a borrowed number, or an ITIN, that work will not transfer to your official record even if your status improves later.
Frequently Asked Questions
Can I get Social Security benefits if I worked for years without a Social Security number?
No. Work done without a valid Social Security number does not count toward benefits, even if your employer withheld taxes. Once you have legal status and a valid number, future work will count, but past work cannot be credited retroactively.
What if I used someone else's Social Security number to work?
That work does not count toward your own Social Security record. It was credited to the other person's account. When you later explore for benefits under your own number, the SSA will only count work credited to your number.
Can I receive Social Security if I am a permanent resident but live outside the United States?
Yes, permanent residents can receive Social Security payments while living abroad in most countries. However, payments to a few countries are restricted. Contact the SSA to confirm whether your country is affected before you move.
If I am on an H-1B visa and lose my job, do I lose my Social Security credits?
No. The credits you earned while working on your H-1B stay on your record permanently. If you later change to another visa, become a permanent resident, or return to your home country, those credits remain. They count toward benefits if you ever meet the requirements to claim them.
Does paying taxes with an ITIN help me get Social Security later?
No. An ITIN is only for tax purposes and does not build a Social Security work record. If your immigration status changes and you get a Social Security number, only work done under that number will count toward benefits.