Skip to content
immi2us.com
Life in USA

US taxes for immigrants guide by visa status

How your visa decides resident or nonresident tax status, which forms you file, and the FICA, treaty and foreign account rules that follow.

22 min read
Summarize in AI
Illustration of a sheet of die-cut stickers, with a star, a sun, a house and a key.

This guide is for noncitizens who live in the United States and file US tax returns: H-1B, L-1, O-1 and TN workers, H-4 and L-2 spouses, F-1 students on campus jobs, CPT or OPT, J-1 exchange visitors, and permanent residents. It explains how the IRS decides whether you are a resident or a nonresident for tax, what each status files, and the rules that catch newcomers: the dual-status year, the elections, Social Security and Medicare tax, tax treaties, foreign accounts and foreign investments. It is not about US citizens living abroad, it is not about business owners or self-employment, and it is not a substitute for a preparer who can see your facts.

The one idea that unlocks the rest: your visa does not set your tax status. The IRS uses its own tests, mostly a count of days, and your visa matters only because some visas let you skip counting days for a while. Two people on the same visa can be in different tax positions, and one person's position can change partway through a year.

Step 1: resident or nonresident for tax

A noncitizen is a resident alien for US income tax if they meet either test for the year; everyone else is a nonresident alien (IRS, Introduction to residency under US tax law):

  • The green card test. You were a lawful permanent resident at any time during the year.

  • The substantial presence test. You were physically present for at least 31 days during the year and for at least 183 days over three years, counting all the days in the current year, one third of the days in the year before and one sixth of the days in the year before that (IRS, Substantial presence test).

Exempt individuals: the days that do not count

Some people do not count their days toward the substantial presence test while they are in a qualifying status (IRS, Publication 519):

StatusDays are exempt for
F-1, J-1, M-1 or Q-1 studentAny part of 5 calendar years
J-1 or Q-1 teacher or trainee (not a student)Any part of 2 of the past 6 calendar years
Diplomats and certain international organization staff (A and G)While in that status

The five years for a student are calendar years, not twelve-month periods: arriving on December 20 uses up a whole calendar year. After the exempt years, the days count like anyone else's, unless the student shows that they do not intend to reside permanently in the US and have complied with their visa. Exempt individuals file Form 8843 to explain why their days are excluded, even if they have no income.

The closer connection exception

If you meet the substantial presence test but were present fewer than 183 days in the current year, you may still be treated as a nonresident if your tax home was in a foreign country for the whole year and you had a closer connection to that country. You claim it on Form 8840. It is not available if you personally applied, or took other steps during the year, toward permanent residence, such as having a pending green card application (IRS, Publication 519). That last bar catches many H-1B workers whose employer has started a green card case.

Your status by visa, at a glance

VisaDo you count days?Usual position
H-1B, L-1, O-1, TN, E-3Yes, from day oneNonresident in the arrival year if fewer than 183 days; resident from the first full year
H-4, L-2Yes, from day oneUsually the same as the principal, since you arrive together
F-1, J-1 studentNo, for 5 calendar yearsNonresident for the first 5 calendar years, then usually resident
J-1 researcher, professor, scholarNo, for 2 of 6 yearsNonresident for 2 years, then usually resident
F-1 on OPT or STEM OPTSame as F-1OPT does not restart or extend the 5 years
Green card holderNot neededResident from the first day as a permanent resident

Step 2: what each status files

A nonresident alien

A nonresident files Form 1040-NR and is taxed only on US-source income and income connected with a US trade or business. Wages for work done in the US are both. The main differences from a resident's return, all from Publication 519:

  • No standard deduction, with one well-known exception: students and business apprentices from India can claim it under the US-India treaty.

  • Itemized deductions are limited to certain ones, such as state and local income taxes and charitable gifts to US organizations, and only if you have effectively connected income.

  • Filing status is generally single or married filing separately. No joint return.

  • Investment income from US sources that is not connected with a business, such as dividends, is generally taxed at a flat 30 percent or a lower treaty rate, not at the graduated rates.

  • Deadline. April 15 if you received wages subject to withholding; otherwise June 15.

