If you were in the U.S. for at least 31 days this year and your weighted day count over the last three years reaches 183, the IRS treats you as a U.S. tax resident under the substantial presence test. Residents are taxed on worldwide income. If you were in the U.S. for fewer than 183 days this year and your life is centered in another country, you can usually stay a nonresident by filing Form 8840, the closer connection exception statement, on time.
This matters most to people who run a U.S. LLC from abroad and visit often.
How the Substantial Presence Test Works
According to the IRS substantial presence test page, you meet the test for a calendar year if you were physically present in the U.S. for at least:
- 31 days during the current year, and
- 183 days over the current year and the two years before it, counting:
- all days in the current year,
- one-third of the days in the prior year, and
- one-sixth of the days two years back.
Both conditions must be met. Any part of a day counts: the IRS treats you as present "on any day you are physically present in the country." Arrival and departure days both count.
Count Your Days: Two Worked Examples
Under the line. The IRS gives this example: 120 days in each of 2023, 2024 and 2025. For 2025 that is 120 + 40 (one-third of 120) + 20 (one-sixth of 120) = 180 days. That is below 183, so the person is not a resident under the test.
Over the line. Say you spent 150 days in the U.S. in 2026, 120 in 2025 and 90 in 2024. Your 2026 count is 150 + 40 + 15 = 205 days. You meet the test. Because you were in the U.S. for fewer than 183 days in 2026, though, you may still qualify for the closer connection exception below.
A useful rule of thumb: if you spend the same number of days in the U.S. every year, 121 days a year keeps you under 183 (121 × 1.5 = 181.5). At 122 days a year you reach exactly 183 and meet the test.
Keep your own day log, backed by boarding passes and passport stamps.
Days That Don't Count
Some days of physical presence are left out of the count. Per the IRS and the Form 8840 instructions, you don't count:
| Excluded days | What qualifies |
|---|---|
| Canada or Mexico commuters | Days you regularly commute to work in the U.S. from a home in Canada or Mexico |
| In transit | Days you are in the U.S. for less than 24 hours while traveling between two places outside the U.S. |
| Medical condition | Days you couldn't leave because of a medical condition that arose while you were in the U.S. |
| Foreign vessel crew | Days as a regular crew member of a foreign vessel |
| Exempt individuals | Foreign government-related individuals, certain teachers and trainees, students, and pro athletes at charitable sports events |
If you exclude days as an exempt individual or for a medical condition, you generally must file Form 8843 on time to keep them excluded. F-1 and J-1 students, see our ITIN guide for F-1 and J-1 students.
The Closer Connection Exception
If you meet the substantial presence test, you can still be treated as a nonresident if all of these are true for the year, according to the IRS closer connection page:
- You were in the U.S. for fewer than 183 days during the current year.
- You had a tax home in a foreign country for the entire year.
- You had a closer connection to that country than to the U.S.
A two-country version exists if you moved your tax home from one foreign country to another during the year.
What counts as a tax home
Under the Form 8840 instructions, your tax home is the general area of your main place of business, employment or post of duty, wherever your family lives. If you have no main place of business, it is where you regularly live. If you had a tax home in the U.S. at any point in the year, you can't use the exception.
For a founder running a U.S. LLC from abroad, what matters is where you actually do the work, not the company's U.S. address.
What counts as a closer connection
You have a closer connection if you kept more significant contacts with the foreign country than with the U.S. Part IV of Form 8840 asks where you had:
- your permanent home, family, cars and personal belongings,
- your routine personal banking and investments,
- your driver's license and voter registration,
- the source of most of your income,
- national health plan coverage.
It also asks whether you've signed a W-8BEN (foreign status) or a W-9 (U.S. person); a W-9 works against you. Our guide to W-8BEN vs W-8BEN-E for a single-member LLC explains which form a foreign owner signs.
Who Can't Use the Exception
The Form 8840 instructions rule out the exception if:
- you were in the U.S. 183 days or more in the current year,
- you are a green card holder, or
- you applied for, took affirmative steps toward, or had a pending application for a green card during the year. The IRS gives Form I-485 and Form I-130 as examples of filings that show this intent.
If you're blocked from the exception, a tax treaty may still let you be treated as a nonresident. The Form 8840 instructions point to Pub. 519 for the treaty route and say to file Form 8833 with your Form 1040-NR if you claim it.
How to File Form 8840
The Form 8840 page has the current form. Each person files a separate one.
If you are filing Form 1040-NR, attach Form 8840 to it and mail the return by its due date, including extensions.
If you don't have to file a return, mail Form 8840 on its own to:
Department of the Treasury, Internal Revenue Service Center, Austin, TX 73301-0215
It's due by the Form 1040-NR due date, including extensions. Per the IRS nonresident filing page, that's generally April 15 if you had U.S. wages subject to withholding, or June 15 if you had no such wages and no U.S. office or place of business. When you file it on its own, fill in both addresses and sign the form.
On line 1, Visa Waiver Program travelers write "VWP", the country and the entry date. A "Yes" on line 6 (the green card question) means you're not eligible, so don't file.
Do you need an ITIN?
Not for Form 8840 on its own: it asks for your U.S. taxpayer identification number "if any". Apply early. The IRS takes about 7 weeks to process an ITIN, and 9 to 11 weeks in peak season or for applications from abroad.
What If You Miss It?
If you don't file Form 8840 on time, you can't claim the exception and may be treated as a U.S. resident. That means reporting worldwide income on Form 1040, as the IRS resident taxation page explains. The only relief is to show, by clear and convincing evidence, that you took reasonable steps to learn the filing rules and significant steps to comply.
Frequently Asked Questions
How many days can I spend in the U.S. without becoming a tax resident?
There is no single number. You meet the substantial presence test with at least 31 days this year and 183 weighted days over three years (all of this year, one-third of last year, one-sixth of the year before). If you spend the same number of days every year, 121 or fewer keeps you under the test; 122 puts you at exactly 183.
Does a partial day in the U.S. count?
Yes. The IRS treats you as present on any day you are physically in the country at any time. Arrival and departure days both count, except days of less than 24 hours while in transit between two places outside the U.S.
Do I need an ITIN to file Form 8840?
Not if you file Form 8840 on its own. The form asks for your U.S. taxpayer identification number only "if any". If you also have to file Form 1040-NR, for example because your U.S. LLC has effectively connected income, you will need an ITIN for that return.
What is the deadline for Form 8840?
It is due with your Form 1040-NR. If you don't have to file a return, mail it to the IRS in Austin, TX 73301-0215 by the 1040-NR due date, including extensions. For most people with no U.S. wages, that is June 15.
What happens if I miss the Form 8840 deadline?
You lose the closer connection exception and may be treated as a U.S. resident. The only way back is to show, by clear and convincing evidence, that you took reasonable steps to learn about the filing requirement and significant steps to comply.
Can I use the closer connection exception if I applied for a green card?
No. The exception is not available if you applied for, took other affirmative steps toward, or had a pending application for lawful permanent resident status during the year. A tax treaty may still help.
Next Step
Add up your U.S. days for this year and the two before it now, while your travel records are easy to find. If you'll also be filing Form 1040-NR, itin.net's Certifying Acceptance Agent team can verify your passport and most supporting documents, then prepare and file your ITIN application with the IRS.
This article is general information, not legal or tax advice. Check your situation with a qualified tax professional.






