How to Fill Out IRS Form 8840 (w/Examples) + FAQs

You file IRS Form 8840 to claim the closer connection exception and stay a nonresident for U.S. tax, even after you meet the Substantial Presence Test under IRC §7701(b). The form tells the Internal Revenue Service (IRS) that your tax home and personal ties stayed in another country, so the U.S. does not tax your worldwide income.

The final 2026 Form 8840 is posted on irs.gov. For tax year 2026 it is due June 15, 2027, or April 15, 2027 if you had U.S. wages subject to withholding.

Timing matters more than anything else on the form, because a late filing generally forfeits the exception and lets the IRS treat you as a U.S. resident for the whole year.

Hundreds of thousands of Canadian snowbirds winter in the U.S., and many need this form every year. The same rules apply to executives, consultants and retirees from other countries who spend long stretches here.

What Form 8840 Actually Does

Form 8840 is the Closer Connection Exception Statement for Aliens, which lets a person who would be a U.S. resident under the day-count test keep nonresident status.

The rule comes from IRC §7701(b)(3)(B) and Treas. Reg. §301.7701(b)-2. The 2026 PDF runs four pages: two hold Parts I through IV and a signature section, and two hold the instructions.

To see why the form matters, start with the test it answers.

The Substantial Presence Test adds all your U.S. days in the current year, one-third of your days in the prior year and one-sixth of your days in the year prior to that.

You meet the test if the total reaches 183 and you were here at least 31 days this year.

Meeting the test normally makes you a U.S. tax resident who pays federal tax on worldwide income.

A resident may also have to report foreign accounts on the Report of Foreign Bank and Financial Accounts (FBAR) and foreign assets on Form 8938. Our walkthrough on filling out Form 8938 shows how much detail that second report demands.

Those reports carry penalties of their own. The statute sets the top non-willful FBAR penalty at $10,000 under 31 U.S.C. §5321, and the inflation table in 31 CFR 1010.821 raises it to $16,536 per report for penalties assessed on or after January 17, 2025.

After Bittner v. United States (2023), it applies to each late report, not to each account.

Form 8840 keeps you out of the resident system when you meet four conditions:

  • Fewer than 183 U.S. days during the year
  • A tax home in a foreign country for the entire year
  • A closer connection to that country than to the U.S.
  • No green card application pending, and no steps toward one, during the year

The form does not wipe out all U.S. tax, because nonresidents still owe tax on U.S.-source income such as U.S. wages and rental income.

You also owe tax on capital gains from U.S. real estate, where buyers withhold under the Foreign Investment in Real Property Tax Act (FIRPTA). What the form protects is the rest of your income, earned outside the United States.

Who Must File Form 8840

The form is for people who meet the Substantial Presence Test, are not U.S. citizens or green card holders, and want to keep nonresident status.

The classic filer is a Canadian retiree who winters in Arizona or Florida. A Mexican executive with a Texas vacation home or a U.K. consultant with a New York client can need it too.

Citizens are outside the form entirely, since the U.S. taxes them on worldwide income wherever they live.

That status ends only with a formal loss of nationality, which is documented on Department of State Form DS-4083, a far bigger step than any tax filing.

Two rules shut other people out. The first is the day cap in IRC §7701(b)(3)(B): you cannot use Form 8840 if you were in the U.S. 183 days or more during 2026 alone.

Past that line, your only option is a treaty position, which you claim when you fill out Form 8833 based on the residency article in one of the U.S. tax treaties.

The second rule covers green cards. The IRS closer connection page bars the exception if you applied, or took other steps during the year, to become a lawful permanent resident, or had an application to adjust status pending.

Under Treas. Reg. §301.7701(b)-2, those steps include Form I-485, a relative's Form I-130 or an employer's Form I-140 filed for you, and a labor certification application.

Snowbirds often worry that a newer immigration rule counts as one of those steps. It does not.

Registering a stay of 30 days or longer with U.S. Citizenship and Immigration Services on Form G-325R is an alien registration, not a green card step.

Substantial Presence Math in Plain English

For the tax year 2026 form, add all your 2026 U.S. days, one-third of your 2025 days and one-sixth of your 2024 days.

The test applies only if you were here at least 31 days in 2026. A sum of 183 or more means you need Form 8840 or a treaty position.

Take Marie, a retired teacher from Quebec who spent 150 days in Florida in each of 2026, 2025 and 2024.

Like many snowbirds, she assumes that staying under half the year keeps her clear of U.S. residency. The weighted formula says otherwise.

