IRS Forms

Form 8840 – Closer Connection Exception Guide

Learn how to use Form 8840 to claim the Closer Connection Exception, track days under 183, keep a foreign tax home, and file on time to stay nonresident.

Accountably Editorial Team 12 min read Nov 29, 2025 Updated Nov 29, 2025
A Canadian client once brought me a little paper notebook, one line for every border crossing. One winter she was three weekends from tipping into U.S. residency. We ran the numbers, squared away her records, and filed Form 8840.

She walked out relieved, with a simple plan to stay under the limits next season. You can get that same peace of mind, as long as you count days carefully, keep your life anchored abroad, and file on time.

If you are under 183 actual U.S. days, keep a tax home outside the United States for the entire year, and your real life is centered in that foreign country, Form 8840 is how you tell the IRS you should be treated as a nonresident despite frequent visits.

Key Takeaways

  • Form 8840 lets you claim the Closer Connection Exception so you are not treated as a U.S. resident under the Substantial Presence Test when your facts fit, under 183 actual U.S. days, a foreign tax home all year, and stronger ties abroad.
  • The Substantial Presence Test uses a three‑year weighted formula, count all current‑year days, one‑third of last year’s days, and one‑sixth of the prior year, and you must also have at least 31 days in the current year for the test to apply.
  • File Form 8840 each year by your Form 1040‑NR due date. For 2024 calendar‑year filings made in 2025, the IRS set April 15, 2025 if you had wages subject to U.S. withholding, and June 16, 2025 if you did not.
  • If you file Form 1040‑NR, attach Form 8840. If you do not file 1040‑NR, mail Form 8840 to IRS, Austin, TX 73301 by that same deadline and keep proof.
  • Missing the deadline can forfeit the exception unless you show clear and convincing evidence of reasonable cause, so keep clean documentation of your tax home and foreign ties.

Note, this article is educational, not tax advice. We cite current IRS pages reviewed or updated in 2024–2025, and you should always check the latest instructions before filing.

What Form 8840 Really Does

Form 8840 is your one‑page statement that says, you have a closer connection to a specific foreign country, so for this year you should be treated as a nonresident. You use it when your day counts might otherwise point to residency, yet your real home, family, and daily life are outside the United States. You must be under 183 actual U.S. days, keep your tax home abroad for the full year, and you cannot be a green card holder or someone who took steps to apply. Each spouse files separately.

If you are filing a 1040‑NR, attach Form 8840 to that return. If you are not filing 1040‑NR, you still file 8840 on time by mailing it to the Austin address on the IRS “Where to file” page for forms beginning with 8. Keep delivery proof.

The Substantial Presence Test, The Only Math You Need

You meet the test if both are true, at least 31 days in the current year, and 183 “testing” days across the current and prior two years using the weighted formula, count all current‑year days, one‑third of last year’s days, and one‑sixth of the year before that. Certain days do not count, for example regular commuting days from Canada or Mexico, qualifying medical‑condition days, and days as an “exempt individual,” like some students or teachers. Keep a note beside any excluded day.

Example you can copy, if you spent 120 days in each of 2022, 2023, and 2024, your 2024 test total is 120 + 40 + 20, which equals 180. You do not meet the test for 2024. That still does not make you a resident, and if you are under 183 actual U.S. days with a foreign tax home all year, Form 8840 is your backstop.

Who Qualifies For The Closer Connection Exception

You qualify for a year if all are true, you spent fewer than 183 actual days in the United States, your tax home was in a foreign country for the entire year, and your overall ties show a closer connection to that country than to the United States. You are not eligible if you were a lawful permanent resident or took steps to apply for a green card during that year. In limited cases you can claim closer connections to two foreign countries if you meet added conditions.

The Two‑Country Variant, When Moves Happen Mid‑Year

If you changed your tax home from one foreign country to another during the year, kept a tax home in each period, and were taxed as a resident in the relevant periods, you can claim closer connections to two foreign countries, not more than two. The IRS lists the exact conditions you must meet, so read that list carefully before you check the two‑country box on 8840.

Your Tax Home Abroad, What The IRS Actually Looks For

Tax home is either your main place of business or, if you do not have one, your regular place of abode. For a valid 8840 claim, your tax home must be outside the United States for the entire calendar year. Support this with objective proof, a local employment contract, a lease or deed, utility bills, resident tax filings, and the practical signs of daily life in that country. These records make your position clear if a question comes up later.

Practical Ways To Document Your Tax Home

  • Employer letter or contract that lists the foreign work location and contact details.
  • Lease or deed abroad plus utilities or insurance statements in your name.
  • Local bank and brokerage statements that show routine activity where you live.
  • Foreign income tax returns or a tax residency certificate if your country issues one.

Closer Connection Factors, Line Up Your Facts

The IRS weighs where your life actually lives. Make these facts consistent so your file tells one story.

  • Where your permanent home is and where your spouse or dependents live.
  • Where your car, furniture, and personal belongings are kept.
  • The jurisdiction on your driver’s license and voter registration.
  • Where your main bank and investment accounts sit, and where you pay income tax.
  • Your social, cultural, religious, or professional memberships.

