Expat Tax & Finance

Form 8840 Closer Connection Exception Guide

File Form 8840 to keep nonresident status after the weighted 183-day substantial presence test if current-year US days stay under 183 and a foreign tax home holds all year.

Sunlit apartment with packed carry-on beside an empty wooden table
Key Takeaways
  • The substantial presence test is 31 current-year US days plus 183 weighted days: all current-year days, 1/3 of last year, and 1/6 of the year before.
  • Form 8840 is barred if you were in the US 183 days or more in the current year, even if prior years were light.
  • Green card holders and anyone who applied or took steps toward lawful permanent residence cannot use Form 8840; consider Form 8833 only if a treaty applies.
  • If no Form 1040-NR is due, mail signed Form 8840 to IRS Austin, TX 73301-0215 by the Form 1040-NR due date, including a valid extension.
  • For 2025 calendar-year Form 1040-NR, the due date is April 15, 2026 with US withheld wages, otherwise June 15, 2026.

One extra U.S. visit can flip a non-citizen spouse into a U.S. tax resident. The IRS substantial presence test treats 122 days in the United States this year plus 120 days in each of the two prior years as 183 weighted days, which is enough to tax worldwide income unless Form 8840 is filed on time. That is the closer connection exception: fewer than 183 actual U.S. days in the current year, a foreign tax home for the entire year, and stronger ties to that country than to the United States.

This guide is for the foreign-national partner, the operator who flies in for client weeks, and the retiree who winters in the United States. U.S. citizens cannot use Form 8840. They remain taxable on worldwide income and should use the Expat Tax & Finance cluster for FEIE, credits, and reporting instead of this exception. Couples deciding whether to treat an NRA spouse as a U.S. resident for joint filing should use the non-citizen spouse filing guide; that election is a different statute from Form 8840.

Do I still owe US tax if I am not a U.S. citizen?

Yes, if you become a resident alien under the green card test or the substantial presence test. Citizenship is not the only switch. A foreign national who never applied for a green card can still be taxed like a U.S. resident for a calendar year if the day counts line up.

Resident aliens generally report worldwide income on Form 1040. Nonresident aliens generally report U.S.-source income and effectively connected income on Form 1040-NR. The cash-flow difference is the foreign salary, local rental, pension, and investment growth that would stay out of the U.S. return if nonresident status holds.

The closer connection exception does not erase U.S. tax on U.S.-source income. Dividends from U.S. stocks, certain capital gains, and U.S. workdays can still be taxable. It only keeps the person from being treated as a U.S. resident for that year under Internal Revenue Code section 7701(b).

Why expat families hit this by accident

A typical pattern: the U.S. citizen spouse files Form 1040 with Form 2555. The non-citizen spouse keeps a job, company, or family home abroad, then spends summers, holidays, or school breaks in the United States. Three years of 120-day winters look casual. The weighted formula does not treat them as casual.

Snowbirds, founders who keep a U.S. client cadence, and remote workers who “just visit HQ” land in the same trap. The test counts any physical presence during a day, including arrival and departure days, unless a listed exception applies.

How does the substantial presence test actually count days?

You meet the test for a calendar year if you are physically present in the United States on at least 31 days during that year and on at least 183 weighted days across that year plus the two prior years. The IRS formula on the substantial presence test page counts all current-year days, one-third of the prior year’s days, and one-sixth of the year before that.

As of September 2026, the 2025 Form 8840 instructions apply that formula to 2025, 2024, and 2023. The 2026 draft form uses 2026, 2025, and 2024. The math does not change; only the years on line 5 do.

Quick math

120 + (120 × 1/3) + (120 × 1/6) = 120 + 40 + 20 = 180. That is under 183, so the person is not a resident under the test. Add two extra current-year days: 122 + 40 + 20 = 182. Add one more current-year day and you are at 183.

The IRS example uses 120 days in each of 2023, 2024, and 2025 and concludes the person is not a resident for 2025 because the weighted total is 180. That example is the reason families should not round “about four months” in their heads.

Current-year U.S. days Prior-year days Two-years-prior days Weighted total Result
120 120 120 180 Not resident under SPT
123 120 120 183 Meets SPT; Form 8840 possible if under 183 actual current-year days
150 150 90 215 Meets SPT; 8840 still possible if current-year days stay under 183
183 30 0 193 Meets SPT; Form 8840 is barred because current-year days are 183 or more

Form 8840 is a relief valve for the middle rows, not the last one. You can fail the current-year 183-day cap even if you have almost no history in the two prior years.

Which days do not count

A day counts if you are physically present in the 50 states or the District of Columbia at any time that day. U.S. territories and U.S. airspace do not count. Regular Canada or Mexico work commutes, transits of less than 24 hours between two foreign points, certain foreign-vessel crew days, medical days that arose while already in the United States, NATO force days, and days as an “exempt individual” are carved out.

