Taxstra Logo
Tax Form Guide

Form 8840 Explained: The Closer Connection Test

Form 8840 lets snowbirds and frequent visitors who pass the substantial presence test stay nonresidents. Who qualifies, the deadline and the risks.

★ 5.0 on Google113 reviews4.9 from 114 BiggerPockets reviews1,000+ clientsAll 50 states, fully remote

Quick answer

Form 8840 claims the closer connection exception to the substantial presence test. A noncitizen who meets the test stays a nonresident for 2026 if they were in the U.S. fewer than 183 days in 2026, kept a tax home in a foreign country all year, and had a closer connection to that country than to the U.S. Green card holders and applicants cannot use it. File with Form 1040-NR or mail it alone by June 15, 2027 if no return is required.

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 exception is not automatic. The form is the claim.

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).
Who cannot use the closer connection exception (2026 Form 8840 instructions)
SituationResult
Present in the U.S. 183 days or more in 2026Not eligible
Lawful permanent resident (green card holder)Not eligible
Applied for, took steps to apply for, or has a pending application for a green cardNot eligible
Had a tax home in the U.S. at any time during the yearNot 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.

Watch Out

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.

Form 8840 filing for tax year 2026
Your situationHow to fileDue date
Wages subject to U.S. income tax withholdingAttach to Form 1040-NRApril 15, 2027
U.S. income (such as rent) but no wages subject to withholdingAttach to Form 1040-NRJune 15, 2027
No U.S. return requiredMail alone to IRS, Austin, TX 73301-0215June 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.”
Google Reviewer · Read on Google

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.

01

Assuming you qualify without filing

The instructions say that without a timely Form 8840 you are not eligible for the exception.

02

Filing one form for a couple

Each alien individual must file a separate Form 8840.

03

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.

04

Starting a green card application mid-plan

Applying, or taking affirmative steps to apply, for permanent residence makes the exception unavailable.

05

Contradictory paperwork

A W-9 at a U.S. bank or a U.S. voter registration undercuts a claimed closer connection abroad.

06

Using Form 8840 for student days

Students and teachers excluding days as exempt individuals file Form 8843.

Frequently Asked Questions

What is Form 8840 used for?

Form 8840 claims the closer connection exception to the substantial presence test. It lets a noncitizen who meets the day count still be treated as a U.S. nonresident, if they were present fewer than 183 days in the current year and had a foreign tax home and closer connection to that country all year.

Who should file Form 8840?

An alien individual who meets the substantial presence test but qualifies for the closer connection exception: fewer than 183 days in the U.S. in the current year, a tax home in a foreign country for the entire year, a closer connection to that country, and no green card or green card application.

Do Canadian snowbirds need to file Form 8840?

A seasonal visitor who meets the substantial presence test but spends fewer than 183 days a year in the U.S. needs Form 8840 to claim the closer connection exception. Someone whose weighted three-year count stays under 183 days does not meet the test and does not need the form.

When is Form 8840 due?

Form 8840 is due by the Form 1040-NR due date, including extensions: April 15 if you received wages subject to U.S. withholding, otherwise June 15. For tax year 2026, those are April 15, 2027 and June 15, 2027.

Where do I mail Form 8840?

If you file Form 1040-NR, attach Form 8840 to it. If you do not have to file a U.S. return, mail it to the Department of the Treasury, Internal Revenue Service Center, Austin, TX 73301-0215.

Can a green card holder file Form 8840?

No. Lawful permanent residents are not eligible for the closer connection exception, and neither is anyone who has applied for a green card, taken affirmative steps to apply, or has an application pending.

What happens if I do not file Form 8840?

If you do not file it on time, you are not eligible for the closer connection exception and may be treated as a U.S. resident, taxed on worldwide income. The IRS can excuse a late filing only if you show by clear and convincing evidence that you took reasonable steps to learn about and comply with the requirement.

What is the difference between Form 8840 and Form 8843?

Form 8843 excludes specific days from the substantial presence test for exempt individuals, such as students and teachers, and for medical conditions. Form 8840 accepts that you meet the test but claims nonresident status through a closer connection to a foreign country.

Does each spouse file a separate Form 8840?

Yes. The instructions say each alien individual must file a separate Form 8840 to claim the closer connection exception.

Next Steps

Filing it yourself is fine. Optimizing it is where the money is.

Getting the form right keeps you out of trouble. The strategies below are what actually lower the bill.

Interested in working with Taxstra?

Book your free 30-minute tax fit call with our team. Tell us what you need, learn how Taxstra can help, and explore whether our services are a good fit. Tax advice, document reviews, and analysis require a paid engagement.

Tax planning slots are limited before year-end.

Authoritative Sources

Citations reflect U.S. federal tax law as of the article's last reviewed date.