For U.S. tax purposes, your country of residence is decided by IRS rules, not by where you feel at home or which passport you carry. The IRS uses two tests to determine whether you’re a U.S. tax resident: the green card test and the substantial presence test. Meeting either one makes you a resident alien, which means the U.S. taxes your worldwide income. If neither applies, you’re a nonresident alien and generally taxed only on U.S.-source income. Everything else, from treaty tiebreakers to student exemptions, is a variation on those two tests.
The Green Card Test
If you hold a Permanent Resident Card (Form I-551) at any point during the calendar year, you’re a U.S. tax resident for that year. The number of days you actually spent in the country is irrelevant. Green card holders keep that status until U.S. Citizenship and Immigration Services formally revokes it or the holder surrenders it in writing.1Internal Revenue Service. U.S. Tax Residency – Green Card Test
This catches people who assume that moving abroad severs the tie. A green card holder who spends the entire year in another country is still a U.S. tax resident, and still owes U.S. tax on worldwide income, unless the card has been formally abandoned.
The Substantial Presence Test
If you don’t hold a green card, the IRS counts days. You meet the substantial presence test when both of these are true: you were physically present in the United States for at least 31 days during the current year, and a weighted three-year count of your days reaches 183 or more.2Internal Revenue Service. Substantial Presence Test
The weighted count works like this. Add every day you were present in the current year. Add one-third of the days from the prior year. Add one-sixth of the days from two years back. If the total hits 183, you’re a U.S. tax resident.3Office of the Law Revision Counsel. 26 USC 7701 – Definitions
The 31-day floor for the current year is easy to overlook. A person who spent 20 days in the U.S. this year won’t meet the test no matter how many days they piled up in earlier years. If you cross the border often, keep a log. Passport stamps fade and reconstructing a three-year day count after the fact is where errors show up.
The Closer Connection Exception
Meeting the 183-day weighted total doesn’t always lock you into U.S. tax residency. You can still be treated as a nonresident if three conditions all hold: you were present in the U.S. fewer than 183 days during the current calendar year alone, you maintained a tax home in a foreign country for the entire year, and you had a closer connection to that foreign country than to the United States.4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test
The IRS decides where your closer connection lies by looking at your “significant contacts”: where your principal home sits, where your family lives, where your car is registered, where you bank, where you vote, and where you hold a driver’s license. To claim the exception you file Form 8840 with the IRS by the tax return due date. Without that form, you generally cannot claim the exception at all unless you can show by clear and convincing evidence that you reasonably tried to comply.4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test
One disqualifier is absolute. If you’ve applied for a green card at any point during the year, or have an adjustment-of-status application pending, the closer connection exception is unavailable.3Office of the Law Revision Counsel. 26 USC 7701 – Definitions
Days That Don’t Count: Students, Teachers, and Trainees
Some visa holders are treated as “exempt individuals,” meaning their days of presence simply don’t enter the substantial presence calculation for a set number of years.
Students on F, J, M, or Q Visas
Students in the U.S. temporarily on one of these visas can exclude their days for up to five calendar years. The clock counts by calendar year, not by anniversary of arrival, so a student who arrives in December still burns a full year of the exemption.5Internal Revenue Service. Exempt Individual – Who Is a Student After the five-year window closes, days start counting toward the substantial presence test unless the student can show the IRS they don’t intend to reside permanently in the U.S.
During the exempt period, students file Form 8843 each year to document why their days are being excluded. The filing is required even for students with no U.S. income and no other reason to file a return.5Internal Revenue Service. Exempt Individual – Who Is a Student
Teachers and Trainees on J or Q Visas
Teachers, researchers, au pairs, and other non-student J or Q visa holders follow a shorter timeline. They can generally exclude their days for up to two calendar years. The exemption is unavailable if the individual was already exempt as a teacher, trainee, or student for any part of two out of the six preceding calendar years. An exception can stretch that window to three of the six preceding years when a foreign employer paid all of the individual’s compensation. Teachers and trainees also file Form 8843 each year to claim the status.6Internal Revenue Service. Exempt Individuals – Teachers and Trainees
When Two Countries Both Claim You
You can qualify as a tax resident of two countries at once. The U.S. substantial presence test may classify you as a U.S. resident while your home country’s laws also treat you as their resident. Tax treaties between the two countries usually contain a tiebreaker that resolves the overlap.
Most tiebreakers work through a cascade. The treaty first asks where you have a permanent home. If you have one in both places, it asks where your personal and economic ties are stronger. If that’s still unclear, it looks at where you spend more time, then your nationality. If nothing else works, the two governments negotiate.7Internal Revenue Service. Tax Treaties
Claiming treaty residency in a foreign country for U.S. tax purposes requires filing Form 8833 with your tax return. The form discloses the treaty position, and the IRS wants it every year you rely on the treaty. Failing to file carries a penalty of $1,000 per undisclosed position, or $10,000 for C corporations.8Office of the Law Revision Counsel. 26 USC 6712 – Failure to Disclose Treaty-Based Return Positions
Long-term green card holders should be careful here. Electing treaty residency in a foreign country can trigger the expatriation rules under Section 877A, which effectively treats you as if you gave up your green card and carries its own tax consequences. This is not a decision to make without professional advice.9Internal Revenue Service. Form 8833, Treaty-Based Return Position Disclosure Under Section 6114 or 7701(b)
What Being a U.S. Tax Resident Actually Means
Your residency classification determines what income the IRS can reach and what you have to report.
Worldwide Income
If you’re a U.S. tax resident through the green card test, the substantial presence test, or citizenship, you owe U.S. tax on your worldwide income. That covers foreign wages, rental income from property overseas, interest from foreign bank accounts, and gains in foreign investment markets.10Internal Revenue Service. Topic No. 851, Resident and Nonresident Aliens Nonresident aliens are generally taxed only on income from U.S. sources.11Internal Revenue Service. Nonresident Aliens – Sourcing of Income
FBAR (FinCEN Form 114)
U.S. residents and citizens with financial accounts outside the country must file FinCEN Form 114 if the combined maximum value of all foreign accounts exceeded $10,000 at any point during the calendar year. The threshold is aggregate across all accounts, not per account.12Financial Crimes Enforcement Network. Reporting Maximum Account Value The FBAR is separate from your tax return, due April 15 with an automatic extension to October 15. Non-willful violations can be penalized up to $10,000 per account, and willful violations carry substantially steeper consequences.
FATCA (Form 8938)
On top of the FBAR, residents with higher foreign asset balances file Form 8938 with their tax return. The reporting thresholds depend on filing status and where you live:
- Single, living in the U.S.: foreign financial assets exceed $50,000 on the last day of the year or $75,000 at any point during the year.
- Married filing jointly, living in the U.S.: combined foreign assets exceed $100,000 at year-end or $150,000 at any point.
- Single, living abroad: foreign assets exceed $200,000 at year-end or $300,000 at any point.
- Married filing jointly, living abroad: combined foreign assets exceed $400,000 at year-end or $600,000 at any point.
These thresholds are independent of the FBAR, and the two forms cover overlapping but not identical types of accounts.13Internal Revenue Service. Do I Need to File Form 8938, Statement of Specified Foreign Financial Assets
Residency Is Not Citizenship
A note on terminology, because non-tax forms often ask a different question. Citizenship is a permanent legal bond with a nation, usually acquired at birth or naturalization, and it does not change when you move abroad. Residency moves with you. On a general form asking for your country of residence, the answer is where you currently live. For IRS purposes, though, the answer is whatever the green card test, the substantial presence test, and any applicable treaty tiebreaker produce, and that answer can differ from where you spend most of your time or where your passport was issued.
If you’re trying to figure out your status for a specific tax year, work through the tests in order. Do you hold a green card at any point in the year? If yes, you’re a U.S. tax resident. If no, run the day count: at least 31 days this year, and 183 or more weighted across three years. If you clear both thresholds, check whether the closer connection exception or a treaty tiebreaker applies. The forms that go with each position, 8840, 8843, and 8833, are the paperwork that makes the position stick.