“Exempt individual” here is a residency term, not a tax-free status. It covers certain A or G visa government-related individuals (not A-3 or G-5), teachers or trainees on J or Q visas who substantially comply, students on F, J, M, or Q visas who substantially comply, and professional athletes in charitable sports events. If you exclude exempt or medical days, file Form 8843 as well. Late Form 8843 generally costs the exclusion unless you can show clear and convincing efforts to learn and meet the filing rule.

Glowing bead clusters on slate suggesting a three-year day count

Who can file Form 8840 — and who is locked out?

Form 8840 is only for alien individuals claiming they are nonresidents because of a closer connection, even though they otherwise meet the substantial presence test. Each person files a separate form. A U.S. citizen spouse cannot file it for the foreign spouse.

You are ineligible if any of these are true for the year: you were present in the United States 183 days or more; you are a lawful permanent resident; you applied for, took affirmative steps toward, or had a pending application for lawful permanent resident status; or you had a U.S. tax home at any time during the year.

The IRS closer connection page lists immigration forms that signal intent to become a lawful permanent resident, including Form I-485, Form I-130, Form I-140, Form I-508, Form OF-230, and the older Form ETA-750 labor certification. The 2025 Form 8840 instructions also send filers to uscis.gov and dol.gov because the list of affirmative steps is not closed. If line 6 is yes, do not file Form 8840.

The tax home must be foreign all year

For this exception, tax home is the general area of your main place of business, employment, or post of duty, not necessarily where your family lives. If you have no regular place of business, it is where you regularly live. Itinerants have a tax home wherever they work, which is a poor fit for Form 8840.

The tax home must exist for the entire year and sit in the foreign country (or two countries, with extra tests) to which you claim a closer connection. A U.S. tax home at any point during the year, per the Form 8840 instructions, means you should not file the form.

A two-country claim is allowed only if all five conditions hold: tax home in country A on January 1; a mid-year change to country B; tax home remaining in B for the rest of the year; a closer connection to each country than to the United States while the tax home was there; and residence-tax status in one country for the whole year or in each country for the matching period. You cannot claim three countries.

How do you prove a closer connection?

Facts and circumstances control. The IRS looks for more significant contacts with the foreign country than with the United States. Form 8840 Part IV is the checklist the agency uses: permanent home, family, cars, personal belongings, routine banks, driver’s licenses, voting, the country listed as residence on official documents, W-8 versus W-9 forms, where documents are kept, where income and investments sit, and whether you qualify for a foreign national health plan.

A permanent home can be a house, apartment, or furnished room, rented or owned. It must be available continuously, not only for short stays. Parking a suitcase in a friend’s U.S. spare room while your lease, furniture, and school-age children stay abroad is the pattern the form is built to capture. The reverse pattern — a U.S. house ready year-round and a short-term rental abroad — works against you.

Investments are located by the issuer, not the vault. Shares of a U.S. public company count as a U.S. investment even if the certificates sit in a foreign safe deposit box. That line item will not by itself destroy a closer connection, but a Form W-9 on file with a U.S. broker while you claim foreign status is a contradiction you should expect the IRS to notice.

Hands placing a leather passport into a compact travel wallet

Filing checklist, deadlines, and Form 8843

Count actual U.S. days for the current year and the two prior years, then apply the 1/3 and 1/6 weights. If you are under 31 current-year days, or under 183 weighted days, you do not need Form 8840 to avoid resident status under this test. Keep the day log anyway. If you meet the test, stay under 183 current-year days, keep a foreign tax home all year, and can document closer ties, file Form 8840.

  1. Build a day log from passport stamps, boarding passes, calendar holds, and employer travel records. Arrival and departure days usually count.
  2. Subtract only the exceptions you can support. If you rely on exempt-individual or in-U.S. medical days, complete Form 8843.
  3. Confirm you are not a green card holder and did not take steps toward permanent residence. If you did, skip Form 8840 and evaluate a treaty position instead.
  4. Write down the foreign tax home for the full year. If it moved once, complete Part III, not Part II, and attach residence-tax proof.
  5. Answer every Part IV contact question. Attach a statement for mixed facts rather than leaving blanks that look like U.S. ties.
  6. Attach Form 8840 to Form 1040-NR if a return is required. If no U.S. return is required, mail the signed Form 8840 by itself to the Department of the Treasury, Internal Revenue Service Center, Austin, TX 73301-0215.

As of the 2025 Form 1040-NR instructions, a calendar-year Form 1040-NR is due April 15, 2026 if you received wages as an employee subject to U.S. income tax withholding. Otherwise it is due June 15, 2026. Form 8840 follows that Form 1040-NR due date, including a valid extension. Form 4868 line 9 is the checkbox for June 15 Form 1040-NR filers who did not receive withheld wages.