Her total is 150 + 50 + 25 = 225, so she meets the test and needs Form 8840. She must also keep her 2026 days under 183, or the form stops being available to her.

Partial days trip up many travelers. A partial day generally counts as a full day under Treas. Reg. §301.7701(b)-1(c), so your arrival and departure days both count.

The one break is for transit: days in the U.S. for less than 24 hours while in transit between two foreign points do not count under the IRS day-count rules.

A Dallas layover on a Toronto-to-Cancún trip does not count, but a day trip from Ontario to Buffalo does.

How to Pull Your U.S. Day Count From Your I-94 Travel History

Line 5 of the form asks for three day counts, so start with the record kept by U.S. Customs and Border Protection. Its website shows the arrivals and departures the agency has on file for you.

  1. Go to i94.cbp.dhs.gov, the agency's official site, and choose the travel history option.
  2. Enter your name, date of birth, passport number and passport country exactly as your passport shows them.
  3. Review the arrival and departure dates, which cover up to the past 10 years.
  4. Save or print the list, then repeat the search for every passport you used.

Treat that list as a starting point, because the site warns that certain types of travel history may not be provided.

Land crossings by car to Canada or Mexico are the weak spot, and those entries and exits can be missing or incomplete.

For that reason, keep your own calendar of U.S. days as well, and save boarding passes, fuel and toll receipts, and card statements that show where you were.

Where the two records disagree, use the date you can prove with paper. Then total the days for 2026, 2025 and 2024 and enter those three figures on Line 5.

Who Is Exempt From Counting Days

Some people leave days out of the count altogether. The IRS calls them exempt individuals, which means exempt from counting days, not exempt from tax. Four groups qualify:

  • Foreign-government workers on A or G visas
  • Teachers and trainees on J or Q visas, for limited years
  • Students on F, J, M or Q visas during their exempt years
  • Professional athletes in the U.S. for a charitable sports event

Teachers, trainees, students and athletes claim those days on a Form 8843 statement instead of Form 8840, using the official Form 8843. The IRS also leaves out four other kinds of days, whatever your visa:

  • Days you regularly commute to work in the U.S. from a home in Canada or Mexico
  • Days in transit for under 24 hours between two places outside the U.S.
  • Days as a regular crew member of a foreign vessel
  • Days you could not leave because of a medical condition that arose here, claimed on Form 8843

When and Where to File Form 8840

Form 8840 follows the due date of Form 1040-NR, the nonresident return, under Treas. Reg. §1.6072-1(c).

For tax year 2026, that date is April 15, 2027 if you earned U.S. wages that had tax withheld, and June 15, 2027 if you did not.

A timely Form 4868 extends those dates to October 15, 2027 and December 15, 2027.

Mailing on the last day is safe, since a postmark on or before the due date counts as on-time filing under the timely-mailing rule in IRC §7502.

Where the form goes depends on whether you file a return. If you also file Form 1040-NR for the year, attach Form 8840 to that return and send both to the address in the Form 1040-NR instructions.

If you do not have to file a 2026 return, the form tells you to mail Form 8840 by itself, by the same due date, to:

Department of the Treasury, Internal Revenue Service Center, Austin, TX 73301-0215

You can type your answers into the IRS PDF and print it. A stand-alone form still needs a signature in ink, and a mailing method that gives you a dated receipt is your proof if the IRS later questions the date.

Under Treas. Reg. §301.7701(b)-8(d), a late Form 8840 lets the IRS deny the exception, and the standard for relief is strict.

Consider James, a Toronto dentist with no U.S. wages. His tax year 2025 form was due June 15, 2026, but he filed no extension and mailed it in December 2026.

The IRS can deny his exception and treat him as a U.S. resident for 2025, which puts his Ontario practice income on a U.S. return. If tax is then unpaid, penalties under IRC §6651 can be added.

Form 8840 Deadlines at a Glance

Your due date depends on the tax year of the form and on whether you had U.S. wages.

Tax year, wagesDue dateWith Form 4868
2026, with U.S. wages subject to withholdingApril 15, 2027October 15, 2027
2026, no such wagesJune 15, 2027December 15, 2027
2025, no such wagesJune 15, 2026December 15, 2026

Use the form for the tax year you are claiming. The final 2026 form was posted on November 5, 2026, and the 2025 edition is on the IRS prior-year forms page, which matters if you are still filing a 2025 form on extension.

Missed the Deadline? How to Ask for Relief

