Why does residency matter?
A US resident for tax is taxed on worldwide income and files Form 1040. A non-resident is taxed only on US-source income and income effectively connected with a US business, and files Form 1040-NR where required. For foreign owners of US companies, the difference can be large.
There are two ways to become a US resident for tax: holding a green card, or meeting the substantial presence test. This guide covers the second.
How does the test work?
You meet the test for a calendar year if you were physically present in the US on:
At least 31 days during the current year, and
Any part of a day counts as a day, with the exceptions below.
At least 183 days over the three-year period
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.
What does the count look like?
| Example A | Example B | |
|---|---|---|
| Days in the US in 2026 | 120 | 150 |
| Days in 2025 (counted at one-third) | 60, counting 20 | 120, counting 40 |
| Days in 2024 (counted at one-sixth) | 90, counting 15 | 60, counting 10 |
| Weighted total | 155 | 200 |
| Resident for 2026 under the test? | No | Yes, unless an exception applies |
Which days do not count?
- Days as an exempt individual, such as certain students on F or J visas, teachers and trainees on J visas, and foreign government officials. They file Form 8843.
- Days you intended to leave but could not because of a medical condition that arose in the US.
- Days in transit between two foreign points, if you were in the US for less than 24 hours.
- Days commuting to work in the US from a home in Canada or Mexico, if you commute regularly.
What is the closer connection exception?
If you were in the US fewer than 183 days in the current year, have a tax home in another country for the whole year, and have a closer connection to that country than to the US, you can be treated as a non-resident even though you meet the test. Claim it by filing Form 8840 by the due date of your return. Factors include where your home, family, belongings, bank accounts, business and driving license are.
Can a tax treaty override the test?
Many US tax treaties include tie-breaker rules for people treated as residents of both countries, looking at where you have a permanent home, your centre of vital interests and your habitual abode. If the treaty makes you a resident of the other country, you can be taxed as a US non-resident, filing Form 1040-NR with Form 8833 to disclose the treaty position.
What does this mean for LLC owners?
Owners who visit the US often for their business should count days each year. Crossing the line can make worldwide income taxable in the US and change the reporting for foreign accounts. Time in the US working for your LLC can also create a US trade or business, a separate question. See what counts as a US trade or business.
New US residents who receive large gifts from family abroad may need Form 3520, and those with foreign accounts should see FBAR vs Form 8938.
Once you become resident, see your first US tax return after moving to the US.
Close to the 183-day line?
We count your days, check the exceptions and treaty position, and tell you which return to file.
Questions people ask
What is the substantial presence test?
The IRS test for US tax residence based on days: at least 31 days this year, and 183 weighted days over three years.
How are days counted for the substantial presence test?
All days in the current year, one-third of days in the previous year, and one-sixth of days in the year before that.
Can I be in the US for 183 days and still be a non-resident?
If you were in the US fewer than 183 days in the current year, the closer connection exception on Form 8840 or a treaty tie-breaker can keep you a non-resident.
Do student days count towards the test?
Days as an exempt individual, including certain F and J visa students, generally do not count.
Sources
Every fee, date and rule on this page was taken from these official and primary sources.
- IRS: Substantial presence test
- IRS Publication 519: U.S. Tax Guide for Aliens
- IRS: Form 8840, Closer Connection Exception Statement for Aliens
- IRS: Form 8843, Statement for Exempt Individuals
- Internal Revenue Code section 7701(b): definition of resident alien
Rules and fees change. If you are reading this long after September 30, 2026, confirm the figures with the source before you rely on them.
Related guides
More in Foreign-owned and non-resident companies
This guide is general information. It is not tax or legal advice for your situation.