Closer Connection Exception & Form 8840: Fewer Than 183 US Days
By Quinn Moran · Last updated
iReside is the app that tracks your days for tax residency and visa stays, and gives you audit-ready proof of where you were for the tax authority or immigration officer who asks.
The closer connection exception keeps you a US nonresident despite meeting the substantial presence test, if you were in the US fewer than 183 days, kept a foreign tax home all year, and had a closer connection to that country, and took no steps toward a green card. Claim it on Form 8840 on time; late filing generally forfeits it.
Who needs to read this
The closer connection exception is how a non-citizen who spends part of the year in the US stays a nonresident for tax purposes, and it only works if you claim it. Read this if:
- You are a Canadian snowbird who spends several months in the US each winter
- You are a frequent visitor whose weighted three-year day count reaches 183
- You are a retiree or remote worker with a home in Canada and a second place in the US
- You have never filed Form 8840 and are unsure whether you should have
If your US stay is capped by an immigration date instead, see the Canadian visitor six-month rule. The two clocks are different. This one is the IRS calendar-year count.
How the rule works
The exception removes you from the substantial presence test for a year when three conditions hold. Under IRC § 7701(b)(3)(B), you are not treated as meeting the test for the current year if you are present in the US on fewer than 183 days during the year, and it is established that you have a tax home in a foreign country and a closer connection to that foreign country than to the United States.
Treasury Regulation § 301.7701(b)-2 adds the working detail. It treats you as having a closer connection if you have maintained more significant contacts with the foreign country, weighing factors such as your permanent home, family, personal belongings, banking, driver's license, and voting jurisdiction. A permanent home counts if it is available at all times, continuously, and not solely for stays of short duration.
A separate bar applies under IRC § 7701(b)(3)(C) and Treasury Regulation § 301.7701(b)-2(f): the exception is unavailable if at any time during the year you had a green-card application pending or took other steps to apply, including a relative filing Form I-130 for you.
The IRS Form 8840 instructions list the disqualifiers: 183 days or more in the year, being a green card holder, or having applied or taken affirmative steps to apply for a green card. The form also says that if you had a tax home in the US at any time during the year, you should not file it.
Counting the days
The day count that matters is the number of days you were physically in the US in the calendar year, and it must be under 183. The statute and the IRS treat you as present on any day you are physically in the US at any time during the day, so arrival and departure days both count.
Excluded days, per the Form 8840 instructions:
- Days you regularly commuted to work in the US from a residence in Canada or Mexico
- Days in the US of less than 24 hours while traveling between two places outside the US
- Days as a regular crew member of a foreign vessel
- Days you were unable to leave because of a medical condition that arose in the US
- Days under a NATO visa as a member of a force or civilian component
- Days you were an exempt individual, which generally requires Form 8843
Worked example. You spent 140 days in the US in 2026, 150 in 2025, and 150 in 2024. The weighted total is 140 plus 50 plus 25, which is 215. That is at least 183, and you were in the US 31 days or more, so you meet the substantial presence test. But 140 is fewer than 183, so you may claim the exception on Form 8840. With 100, 90, and 90 days the total is 100 plus 30 plus 15, which is 145, so you would not meet the test and would have no need for the form.
Resets, extensions, and edge cases
The exception is claimed for one tax year at a time. Form 8840 asks for your days in each of the current year and the two preceding years, and you file a separate form for each tax year in which you rely on the exception.
- Two foreign countries: you may claim a closer connection to up to two countries if your tax home changed during the year, using Part III of the form.
- Treaty route: if you are not eligible for the exception, the IRS instructions note that you may still qualify for nonresident status by reason of a treaty, which involves Form 8833 with Form 1040-NR.
- Couples: each alien individual files a separate Form 8840.
- Health coverage: the form asks whether you qualified for a national health plan sponsored by a foreign country. See the Ontario OHIP guide for how Ontario's 153-day requirement fits.
Overstays: consequences and enforcement
The consequence of not filing on time is loss of the exception. The IRS instructions say that if you do not timely file Form 8840, you will not be eligible to claim the closer connection exception and may be treated as a US resident. Treasury Regulation § 301.7701(b)-8 says a person who fails to file on time must count all days of presence for the substantial presence test, and that the late filing can be excused only on clear and convincing evidence of reasonable efforts to learn the requirement and significant steps to comply, or when the government's interest allows.
A US resident is generally taxed on worldwide income. The form is signed under penalties of perjury when filed on its own, and it asks for your days of presence in three years, so the figures should match your travel records. Border authorities in both countries record crossings, as explained on the Canadian visitor page.
Staying compliant
- Count every US day, including arrival and departure days, and compute the weighted three-year total each year.
- Attach Form 8840 to Form 1040-NR, or mail it by the Form 1040-NR due date, including extensions, if you have no return to file.
- Know your due date. The IRS says Form 1040-NR is due the 15th day of the 4th month if you received wages as an employee subject to US income tax withholding, and the 15th day of the 6th month for everyone else.
- Document your foreign ties to Canada: home, family, banking, license, voting, and health plan.
- Use iReside's US Closer Connection preset to keep your calendar-year count under 183 days.
Common mistakes
- Waiting until you are audited. The exception is claimed by filing Form 8840 on time, not by explaining later.
- Assuming the exception applies at any day count. At 183 days or more in the year it is unavailable.
- Counting only midnights. Any part of a day in the US counts.
- Forgetting the green card rule. Applying for a green card disqualifies the exception.
- Filing for the wrong year. The form covers one tax year, so each year you rely on the exception needs its own.
- Overlooking the weighted count. Three years of 122-day stays already total 183, so a snowbird well under 183 days a year can still meet the substantial presence test.