A late form is not always fatal. The regulation keeps the exception alive if you show, by clear and convincing evidence, that you took reasonable actions to learn about the filing requirement and significant steps to comply with it.

That is a high bar, and "I didn't know" rarely meets it without a paper trail that shows effort.

If you are already late, act in this order:

  1. File the late Form 8840 right away, because every extra month makes the story harder to tell.
  2. Attach a signed statement that explains what you did to learn the rules and to comply.
  3. Add proof, such as emails with a tax preparer, earlier years' timely forms or mailing receipts.
  4. Keep copies of everything you send, with proof of mailing.

The stakes are the same as for any denied claim. If the IRS denies relief, you are a U.S. resident for that year, and your worldwide income becomes taxable here.

Line-by-Line Walkthrough of Form 8840

This walkthrough follows the final 2026 Form 8840 as it reads. Part I is general information, including the green card question. Part II covers a closer connection to one foreign country, and Part III covers two.

Part IV is a list of significant-contact questions, followed by a signature section and the instructions on pages 3 and 4. Everyone completes Part I and Part IV, plus either Part II or Part III, never both.

Part I: General Information

The header boxes ask for your name and your U.S. taxpayer identification number, if you have one. If you file the form by itself, they also ask for your home-country and U.S. addresses. Six numbered lines follow:

  • Line 1. Your type of U.S. visa and the date you entered the United States
  • Line 2. The country or countries you were a citizen of during the tax year
  • Line 3. The country or countries that issued you a passport
  • Line 4. Your passport number or numbers
  • Line 5. The days you were present in the U.S. during 2026, 2025 and 2024
  • Line 6. Whether, during 2026, you applied or took other steps for lawful permanent resident status, or had an application pending

Line 1 puzzles visitors who never held a visa. The instructions say to enter your U.S. immigration status on the last day of the tax year, so Canadians who enter visa-free write their visitor status there.

Travelers under the Visa Waiver Program, which does not cover Canadians, enter "VWP," the name of their country and the entry date.

On Line 5, leave out the days the instructions exclude, such as short transit days and, under IRC §7701(b)(7), the workdays of regular commuters from Canada or Mexico.

Line 6 then decides whether you may file at all. If you check "Yes," the instructions say do not file Form 8840, although you may still qualify as a nonresident under a treaty.

Don't shade the numbers to improve your case. The form is signed under penalties of perjury, and a false statement to a federal agency is a crime under 18 U.S.C. §1001.

Part II: Closer Connection to One Foreign Country

Part II has only two lines. Line 7 asks where your tax home was during 2026, and Line 8 asks which foreign country you were closer to than the United States.

Your tax home is the general area of your main place of business or employment, or the place where you regularly live if you have no regular place of business.

Under Treas. Reg. §301.7701(b)-2(c), it must exist for the entire year. If you had a tax home in the United States at any time during the year, the instructions say not to file the form.

Both answers must point to the same country, so use Part III instead if your tax home moved from one foreign country to another during the year.

Sofia, a Mexico City lawyer who winters in San Diego, writes Mexico on Lines 7 and 8. Her proof comes in Part IV, where she lists her home, family, law firm, voter card and Mexican license.

Owners of U.S. property sometimes assume they cannot qualify. A U.S. vacation home does not end the exception as long as your main home, family and working life stay abroad, because Treas. Reg. §301.7701(b)-2(d) weighs all your contacts, not a single one.

Part III: Closer Connection to Two Foreign Countries

Part III applies when your tax home moved during the year from one foreign country to another.

Under Treas. Reg. §301.7701(b)-2, you need a closer connection to each country while your tax home was there, plus resident tax status abroad. Five lines cover those points:

  • Line 9. Where your tax home was on January 1, 2026
  • Line 10. Where your tax home was after the change
  • Line 11. Whether you were closer to each country than to the U.S. while your tax home was there
  • Line 12. Whether either country taxed you as a resident for all of 2026, or both did for the period your tax home was in each
  • Line 13. Whether you have filed or will file 2026 tax returns in those countries

The attachments matter here. A "No" on Line 11, 12 or 13 needs an attached explanation, and a "Yes" on Line 12 or 13 needs attached verification.

Hiroshi, a Tokyo banker, shows how the part works. He transferred to his firm's London office on July 1, 2026, and spent 120 days in New York that year after 150 days in each of 2025 and 2024.

His weighted total is 120 + 50 + 25 = 195, so he meets the test. His tax home was Japan through June and the U.K. from July, so he uses Part III, not Part II.

