Independent form guide. BrieflyGo is not affiliated with or endorsed by IRS, USCIS, SSA, DOL, or any U.S. government agency. Official forms are sourced from public government websites.
Official form guide
IRS Form 8840 is the Closer Connection Exception Statement for Aliens. It allows a nonresident alien who meets the substantial presence test to claim a closer connection to a foreign country and avoid being treated as a U.S. resident for tax purposes. The form is filed together with Form 1040-NR.
Need help with Form 8840?
Open it in the AI Editor for field guidance, checks, and PDF export.
Need help? AI Editor guides you through every field of Form 8840.
Start filling →Form Overview
IRS Form 8840 is the Closer Connection Exception Statement for Aliens. It allows a nonresident alien who meets the substantial presence test to claim a closer connection to a foreign country and avoid being treated as a U.S. resident for tax purposes. The form is filed together with Form 1040-NR.
Plain English
If you are not a U.S. citizen but you spend enough days in the United States to be considered a resident under the tax rules, you can still avoid that status by showing you have stronger ties to another country. Form 8840 is where you list those ties—like your home, family, and economic connections abroad. You attach it to your yearly nonresident tax return. If the IRS accepts the statement, you are taxed only on U.S.-source income.
Submission Date
AI co-pilot
Form selector
You are a nonresident alien claiming tax treaty benefits
To claim treaty-based positions not covered by closer connection
✓ Verify treaty eligibility before filing
You need to exclude foreign earned income
To claim foreign earned income exclusion
✓ Ensure you meet bona fide residence or physical presence test
You are a dual-status alien for the year
To report income for both resident and nonresident periods
✓ Confirm dual-status filing requirements
Form 8840 follows the same deadline as your Form 1040-NR. For most taxpayers, the due date is April 15 of the following year, with an automatic extension to June 15 if you are abroad on April 15. You may also obtain an additional extension to October 15 by filing Form 4868. If you are not required to file a return, submit Form 8840 by the regular return due date (including extensions).
Checklist
Foreign home address
Lease agreement or utility bill · Personal records
Days present in U.S.
Entry/exit stamps or I-94 records · Passport or travel logs
Family ties abroad
Marriage certificate, birth certificates · Personal files
Economic connections
Foreign bank statements, employment contracts · Financial institutions
Signature and date
Signed form · Form itself
Field map
Entity Info
1 items
Name and taxpayer ID of the entity claiming the credit.
Credit Info
1 items
Type of credit or incentive being claimed.
Calculation
2 items
The base amount used to calculate the credit.
Calculated credit amount after applying formulas and limitations.
Certification
1 items
Detailed breakdown supporting the credit calculation.
Signatures
1 items
Sign and date the form.
Almost done reviewing the fields?
Fillable formOpen in Editor->The current version of Form 8840 is dated December 2023 (Rev. 12-2023). No fee is associated with filing this form.
Quick Facts
Downloads
Confusion: Whether to file Form 8840 if you do not meet the substantial presence test
Why it happens: Misunderstanding the threshold for filing
→ Safe check: Only file if you meet the substantial presence test and want to claim the exception
Confusion: Thinking Form 8840 replaces Form 1040-NR
Why it happens: Believing the form alone satisfies filing requirement
→ Safe check: Form 8840 must be attached to Form 1040-NR; it is not a standalone return
Confusion: Assuming any foreign home qualifies for closer connection
Why it happens: Overgeneralizing the requirement
→ Safe check: You must demonstrate stronger ties to the foreign country than to the U.S.
Confusion: Believing the form can be filed after the tax return deadline without penalty
Why it happens: Misreading extension rules
→ Safe check: File with the return by the applicable deadline, including extensions
Confusion: Using the same day count for all three years
Why it happens: Applying the substantial presence formula incorrectly
→ Safe check: Follow the IRS formula: current year days + 1/3 prior year + 1/6 second prior year
Confusion: Thinking a signature is optional if you attach a cover letter
Why it happens: Overlooking the signature requirement
→ Safe check: The taxpayer must sign and date Form 8840 directly
Workflow map
Before
Current
After
Often used with
⚠ If something goes wrong
Source transparency
BrieflyGo links to and explains official public form sources. We are not a government agency, and this page is for general form guidance, not legal advice.
BrieflyGo reviews your contracts in plain English — instantly.