Skip to content
← All visa & residency rules
Residency & citizenship

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 short answer

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.

Day limit
Under 183 days
Counting window
Per calendar year
Applies to
Non-citizens meeting the SPT
Authority
IRC § 7701(b)(3)(B)
Overstay risk
Taxed as US resident
iReside preset
US Closer Connection (Form 8840)

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.

US Closer Connection Exception (Form 8840) FAQ

You file it for each tax year in which you meet the substantial presence test and want to stay a nonresident under the exception. The form is for one calendar year, and each alien individual files a separate one. A year in which you do not meet the test, for example because you were in the US fewer than 31 days, does not need it.

You are treated as present on any day you are physically in the US at any time during that day, including arrival and departure days. The IRS excludes days such as regularly commuting to work from Canada or Mexico, transit of under 24 hours between two foreign points, and days you could not leave because of a medical condition that arose in the US. Exempt individual days are also excluded.

If you file Form 1040-NR, attach Form 8840 to it. If you have no return to file, mail the form by the due date, including extensions, for Form 1040-NR. The IRS says that date is the 15th day of the 4th month after year end if you received wages as an employee subject to US income tax withholding, and the 15th day of the 6th month for everyone else.

The IRS says that if you do not timely file, you will not be eligible for the closer connection exception and may be treated as a US resident. You are not penalized if you can show by clear and convincing evidence that you took reasonable actions to learn of the filing requirement and significant steps to comply.

No. The exception applies only if you were present in the US fewer than 183 days in the year. The IRS also says you cannot use it if you are a green card holder or have applied, or taken affirmative steps to apply, for one.

The substantial presence test counts all days this year, one third of last year, and one sixth of the year before, and meeting it makes you a resident unless an exception applies. With 140, 150, and 150 days over three years the total is 215, so you meet the test even though 140 is under 183. Form 8840 is what keeps you a nonresident.

You must show more significant contacts with Canada than with the US. The regulation looks at your permanent home, family, belongings, banking, driver's license, voting jurisdiction, and the country you list on forms. Form 8840 also asks about your income and investments and whether you qualified for a national health plan sponsored by a foreign country. A tax home in the foreign country for the entire year is required.

Official sources

Related rules

Keep a day-by-day record automatically

This guide is general information, not legal or immigration advice. Rules change and outcomes depend on your specific circumstances; confirm against the official sources above or a qualified immigration professional before making decisions.

Show the immigration authority how many days you were physically present.

iReside records which country you were in each day and counts it against the US Closer Connection Exception (Form 8840). The report lists every day with its source, shows any gaps openly, and indexes your passport stamps, visas and boarding passes to the days they support, ready for the immigration authority or your lawyer. It also warns you before you reach a limit.

$44.99/year after free trial. Cancel anytime.