Form 8840 in 60 seconds
The substantial presence test counts days over three years, so someone who spends a few months in the U.S. every year can pass it without ever spending half a year here. Spend 150 days a year in Florida or Arizona and the weighted three-year count reaches 225, past the 183 that makes you a U.S. resident for tax.
Form 8840 is the way out for people whose life is clearly elsewhere. It tells the IRS that although you meet the day count, your tax home and closer connection are in a foreign country. File it and, if you qualify, you remain a nonresident. Skip it and you may be treated as a U.S. resident, taxed on worldwide income.
This guide covers who qualifies, who cannot use the exception, how the IRS judges closer connection, the deadline, a worked example for a seasonal visitor, and when to get help. It is educational, not individualized tax advice.
The instructions are blunt: if you do not file Form 8840 on time, you are not eligible for the closer connection exception and may be treated as a U.S. resident. Meeting the facts is not enough without the filing.
Who qualifies for the closer connection exception
You must first meet the substantial presence test, otherwise you are already a nonresident and there is nothing to claim. Then all three of these must be true for 2026:
- You were present in the United States for fewer than 183 days during 2026.
- You had a tax home in a foreign country during 2026, for the entire year.
- You had a closer connection to that foreign country than to the United States (or to two foreign countries, under a separate five-part test for people who moved their tax home during the year).
| Situation | Result |
|---|---|
| Present in the U.S. 183 days or more in 2026 | Not eligible |
| Lawful permanent resident (green card holder) | Not eligible |
| Applied for, took steps to apply for, or has a pending application for a green card | Not eligible |
| Had a tax home in the U.S. at any time during the year | Not eligible |
If you are not eligible, you may still qualify as a nonresident under an income tax treaty, claimed on Form 1040-NR with Form 8833.
A green card application ends the exception
Filing for permanent residence, or even taking affirmative steps toward it, makes the closer connection exception unavailable. Plan the tax year before starting an immigration filing.
The substantial presence test, briefly
For 2026 you meet the substantial presence test if you were physically present in the U.S. at least 31 days in 2026 and at least 183 days counting all 2026 days, one third of 2025 days and one sixth of 2024 days. Some days do not count, including days commuting from Canada or Mexico, transit of less than 24 hours, and days as an exempt individual.
The full test is on the substantial presence test explained. If your excluded days come from student, teacher or medical status, the form you need is Form 8843, not Form 8840.
Tax home and closer connection
Your tax home is the general area of your main place of business, employment or post of duty, regardless of where your family home is. If you have no regular place of business, it is where you regularly live. For this exception, the tax home must exist for the entire year and must be in the foreign country you claim a closer connection to.
Closer connection means you maintained more significant contacts with the foreign country than with the United States. Part IV of the form asks the questions the IRS uses to judge that.
- Where your permanent home, your family, and your personal belongings were.
- Where your cars were kept and registered, and where your driver’s license was issued.
- Where you bank, where you keep personal, financial and legal documents, and where your investments are.
- Where you are registered to vote, and which country you list as your residence on official documents.
- Whether you have filed a Form W-8BEN or other W-8 (foreign status) or a Form W-9 (U.S. status).
- Where most of your income comes from, and whether you have U.S.-source income.
- Whether you qualify for a national health plan in a foreign country.
Form 8840 deadline and where to mail it
If you file Form 1040-NR, attach Form 8840 to it. If you do not have to file a U.S. return, mail Form 8840 by itself by the Form 1040-NR due date, including extensions, to the Department of the Treasury, Internal Revenue Service Center, Austin, TX 73301-0215. Each person files a separate Form 8840, so a couple who both qualify files two.
| Your situation | How to file | Due date |
|---|---|---|
| Wages subject to U.S. income tax withholding | Attach to Form 1040-NR | April 15, 2027 |
| U.S. income (such as rent) but no wages subject to withholding | Attach to Form 1040-NR | June 15, 2027 |
| No U.S. return required | Mail alone to IRS, Austin, TX 73301-0215 | June 15, 2027 |
Worked example: a seasonal visitor
A hypothetical retired couple from Canada winters in the U.S. every year. Neither holds a green card or has applied for one.
Worked example
Hypothetical: 150 days in the U.S. each year (per spouse)
- 2026 days, counted in full
- 150
- 2025 days (150), counted at one third
- 50
- 2024 days (150), counted at one sixth
- 25
- Weighted total
- 225, meets the test
- Fewer than 183 days in 2026?
- Yes, 150
- Tax home and closer connection in Canada all year?
- Yes (assumed)
- Filing
- Two Forms 8840, mailed by June 15, 2027 if no U.S. return is required
At 120 days a year, the weighted total is 120 + 40 + 20 = 180, under 183, so the couple would not meet the test and would not need Form 8840 at all. Educational, not individualized tax advice.
If the couple owns a U.S. rental or vacation home that produces income, a Form 1040-NR may be required anyway, and Form 8840 goes with it. See Form 1040-NR explained.
What happens if you do not file Form 8840
If you do not file on time, you are not eligible to claim the closer connection exception and may be treated as a U.S. resident. A resident reports worldwide income on Form 1040 and can pick up the FBAR and Form 8938 for home-country accounts.
The IRS will not hold a late filing against you if you show by clear and convincing evidence that you took reasonable actions to become aware of the filing requirement and significant steps to comply with it. That is a high bar, which is why filing on time matters.
For what residency changes on your return, see resident alien vs nonresident alien. If home-country accounts come into play, see FBAR filing.
Do you need a CPA for Form 8840?
Many seasonal visitors can file it themselves. If you clearly spend fewer than 183 days a year in the U.S., live and bank in one home country, hold no green card application, and have no U.S. income, the form is a few pages of factual answers mailed to Austin.
Get help when there is U.S. income (rent from a U.S. property, U.S. business income or wages), a move between two foreign countries during the year, a day count close to the limit, a pending immigration filing, or a treaty claim as the alternative. Taxstra prepares Form 1040-NR with Form 8840 or Form 8833 for foreign high income earners, business owners and real estate investors who spend part of the year in the U.S.
What to check before you act
A practical review sequence for the return, books, or planning file.
Count your U.S. days for 2026, 2025 and 2024 and run the weighted test.
Confirm fewer than 183 days in 2026 and no green card or pending application.
Confirm your tax home was in one foreign country for the whole year (or the two-country rules apply).
Line up your contacts: home, family, license, voter registration, banking, W-8 vs W-9 forms.
Prepare one Form 8840 per person.
Attach to Form 1040-NR or mail alone to Austin, TX 73301-0215 by June 15 (April 15 if you had U.S. wages with withholding).
“I recently had the pleasure of working with Taxstra, and I must say, the experience exceeded my expectations. From start to finish, their professionalism, expertise, and customer care were outstanding.”
Published client feedback. Individual experiences vary.
High income earner, business owner or landlord? Here is what this changes for you.
Book your free 30-minute tax fit call to talk through your next steps.
Common mistakes
The shortcuts most likely to produce a confident but wrong answer.
Assuming you qualify without filing
The instructions say that without a timely Form 8840 you are not eligible for the exception.
Filing one form for a couple
Each alien individual must file a separate Form 8840.
Claiming the exception at 183 or more days
The exception requires fewer than 183 days in the current year. Above that, look at a treaty claim instead.
Starting a green card application mid-plan
Applying, or taking affirmative steps to apply, for permanent residence makes the exception unavailable.
Contradictory paperwork
A W-9 at a U.S. bank or a U.S. voter registration undercuts a claimed closer connection abroad.
Using Form 8840 for student days
Students and teachers excluding days as exempt individuals file Form 8843.
