Closer Connection Exception: Form 8840 Rules for Nonresident Status
In this guide
Quick answer: The closer connection exception lets you be treated as a US tax nonresident even though you passed the substantial presence test, but only if you were in the US fewer than 183 days, kept a tax home in one foreign country all year, had closer ties to that country than to the US, and had not applied for a green card. You claim it by filing Form 8840 on time.
The substantial presence test counts days, and sometimes the count says “resident” for someone whose life is clearly elsewhere. The closer connection exception is the IRS’s escape route for that person. It is easy to lose by missing a form or a deadline, so this guide sets out the conditions, the evidence the IRS looks at and the mistakes that cancel the claim. It builds on our substantial presence test guide. Everything here comes from the IRS page on the closer connection exception.
Who qualifies for the closer connection exception?
Even if you met the substantial presence test, you can still be treated as a nonresident if all of these are true:
- You were present in the US fewer than 183 days during the year.
- You had a closer connection during the year to one foreign country in which you had a tax home than to the US (two countries are allowed in one case, covered below).
- You maintained a tax home in that foreign country during the entire year.
- You had not taken steps toward, and had no application pending for, lawful permanent resident (green card) status.
Can you have a closer connection to two countries?
Yes, but not more than two, and only if you meet every one of these conditions:
- You kept a tax home in one foreign country from the first day of the year.
- You changed your tax home during the year to a second foreign country.
- You kept your tax home in the second country for the rest of the year.
- You had a closer connection to each foreign country than to the US for the period you had your tax home there.
- You were taxed as a resident under the tax laws of either foreign country for the whole year, or of both for the period you had your tax home in each.
How does the IRS decide what “closer” means?
You have a closer connection if you or the IRS can establish that you maintained more significant contacts with the foreign country than with the US. The IRS looks at facts and circumstances, including:
| Factor | What the IRS looks at |
|---|---|
| Forms and documents | The country of residence you list, and forms you file such as Form W-9, W-8BEN or W-8ECI |
| Home and family | Where your permanent home and your family are |
| Belongings | Where your cars, furniture, clothing and jewellery are kept |
| Affiliations | Your social, political, cultural or religious ties |
| Business | Business activities other than those that make up your tax home |
| Licences and votes | Where you hold a driver’s licence and where you vote |
| Giving | Charities you contribute to |
The IRS notes that your home can be a house, an apartment or a furnished room, rented or owned. What matters is that it is available to you at all times, continuously, and not only for short stays.
When can’t you claim it?
You cannot claim a closer connection if you personally applied or took other steps during the year to become a lawful permanent resident, or if you had an application pending for adjustment of status during the year. The IRS says filing any of these forms during or before the year signals intent to become a permanent resident and makes you ineligible: Form I-508, Form I-485, Form I-130, Form I-140, Form ETA-750 or Form OF-230.
How do you claim it?
File Form 8840, Closer Connection Exception Statement for Aliens. If you are filing a US federal income tax return, attach Form 8840 to it. If you do not have to file a return, send Form 8840 to the IRS Service Center named in the form’s instructions by the due date for filing the return.
If you do not file Form 8840 on time, you cannot claim the exception, unless you can show by clear and convincing evidence that you took reasonable actions to become aware of the filing requirements and significant steps to comply with them.
What about students?
If you are a student and do not qualify under the general rule, the IRS has a separate closer connection exception for students only. Students and other exempt individuals should also read our guide to Form 8843, which is a different form for a different purpose.
Common mistakes
- Forgetting to file Form 8840 and assuming the facts alone are enough.
- Having a green card application or an employer petition in progress, which rules the exception out.
- Letting your tax home slip: it must be in the foreign country for the entire year.
- Listing the US as your country of residence on forms while claiming ties abroad.
Frequently asked questions
Is the closer connection exception the same as a tax treaty tiebreaker?
No. The treaty rules are separate. See tax treaty benefits explained.
Can I use it if I was in the US 200 days?
No. One condition is being present fewer than 183 days in the year.
Where do I send Form 8840 if I do not file a return?
To the IRS Service Center shown in the form’s instructions. The IRS page does not name the address, so check the instructions.
Key takeaways
- The exception needs fewer than 183 days, a foreign tax home all year, a closer foreign connection and no green card steps.
- File Form 8840 on time. Without it the claim fails except in narrow cases.
- Any green card or immigrant petition filing in or before the year defeats the claim.
Related guides
- The substantial presence test
- The green card test for US tax residency
- Nonresident alien tax guide
- The dual-status tax year
- Your first 90 days in a new country
This page is general information, not legal or tax advice. Last updated: October 2026.
Sources
Internal Revenue Service: Closer connection exception to the substantial presence test.