The rule requires resident tax status under each country's own law for the months in question, and it allows no more than two countries. A short stay in a third country therefore does not fit.

Part IV: Significant Contacts With Foreign Country

Part IV runs from Line 14 to Line 30 on the 2026 form. Each answer that names your home country adds weight to your claim, so this is where the exception is won or lost.

  • Line 14. Your regular or principal permanent home, which must be available at all times, not only for short stays
  • Line 15. Any other permanent home available all year, such as a Florida condo used in winter
  • Line 16. Where your family was located
  • Lines 17 and 18. Where your cars were located and registered
  • Line 19. Where your personal belongings and furniture were located
  • Lines 20a to 20d. Where your routine personal banking took place
  • Line 21. Whether you did business outside your tax home, and where
  • Lines 22a and 22b. Where your driver's license, and any second license, was issued
  • Line 23. Where you were registered to vote
  • Line 24. The country you list as your residence on official documents
  • Lines 25a to 25c. Whether you completed a Form W-8BEN or other W-8, such as IRS Form W-8ECI, which supports foreign status, or a Form W-9, which points the other way
  • Line 26. Where you kept your personal, financial and legal documents
  • Line 27. The country that produced most of your 2026 income
  • Line 28. Whether you had U.S.-source income, and what type
  • Line 29. Where your investments were located; stock in a U.S. company counts as U.S.-located
  • Line 30. Whether you qualified for a foreign national health plan, and in which country

Answer every question, and attach a statement if Lines 14 through 30 need more facts or longer explanations.

Keep proof in case the IRS asks, including your foreign tax return, the deed or lease for your home, your voter card, your health card and your driver's license.

The signature comes last, and the form says to sign only if you file it by itself and not with your U.S. tax return.

Sign and date under penalties of perjury, because an unsigned stand-alone form may not be accepted as a valid statement.

Common Closer Connection Scenarios, With Examples

The scenarios below cover the situations that come up most often. Each one pairs a filer's actions with the IRS outcome, and most include a named example with the full math.

Scenario 1: The Canadian Snowbird

Marie, a 68-year-old retired teacher, owns a condo in Naples, Florida and a home in Quebec City, and she spends 150 days each winter in Naples.

Her weighted U.S. day total for 2026, 2025 and 2024 is 225, so she files her form by June 15, 2027.

Marie names Canada in Part II and answers Part IV with her Quebec home, her Régie de l'assurance maladie du Québec health card, her Quebec driver's license and her Desjardins bank accounts. She also lists the Naples condo on Line 15 as a winter home. With those answers, her closer connection to Canada holds year after year.

A shorter or longer winter changes the result for other snowbirds.

Action (2026)IRS outcome
120 days in Florida each year for three yearsWeighted total 180, under 183, test not met
130 days in Florida in 2026, 2025 and 2024Weighted total 195, test met, must file Form 8840
Files Form 8840 by June 15, 2027 (2026 form) with Canadian tax homeTaxed only on U.S.-source income
Forgets to file Form 8840May be taxed as a U.S. resident on worldwide income
183 or more days in 2026Form 8840 unavailable; treaty claim on Form 8833 only

Scenario 2: The Mexican Business Owner

Carlos, a 45-year-old factory owner, lives in Mexico City with his wife and two children.

He worked at a Houston warehouse 130 days a year from 2024 through 2026, which feels modest to him but adds up under the weighted formula.

His weighted total is 130 + 43.3 + 21.7 = 195, so Form 8840 is required. At 100 days a year he would total only 150 and would not need the form.

In Part IV, Carlos lists his Mexico City home, his family, his voter registration and his Mexican tax filings. His Houston condo sits empty most of the year, so it does little to shift his ties. His Houston workdays still produce U.S.-source income, which may require Form 1040-NR.

Action (2026)IRS outcome
Runs a Monterrey factory, 130 days in Texas each year (195 weighted)Test met; files Form 8840 with Mexico ties
100 days a year in Texas instead150 weighted; test not met; no Form 8840 needed
Buys a Houston condo as an investmentOne U.S. asset does not break Mexico ties
Applies for an EB-5 investor green cardBars Form 8840; a treaty claim may still apply
200 days in Texas in 2026Over the 183-day cap; Form 8840 unavailable

Scenario 3: The Dual-Country Executive

An executive whose tax home moves between two foreign countries in one year files under Part III. The outcome turns on resident tax status in both countries.

