IRS Form 8840: closer connection exception to avoid US taxation
IRS Form 8840, Closer Connection Exception Statement for Aliens, lets a foreign national who passes the substantial presence test still be treated as a nonresident for US tax purposes if they maintain stronger ties to another country.
If you spend significant time in the United States but consider another country your home, the Internal Revenue Service (IRS) could still classify you as a US tax resident – even without a green card. This often affects business travelers, seasonal or temporary workers, and individuals who spend long vacations in the US.
If you are a foreign national who meets the requirements to be treated as a US tax resident but want to avoid this status, you may be able to use IRS Form 8840.
This article explains the filing requirements, how to claim a closer connection exception, and how to avoid being classified as a US tax resident if you meet the substantial presence test but have stronger ties to another country.
Form 8840 key facts for 2026
The 2025 Form 8840 follows 8 core rules for returns filed in 2026, including the 183-day weighted test, the separate current-year limit, and the Form 1040-NR due date. The official IRS Form 8840 PDF contains the filing statement and instructions.
The following 8 rules determine whether and when the form applies:
- The substantial presence test uses 183 weighted days over 3 years and requires at least 31 days in the US during 2025.
- The Closer Connection Exception is unavailable if you were physically present in the US for 183 days or more during 2025.
- Green card holders and people who applied, or took steps, toward lawful permanent residence cannot use the exception.
- There is no separate monetary late-filing penalty, but an untimely filing generally forfeits the exception unless clear and convincing evidence supports relief.
- Attach the statement to Form 1040-NR by April 15, 2026 if you received wages subject to US withholding, or by June 15, 2026 if you did not.
- If no return is required, mail it to Department of the Treasury, Internal Revenue Service Center, Austin, TX 73301-0215.
- Qualifying students, teachers, and trainees exclude days under Form 8843 instead.
- A treaty tie-breaker may provide a separate route through a Form 8833 treaty-based return position disclosure.
What is IRS Form 8840?
Form 8840 is the IRS document a foreign national files to claim nonresident alien tax status despite meeting the 183-day weighted substantial presence test, based on having a closer connection to a foreign country. The IRS describes this use on its About Form 8840 page.
Form 8840, Closer Connection Exception Statement for Aliens, is used by certain foreign individuals to claim nonresident alien status for US tax purposes.
By filing this form, you declare that you have a closer connection to a foreign country, or in limited cases 2 foreign countries, and should not be treated as a US resident for tax purposes even if you meet the substantial presence test.
Filing Form 8840 can prevent you from being taxed like a US resident, which would otherwise require reporting worldwide income and could bring foreign asset reporting rules into play.
The statement does not exempt all US income. A nonresident may still owe US tax on US-source income or effectively connected income and may still need to file Form 1040-NR.
So, what is the 8840 Form IRS filers use?
It is an annual statement used to claim the statutory Closer Connection Exception, not an income tax return. The official Form 8840 Instructions appear on pages 3 and 4 of the 2025 form.
What is the substantial presence test?
The substantial presence test treats a foreign national as a US resident when 2 conditions are met: at least 31 US days in 2025 and at least 183 weighted days across 2025, 2024, and 2023. The IRS substantial presence test rules explain which days count or may be excluded.
You meet the test if both of the following 2 conditions apply:
- You were present in the United States for at least 31 days during 2025.
- Your weighted number of US days during 2025 and the previous 2 years equals or exceeds 183 days.
The calculation counts all your US days in 2025, one-third of your US days in 2024, and one-sixth of your US days in 2023.
Even if you qualify as a tax resident under this test, you may still avoid resident status by filing Form 8840 and claiming a closer connection exception. The 8840 Closer Connection route may preserve nonresident status only when your actual 2025 presence remains below 183 days and every other condition is met.
Based on our client scenario at TFX: A Canadian snowbird spends 130 days in the US in 2025, 90 days in 2024, and 120 days in 2023. The weighted total is 130 + (90 ÷ 3) + (120 ÷ 6) = 180 days, so the test is not met.
If the same person spends 10 additional days in the US during 2025, the calculation becomes 140 + 30 + 20 = 190 days. The person meets the substantial presence test and may need to consider the Closer Connection Exception.
Use our substantial presence test calculator to check your own travel dates.
Who needs to file Form 8840?
You need Form 8840 only if you meet the 183-day weighted substantial presence test and want nonresident alien treatment for 2025. You must also have fewer than 183 actual US days, a foreign tax home for the full year, and stronger foreign contacts than US contacts.
The following 3 groups of foreign nationals are more likely to need the statement:
- Seasonal or temporary workers on visas who return to their home country each year. TN visa holders who spend fewer than 183 days in the US should still calculate their weighted 3-year total.
- Business travelers whose employment and primary residence remain abroad.
- Foreign nationals who visit the US frequently for family reasons, property management, studies, or vacations, such as Canadian snowbirds, while keeping stronger ties elsewhere.
The following 3 categories cannot claim the exception:
- Lawful permanent residents of the United States, including green card holders.
- People who applied for, or took steps to apply for, a green card.
- People with a pending application to change their status to lawful permanent resident.
These exclusions apply regardless of travel days or foreign ties – green card status alone disqualifies a person from the Closer Connection Test. You also cannot claim the rule if you were physically present in the US for 183 days or more during 2025.
The IRS identifies the following 6 immigration filings as potential evidence that a person took steps toward permanent residence:
- Form I-485, Application to Register Permanent Residence or Adjust Status
- Form I-130 or Form I-140 filed on your behalf
- Form I-508, Waiver of Certain Rights, Privileges, Exemptions and Immunities
- A permanent labor certification application, generally filed on Form ETA-9089
- An immigrant visa application, generally filed on Form DS-260
The IRS closer connection guidance explains that taking affirmative steps toward permanent residence blocks the exception. Before submitting the US IRS Form 8840, check whether you or someone acting for you filed one of these documents.
How do you demonstrate a closer connection to another country?
The closer connection exception recognizes that even though you spend substantial time in the US, your economic, social, and personal home may be elsewhere. To qualify, you must show that your foreign ties are stronger than your US ties.
The IRS weighs all 10 factors together – no single factor is decisive, but the location of your home, family, and routine personal banking can carry substantial practical weight.
| Factor | What the IRS checks |
|---|---|
| 1. Permanent home | Where a dwelling was continuously available to you, whether owned or rented |
| 2. Family | Where your spouse, children, and other close family members lived |
| 3. Personal belongings | Where your car, furniture, clothing, jewelry, and similar belongings were kept |
| 4. Organizations | Where you had current social, political, cultural, or religious relationships |
| 5. Routine personal banking | Where you maintained and regularly used personal bank accounts |
| 6. Business activities | Where you conducted business activities apart from the activity that established your tax home |
| 7. Driver’s license | Which jurisdiction issued your active driver’s license |
| 8. Voting | Where you were registered or exercised voting rights |
| 9. Residence on documents | Which country you identified as your residence on forms and official records |
| 10. Forms filed | Whether your filings were consistent with foreign status, such as Form W-8BEN or W-8ECI, rather than Form W-9 |
The table summarizes selected questions from Part IV of the 2025 Form 8840; it does not reproduce the regulation’s factor list. Treasury Regulation §301.7701(b)-2(d)(1) also refers to professional affiliations and charitable organizations, and its list of factors is nonexclusive.
The IRS closer connection exception factors also refer to charitable organizations you support and state that the list of factors is not exhaustive.
In limited cases, the IRS permits a person to claim closer connections to 2 foreign countries. This rule applies when the person changes their tax home from 1 foreign country to another during the year and meets the separate requirements for each period.
A key requirement is that you have a tax home in a foreign country for the entire tax year. Your tax home is normally your main place of business or regular place of abode.
The 8840 Form IRS analysis asks whether your documents tell one consistent story. Use the Form 8840 Instructions to match each answer with dated evidence. This evidence is the practical core of the Closer Connection Test and should support the closer connections reported on the return.
What if you do not qualify for the closer connection exception?
A treaty tie-breaker can override the 2025 US residency result when an applicable income tax treaty assigns you to the other country under its residency article. The tests differ by treaty, and the position is generally disclosed on Form 8833 attached to Form 1040-NR.
If you don’t meet the closer connection requirements, you may still avoid US tax residency under an income tax treaty between the US and your home country. In such cases, treaty “tie-breaker” rules may determine your residency.
To claim treaty-based residency, you usually must file Form 8833. Without a valid treaty position, you will likely be treated as a US tax resident.
Special exceptions for certain visa holders
Qualifying F, J, M, and Q visa holders can exclude certain US days from the 183-day calculation under the Form 8843 rules. This day-count rule is separate from the Form 8840 closer connection exception, and the visa classification alone does not make every day excludable.
Students, teachers, and trainees in qualifying US visa categories may be treated as “exempt individuals” for substantial presence test purposes. Instead of Form 8840, they file Form 8843 for exempt individuals and students to explain why certain days should not count.
However, this exemption from counting days does not mean exemption from US tax obligations. If you have US-source income, you may still be required to file Form 1040-NR. Once you no longer qualify as an exempt individual, you must determine your US residency status using the substantial presence test and consider filing Form 8840.
What are the consequences of not filing Form 8840?
Failing to file Form 8840 after meeting the 183-day weighted test does not create a separate monetary penalty, but it generally forfeits the exception for 2025. Resident treatment brings worldwide income into the US tax return and may trigger FBAR, FATCA, or PFIC reporting when each rule’s separate conditions and thresholds are met.
This reclassification carries the following 3 practical consequences:
- Worldwide income becomes taxable in the US, not only US-source income, at ordinary federal rates of up to 37% for the 2025 tax year.
- Foreign financial accounts become FBAR-reportable when their aggregate value exceeds $10,000 at any time during 2025. The FinCEN FBAR rules apply to US persons, including resident aliens.
- Foreign mutual funds and other pooled investments can require Form 8621 PFIC reporting, including section 1291 tax and interest calculations when applicable.
For nonwillful FBAR violations assessed in 2026, the maximum inflation-adjusted penalty remains $16,536 per annual report, not per individual account. Whether the IRS imposes a penalty depends on the facts and whether reasonable-cause relief applies.
Resident status does not automatically mean that every foreign reporting form is required. The IRS comparison of Form 8938 and FBAR shows different asset definitions and filing thresholds.
Our resident and nonresident alien status guide explains how the underlying residency classifications affect federal tax filing.
The US Supreme Court’s Bittner decision treats a nonwillful FBAR violation on a per-report basis. The 2026 ceiling remains at the 2025 amount because OMB canceled the 2026 inflation adjustment.
How do you file Form 8840?
For the 2025 tax year, attach Form 8840 to Form 1040-NR and file both by the applicable 2026 due date, including a valid extension. If no federal return is required, mail the signed statement separately to the Austin address by the same deadline.
If you are filing a US federal income tax return, attach Form 8840 to the return. If you do not need to file a federal return, send the form to:
Department of the Treasury
Internal Revenue Service Center
Austin, TX 73301-0215
USA
File the form by the due date of your tax return, including extensions.
The official 2025 Form 8840 Instructions state that an untimely filing generally causes the person to lose the exception. The IRS may accept a late Closer Connection Form if clear and convincing evidence shows that the person took reasonable actions to learn about the rule and significant steps to comply.
That relief standard also applies to the Closer Connection Form 8840.
How should a Form 8840 US filing be assembled?
Attach Form 8840 to Form 1040-NR when a return is required; sign Form 8840 only when filing it by itself. Keep copies of the travel records and foreign-contact evidence supporting each answer. A standalone filing goes to the Austin address.
What are the Form 8840 deadlines for the 2025 tax year?
Form 8840 follows the Form 1040-NR due date, including extensions. For the 2025 tax year, the original due date was April 15, 2026 for a person who received wages subject to US income tax withholding, or June 15, 2026 for a person who did not receive those wages.
A timely Form 4868 extends an April 15 filing deadline to October 15, 2026. It extends a June 15 filing deadline to December 15, 2026.
If no tax return is required, mail the statement to Austin by the same applicable date. The IRS 2025 Publication 519 filing deadlines confirm that a filing extension changes the return filing date but does not extend the original deadline to pay tax.
As of July 16, 2026, both unextended deadlines have passed. Before mailing the US IRS Form 8840, review the 2026 US tax deadlines for expats, file promptly, and preserve evidence relevant to any request for late-filing relief.
Need help with Form 8840?
Your 2025 travel days, immigration filings, tax home, and foreign contacts determine whether Form 8840 is available. A filing position should be supported by records covering the full tax year and submitted by the applicable 2026 deadline.
At Taxes for Expats, we have helped cross-border taxpayers meet US filing requirements since 2001. More than 50,000 taxpayers worldwide have used TFX services.
Frequently asked questions about Form 8840
Yes. Form 8840 is intended for a person who meets the weighted substantial presence test but qualifies for the Closer Connection Exception.
You must have fewer than 183 actual US days during 2025, a foreign tax home throughout the year, and stronger contacts with a foreign country. You must also satisfy the immigration-related restrictions.
You may qualify for a closer connection exception if your primary home and stronger economic, family, social, and personal contacts are outside the US. Having residence rights or a home in 2 countries does not automatically establish which country has the closer connection.
If the statutory exception is unavailable, an applicable tax treaty may assign residency under its tie-breaker rules. The exact result depends on the treaty and your facts.
You may need to file Form 1040-NR if you have US-source income or income effectively connected with a US trade or business. Filing Form 8840 does not remove a separate income tax return requirement.
Attach Form 8840 to Form 1040-NR when both are required. File the statement separately only when you are not required to submit a federal income tax return.
Yes. You can file it for more than 1 year if you independently meet every requirement during each tax year.
The substantial presence calculation, actual US days, tax home, immigration filings, and closer-connection evidence must be reassessed annually. Approval or eligibility for 2024 does not automatically establish eligibility for 2025.
You generally lose the ability to claim the exception for that tax year and are treated as a US tax resident. This can require reporting worldwide income and filing any applicable foreign information returns.
A late claim requires clear and convincing evidence that you took reasonable actions to learn about the filing rule and significant steps to comply.
Yes, but no more than 2, and only if you changed your tax home from 1 foreign country to another during the year. You must keep a tax home in the first country from January 1 until the move and in the second country for the remainder of the year.
You must also have a closer connection to each country during the applicable period and meet the relevant tax-residency conditions. The rule does not permit a general claim that your contacts were divided among several countries.
There is no separate monetary penalty stated for filing the form late. Filing after the applicable return deadline, including extensions, generally causes the person to lose the Closer Connection Exception.
The IRS may permit a late claim if clear and convincing evidence shows reasonable actions to learn about the requirement and significant steps to comply.
No. Form 8840 is a supporting statement, not an income tax return.
Attach it to Form 1040-NR when a nonresident return is required. File it separately only when you have no federal income tax return filing requirement.
No. A person who applied for, or took steps toward, lawful permanent residence is ineligible for the exception regardless of their number of US days.
The restriction can apply when the person, or an agent acting on their behalf, files an immigration document that is an affirmative step toward permanent residence. The 2025 Form 8840 instructions do not provide an exhaustive form list and direct filers to US Citizenship and Immigration Services and the Department of Labor.
Form 8840 claims the statutory closer connection exception under the substantial presence rules. Form 8833 discloses a position taken under an applicable income tax treaty.
A person commonly considers Form 8833 when the statutory exception is unavailable, but a treaty tie-breaker assigns residency to another country. See our Form 8833 treaty-based return position disclosure guide for the filing rules.