US Federal · Form 8840

Form 8840 and the closer-connection exception

Even if you meet the IRS Substantial Presence Test, you can avoid US tax-resident status by claiming closer connection on Form 8840, but only if you meet specific day-count and residency conditions.

9 min read

Met the Substantial Presence Test? You're not automatically a US tax resident, yet. The IRS provides the closer-connection exception (Form 8840) for non-citizens who meet the SPT but maintain stronger ties to a foreign country. It's a powerful safety valve, but it has strict eligibility requirements.

What the exception does

If you qualify and timely file Form 8840, the IRS treats you as a non-resident alien for the year, even though you met the SPT. That means you're taxed only on US-source income (wages earned for US work, US-source investment income), not your worldwide income.

Eligibility requirements

All four must be true for the year you're claiming the exception:

  • You were present in the US for fewer than 183 days in the current year (note: the unweighted current-year count, not the SPT weighted total).
  • Your tax home was in a foreign country for the entire year.
  • You have a closer connection to that foreign country than to the US.
  • You haven't applied for, and don't have a pending application for, lawful permanent residence (a green card).

The 183-day current-year threshold is a hard line. If you spent 184 or more US days in the current year, the exception is unavailable, even if all other conditions are met.

What 'tax home' means

Your tax home is the general area of your main place of business, employment, or post of duty, regardless of where you maintain your family home. If you don't have a regular or main place of business, your tax home is where you regularly live.

For a remote worker, the tax home is generally where you regularly perform your work. For a retiree, it's where you regularly live. For a student, it's where you regularly study.

Factors the IRS weighs for closer connection

Form 8840 asks about more than 20 factors. The most important:

  • Location of your permanent home.
  • Location of your family.
  • Location of personal belongings (cars, furniture, clothing, jewelry).
  • Location of social, political, cultural, or religious organizations.
  • Location of routine business activities.
  • Location of your driver's license.
  • Location of voter registration.
  • Country of residence designated on forms and documents.
  • Type of forms and documents filed (W-9, W-8BEN, etc.).

No single factor is dispositive. The test is whether the totality of your facts shows closer connection to the foreign country than to the US.

Filing Form 8840

File Form 8840 by the due date of your US tax return for the year (including extensions). For someone not otherwise required to file, the form must still be timely filed by the deadline that would apply.

Late filing of Form 8840 generally forfeits the exception unless you can show reasonable cause. The form requires day-count specifics, fudging them risks IRS challenge. A contemporaneous record is the only credible defense.

Common closer-connection pitfalls

  • Spent 184+ days in current year, exception unavailable.
  • Applied for green card, exception unavailable for that year.
  • Family moved to US, your closer-connection claim is much weaker.
  • US bank, US broker, US driver's license, these are factors that point to US, not against.
  • Tax home is a vacation country, not a working country, the IRS may challenge.

Closer-connection requires day-count records

Form 8840 reports your US days, foreign-country days, and the supporting facts. The IRS audits closer-connection claims; your day count is the foundation. Tax Days exports the exact day-count data Form 8840 requires.

FAQ

Frequently asked questions

What does the closer-connection exception on Form 8840 do?

If you qualify and timely file Form 8840, the IRS generally treats you as a non-resident alien for the year even though you met the Substantial Presence Test. That means you're taxed only on US-source income, such as wages for US work and US-source investment income, rather than on your worldwide income.

Who qualifies for the closer-connection exception?

All four conditions must be true for the year: you were present in the US for fewer than 183 days in the current year (the unweighted current-year count, not the SPT weighted total), your tax home was in a foreign country for the entire year, you have a closer connection to that foreign country than to the US, and you haven't applied for (and don't have pending) a green card.

Can I claim closer connection if I spent 184 days in the US this year?

No. The 183-day current-year threshold is a hard line: if you spent 184 or more days in the US in the current year, the exception is unavailable even if every other condition is met.

When do I have to file Form 8840?

Form 8840 must be filed by the due date of your US tax return for the year, including extensions, and someone not otherwise required to file must still submit it by the deadline that would apply. Filing late generally forfeits the exception unless you can show reasonable cause.

What does 'tax home' mean for the closer-connection exception?

Your tax home is generally the area of your main place of business, employment, or post of duty, regardless of where your family home is. If you have no regular or main place of business, it's where you regularly live: for a remote worker, generally where you perform your work; for a retiree, where you regularly live; for a student, where you regularly study.