A resident alien

A resident files Form 1040 like a citizen, on worldwide income, with the standard deduction and every filing status a citizen has. For 2026 the standard deduction is $16,100 for a single filer and $32,200 for a joint return (IRS, Tax year 2026 inflation adjustments).

Worldwide income is the change most newcomers miss. Interest on a fixed deposit at home, rent from a flat you kept, dividends from shares in your home market and gains on selling them are all reportable on your US return once you are a resident, whether or not you bring the money to the US.

A dual-status taxpayer

In the year you arrive or leave, you can be a nonresident for part of the year and a resident for the rest. That is a dual-status year. Your residency starting date under the substantial presence test is generally the first day you were present in the US that year; a permanent resident's is generally the first day present as a permanent resident (IRS, Publication 519).

The dual-status return has restrictions that cost real money (IRS, Taxation of dual-status individuals):

  • no standard deduction

  • no head of household filing status

  • no joint return

  • tax figured on worldwide income for the resident part and US-connected income for the nonresident part

The IRS also states that dual-status taxpayers could not e-file their returns for tax year 2025 (IRS, Publication 519), so expect a paper return unless that changes.

The elections in the next step exist largely to get out of these restrictions.

Step 3: the elections

ElectionConditionsWhat it doesMain cost
First-year choiceYou do not meet the substantial presence test this year, you meet it next year, and you were present 31 days in a row this year and at least 75 percent of the days from the start of that period to year endMakes you a resident from the start of the 31-day periodYou file late, after meeting next year's test, usually with an extension
Choosing resident alien statusYou are dual-status, a nonresident at the start of the year and a resident at the end, married at year end to a citizen or resident, and your spouse joinsYou and your spouse are residents for the whole year and file jointlyWorldwide income for the whole year; once only, ever
Nonresident spouse treated as a residentAt year end one spouse is a nonresident and the other a citizen or residentYou file jointly and the nonresident spouse is taxed as a residentWorldwide income of both spouses, every year until it ends

All three are in Publication 519, which also explains how to make each one with a signed statement.

The first-year choice in practice

The first-year choice is for someone who arrives late in the year. To make it, you file Form 1040 with a statement, but you cannot file until you have met the substantial presence test for the following year. If you have not met it by April 15, you request an extension on Form 4868 and pay the tax you expect to owe figured as a nonresident for the whole year (IRS, Publication 519). Once made, the choice cannot be revoked without IRS approval.

On its own, the first-year choice gives you a dual-status year. The value comes when you combine it with the full-year choice: the first-year choice makes you a resident at year end, which lets a married couple choose to be residents for the whole year and file jointly.

Choosing resident alien status

This one is used once in a lifetime. Neither spouse can make it again for any later year, "even if you are separated, divorced, or remarried" (IRS, Publication 519). Save it for a year where it clearly helps, usually the arrival year of a married couple.

The nonresident spouse election

A resident married to a nonresident can elect to treat the spouse as a resident and file jointly (IRS, Nonresident spouse). The election stays in effect for later years until it is suspended, revoked or ended. It brings the spouse's worldwide income into the US return, and it makes the spouse a specified individual for Form 8938, so their foreign accounts can need reporting too.

If you do not make the election, a resident with a nonresident spouse can often file as head of household if they have a qualifying person, because a spouse who is a nonresident and does not elect is not treated as a spouse for that purpose.

Step 4: Social Security and Medicare (FICA)

Most workers pay 6.2 percent Social Security tax on wages up to the annual wage base, $184,500 for 2026, and 1.45 percent Medicare tax on all wages (SSA, Contribution and benefit base). Visa holders pay it like anyone else, with one large exception.

F-1, J-1, M-1 and Q nonresident aliens are generally exempt from Social Security and Medicare tax on wages for work their status allows, which for an F-1 student includes on-campus work, CPT and OPT (IRS, Foreign student liability for Social Security and Medicare taxes). The exemption depends on being a nonresident alien. Once a student becomes a resident alien, usually in the sixth calendar year, the exemption ends and FICA applies from that day.