Data note: deadlines were checked against the 2025 Form 8840, 2025 Form 1040-NR instructions, and IRS nonresident filing page as of September 2026. Weekend and holiday rules can move a due date to the next business day.

If you do not timely file Form 8840, you generally cannot claim the closer connection exception and may be treated as a U.S. resident. The statute-adjacent relief on the form is narrow: clear and convincing evidence that you took reasonable actions to learn the requirement and significant steps to comply.

Starter, operator, and retiree paths

Beginner path: if a non-citizen spouse will spend more than a month in the United States this year, start a day spreadsheet on January 1. Do not wait until April. The weighted lookback means last year’s “harmless” 140 days still contribute 46.67 days to this year’s total.

Family path: do not mix this test with the FEIE 330-day physical presence test. The 330-day test is how a U.S. citizen or resident qualifies to exclude foreign earned income. Form 8840 is how a non-citizen avoids becoming a resident in the first place. Linking the two in one filing season is how couples file the wrong form. See how to count 330 days for the FEIE for the citizen spouse’s calendar, then keep the non-citizen spouse on the 31/183 weighted calendar.

Operator path: founders who sell into the United States from abroad should track U.S. workdays even if Form 8840 preserves nonresident status. Nonresidents can still have effectively connected income from U.S. services. A week of on-site implementation can create a Form 1040-NR filing even when residency is avoided. Self-employment tax and totalization are separate from this form.

Retiree path: Canadian and European snowbirds are the classic Form 8840 population. A seasonal U.S. rental, U.S. doctors, and a U.S. driver’s license are facts the IRS will weigh. They are not automatic losses if the principal home, family, voting, and routine banking stay abroad and current-year days stay under 183. They are automatic losses if current-year presence hits 183 days.

What can change, and what this form will not do

The weighted formula and the current-year 183-day cap are statutory. Annual Form 8840 revisions change year labels, visa examples, and mailing details. Immigration forms that count as “affirmative steps” can be renamed. Treaty elections remain a separate disclosure on Form 8833.

Form 8840 will not shelter a U.S. citizen. It will not override a green card. It will not convert U.S.-source income into foreign income. It will not replace FBAR or FATCA reporting for a U.S. person who already has those duties. It will not fix a late Form 8843 if you needed excluded student, teacher, or medical days to stay under the test in the first place.

If the household later wants the non-citizen spouse to become a U.S. resident on purpose — for joint filing, credits, or immigration — stop treating Form 8840 as a default. Resident status is sometimes the cheaper joint result. Run both filing statuses before you mail Austin a closer-connection statement that you did not mean to file.

Data notes / Sources checked

Conclusion

The expensive mistake is treating U.S. visits as a lifestyle detail while the weighted day count quietly crosses 183. For a non-citizen spouse or a dollar-earning foreign national, Form 8840 is the annual statement that keeps substantial presence from turning foreign earnings into a Form 1040 problem. Stay under 183 actual U.S. days, keep the tax home abroad all year, document the contacts in Part IV, and mail or attach the form by the Form 1040-NR deadline.

U.S. citizens should ignore this form and plan around worldwide taxation, FEIE, and credits. Green card holders and green card applicants should ignore it too and look at treaty disclosure only if a treaty actually applies. Everyone else should count days before booking the next U.S. trip, not after the boarding pass is scanned.

Frequently asked questions

Can a US citizen living abroad file Form 8840?

No. Form 8840 is only for alien individuals claiming the closer connection exception to the substantial presence test. US citizens remain taxable on worldwide income and cannot use this form to become nonresident.

Do I need Form 8840 if I spent only 90 days in the United States this year?

Maybe. Ninety current-year days still counts in full, and one-third of last year’s days plus one-sixth of the year before can push the weighted total to 183. If the weighted total stays under 183, you are not a resident under this test and do not need Form 8840 for that reason.

Where do I mail Form 8840 if I have no US tax return to file?

Mail the signed 2025 Form 8840 by itself to the Department of the Treasury, Internal Revenue Service Center, Austin, TX 73301-0215 by the Form 1040-NR due date, including extensions. If you do file Form 1040-NR, attach Form 8840 to that return instead.

Does Form 8840 stop tax on my US stock dividends?

No. The closer connection exception only keeps you from being treated as a US resident under the substantial presence test. US-source dividends and other US-source income can still be taxable to a nonresident on Form 1040-NR.

This guide is general information, not personalized tax, legal, or investment advice. Rules change; verify current thresholds with official sources or a qualified professional before acting.

closer connection exceptionexpat taxform 8840nonresident aliensubstantial presence test