If a U.S. fact conflicts with your story, fix it before you file. For example, close an old U.S. checking account you forgot about, or renew your foreign driver’s license if it expired. If there is something you cannot change quickly, include a short explanation in Part IV of Form 8840 so your file stays credible.

The Day‑Count Math, Straightforward Examples

You are treated as present in the United States on any day you are physically there, even briefly, unless a specific exclusion applies. Count every day you entered or stayed, then apply the weighted formula. Remember, you also need at least 31 current‑year days for the Substantial Presence Test to apply at all.

  • Example A, you spent 150 days in 2024, 120 days in 2023, and 60 days in 2022. Your 2024 test total is 150 + 40 + 10, which equals 200. You meet the SPT and would normally be resident, however if you were under 183 actual days in 2024 and kept a foreign tax home all year, you can try to claim the closer connection exception with Form 8840.
  • Example B, you spent 120, 90, and 60. Your total is 120 + 30 + 10, which equals 160. You do not meet the test for 2024, so you remain a nonresident under domestic rules.

Common Pitfalls That Cause Problems

  • Filing once and assuming you are covered for future years, Form 8840 is annual.
  • Letting a U.S. driver’s license or a primary U.S. bank account stay active while claiming your life is centered abroad.
  • Counting loosely and forgetting that a late‑night arrival still counts as a U.S. day unless an exclusion applies.
  • Waiting to fix mismatches until after the deadline, which makes a reasonable‑cause request harder.

A Simple Evidence System You Can Keep Up

Create four folders, travel, housing, work, and finances. Update them the week you travel or move. It takes five minutes and saves you hours later.

Evidence area What to keep Why it matters
Travel Itinerary, passport stamps, a day log Proves your counts and any excluded days
Housing Lease or deed, utilities abroad Anchors your primary home outside the U.S.
Work Employment contract, pay slips Shows where your business life sits
Finances Bank, broker, insurance abroad Confirms daily life and economic ties

The best 8840 files are boring, consistent, and complete, exactly what you want if a letter ever arrives.

Filing Steps, Deadlines, And The Correct IRS Address In 2025

Here is a reliable annual rhythm to follow.

  • Decide whether you will file Form 1040‑NR for the year.
  • If yes, attach Form 8840 to it. If no, mail Form 8840 by itself to the address shown for forms beginning with the number 8.

For 2024 calendar‑year filings made in 2025, the deadlines were, April 15, 2025 if you had wages subject to U.S. withholding, and June 16, 2025 if you did not, since June 15 fell on a Sunday. Form 8840 followed the same timing.

If you are not filing a 1040‑NR, mail Form 8840 to, Department of the Treasury, Internal Revenue Service, Austin, TX 73301. Keep a copy of the filed form and your proof of mailing or e‑file acceptance.

Extensions, What Moves And What Does Not

If you need more time to file a 1040‑NR, submit Form 4868 by the regular due date. An extension gives you extra time to file, not to pay, so coordinate any payment. Make sure your Form 8840 timing remains aligned with your 1040‑NR timeline.

Late Filing And Reasonable Cause

If you miss the 8840 deadline, the IRS can deny the Closer Connection Exception. You may still request relief, but you must show clear and convincing evidence that you took reasonable steps to learn the rule and acted quickly once you knew, for example medical records or documented professional advice that you corrected promptly.

W‑8BEN, Withholding, And Keeping Your Paperwork In Sync

If you hold U.S. accounts, banks and brokers will often ask for Form W‑8BEN to certify foreign status and, if eligible, to apply treaty rates on certain income. You give W‑8BEN to the payer, not the IRS. Generally, a W‑8 remains valid through the last day of the third calendar year after you sign unless a change in circumstances occurs. In specific cases, portions related to foreign status can be indefinitely valid when the form is paired with proper documentary evidence, but any treaty claim still follows the three‑year rule. Notify the payer within 30 days if your status changes.

Keep your W‑8BEN facts aligned with your 8840 facts. Your foreign address, tax residence, and name should match across the board. Mismatches trigger questions and can lead to default 30 percent withholding that you then have to unwind.

Practical Tips For Canadian Snowbirds And Other Frequent Travelers

You can manage this with simple habits.

  • Track entries and exits the same day you travel, then total days monthly.
  • Add a “check‑in” alert at 150 days so you do not drift past 183.
  • Keep your primary home abroad lived‑in, not staged, and align licenses, banking, and memberships with that country.
  • Carry a photocopy of your filed 8840, plus a clean day log, when you cross the border.
Action Evidence Timing
Track days Day log, travel emails, calendar Ongoing
Prove tax home Lease or deed, utilities, local tax filings Annual
Show ties Family residence, bank and memberships Annual
File and carry Attach to 1040‑NR, or mail to Austin if no return By your 1040‑NR due date