If your employer withholds FICA when you were exempt, ask the employer for a refund first. If it will not, the IRS has a claim process using Form 843 with supporting documents.

Social Security agreements, often called totalization agreements, exist to stop a worker paying Social Security tax to two countries on the same earnings (SSA, US international Social Security agreements). The US has them with about thirty countries, among them Canada, the United Kingdom, Germany, Japan, South Korea, Australia and Brazil, but not India, China, Mexico or the Philippines. If your employer sent you on a temporary assignment from an agreement country, ask whether you have a certificate of coverage from your home system.

Step 5: tax treaties

The US has income tax treaties with many countries, and they can exempt or reduce tax on certain income: student stipends, pay for teaching and research, pensions, interest and dividends (IRS, Tax treaties). IRS Publication 901 summarizes the terms.

Two treaty rules that matter for this audience:

  • Claiming the benefit. A nonresident claims treaty-exempt pay through the employer on Form 8233, and reports it on Form 1040-NR. Where a treaty position needs disclosure, it goes on Form 8833.

  • The saving clause. Most treaties preserve the US right to tax its own residents "as if the tax treaty had not come into effect," with listed exceptions (IRS, Publication 519). So most treaty benefits end when you become a resident alien. Some survive: Publication 519's example is a Chinese student who became a resident and could still exclude scholarship income under Article 20 of the US-China treaty.

Researchers should read their article's time limit closely. The India teacher and researcher exemption is lost for the whole visit if the visit runs past two years; China's allows up to three years in total (IRS, Publication 901). The China student article also exempts up to $5,000 a year of pay for personal services.

Step 6: foreign accounts and assets

Once you are a resident alien, the US asks what you hold abroad. Three regimes can apply at once, and each has its own form, threshold and deadline.

FBAR

If the combined maximum values of your foreign financial accounts exceeded $10,000 at any time in the year, you file FinCEN Form 114, the FBAR, with FinCEN, not the IRS (FinCEN, Report Foreign Bank and Financial Accounts). It is due April 15, with an automatic extension to October 15. Points that trip people:

  • The $10,000 is an aggregate across every account, not a per-account test.

  • A joint account is reported at its full value by each owner.

  • Accounts you have signature authority over count, which can include a parent's account where you are a joint holder for convenience.

  • Values are converted to dollars at the Treasury's year-end rate (Treasury, Reporting Rates of Exchange).

  • Keep records for five years.

Form 8938

Form 8938 is filed with your tax return when your specified foreign financial assets exceed a threshold. For a taxpayer living in the US, that is more than $50,000 on the last day of the year or more than $75,000 at any time, if unmarried, and more than $100,000 or $150,000 on a joint return (IRS, Do I need to file Form 8938?). The same account can belong on both the FBAR and Form 8938 (IRS, Comparison of Form 8938 and FBAR requirements). Failing to file Form 8938 carries a $10,000 penalty that can grow, after notice, to a maximum of $60,000.

PFICs

A foreign corporation is a passive foreign investment company if 75 percent or more of its gross income is passive, or 50 percent or more of its assets produce passive income (IRS, Instructions for Form 8621). Most foreign mutual funds and exchange-traded funds meet one of those tests. A US resident who holds one generally files Form 8621 each year, subject to an exception for small holdings, and without an election the gains and some distributions are taxed under an excess distribution regime that is usually worse than ordinary capital gains treatment.

The practical advice is about timing. The easiest time to decide what to do with foreign funds is before you become a resident alien. Once you are one, selling still works, but the PFIC rules may apply to that sale.

Step 7: the foreign tax credit

When the same income is taxed by your home country and by the US, the foreign tax credit lets you subtract the foreign income tax from your US tax on that income, usually on Form 1116 (IRS, Foreign tax credit).

  • Only the treaty amount counts. If a treaty limits the foreign tax and the other country withheld more, only the treaty amount is creditable; the excess has to be reclaimed from that country.

  • The credit is capped at the US tax on the foreign income, figured separately for passive income (interest, dividends) and general income (wages).

  • Unused credit carries back one year and forward ten (IRS, Publication 514).

  • Skipping Form 1116 is possible only if all your foreign income is passive, your foreign tax is $300 or less ($600 joint), and the income and tax are on payee statements such as a Form 1099. Foreign banks rarely issue those, so most newcomers file the form.

