Am I a US tax resident if I live outside the country?
A US citizen stays inside the US tax system wherever they live. For someone who is not a citizen, two tests decide residence: holding a green card at any time during the year, or meeting the substantial presence test, which weighs days across the current year and the two before it. Some days are excluded, and a closer connection exception can apply.
For tax year 2025
- 31 days in the current year and 183 weighted days over the current and two prior years (substantial presence test day counts, 2025)
Key points
- A US citizen or resident alien living abroad is taxed on worldwide income, so moving outside the country does not by itself end a US filing obligation.
- Holding a green card makes an individual a US tax resident under the green card test if they are a lawful permanent resident at any time during the calendar year, however few days they spent in the country.
- The substantial presence test treats an individual as a US resident when they are present at least 31 days in the current year and 183 weighted days across three years, counting all current-year days, one third of the first prior year's, and one sixth of the second prior year's.
- Days spent in the United States as an exempt individual — broadly, students on F, J, M, or Q visas and teachers or trainees on J or Q visas who substantially comply with their visa terms — can be excluded from the substantial presence count, but only for a limited number of years and only if Form 8843 is filed on time.
- A closer connection exception can treat someone who met the substantial presence test as a non-resident for US tax purposes.
Which tests decide whether you are a US tax resident?
Separate the two cases. A US citizen or resident alien who lives abroad is taxed on worldwide income; leaving the country does not remove the filing obligation, and relief comes through exclusions and credits instead. For an individual who is not a US citizen, Publication 519 is the guide: it classifies aliens as non-resident aliens or resident aliens and sets out how to determine which applies.
Two separate tests can make a non-citizen a resident, and meeting either one is enough. The green card test looks at status rather than days: you are a resident for federal tax purposes if you are a lawful permanent resident at any time during the calendar year, which generally means USCIS has issued you a Permanent Resident Card, Form I-551. Residence under that test persists until you renounce and abandon the status in writing, or USCIS terminates it, or a federal court does — living abroad does not by itself end residence under this test.
The substantial presence test is the day-count route. Meeting either test for a calendar year means being considered a United States resident for tax purposes for that year, which changes what has to be reported and can bring foreign account reporting into play at the same time.
How does the substantial presence test count days?
You meet the test if you were physically present in the United States on at least 31 days during the current year and on at least 183 days across the three-year period consisting of the current year and the two years immediately before it. The three-year count is weighted: all the days in the current year, one third of the days in the first prior year, and one sixth of the days in the second prior year.
The weighting is what catches people out. The IRS worked example is someone present on 120 days in each of three consecutive years. The weighted total is 120 plus 40 plus 20, which is 180 days, so the test is not met even though the raw count across three years is far higher. For this test, the United States means the 50 states and the District of Columbia, together with territorial waters and certain adjacent seabed; it does not include US territories or US airspace.
Which days do not count?
You are treated as present on any day you are physically in the country at any time, with specific exceptions. Days you commute to work in the United States from a residence in Canada or Mexico, if you regularly commute, do not count. Neither do days you are in the country for less than 24 hours in transit between two places outside it, days as a crew member of a foreign vessel, or days you were unable to leave because of a medical condition that developed while you were here.
Days as an exempt individual are also excluded, and the term means a visa category rather than someone exempt from tax: certain foreign government-related individuals on A or G visas, teachers and trainees on J or Q visas, students on F, J, M, or Q visas, and professional athletes competing in a charitable sports event. Excluding days on the exempt-individual or medical grounds requires Form 8843, filed with the tax return or sent separately by the return due date. Filing it late generally means the days cannot be excluded, unless you can show by clear and convincing evidence that you took reasonable steps to learn of and comply with the requirement.
What if you meet the test but your life is elsewhere?
Meeting the substantial presence test is not the final word. The closer connection exception can allow someone who met the test to be treated as a non-resident of the United States for tax purposes, and there is a separate version of that exception for foreign students. An income tax treaty between the United States and another country can also change the outcome. Each route has its own conditions and its own disclosure, so the position needs to be documented rather than assumed.
One boundary is worth stating plainly. Tax residence and immigration status are two different systems that borrow each other's vocabulary. Your visa class affects the tax answer, but questions about your immigration standing, or about how a filing position might interact with it, are for an immigration attorney rather than an accountant. A CPA can determine and file the tax position; the lawyer handles the status.
Related strategies
People also ask
- I live outside the United States and own a US LLC — how is it taxed?
- Can I work with a CPA in Arabic?
- Do I owe taxes in states where I don't have an office?
Sources
Related guides: arab american business owners

Mena Hemaia, CPA, CIA
Chief Executive Officer, Accountack — West Palm Beach, Florida
If you want to know which of these apply to your business specifically, that is a conversation about your actual numbers — not a seminar example.
Or start with the Free Cash Clarity Audit — A no-cost review of where your business stands and what a planning engagement would target — the firm's own named starting point.
20 minutes with an Accountack advisor. If a technical review is worth your time, the next step is a workshop with Mena — and if there is nothing material to do, he will say so.