Step‑By‑Step, Completing Form 8840 Without Guesswork

  • Identification and status, enter your name, address, country of residence, and your immigration status on the last day of the year. Keep this consistent with your passport and visa.
  • Days of presence, fill in the calendar‑year counts and the prior two years. Match these totals to your day log.
  • Tax home, list the foreign address and confirm it existed all year. If anything needs context, add a short note in Part IV.
  • Closer connection facts, answer the questions about housing, family, belongings, licenses, banking, and social and business ties. Keep the story consistent and simple.
  • Two‑country claims, only check this if you meet the full list of conditions and were taxed as a resident in those periods.
  • Attach or mail, if you file a 1040‑NR, attach 8840. If not, mail it by the same deadline to IRS Austin, TX 73301, and save mailing proof.

A Day‑Count Template You Can Copy

Date In or out U.S. day counts Exclusion Notes
2025‑01‑10 In Yes None Arrived for winter stay
2025‑02‑14 Out Yes None Returned to Canada
2025‑03‑02 In Yes None Back for two weeks
2025‑03‑15 In No Regular commute Cross‑border workday

Keep a monthly subtotal and a year‑to‑date total at the bottom. Add a highlight when you pass 150 days so you can adjust plans well before 183.

Coordination With Form 1040‑NR And Other Filings

When you file Form 1040‑NR, attach Form 8840 the same year you claim the exception. Make sure your return facts match your 8840 answers, including address, filing status, and any treaty disclosures if you also file Form 8833. If you do not file a 1040‑NR, you still must submit 8840 by the same due date by mailing it to Austin, TX 73301.

If you need an extension, request it by the regular due date with Form 4868. An extension moves your filing deadline only, not your payment deadline. Coordinate all pieces so your 8840 is still timely and consistent.

Real‑World Scenarios You Might Recognize

  • Mid‑year move between two foreign countries, you started in Spain, then shifted to Canada in June, and kept a tax home in each period with resident taxation there. If all conditions are met, you can claim closer connections to two countries, not more than two, on the same 8840. Document both periods.
  • Short U.S. wage stint, you worked in the United States for six weeks with wage withholding. Your 1040‑NR deadline was April 15, 2025 for the 2024 year, so your 8840 deadline matched it.
  • Tight day counts, you are at 182 actual days and planning one more weekend. Do not do it. Crossing 183 actual days disqualifies the closer connection exception for that year.

FAQs, Clear Answers In Two To Four Sentences

What is the purpose of Form 8840?

It is the statement you file to claim the Closer Connection Exception when you are under 183 actual U.S. days, your tax home is abroad for the full year, and your ties to that country outweigh your U.S. ties. It keeps you treated as a nonresident for that year.

Who must file Form 8840?

File it for each year you rely on the exception. Each spouse files separately. You cannot use it if you are 183 days or more in the United States that year, if you are a lawful permanent resident, or if you took steps to apply for a green card.

What were the 2025 deadlines for 2024 returns?

If you had wages subject to U.S. withholding, the deadline was April 15, 2025. If you did not, it was June 16, 2025, since June 15 fell on a Sunday. If you were not filing a 1040‑NR, you still had to mail 8840 by that same date.

Can I file Form 8840 late?

You can try, but the IRS may deny the exception. Relief requires clear and convincing evidence of reasonable cause and quick correction once you learned the rule. Attach proof.

How do I count days for the Substantial Presence Test?

Count all days in the current year, add one‑third of last year, and one‑sixth of the year before that. You also need at least 31 current‑year days for the test to apply. Some days are excluded, such as certain commuters from Canada or Mexico, specific medical‑condition days, and exempt‑individual days.

When Individuals And When Teams Need Help

If you are an individual traveler or a snowbird, you can handle Form 8840 with a tidy day log, consistent foreign ties, and a calendar reminder for the deadline. If you lead a CPA, EA, or accounting firm, the challenge is scale, not knowledge. Seasonal spikes in 1040‑NR and 8840 work strain review time and create deadline risk. Accountably supports firms with disciplined offshore delivery that mirrors your standards, standardized 8840 and 1040‑NR SOPs, clean workpapers, and layered quality checks so partners spend less time in review and more time advising. Use this only where it adds control and continuity to your process.

Short Story, Big Lesson

A client once told me counting days felt like “tax Jenga.” One wrong move and everything wobbles. The truth is simpler. If you track days every time you travel, keep your life centered abroad, and file Form 8840 on time, you will be fine. If you do meet the Substantial Presence Test, remember that residents are generally taxed on worldwide income, which is why this planning is worth the effort.

Final Wrap‑Up

  • Form 8840 is how you claim the Closer Connection Exception and stay nonresident for the year when your facts qualify.
  • Know the Substantial Presence Test math and the 31‑day rule, keep a log, and flag any excluded days.
  • File by your 1040‑NR due date, April 15 if you had wages subject to U.S. withholding or June 16 if you did not for 2024 filings made in 2025.
  • If you are not filing 1040‑NR, mail 8840 to IRS Austin, TX 73301 and save proof.
  • Keep W‑8BEN current with your foreign status so your paperwork tells one consistent story.

Every Form Represents Work Your Team Has to Deliver

Accountably embeds trained offshore teams into your workflow – so your firm handles more returns without more burnout.

30-Day Guarantee 150+ Firms SOC 2 Aligned