Convert foreign amounts consistently. The IRS publishes yearly average exchange rates; for 2025 the Indian rupee average was 87.133 to the dollar (IRS, Yearly average currency exchange rates).

Step 8: identification numbers

Every person on a return needs a taxpayer identification number. If you or a family member can get an SSN, use it. A spouse or dependent who cannot, such as an H-4 spouse without an EAD or a child in F-2 status, needs an ITIN, applied for on Form W-7, usually attached to the first return that needs it (IRS, Instructions for Form W-7). An ITIN is for tax purposes only; it does not authorize work and it does not make anyone eligible for Social Security benefits.

The W-7 needs original identity documents or copies certified by the issuing agency, which for most people means the passport. That is why many families use an IRS Taxpayer Assistance Center or a certifying acceptance agent, which can verify a passport and return it the same day, rather than mailing it.

Step 9: state returns

Most states with an income tax follow the federal return as a starting point but decide residency on their own terms, usually by where you live and are domiciled. Your federal status does not decide your state status. In the year you arrive, or the year you move between states, you usually file a part-year resident return. California, for example, taxes a part-year resident on worldwide income while a resident and California-source income while not (California FTB, Part-year resident and nonresident).

A few states have no individual income tax on wages, and some cities levy their own. Check both where you live and where you work.

Status by status

H-1B, L-1, O-1 and TN workers

You count days from your first day. In a year you arrive before about July 2 and stay through the year, you usually meet the substantial presence test and are dual-status, resident from your arrival date. Arrive later and you are usually a nonresident for that year, with the first-year choice as an option if you meet the test the following year.

FICA applies to your wages from day one. If you are married and your spouse came with you, the full-year choice is often worth comparing with a dual-status return in the arrival year. From the first full year, you are a resident filing Form 1040 on worldwide income, with FBAR and possibly Form 8938 to file.

Watch the closer connection exception: it can let a worker who arrives in the second half of a year stay a nonresident, but not if a green card case is under way.

H-4 and L-2 spouses

You count days the same way, so you usually share the principal's tax status. The questions specific to you are the ID number and the filing status. Without an SSN, you need an ITIN to be on a joint return. On a joint return, your foreign income and accounts come in too.

If you have an H-4 EAD or work on L-2 status, your wages are taxed like the principal's, with FICA.

F-1 students, including OPT

For your first five calendar years you are an exempt individual: you file Form 8843 every year, and Form 1040-NR if you had income. Your wages from authorized work are exempt from FICA while you are a nonresident. OPT and STEM OPT do not change the count; they are F-1 status.

In the sixth calendar year your days count. Many students on STEM OPT, or newly on H-1B, become residents that year. From then, FICA applies, worldwide income is reportable, the standard deduction is available, and most treaty benefits stop, with the exceptions described in Step 5.

Common mistakes: using resident software to file Form 1040 as a nonresident; missing Form 8843 in a year with no income; and not noticing that a change from F-1 to H-1B on October 1 ends the student exemption from that date, so days after it count.

J-1 exchange visitors

J-1 students follow the five-year student rule. J-1 teachers, professors, researchers and trainees are exempt for any part of two of the past six calendar years, so a researcher who returns for a second J-1 stay within six years may have no exempt years left. J-1 nonresidents are generally exempt from FICA on authorized work in the same way as F-1 students.

Treaty benefits for teaching and research can be large. Check the article's time limit, the two-year J-1 limit on exempt days, and how the two interact.

New permanent residents

You are a resident from your first day as a permanent resident and stay one until you give up the status formally, even if you live abroad. In the arrival year, if you were not otherwise a resident earlier in the year, you are usually dual-status.

If you adjusted status inside the US after years on H-1B, your tax position barely changes: you were already a resident under the substantial presence test. If you arrived from abroad on an immigrant visa, the arrival year is dual-status, and the full-year choice is available if you are married.

