Independent guides · Not a government website

US Tax Residency: The Green Card Test and Substantial Presence Test

For US taxes, "resident" does not mean what immigration law means. Your tax residency decides whether you are taxed on worldwide income or only US income.

Taxes: US Tax Residency: The Green Card Test and Substantial Presence Test

Key points

  • Green card holders are tax residents under the "green card test", wherever they live.
  • Others become residents by passing the substantial presence test: 31 days this year and 183 weighted days over three years.
  • Students, teachers and trainees on F, J, M and Q visas are "exempt individuals" for a number of years.
  • Residents are taxed on worldwide income; nonresidents mainly on US-source income.

Tax residency is one of the most important and least understood questions for immigrants. A person can be a nonimmigrant for immigration purposes and a resident for tax purposes, or a green card holder living abroad who is still a tax resident. The answer changes which forms you file, which income is taxed and what you must report about foreign accounts.

Tax residency is decided by the tax code, not by your visa. Count your days and check the tests each year.

Steps at a glance: US Tax Residency: The Green Card Test and Substantial Presence Test
The main steps at a glance. Details in the sections below.

The green card test

You are a resident for tax purposes if you were a lawful permanent resident at any time during the calendar year. The status continues until it is formally abandoned or rescinded, for example by filing Form I-407 or by a final order. Simply moving abroad does not end tax residency for a green card holder.

The substantial presence test

You meet the test if you were physically present in the US for:

  1. At least 31 days in the current year, and
  2. 183 days or more over three years, counting all days in the current year, one third of the days in the previous year and one sixth of the days in the year before that.
YearDays presentMultiplierCounted days
Current year1201120
Previous year1201/340
Year before1201/620
Total180 (does not meet the test)

Days that do not count

  • Days as an exempt individual: F, J, M and Q students for up to five calendar years; J and Q teachers and trainees for two of the last six years; foreign government officials.
  • Days in transit between two foreign points of less than 24 hours.
  • Days you were unable to leave because of a medical condition that arose in the US.
  • Days commuting from Canada or Mexico for regular commuters.

Exempt individuals file Form 8843 to document excluded days.

Exceptions and elections

  • Closer connection exception: people present fewer than 183 days in the current year who keep a tax home and closer connection to another country can remain nonresidents by filing Form 8840.
  • Tax treaties: treaty tie-breaker rules can make a dual resident a resident of the other country for treaty purposes, with Form 8833.
  • First-year choice and joint filing elections let some people be treated as residents for part or all of the year.

Dual-status years

In the year you arrive or leave, you may be a nonresident for part of the year and a resident for the rest. Dual-status returns have special rules: limits on deductions, filing status and how income from each period is reported. Many people choose professional help for this year.

What changes when you are a resident

  • Worldwide income is reported on Form 1040.
  • Foreign accounts must be reported on the FBAR, and foreign assets on Form 8938 above thresholds.
  • Foreign investment funds can become PFICs. See foreign investments.
  • You generally pay Social Security and Medicare taxes on wages, unless a totalization agreement applies.

A worked example

A hypothetical L-1 manager arrives on 1 July and stays in the US the rest of the year: 184 days. She meets the substantial presence test for that year. Her residency starts on her first day of presence, 1 July, so she files a dual-status return: nonresident from January to June and resident from July. Married to a nonresident spouse, they could instead elect to be treated as full-year residents to file jointly, reporting worldwide income for the whole year.

Step by step: working out your status

  1. Were you a green card holder at any time this year? If yes, you are a resident.
  2. If not, count your days of presence for this year and the two previous years.
  3. Remove days excluded as an exempt individual or for other exceptions.
  4. Apply the formula: all current-year days, one third of last year's, one sixth of the year before.
  5. If the total is 183 or more and you have at least 31 days this year, you meet the test.
  6. Check whether the closer connection exception or a treaty tie-breaker applies.
  7. Identify your residency start date for the first year.

Common mistakes

  • Assuming a work visa automatically makes you a nonresident
  • Forgetting that partial days count as full days
  • Students not filing Form 8843 to document exempt days
  • Green card holders abroad stopping US filings without abandoning status
  • Ignoring the FBAR once resident

Glossary

  • Resident alien: a non-citizen taxed like a citizen.
  • Nonresident alien: a non-citizen taxed mainly on US-source income.
  • Dual-status: a year with both resident and nonresident periods.
  • Tie-breaker rule: treaty rules deciding residency for people resident in two countries.

Leaving the US

When you leave, your residency usually ends on your last day of presence if you meet certain conditions, such as having a closer connection to another country for the rest of the year. Green card holders remain residents until they formally give up status. Long-term residents who give up a green card may face the expatriation rules, including a possible exit tax.

Keep a travel log with dates of every entry and exit; it is the basis of every calculation above.

When the result is close to 183 days, a tax professional can confirm how each excluded day should be treated.

Run the numbers: use our substantial presence test calculator to apply the 183-day formula to your own days.

Frequently asked questions

Do short business trips count?

Yes, any part of a day in the US counts as a day of presence, with the exceptions above.

Can a green card holder living abroad be a nonresident?

Only in limited cases, through treaty tie-breaker rules, which can have immigration consequences.

Which form do nonresidents file?

Form 1040-NR.

Official sources

Disclaimer. This article is general education, not financial, investment, tax or insurance advice, and it does not recommend any specific product or provider. Prices, rates, limits and rules change; check official sources such as irs.gov, consumerfinance.gov and investor.gov, and consider a licensed professional for decisions about your own money.