Action (2026)IRS outcome
Transfers from Tokyo to London on July 1, 2026Part III of Form 8840 applies
Pays resident tax in Japan and the U.K. for the months in eachMeets the Part III conditions
120 New York days in 2026 after 150 in 2025 and 2024 (195 weighted)Test met, under the 183-day cap
Cannot answer "Yes" on Line 12Part III claim fails

Scenario 4: The London Consultant With a Treaty Backup

Priya, a 32-year-old fintech consultant, worked 140 days at a New York client site in both 2026 and 2025, with none in 2024. That pattern is common for consultants on a long project, and it leaves her close to the line.

Her weighted total is 140 + 46.7 = 186.7, just over 183, so she meets the test. Priya files Form 8840 with a London tax home.

Because her margin is thin, she also prepares a Form 8833 treaty claim under the residency article of the U.S.-U.K. tax treaty, using the official Form 8833.

Neither filing changes how her U.S. pay is taxed. Her New York workdays are U.S.-source wages either way, and she reports them on Form 1040-NR.

Mistakes to Avoid

Each mistake below can turn a nonresident into a U.S. tax resident. Most of them come from the day count or from gaps in the answers on the form.

  • Filing late. A late form lets the IRS deny the exception, and relief requires clear and convincing evidence of your efforts to comply.
  • Skipping lines in Part IV. Gaps on questions like driver's license or voter registration weaken your claim, so leave no question blank.
  • Applying for a green card. A pending Form I-485, or any other step toward permanent residence, bars the exception while you rely on Form 8840.
  • Counting short trips as zero. Only a stop of under 24 hours on the way from one foreign country to another is excluded.
  • Forgetting commuter day adjustments. Regular commuters from Canada or Mexico who skip the exclusion overstate their U.S. days.
  • Mismatching tax home and closer connection country. Different countries on Lines 7 and 8 push you into Part III, so match both lines to the same foreign country.
  • Failing to sign. An unsigned stand-alone form may not be accepted.
  • Ignoring state residency. California, New York and other states use their own tests, because federal status does not bind state revenue agencies.
  • Holding a U.S. driver's license. Line 22 asks where your license was issued, and a U.S. license is evidence of U.S. ties.
  • Ignoring the current-year cap. Once your days in the year reach 183, only a treaty claim can help, so don't file Form 8840 for that year.

A few steady habits prevent most of these problems. They take little time during the year and save a scramble at the deadline.

  • Track every U.S. day with your own calendar log and the I-94 travel history from U.S. Customs and Border Protection.
  • Keep your foreign driver's license, voter card and health coverage current.
  • File Form 8840 for every year you meet the Substantial Presence Test, because protection is year by year.
  • Attach Form 8840 to Form 1040-NR if you have U.S.-source income that requires a return.
  • Never claim a closer connection if your spouse and children live in the U.S., because family location weighs heavily.

Form 8840 vs. Form 8843 vs. Form 8833

These three forms are easy to confuse because all of them deal with nonresident status. Each one solves a different problem under the U.S. nonresident rules, and the comparison shows where they part ways.

Feature (2026)Form 8840Form 8843Form 8833
PurposeCloser connection exceptionExempt-individual or medical exceptionTreaty-based return position
Who filesSnowbirds, executives, retireesF, J, M, Q students; teachers; medical cases; students claiming the student closer connection exceptionDual-resident treaty users
Day capUnder 183 days in 2026Not applicableNone
DeadlineJune 15, 2027 (no wages) or April 15, 2027Same due date as Form 1040-NRAttached to Form 1040-NR
Late-filing penaltyLoss of the exceptionDays counted$1,000 per failure under IRC §6712

Federal Rules vs. State Residency Traps

Form 8840 only answers the federal question. A win with the IRS does not protect you from California or New York income tax if those states treat you as a resident.

California uses a closest connections test under R&TC §17014, which the Franchise Tax Board explains in Publication 1031 and in its online residency guidance. New York takes a different route with a statutory residence rule: you are a resident if you keep a permanent place of abode in the state and spend more than 183 days there in the year.

Courts have narrowed that New York rule. In Gaied v. New York State Tax Appeals Tribunal (2014), the New York Court of Appeals held that a dwelling counts only if the taxpayer actually uses it as a residence. Where you winter matters too, since Florida and Texas have no state income tax, while Arizona taxes income.

States run their own audits and may ask for copies of your federal filings. Keep your Form 8840 answers consistent with anything you tell a state.

Treaty Tie-Breakers as a Backup

