Form 8840 Filing & Audit Defense: Proving Closer Connection to a Foreign Country
How to file the Form 8840 closer connection statement: the deadline, who carries the burden of proof, how the IRS scores your ties, and what wins an audit.
Form 8840 is the statement you file to claim the closer-connection exception, telling the IRS that even though you met the Substantial Presence Test, your tax home and your stronger ties were in a foreign country, so you should be taxed as a nonresident. The catch: the burden of proof is entirely on you, and the IRS evaluates a long list of ties as a whole. Filing on time with a clean day count and contemporaneous records is what turns the claim from a hope into a defensible position.
This guide covers the filing mechanics, who carries the burden, how the IRS effectively scores your ties, and the documentation that wins an audit. If you only need the eligibility basics, start with our overview of the closer-connection exception; this article is about getting it right on paper and defending it.
Who files Form 8840 and why
Form 8840 is for non-US-citizens who met the Substantial Presence Test for the year but want to be treated as nonresident aliens because they kept a closer connection to one (or, in limited cases, two) foreign country. A nonresident alien is taxed only on US-source income, not worldwide income, so a successful claim can change your entire tax picture for the year.
You attach Form 8840 to your Form 1040-NR if you are required to file a US return. If you are not otherwise required to file, you mail Form 8840 by itself to the address in the instructions. Either way, the deadline matters: file by the due date of the return you would file (April deadline for most, June for those abroad), including extensions.
The exception is unavailable if you were present in the US for 183 or more days in the current year (the unweighted current-year count, not the SPT weighted total), or if you have taken steps toward a green card. Confirm those two facts before you invest in documenting ties.
Who carries the burden of proof
On a closer-connection claim, the taxpayer carries the burden. You met the SPT, which presumptively makes you a resident; the exception is something you assert and must support. That framing matters in an audit: the IRS does not have to prove you were a resident, you have to prove you qualified for the exception. Silence, vagueness, or a reconstructed day count works against you.
Practically, this means three things must hold together and be provable: a tax home in the foreign country for the entire year, fewer than 183 current-year US days, and a closer connection to that foreign country than to the US. Lose any one and the claim fails, so each needs its own evidence file.
How the IRS scores your ties
There is no point system in the law, but Form 8840 walks through a set of factors, and auditors weigh them as a whole. No single factor decides the case; the question is whether the totality of your facts points to the foreign country. The table below shows how common facts typically read.
| Factor | Points toward foreign country | Points toward US |
|---|---|---|
| Permanent home | Home you maintain abroad | Home or long-term lease in the US |
| Family | Spouse and children live abroad | Family relocated to the US |
| Personal belongings | Car, furniture, valuables kept abroad | Belongings shipped to the US |
| Banking & finances | Primary accounts and assets abroad | US bank, US broker as your main accounts |
| Driver's license | Issued by the foreign country | US state license |
| Voter registration | Registered to vote abroad | Registered in a US jurisdiction |
| Organizations | Clubs, religious, social ties abroad | US-based memberships and affiliations |
| Residence on documents | Foreign address on official forms | US address; filed W-9 as a US person |
Read your own facts down that table honestly. If most of your weight lands in the right-hand column, the exception is weak no matter how few days you spent in the US. A genuinely closer connection looks consistent across home, family, finances, and the paper trail, not just on a tax form. Form 8840 also asks where you were a tax resident and whether you filed a resident return in another country, and actually paying tax as a resident somewhere else is one of the strongest corroborating facts you can offer.
The tax-home requirement does the quiet heavy lifting
The closer-connection factors get the attention, but the tax-home requirement is where many claims actually break. Your tax home is the general area of your main place of business, employment, or post of duty, regardless of where your family home is. If you have no regular place of business, it is where you regularly live. It must be in the foreign country for the entire year you are claiming.
For a remote worker, the tax home is generally where you regularly perform the work, not where the client or employer sits. For a retiree, it is where you regularly live. A common failure is treating a vacation country as the tax home while the real work or life base sat elsewhere, including in the US. If your tax home shifts during the year, the exception is in jeopardy.
Audit-winning documentation
Closer-connection audits are won on contemporaneous evidence, records created at the time, not assembled after the notice arrives. Build the file as the year happens, organized around the three things you must prove. At minimum, keep:
- A day-by-day presence log with entry and exit dates, backed by passport stamps, boarding passes, and itineraries, your foundation for the under-183-day fact.
- Tax-home proof: a foreign lease or ownership records, utility bills, and evidence of where you actually worked or lived all year.
- Tie evidence: foreign driver's license, voter registration, club and organization memberships, and where your family lived.
- Financial footprint: statements showing your primary accounts, the address on file, and where your assets sat.
- Foreign tax filings: a resident return filed in the other country, which corroborates the entire claim.
- The filed Form 8840 itself, plus proof of timely filing or extension.
A reliable day count is the spine of the whole file, every other fact is read against it. Reconstructing dates from memory under audit is exactly the weakness examiners look for. Tax Days logs each trip as it happens and exports the entry/exit detail Form 8840 asks for, and our Substantial Presence Test calculator lets you confirm both the weighted SPT total and your unweighted current-year count before you file. For broader audit prep, see our residency audit defense guide.
Deadlines and what happens if you file late
File Form 8840 by the due date of your return for the year, including valid extensions. Miss it and you generally forfeit the exception for that year, the IRS can treat you as a US resident taxed on worldwide income, unless you can show by clear and convincing evidence that you took reasonable actions to become aware of the filing requirement and significant affirmative steps to comply. That is a demanding standard and not something to rely on. Treat the deadline as hard.
If you expect to claim the exception year after year (a recurring snowbird or cross-border worker), file Form 8840 every single year and keep the records every single year. A gap in one year does not just lose that year, it undercuts the credibility of the surrounding ones.
Finally, remember the exception is a creature of US domestic law, not a treaty. If you are caught between two countries' residency rules, a tax treaty's tie-breaker is a separate analysis with its own forms. The two can interact, but Form 8840 stands on its own facts.
Frequently asked questions
What is Form 8840 used for?
Form 8840 is the IRS Closer Connection Exception Statement. Non-citizens who met the Substantial Presence Test file it to claim they should still be taxed as nonresident aliens because their tax home and stronger ties were in a foreign country.
When is the Form 8840 deadline?
By the due date of the return you would file for the year, including extensions, generally the April deadline, or June if you are abroad. If you owe no return, mail the form by itself by that same date. Late filing generally forfeits the exception unless you can show by clear and convincing evidence that you took reasonable actions to learn of the filing requirement and significant steps to comply, a demanding standard.
Who has the burden of proof for the closer-connection exception?
The taxpayer. Meeting the SPT presumptively makes you a resident, so the exception is something you assert and must support with a clean day count, foreign tax-home proof, and tie evidence.
How many US days disqualify you from filing Form 8840?
183 or more days of US presence in the current year (the unweighted count) disqualifies you, regardless of your other ties. You can confirm both your weighted SPT total and current-year count with the Substantial Presence Test calculator at /tools/substantial-presence-test-calculator.
What documents do I need to defend a closer-connection claim?
A contemporaneous day-by-day presence log, foreign lease or home records, foreign driver's license and voter registration, financial statements showing your primary accounts abroad, and ideally a resident tax return filed in the other country.
Can I claim closer connection if I applied for a green card?
No. Applying for, or having a pending application for, lawful permanent residence makes the exception unavailable for that year.
Sources & further reading
Every rule on this page is drawn from primary sources. Verify the current law before making a residency decision.