A green card holder who claims to be a resident of another country under a treaty tiebreaker can create problems for their immigration status as well as their taxes. That is a decision to make with both a tax professional and an immigration attorney.

Worked cases

Case 1: H-1B, arriving in September, married

Ravi enters on H-1B on September 1, 2026, with his wife Kavya in H-4 status. He is present for 122 days in 2026, short of 183, so he does not meet the substantial presence test for 2026.

  1. Is he a resident in 2026? Not under the test. He would be a nonresident for all of 2026, filing Form 1040-NR on his US wages, with no standard deduction.

  2. First-year choice. He was present 31 days in a row starting September 1, and present on 100 percent of the days from then to December 31. If he meets the substantial presence test in 2027, which he will once he has been present for 143 days of 2027 (with 122 divided by 3, about 41, carried from 2026), around late May, he can choose to be a resident from September 1, 2026. That makes him a resident at year end.

  3. Full-year choice. Now dual-status and married to Kavya, who makes the same first-year choice, they can choose to be residents for all of 2026 and file jointly, with the $32,200 standard deduction for 2026.

  4. The cost. Their worldwide income for January to August 2026, including Ravi's Indian salary for those months, comes onto the US return. The foreign tax credit offsets the Indian tax on it, but not always all of it. A preparer compares the two versions.

  5. Timing. They cannot file until Ravi meets the 2027 test, so they file Form 4868 by April 15, 2027, pay the tax estimated as a nonresident, and file the joint return once he meets the test in late May 2027. Kavya applies for an ITIN with that return.

  6. FBAR. As residents for 2026, they file an FBAR for 2026 if their combined Indian accounts exceeded $10,000 at any time in the year.

Case 2: F-1 to OPT to H-1B

Mei arrives on F-1 on August 15, 2021, for a bachelor's degree. Her exempt years are 2021, 2022, 2023, 2024 and 2025. She files Form 8843 for each, and Form 1040-NR in the years she had on-campus or CPT income. Her wages are exempt from FICA.

She graduates in May 2025 and starts OPT in June 2025. Still a nonresident for 2025, her OPT wages remain exempt from FICA.

On January 1, 2026, her days start to count. She is present all year, so she is a resident alien for 2026 from January 1. Her employer should begin withholding FICA from her first 2026 paycheck. Her H-1B status starts October 1, 2026, which changes nothing for tax: she is already a resident. She files Form 1040 for 2026 with the $16,100 standard deduction and files an FBAR for her savings account in China if her accounts there exceeded $10,000 in total at any point.

Case 3: new green card holder from abroad

Daniel immigrates from the Philippines on an immigrant visa and is admitted on June 10, 2026. He had not been in the US earlier in 2026. He is single.

He is dual-status for 2026: a nonresident from January 1 to June 9 and a resident from June 10. On the resident part he reports worldwide income; on the nonresident part, only US-source income, which for him is none. He cannot take the standard deduction, and the full-year choice is not open to him because he is single at year end. He files a dual-status return for 2026 and, from 2027, a regular Form 1040. His savings in a Philippine bank, about $14,000 when he left, mean an FBAR for 2026.

Case 4: a J-1 researcher who stays

Dr. Sharma arrives from India on J-1 as a research scholar on September 1, 2025, for two years. She is exempt from counting days in 2025 and 2026. She claims the India teacher and researcher exemption for her pay from the start.

In mid-2027 her position is extended into 2028. Her visit now exceeds two years, so under the India treaty the exemption is lost for the entire visit. Her 2025 and 2026 returns need amending to tax the pay she treated as exempt. In 2027 her days begin to count; with more than 183 days, she is a resident for 2027, FICA applies to her wages from the date she became a resident, and she files Form 1040.

Mistakes that show up on first returns

These are the errors that most often turn a simple first return into an amended one.

Filing the wrong form. A nonresident who files Form 1040 claims a standard deduction and filing statuses the law does not allow, and the IRS can reject or adjust the return. A resident who files Form 1040-NR leaves out worldwide income. Settle Step 1 before you open any software, and check that the software you choose supports the form your status needs. Many consumer packages handle only Form 1040.

