Guide
Form 8840 and the closer connection exception, for people who winter in the US
Last updated . Published by Certloom Learning. Made from the IRS pages on the substantial presence test and Form 8840 and the 2024 edition of Form 8840, read on 12 November 2026. Check the current year form before you file.
Short answer
Form 8840 is how a person who meets the substantial presence test claims to be a nonresident anyway. The IRS 2024 form says it applies only if you were in the US fewer than 183 days that year, had a tax home in a foreign country and a closer connection to that country. If you do not file on time, you are not eligible to claim the exception.
What is the closer connection exception?
The IRS says that even if you meet the substantial presence test, you may be treated as a nonresident if you qualify for a closer connection exception. Form 8840 is the statement used to claim the exception for a foreign country or two.
Who can claim it?
The 2024 form lists these conditions for the main exception:
- You were present in the United States fewer than 183 days during the year.
- You establish that you had a tax home in a foreign country during the year.
- You establish a closer connection to one foreign country in which you had a tax home than to the United States (with a separate route for two countries).
It also says the exception is not available if you were present 183 days or more in the year, if you are a green card holder, or if you applied or took steps to apply for a green card.
What does the form ask about?
Part I asks for the number of days you were present in the US in the year and the two before. Part IV asks where your home, family, car, belongings, bank, driver's licence, voter registration and documents were, which country you listed as residence, and where your income and investments were. The days you track are the first answer on the form.
When must you file?
The 2024 instructions say that if you have to file a return, you attach Form 8840 to it and mail it by the due date including extensions. If you do not have to file a return, you mail it by the Form 1040-NR due date including extensions. Each person files a separate form. The form states that if you do not timely file Form 8840, you will not be eligible to claim the exception.
Worked example
A Canadian snowbird spends 150 days in the US for three years in a row. The weighted total is 225 (150 plus 50 plus 25), so the substantial presence test is met. At 150 days in the current year, the first condition (fewer than 183) holds, and the person can claim the exception if the tax home and closer connection conditions also hold and Form 8840 is filed on time. At 190 days in the current year, the exception is not available.
Quick questions
Is Form 8840 the same as a tax return?
No. It is a statement that accompanies a return or is filed on its own. This guide does not say whether you must also file a return.
Does Staymark file anything?
No. Staymark counts days. It shows how many days you spent in the US so far this year and the weighted total, which are the first inputs for the form.
Official sources
- IRS, Substantial presence test. Read .
- IRS, About Form 8840, Closer Connection Exception Statement for Aliens. Read .
- IRS, Form 8840 and instructions (2024 edition, the latest read). Read .
- IRS Publication 519, U.S. Tax Guide for Aliens. Read .
This guide is general information. It is not legal, immigration or tax advice, and Staymark is not affiliated with any government or tax agency. Agencies and officers decide; check the official source for your case.
Related guides
- Snowbird day limits. The three day counts a Canadian winter in the US touches.
- US substantial presence test. 31 days and 183 weighted days, with the IRS example.
- US state residency day counts. Domicile versus days, with New York and Florida as examples.
- How to count arrival and departure days. Entry and exit days under each rule, side by side.