Once your U.S. days in the current year reach 183, your fallback is the residency article of a tax treaty, such as Article IV of the U.S.-Canada Tax Treaty. That article applies its tests in order: permanent home, center of vital interests, habitual abode, then citizenship. If none settles it, the two countries' tax authorities decide by agreement.

You claim the position by attaching a treaty disclosure to Form 1040-NR, and our guide to filling out Form 8833 covers that disclosure line by line.

Skipping Form 8833 when it is required costs $1,000 per failure under IRC §6712.

A treaty win is also narrower than the closer connection exception. Under Treas. Reg. §301.7701(b)-7, it makes you a nonresident only for computing your income tax. You stay a U.S. resident for other purposes, including the FBAR under the FinCEN Form 114 instructions, while gift and estate tax use a separate domicile test.

Pros and Cons of Filing Form 8840

The form costs little to file, but it only works for people who fit inside its limits.

Pros

  • Avoids U.S. tax on worldwide income, which can save retirees with foreign pensions tens of thousands of dollars.
  • Needs no tax calculations, only factual questions plus three day counts.
  • Has no fee to file.
  • Creates a paper trail that helps in later IRS or state audits.
  • Keeps you a nonresident, so you generally avoid FBAR and Form 8938 filing.

Cons

  • Requires careful day tracking across three years, and small errors can flip your status.
  • Is limited to filers under 183 current-year U.S. days.
  • Is closed to anyone who has taken a green card step.
  • Does not shield you from state residency rules.
  • Is unforgiving on timing: missing the deadline generally forfeits the exception, and relief requires clear and convincing evidence.

What to Do Next

  1. Pull your travel history at i94.cbp.dhs.gov and add up your U.S. days for 2026, 2025 and 2024.
  2. Run the weighted formula, and plan to file if the total reaches 183 while your 2026 days alone stay below that number.
  3. Download the 2026 Form 8840 from irs.gov and complete Part I, Part IV, and either Part II or Part III.
  4. Gather proof for Part IV: foreign tax return, deed or lease, license, voter card and health card.
  5. Mail the form, or attach it to Form 1040-NR, by your tax year 2026 due date.

Frequently Asked Questions

Do I need an ITIN to file Form 8840?

No. The form asks for a U.S. taxpayer identification number only if you have one. Form 1040-NR is different: it requires a Social Security number or an Individual Taxpayer Identification Number (ITIN), requested on Form W-7.

Can I file Form 8840 electronically?

A stand-alone Form 8840 cannot be e-filed, so mail it to the address printed on the 2026 form. With Form 1040-NR, it goes with that return. Check whether your software can include it in an e-filed return, and paper-file both if it can't.

Is there a penalty for filing Form 8840 late?

Yes. A late form lets the IRS deny the exception under Treas. Reg. §301.7701(b)-8(d), unless you show by clear and convincing evidence that you took reasonable actions to learn of the requirement and significant steps to comply. For tax year 2026 the form is due June 15, 2027, or April 15, 2027 with U.S. wages.

Do my travel days count toward the 183-day test?

Mostly yes. Any part of a day counts, including arrival and departure days. The exception is a transit stop shorter than 24 hours between two foreign places, according to the IRS Substantial Presence Test page and Treas. Reg. §301.7701(b)-3(d).

Does owning a U.S. home destroy my closer connection?

No. A U.S. home is one fact among many, and Part IV asks you to list every permanent home. Your claim holds when your main home, family and economic life stay in your home country.

Do I file Form 8840 every year?

Yes. The exception is decided one year at a time under IRC §7701(b)(3)(B), so file a new form for each year you meet the Substantial Presence Test. Last year's form does not carry over.

Does a green card application disqualify me?

Yes. Any step toward permanent residence taken during the year, or an application pending during the year, bars the exception. That includes a relative's Form I-130 or an employer's Form I-140 filed for you (Treas. Reg. §301.7701(b)-2). A treaty residency claim may still be available.

Can students use Form 8840?

Usually not. Students in their exempt years do not count days and file Form 8843. A student past the exempt period may claim a separate closer connection exception for students, also on a Form 8843 filing, according to the IRS.

Do I have to file Form 1040-NR along with Form 8840?

Only if you have U.S.-source income that requires a return, such as U.S. wages, rental income or a sale of U.S. real estate. Otherwise, mail Form 8840 by itself by June 15, 2027 for tax year 2026.

Can my spouse and I file one Form 8840?

No. Each person files a separate Form 8840, because the closer connection test applies person by person. A married couple who spend every U.S. day together still send two forms, each with its own day counts and answers.