Almost everything in this guide comes down to how many days you’ve spent in the United States, counted a very specific way. That number decides whether you file Form 1040 or Form 1040-NR, whether you can claim the standard deduction, whether your worldwide income becomes taxable in the US, and which credits are even available to you.
This guide covers exactly how resident alien and nonresident alien status actually gets determined, which forms sponsored workers on H-1B, L-1, O-1, and similar visas need to file, what deductions genuinely apply, and how refunds work when too much has been withheld.
Are You a Resident or Nonresident Alien for Tax Purposes?
Tax residency has nothing to do with your visa category directly. It’s determined by either the Green Card Test or the Substantial Presence Test, and most sponsored workers on H-1B, L-1, or O-1 status meet the latter within their first full calendar year. The test counts every day present in the current year, one-third of the days present in the prior year, and one-sixth of the days present in the year before that. Once that weighted total reaches 183, you’re a resident alien for the entire year.
Unlike F-1 or J-1 students, who benefit from an exempt-individual period lasting up to five calendar years before the count even starts, H-1B, L-1, and O-1 days generally count from the date of arrival with no such exemption. This is exactly why most sponsored workers cross the 183-day threshold quickly, often within their very first year in the country.
What Changes Once You’re Classified as a Resident Alien?
A resident alien is taxed on worldwide income, exactly like a US citizen, using the same Form 1040, the same progressive tax brackets, and access to the full standard deduction, which sits at $15,750 for a single filer and $31,500 for married filing jointly for the 2025 tax year. This single change alone commonly saves a sponsored worker somewhere between $1,500 and $3,500 compared to filing as a nonresident, simply because the standard deduction shelters a meaningful chunk of income from tax entirely.
What’s Different if You’re Still a Nonresident Alien?
A nonresident alien files Form 1040-NR and is taxed only on US-source income and income effectively connected with a US trade or business, not worldwide earnings. The trade-off is real: nonresident aliens generally cannot claim the standard deduction at all, with one specific exception written into the US-India tax treaty allowing Indian students and business apprentices to claim it under Article 21.
Nonresidents also can’t file jointly with a spouse, can’t claim the Earned Income Tax Credit in most cases, and face restrictions on several other credits available to residents.
What Happens in Your First Year on a Sponsored Visa?
Many sponsored workers experience a dual-status year, nonresident for part of the year and resident for the rest, most commonly in the calendar year they first arrive. This requires a dual-status return, generally built around Form 1040 with Form 1040-NR attached covering the nonresident portion, and the standard deduction is generally unavailable for a dual-status year unless a specific election changes that.
- The first-year choice election. Let’s you elect resident treatment from your arrival date if you were present for 31 consecutive days and meet a 75% presence threshold for the remainder of the year, provided you’ll qualify as a resident under the standard test the following year too.
- The nonresident spouse election, under IRC Section 6013(g). Let’s a nonresident alien married to a US citizen or resident elect to be treated as a resident for the full year and file jointly, gaining access to the standard deduction and other resident benefits, at the cost of reporting worldwide income for both spouses.
Do Sponsored Workers Owe FICA Taxes?
For H-1B, L-1, and O-1 workers, yes, without exception. The specific FICA exclusion under IRC Section 3121(b)(19) does not extend to H-1B status, meaning Social Security and Medicare withholding applies from day one of employment, regardless of whether you’re classified as a resident or nonresident alien for income tax purposes.
This differs meaningfully from the F-1 and J-1 student exemption, which can excuse FICA withholding for up to five calendar years. If you transition from F-1 status on OPT into H-1B status mid-year, the FICA exemption ends immediately on your H-1B effective date, not retroactively and not at year-end. Employers are required to begin withholding FICA from that exact date forward.
What Is a Totalization Agreement, and Does It Apply to You?
The US maintains totalization agreements with a number of countries specifically to prevent workers from paying into two separate social security systems simultaneously on the same earnings. If your home country has one of these agreements with the US, and your employer sends you to the US on a genuinely temporary assignment, generally five years or less, you may be able to remain covered under your home country’s system instead of paying US Social Security and Medicare, provided you obtain a certificate of coverage confirming this before the assignment begins.
This is a narrow benefit relevant mainly to intracompany transferees on L-1 status rather than an ordinary H-1B hire recruited directly by a US employer, and it needs to be arranged proactively, not claimed after the fact on a tax return.
What Forms Will You Actually Need to File?
- Form 1040 or Form 1040-NR. Determined by your residency status for the year, with a dual-status combination possible in a transition year.
- Form W-4, with Notice 1392 for nonresident aliens. Nonresident aliens complete their W-4 differently from residents, and employers add a specific additional withholding amount to a nonresident’s wages before applying standard tables, an adjustment that doesn’t appear on the W-2 and doesn’t change actual tax liability.
- Form 8233. Filed with your employer to claim a tax treaty exemption on compensation, relevant only to nonresident aliens from a treaty country.
- Form 8833. Discloses a treaty-based return position that overrides otherwise applicable tax rules, required in specific situations and carrying real penalties if omitted when needed.
- Form 1116. Claims the Foreign Tax Credit for tax paid to another country on income also taxed by the US, relevant for resident aliens with foreign income or investments.
- FinCEN Form 114, the FBAR. Required separately from your tax return if your combined foreign financial accounts exceeded $10,000 at any point during the year.
- Form 8938, under FATCA. Required alongside your tax return if foreign financial assets exceed $50,000 at year-end or $75,000 at any point for a single resident alien living in the US, doubled for married filing jointly.
What Deductions and Credits Can You Actually Claim?
| Benefit | Resident Alien | Nonresident Alien |
|---|---|---|
| Standard deduction | Full amount, same as US citizens | Not available, except Indian students/apprentices under treaty |
| Itemized deductions | Same as US citizens | Limited to deductions connected to US income |
| Student loan interest deduction | Available, subject to income limits | Generally available as an adjustment to income |
| Earned Income Tax Credit | Available under current rules | Generally not available |
| Child Tax Credit | Available | Generally not available, with narrow treaty exceptions |
| Foreign Tax Credit | Available via Form 1116 | Available only against US-connected income |
| Filing jointly with a spouse | Available | Not available, unless a specific election applies |
How Do Tax Treaties Help You?
Most US tax treaties contain a savings clause, which allows the US to tax its residents as though the treaty didn’t exist, with narrow carve-outs. Treaty benefits are generally far more valuable during your nonresident period than after you become a resident alien, since the savings clause claws back most benefits once residency kicks in. A few specific exceptions survive this, like the residents of Canada, Mexico, and South Korea, along with certain students or business apprentices from India. They may retain access to benefits like the Child Tax Credit even after becoming resident aliens. If you’re relying on a treaty position at all, disclosing it properly through Form 8833 is essential, since failing to file this form when required carries its own penalty exposure separate from any tax actually owed.
Do You Need to Report Foreign Bank Accounts?
Once you’re a resident alien, you face the same foreign account reporting obligations as any US citizen, and these obligations are taken seriously. The FBAR threshold is a combined $10,000 across all foreign accounts at any point in the year, covering checking, savings, investment, and certain foreign retirement accounts.
Missing this filing can trigger penalties starting at $10,000 per violation, even in years where you owe no additional tax at all. FATCA’s Form 8938 layers on top of this with its own, higher thresholds and a broader asset definition, including foreign stocks held directly and interests in foreign entities, not just bank accounts.
What About State Income Tax?
Your federal resident alien status doesn’t automatically determine your state tax residency, which follows separate rules entirely. If you live in one state and work in another, a common scenario for sponsored workers near a state border, you may need to file in both, generally as a resident in your home state and a nonresident in your work state, with a credit in one state to prevent double taxation. Some neighboring states maintain reciprocity agreements that simplify this considerably. Check your specific states’ rules directly, since assuming your federal filing status covers your state obligations is a common and costly mistake.
How Do You Get a Refund If Too Much Was Withheld?
Standard federal refunds follow the same process as any other taxpayer, processed after your return is filed and generally arriving faster with direct deposit and electronic filing. The complication for nonresident aliens is that most major consumer tax software doesn’t support Form 1040-NR at all, which is why specialized services built specifically for nonresident filers, such as Sprintax or Glacier Tax Prep, exist and are worth using rather than forcing a nonresident return through software built for citizens and residents.
A specific refund situation worth knowing: if FICA was mistakenly withheld while you were still in an exempt period, most commonly an F-1 student whose employer withheld Social Security and Medicare in error, the correct first step is requesting a refund directly from the employer. If the employer won’t or can’t refund it, Form 843 along with Form 8316 lets you claim that refund directly from the IRS instead.
What Mistakes Cost Sponsored Workers the Most?
Assuming visa category determines tax status. An H-1B holder isn’t automatically a resident or nonresident alien by virtue of the visa itself. The Substantial Presence Test decides this, and getting the day count wrong cascades into every other decision on the return.
Filing a standard 1040 through consumer software while still a nonresident. This is a genuine compliance error, not just a suboptimal choice, and it can trigger IRS correspondence requiring an amended return.
Missing the FBAR entirely because it feels separate from “real” tax filing. The $10,000 threshold is lower than most people expect, and the penalty for missing it applies even when no additional tax is actually owed.
Assuming FICA exemption continues after switching from F-1 to H-1B. The exemption ends on the exact effective date of the status change, not at the end of the academic year or the calendar year.
Ignoring state tax obligations because federal filing felt complicated enough already. A cross-state work and residence situation creates a real, separate filing obligation that doesn’t resolve itself.
Conclusion
Every deduction, every credit, and every form choice in this guide flows downstream from one classification: resident or nonresident alien for the tax year in question.
Get that determination right before anything else, understand which specific year you’re in given your arrival date and visa history, and treat foreign account reporting as seriously as the return itself. The workers who get this right the first time spend considerably less time and money fixing it the second time around.
Frequently Asked Questions
How do I know if I’m a resident or nonresident alien for tax purposes?
Generally through the Substantial Presence Test, a weighted count of days present over the current and two preceding years. Reaching 183 days under that formula makes you a resident alien for the year.
Do H-1B workers pay Social Security and Medicare taxes?
Yes, always, regardless of resident or nonresident status, since the FICA exemption available to certain other nonimmigrant categories does not extend to H-1B status.
Can I claim the standard deduction as a nonresident alien?
Generally no, with one specific exception for students and business apprentices from India under Article 21 of the US-India tax treaty.
What happens in my first year if I become a resident partway through?
You likely need to file a dual-status return, generally combining Form 1040 with Form 1040-NR to cover the nonresident portion of the year, with the standard deduction generally unavailable unless a specific election applies.
Do I need to report my foreign bank accounts to the IRS?
Yes, if your combined foreign accounts exceeded $10,000 at any point during the year, filed separately through the FBAR, with potential FATCA Form 8938 obligations layered on top depending on asset value.
Can consumer tax software handle a nonresident alien return?
Generally no. Most major tax software doesn’t support Form 1040-NR, which is why specialized services built specifically for nonresident filers exist and are worth using.
What happens if my employer withheld FICA taxes while I was still exempt as an F-1 student?
Request a refund directly from your employer first. If they can’t or won’t provide it, Form 843 along with Form 8316 lets you claim the refund directly from the IRS instead.
Can I avoid US Social Security tax if my home country has an agreement with the US?
Possibly, through a totalization agreement, but only for a genuinely temporary assignment and only if a certificate of coverage is obtained before the assignment begins, not claimed retroactively on a tax return.
Does my tax filing status affect my visa or green card application?
Filing correctly and on time generally supports an immigration case rather than harming it, since many visa and green card applications require proof of consistent tax compliance. Filing incorrectly or missing required international forms can create complications worth avoiding.