Taking the standard deduction on a dual-status return. It is not allowed unless you make one of the elections in Step 3. If your software offers it automatically, it has probably treated you as a full-year resident.

Leaving out home-country income. In a resident year, interest, rent, dividends and gains abroad belong on the return whether or not they were taxed abroad and whether or not you brought the money over. The foreign tax credit usually reduces the cost, but only if the income is reported.

Forgetting the spouse's accounts. On a joint return, or once a nonresident spouse is treated as a resident, the spouse's foreign accounts and assets count for Form 8938, and each spouse checks the FBAR rule separately.

Missing Form 8843. Students and scholars in their exempt years often skip it because they had no income. It is how the IRS learns why your days did not count.

Trusting the W-2 without reading it. Check that Social Security and Medicare tax were not withheld in a year you were exempt, and that state wages are reported for the state where you worked. Fixing the W-2 through payroll is faster than fixing the return later.

Claiming a treaty benefit after residency without checking the saving clause. Most treaty benefits stop when you become a resident alien. Before you carry one into a resident year, confirm that your article is one of the exceptions.

Converting at the wrong rate. Pick a method and keep it: the IRS yearly average rate for income spread across the year, or the rate on the day for a single large item such as a sale. The FBAR uses the Treasury's year-end rate, which is a different number.

What to gather before you file

A preparer, or you, will need these in the first spring:

  • Your passports, with every entry and exit stamp, and your I-94 travel history from CBP, to count days for each year that matters

  • Every Form W-2, 1099 and 1042-S you received

  • Your visa history: approval notices, I-20 or DS-2019, and the date any change of status took effect

  • The date you became a permanent resident, if you did

  • Statements for every account abroad, with the highest balance in the year for each one

  • Foreign income for the resident part of the year, with any tax withheld abroad and the payer's statement

  • Any foreign mutual funds or other pooled investments, with purchase dates and costs

  • Your spouse's and dependents' SSNs or ITINs, or the documents for a Form W-7

  • Last year's US return, if you filed one, including Form 8843 or 1040-NR

  • Your state of residence for each part of the year, and your move dates

Count days from records, not memory. The substantial presence test turns on exact numbers, and a trip of a week counted wrongly can move the date your residency starts.

Deadlines in one place

WhatWhoDue
Form 1040 or 1040-NR with wagesResidents, and nonresidents with withheld wagesApril 15
Form 1040-NR without wagesNonresidents with no withheld wagesJune 15
Form 8843Exempt individualsWith the 1040-NR, or by its due date if no return
Extension (Form 4868)Anyone needing time to file, including for the first-year choiceBy the original due date
FBAR (FinCEN Form 114)US persons over $10,000 in foreign accountsApril 15, automatic extension to October 15
Form 8938Specified individuals over the thresholdWith the tax return
State returnsVaries by stateUsually the same as federal

What this guide does not cover

  • US citizens and green card holders living abroad, who have their own rules on foreign earned income.

  • Self-employment and business income, including freelancing on a status that may not allow it. Work outside your authorization is an immigration problem before it is a tax one; talk to an immigration attorney.

  • Leaving the US, including sailing permits and expatriation. In brief: before departing, many noncitizens need a sailing permit, though many students and H-4 holders with only allowed income are exempt and H-1B holders are not (IRS, Publication 519).

  • Estate and gift tax for nonresidents, which uses different residency rules from income tax.

  • Your own facts. Elections, treaty positions and foreign investments can change your tax by thousands of dollars. A preparer who handles nonresident and dual-status returns is worth it in your first two years.

Sources

Share

Keep reading

Illustration of a kitchen table seen from above, with a pen, a potted plant, a cup of coffee and reading glasses.
Travel

Rules for remote work on a visitor visa

No regulation names remote work on a visitor visa. The ban on employment and the B purpose tests decide it, and the answer depends on how much you work.

5 min read

Get new posts by email

Visa Bulletin moves, rule changes and new guides, in one short email. No spam.

Unsubscribe in one click. No spam, ever.