The closer connection exception to the substantial presence test lets you be taxed as a nonresident alien, on U.S.-source income only, even when your days in the country would otherwise make you a U.S. resident for tax purposes. To use it, you must have spent fewer than 183 days in the United States during the calendar year, kept your tax home in a foreign country, maintained stronger ties there than to the U.S., stayed clear of green card status or applications, and filed Form 8840 on time.1Internal Revenue Service. Form 8840 – Closer Connection Exception Statement for Aliens
The 183-Day Ceiling for the Current Year
The substantial presence test uses a weighted three-year day count, but the closer connection exception has its own separate limit that looks only at the current calendar year. If you were physically present in the United States for 183 days or more during that single year, the exception is unavailable no matter how strong your foreign ties are.1Internal Revenue Service. Form 8840 – Closer Connection Exception Statement for Aliens
This is the first thing to check. The weighted formula that pulled you into the substantial presence test in the first place is irrelevant here; only actual current-year days count against the 183-day ceiling for eligibility.
Keeping Your Tax Home in a Foreign Country
You must maintain a tax home in a foreign country for the entire calendar year. Your tax home is the location of your main place of business or employment. If your work isn’t tied to a fixed location, the IRS looks at where you regularly live in a real and substantial sense.2eCFR. 26 CFR 301.7701(b)-2 – Closer Connection Exception
Your tax home must sit in the same foreign country to which you’re claiming the closer connection. A foreign apartment or house alone isn’t enough; the IRS wants evidence that the economic center of your life is genuinely located there. Employment contracts, business registrations, and professional licenses in that country all support the claim.
One trap catches people who take on U.S. work. The IRS treats any work assignment expected to last more than one year as indefinite rather than temporary. Accepting a U.S.-based position expected to run longer than 12 months can shift your tax home to the United States, which disqualifies you from the exception entirely.3Internal Revenue Service. Topic No. 511 – Business Travel Expenses
How the IRS Compares Your Ties
The core of the test is a side-by-side comparison of your foreign life and your U.S. life. The regulation lists specific factors, but no single factor decides the outcome. It’s a totality-of-the-circumstances evaluation, and some factors carry more weight depending on your situation.2eCFR. 26 CFR 301.7701(b)-2 – Closer Connection Exception
The factors include:
- Where you maintain a permanent home continuously available to you, not a vacation property used for short stays.
- Where your spouse, partner, and dependents live.
- Where you keep cars, furniture, clothing, and other personal belongings.
- Where you hold memberships in social, political, cultural, or religious organizations.
- Where you do routine personal banking.
- Which country issued your current driver’s license.
- Where you’re registered to vote.
- Where you conduct business outside your primary employment.
- Where the charities you donate to are located.
- What country of residence you list on forms like the W-8BEN or W-9.
The comparison is what matters. Having a bank account in both countries doesn’t sink your claim, but the IRS will look at which account handles your daily finances. Owning a U.S. property doesn’t automatically disqualify you either, but if your U.S. home is larger, better furnished, and where your family lives, the comparison tilts against you.4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test
Who Cannot Use the Exception
Three situations rule out the closer connection exception regardless of foreign ties:
- You were physically present in the United States for 183 days or more during the current calendar year.
- You are a lawful permanent resident. Green card holders are treated as resident aliens by virtue of immigration status.
- You have applied for lawful permanent residence, taken affirmative steps toward applying, or have a change-of-status application pending.
The green card application rule catches people off guard. Even before a green card is issued, the act of applying or taking steps toward permanent residency signals that you intend to make the U.S. your home. Claiming a closer connection abroad at that point contradicts your own actions.1Internal Revenue Service. Form 8840 – Closer Connection Exception Statement for Aliens
Filing Form 8840
To claim the exception, file Form 8840, the Closer Connection Exception Statement for Aliens, every year you rely on it.1Internal Revenue Service. Form 8840 – Closer Connection Exception Statement for Aliens
The form asks for your exact day counts in the United States for the current year and the two preceding years, since those figures feed the substantial presence calculation. It also asks for the address of your permanent foreign home, the location of your family and personal property, where your cars are registered, and where you maintain bank accounts. These fields track the regulatory factors, so the answers should paint a consistent picture of a life centered abroad.
The filing deadline depends on your situation. If you’re also filing a Form 1040-NR because you received wages subject to U.S. withholding, attach Form 8840 to that return and file by April 15. If you received U.S. income not subject to wage withholding, the 1040-NR deadline extends to June 15. If you don’t need to file a 1040-NR at all, mail Form 8840 by itself to the IRS center in Austin, Texas, by the date that would apply for filing a 1040-NR.5Internal Revenue Service. Instructions for Form 1040-NR1Internal Revenue Service. Form 8840 – Closer Connection Exception Statement for Aliens
Keep supporting documents organized even though you don’t submit them. Foreign lease agreements, utility bills, bank statements, voter registration cards, and driver’s license copies all serve as evidence if the IRS questions your claim. Any form where you designate a country of residence, particularly Form W-8BEN and Form W-9, should match what you report on Form 8840.4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test
What Happens If You Miss the Deadline
Failing to file Form 8840 on time lets the IRS disregard the exception and treat you as a resident alien. That shifts you from paying U.S. tax only on U.S.-source income to paying on your worldwide earnings at graduated federal rates, potentially reaching 39.6% at the top bracket for 2026.
The consequences go beyond the rate. As a nonresident alien, certain passive U.S. income like dividends and interest is taxed at a flat 30% (or a lower rate under a tax treaty) with no deductions allowed. Reclassified as a resident alien, all of your global income, including foreign wages, overseas rental income, and investment gains from foreign markets, comes into the U.S. tax system and is taxed on a net basis at graduated rates.6Internal Revenue Service. Characterization of Income of Nonresident Aliens
Late filing is possible but the standard is steep. You must show by clear and convincing evidence that you took reasonable steps to learn about the filing requirement and made significant efforts to comply. Simply not knowing about Form 8840 is unlikely to be enough; the IRS expects you to have actively sought out your obligations.4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test
If You’re Disqualified: The Treaty Alternative
If you can’t use the closer connection exception because you’ve applied for a green card or spent 183 or more days in the United States, a tax treaty between the U.S. and your home country may still let you be treated as a nonresident. Many U.S. tax treaties contain tie-breaker provisions that resolve dual residency based on factors like permanent home, center of vital interests, habitual abode, and nationality.7Internal Revenue Service. Tax Treaties
Claiming treaty-based nonresident status requires filing Form 8833, Treaty-Based Return Position Disclosure, along with a Form 1040-NR. This is a separate mechanism from Form 8840 and involves its own analysis under the specific treaty. Failing to file Form 8833 when required can trigger a $1,000 penalty for individuals ($10,000 for C corporations).8Internal Revenue Service. Form 8833 – Treaty-Based Return Position Disclosure Under Section 6114 or 7701(b)
State Taxes Are a Separate Question
Winning the closer connection exception at the federal level doesn’t settle your state tax picture. States set their own residency rules and filing thresholds, and most do not follow the federal closer connection framework. A state where you keep a home, earn income, or spend significant time may still consider you a resident or require a return on income sourced there. If you have ties to a state with an income tax, evaluate that state’s residency rules on their own terms.