Checked against IRS sources on July 24, 2026.
IRS Form 8840 is not a Substantial Presence Test calculator.
It is the form the IRS describes for claiming the closer-connection exception when someone meets the Substantial Presence Test but may still be treated as a nonresident for U.S. tax purposes because the required facts support that exception.
Short answer: first get the day count right, then let a qualified tax professional evaluate whether Form 8840 and the closer-connection exception fit your facts.
Jetseen helps you track days. Always consult a qualified tax, legal, or immigration professional for advice specific to your situation.
What is Form 8840?
The IRS About Form 8840 page describes Form 8840 as the closer connection exception statement for aliens.
In practical terms, Form 8840 is connected to a narrow question:
| Question | What it asks |
|---|---|
| Did the person meet the Substantial Presence Test? | The weighted IRS day-count formula |
| Can the closer-connection exception still apply? | A separate IRS exception with its own conditions |
| How is the exception claimed? | IRS says Form 8840 must be filed to claim it |
Filing the form is not the same as qualifying for the exception.
How does the Substantial Presence Test work?
The IRS says the Substantial Presence Test is met when both of these are true:
- You were physically present in the United States for at least 31 days in the current year.
- Your weighted total is 183 days or more over the current year and the two prior years.
The weighted formula counts:
| Year | Weight |
|---|---|
| Current year | All U.S. days |
| Prior year | One-third of U.S. days |
| Second prior year | One-sixth of U.S. days |
The IRS also says a day generally counts when you are physically present in the United States at any time during the day, subject to listed exceptions.
That any-part-of-day rule is why travel records need exact dates.
Where does the closer-connection exception fit?
The closer-connection exception comes after the day-count question.
The IRS closer-connection page says a person who meets the Substantial Presence Test may still be treated as a nonresident for U.S. tax purposes if the exception conditions are met.
The IRS closer-connection page identifies four source-backed conditions:
| IRS closer-connection condition | Why it matters for records |
|---|---|
| Less than 183 days present in the United States during the year | This is a current-year physical day count |
| A closer connection to a foreign country than to the United States | This is a facts-and-circumstances review |
| A foreign tax home during the entire year | This needs professional analysis |
| No steps toward lawful permanent resident status | The guide uses only this IRS-backed wording |
Do not use this guide to decide that you qualify. Use it to understand which day records a tax review may need.
Why less than 183 current-year days matters
The Substantial Presence Test can be met with fewer than 183 actual U.S. days in the current year because prior-year days carry into the weighted formula.
The closer-connection exception has a separate current-year condition. The IRS closer-connection page says the person must be present in the United States for less than 183 days during the year.
Those are different numbers:
| Number | What it means |
|---|---|
| 183 weighted days | The Substantial Presence Test formula threshold |
| Less than 183 current-year U.S. days | One IRS closer-connection condition |
That distinction is where bad spreadsheets create risk. A weighted count and an actual current-year count answer different questions.
Does Form 8840 guarantee nonresident treatment?
No.
IRS source material does not support that claim.
IRS source material says Form 8840 is used to claim the closer-connection exception. It does not say that filing the form guarantees the result.
Avoid three shortcuts:
- "I filed Form 8840, so I am automatically a nonresident."
- "I had fewer than 183 current-year days, so I automatically qualify."
- "My weighted SPT result does not matter because I have a foreign address."
The tax question depends on the IRS conditions and your facts.
Why timing matters
The IRS closer-connection page says Form 8840 must be filed to claim the exception.
IRS wording also says late filing generally prevents claiming the exception unless clear and convincing evidence shows reasonable actions to know and comply with filing requirements.
That makes recordkeeping and timing part of the risk picture.
Keep:
- actual U.S. entry and exit dates
- current-year physical presence count
- weighted SPT count
- possible excluded-day records, if relevant
- foreign tax-home records for advisor review
- Form 8840 filing-status notes from your tax professional
This guide does not provide filing instructions.
What should you track before tax review?
Use a record that separates the calculation from the exception.
| Record | Why it matters |
|---|---|
| Current-year U.S. days | Needed for the 31-day minimum and the less-than-183 condition |
| Prior-year U.S. days | Needed for the weighted 183-day SPT formula |
| Partial days | IRS says any part of a day generally counts, subject to exceptions |
| Excluded-day notes | Some days may be excluded only under IRS rules |
| Foreign tax-home notes | Needed for advisor review of closer-connection facts |
| Filing deadline notes | Form 8840 has filing consequences |
Do not rebuild the story months later from bank statements and calendar guesses if you can avoid it.
Where Jetseen fits
Jetseen includes a built-in U.S. Substantial Presence Test tracker as one of its 13 rule types. It helps users track U.S. days, notes, alerts, documents, trip simulation, and CSV exports.
A practical Form 8840 review setup:
- track U.S. days for the current year
- keep prior-year U.S. days visible for the weighted formula
- add notes for days you plan to ask a tax professional about
- attach travel records and advisor notes
- export CSV records before tax review
- keep the Form 8840 question separate from the day-count calculation
Jetseen does not determine Form 8840 eligibility, file IRS forms, give tax advice, replace an advisor, or guarantee nonresident status.
If the closer-connection exception is part of your U.S. tax review, Try Jetseen Free for 14 Days and keep the day-count record clean before the tax analysis starts.
Jetseen helps you track days. Always consult a qualified tax, legal, or immigration professional for advice specific to your situation.
Related guides
- US Substantial Presence Test
- Do US transit days count for the Substantial Presence Test?
- Do US territories count for the Substantial Presence Test?
Sources
Disclaimer: This article is for informational purposes only and does not constitute legal or tax advice. Tax residency rules change frequently. Consult a qualified tax professional for advice specific to your situation.
