Your country of tax residence is the jurisdiction whose government has the legal authority to tax your income from everywhere in the world. This status comes from each country’s domestic tax laws, not from your passport, your birthplace, or the visa in it. Most countries assign residency based on how many days you spend inside their borders or whether you keep a permanent home there. Once that connection exists, your wages, investment returns, rental income, and other earnings become reportable to that country regardless of where the money was earned.
Tax residency is separate from immigration status. The U.S. tax code, for example, does not use immigration categories like immigrant or nonimmigrant. It only asks whether you are a “resident” or “nonresident” for tax purposes, a distinction built on physical presence and permanent resident status rather than visa type.1Internal Revenue Service. Introduction to Residency Under U.S. Tax Law You can live in a country legally on a work visa without being a tax resident, and you can become a tax resident without holding any special immigration document.
How a Country Decides You Are a Tax Resident
Rules vary by country, but the United States uses two primary tests. If you meet either one, you owe U.S. tax on your worldwide income just like a citizen would.1Internal Revenue Service. Introduction to Residency Under U.S. Tax Law
The Substantial Presence Test
This test looks at three calendar years, not just the current one. You meet it if you were physically present in the U.S. for at least 31 days during the current year and the weighted total of your days over three years reaches 183. Days in the current year count fully, days from the prior year count as one-third, and days from two years back count as one-sixth.2Office of the Law Revision Counsel. 26 USC 7701 – Definitions Splitting your time between countries does not automatically keep you below the threshold; the rolling formula catches people who assume it does.
The Green Card Test
If you hold a U.S. green card, you become a tax resident starting on the first day of the calendar year you are physically present in the country as a lawful permanent resident.3eCFR. 26 CFR 301.7701(b)-4 – Residency Time Periods This applies even if you spend most of the year abroad. The obligation continues until you formally surrender the card by filing Form I-407 with USCIS or the government revokes your status administratively or judicially. Letting the card expire does not end your U.S. tax residency.
The Closer Connection Exception
If you meet the substantial presence test but were physically in the U.S. for fewer than 183 days in the current year, you may avoid U.S. tax residency by showing a closer connection to a foreign country. You must have maintained a tax home there for the entire year and must not have applied for or had a pending application for a green card.4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test
Claiming the exception requires filing Form 8840. If you skip it, the exception is lost unless you can show by clear and convincing evidence that you took reasonable steps to learn about and comply with the requirement.4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test That is a high bar, and most people who miss the filing lose the exception.
Exempt Individuals
Some people in the U.S. temporarily do not count their days of presence toward the substantial presence test at all. Students on F, J, M, or Q visas and teachers or trainees on J or Q visas qualify as “exempt individuals” so long as they substantially comply with their visa’s terms. If you exclude days under this rule, you must attach Form 8843 to your tax return.5Internal Revenue Service. Substantial Presence Test The exemption has time limits that vary by visa type; once they expire, every day starts counting again.
Tax Residency Is Not Citizenship
Most countries tax based on residence. Move away permanently, and your obligation to report worldwide income to that country generally ends. The United States is an outlier. It taxes based on citizenship, meaning every U.S. citizen owes federal income tax on worldwide earnings regardless of where they live, how long they have been gone, or whether they also qualify as a tax resident of another country.1Internal Revenue Service. Introduction to Residency Under U.S. Tax Law
A U.S. citizen working in Germany, for example, is a tax resident of Germany under German law and is simultaneously subject to U.S. taxation as a citizen. Both countries expect a return, both claim the right to tax the same paycheck, and sorting out who collects what requires treaty provisions and foreign tax credits. Leaving the U.S. does not end your U.S. tax obligations the way it would in nearly every other country.
When Two Countries Both Claim You
When two countries each treat you as a tax resident under their domestic laws, a bilateral tax treaty typically resolves the conflict. The OECD Model Tax Convention, which has served as the template for tax treaty negotiations since 1963, provides a standard tie-breaker hierarchy in Article 4.6Organisation for Economic Co-operation and Development. Tax Treaties The tests apply in order, stopping as soon as one produces an answer:
- Permanent home. You are a resident of whichever country you have a permanent home available in. If both, move to the next test.
- Center of vital interests. Where your personal and economic ties are strongest, including family, work, and financial activity.
- Habitual abode. Where you actually spend more time.
- Nationality. If time is comparable, your nationality breaks the tie.
- Mutual agreement. If nothing else resolves it, the tax authorities of both countries negotiate directly.
The Saving Clause
Most U.S. tax treaties include a saving clause that preserves each country’s right to tax its own citizens and residents as if no treaty existed.7Internal Revenue Service. United States Income Tax Treaties – A to Z A U.S. citizen living in a treaty partner country often cannot use the treaty to reduce their U.S. tax bill, even when the tie-breaker rules assign residence to the other country.8Internal Revenue Service. Tax Treaties Can Affect Your Income Tax The clause has narrow exceptions for certain income types, but winning the tie-breaker does not mean you stop filing with the IRS.
What You Owe as a Tax Resident
Tax residents report and pay on worldwide income, including wages, dividends, rental income, interest, and capital gains, no matter where those earnings originate. Non-residents pay tax only on income sourced within that country’s borders.1Internal Revenue Service. Introduction to Residency Under U.S. Tax Law The gap is large. A non-resident with no U.S.-sourced income may owe nothing; a resident with the same total income from foreign sources owes tax on every dollar.
Filing Deadlines for Residents Abroad
U.S. citizens and resident aliens living outside the country on the standard April 15 deadline get an automatic two-month extension to June 15. It applies if your tax home is in a foreign country and you live outside the U.S. and Puerto Rico on the regular due date.9Internal Revenue Service. U.S. Citizens and Resident Aliens Abroad – Automatic 2-Month Extension of Time to File Interest on any tax owed still runs from April 15.
FBAR
If you are a U.S. person and the combined value of your foreign financial accounts exceeds $10,000 at any point during the year, you must file a Report of Foreign Bank and Financial Accounts (FBAR) electronically with FinCEN.10Internal Revenue Service. Report of Foreign Bank and Financial Accounts (FBAR) The threshold is aggregate across every account you have signature authority over, not just ones you own. A non-willful violation carries a civil penalty of up to $16,536 per account.11eCFR. 31 CFR 1010.821 – Penalty Adjustment and Table Willful violations can reach the greater of $100,000 or 50% of the account balance, plus potential criminal prosecution.
Form 8938 Under FATCA
Separate from the FBAR, the Foreign Account Tax Compliance Act requires certain taxpayers to file Form 8938 with their income tax return. Thresholds vary by filing status and whether you live in the U.S. or abroad, starting at $50,000 in foreign assets on the last day of the year for a single filer living stateside and rising to $400,000 for joint filers living abroad.12Internal Revenue Service. Do I Need to File Form 8938, Statement of Specified Foreign Financial Assets? The penalty for failing to file is $10,000 per form, with an additional $10,000 for every 30-day period of continued noncompliance after an IRS notice, up to $50,000.13eCFR. 26 CFR 1.6038D-8 – Penalties for Failure to Disclose FBAR and Form 8938 look similar but go to different agencies, have different thresholds, and carry separate penalties. You may need to file both.
Large Foreign Gifts
If you receive gifts or bequests totaling more than $100,000 during a tax year from a nonresident alien or a foreign estate, you must report them on Form 3520, and each individual gift over $5,000 must be separately identified. Gifts from foreign corporations or partnerships have a lower threshold that adjusts annually for inflation, set at $19,570 for 2024.14Internal Revenue Service. Gifts From Foreign Person These gifts are typically not taxable income, but missing the reporting requirement triggers penalties based on a percentage of the gift’s value.
How to Avoid Paying Tax Twice
Being a tax resident of one country while earning income in another would mean paying tax twice on the same money without some form of relief. The U.S. offers several mechanisms, each with its own limits.
Foreign Tax Credit
The foreign tax credit offsets your U.S. tax liability dollar-for-dollar against income taxes you have already paid to a foreign government. You claim it by filing Form 1116. Only income taxes, war profits taxes, and excess profits taxes qualify; sales taxes, VAT, and property taxes do not.15Internal Revenue Service. Foreign Tax Credit If you also claim the foreign earned income exclusion, you cannot take the credit on the income you excluded.
Foreign Earned Income Exclusion
U.S. citizens and resident aliens who live and work abroad can exclude up to $132,900 of foreign earned income from U.S. taxation for the 2026 tax year.16Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026, Including Amendments From the One, Big, Beautiful Bill To qualify, your tax home must be in a foreign country and you must pass either the bona fide residence test (a genuine resident of a foreign country for an entire tax year) or the physical presence test (outside the U.S. for at least 330 full days in a 12-month period).
Foreign Housing Exclusion
On top of the earned income exclusion, you may exclude or deduct certain housing costs paid with employer-provided funds or self-employment income. Qualifying expenses include rent, utilities, and similar reasonable housing costs abroad, but not the purchase price of property, furniture, or lavish expenses. The base housing amount is 16% of the maximum foreign earned income exclusion, prorated for your qualifying period, and the cap on total housing expenses varies by location using the worksheet in the Form 2555 instructions.17Internal Revenue Service. Foreign Housing Exclusion or Deduction
Ending U.S. Tax Residency
Giving up U.S. citizenship or surrendering a long-term green card triggers a final accounting with the IRS. If you qualify as a “covered expatriate,” the tax code treats you as if you sold all your worldwide assets at fair market value the day before expatriation, with any gains above an inflation-adjusted exclusion amount taxed at regular capital gains rates. You become a covered expatriate if any one of these applies:
- Your net worth is $2 million or more on the date of expatriation.
- Your average annual net income tax liability for the five prior years exceeds the inflation-adjusted threshold, set at $206,000 for 2025.
- You fail to certify on Form 8854 that you have complied with all federal tax obligations for the preceding five years.
The certification prong catches people who fall below both the net worth and income thresholds. If you cannot certify five years of full compliance, you are a covered expatriate regardless of how modest your finances are. Cleaning up missed filings or delinquent returns after surrendering citizenship is far harder and more expensive than doing it beforehand.
For green card holders, the process starts with filing Form I-407 with USCIS to formally abandon permanent resident status. USCIS reports your name and filing date to the IRS, which may trigger the exit tax if you held the card for at least 8 of the last 15 tax years.18Internal Revenue Service. Expatriation Tax