


Explore our collection of free tools and calculators to make informed decisions.
Explore All ToolsYour trusted hub for free calculators and tools. We make financial planning simple and accessible for everyone.
Tools & Calculators
Calculations
Fast Results
Trusted
Form 8840 closer connection exception explained: SPT formula, Part IV walkthrough, 2025-26 deadlines, documents, and two real day-count examples.
If you're a foreign national who racked up enough US travel days to trip the Substantial Presence Test, Form 8840 is your way out โ as long as you spent fewer than 183 actual days in the US that year and your real life is anchored somewhere else. Get the day count or the deadline wrong, though, and the IRS can tax your entire worldwide income instead. Here's who qualifies, how the math actually works, and exactly what to file and when.
A quick heads-up before we get into it: Form 8840 is a US federal filing, made under Internal Revenue Code Section 7701(b). It has nothing to do with India's Income-tax Act, 1961 or the newer Income-tax Act, 2025. So you won't see any Indian section numbers in this guide โ every rule here comes straight from the IRS.
Form 8840, officially the Closer Connection Exception Statement for Aliens, is how you tell the IRS: "Yes, I technically hit the day-count threshold, but my real home is somewhere else." You attach it to Form 1040-NR if you're filing one, or mail it on its own if you don't owe a US return at all. Win this claim, and you keep your nonresident status, which means the IRS only taxes your US-source income, not everything you earn worldwide.
Applies to | Does NOT apply to |
|---|---|
Foreign nationals who met the Substantial Presence Test but spent under 183 actual days in the US this year | Anyone present in the US for 183 or more actual days this year, no matter what the weighted formula says |
Business travelers, consultants, and executives who kept a genuine tax home abroad all year | Anyone who applied for, or took steps toward, a green card during the year |
Indian professionals on a B-1/B-2 visa who cross into SPT territory through frequent short trips | US citizens and green card holders (lawful permanent residents) |
H-1B or L-1 holders whose actual current-year US presence stayed under 183 days | Exempt individuals โ most F-1/J-1 students and certain teachers or trainees (they use Form 8843 instead) |
Canadian snowbirds wintering in the US while keeping a Canadian tax home | Anyone who had a US tax home at any point during the year |
There's also a middle case worth flagging: people who shifted their tax home from one foreign country to another partway through the year. They get a separate track (Part III of the form), which we'll cover below.
The Substantial Presence Test runs on a weighted three-year day count, and this is where most people trip up. You meet the test if you were present in the US at least 31 days during 2025, and if your weighted total across 2025, 2024, and 2023 adds up to 183 days or more. The weighting counts every 2025 day at full value, one-third of your 2024 days, and one-sixth of your 2023 days. [Source: IRS Form 8840 instructions, irs.gov]
Not every day in the US counts toward that total, either. Days spent commuting regularly from a home in Canada or Mexico don't count, and neither do days spent in the US for under 24 hours while passing through on your way to another country. Days you spent in the US as an "exempt individual" โ most F-1/J-1 students in their first five calendar years, for instance โ also get excluded, but those exclusions are claimed on a different form, Form 8843, not on Form 8840 itself.
Once SPT applies, here's what you actually need to prove to win the closer connection exception:
Fewer than 183 actual days of physical presence in the US that year. This is a plain, unweighted count โ the SPT formula doesn't matter for this part.
A foreign tax home that existed for the whole year, in the country you're claiming a connection to.
No US tax home at any point during the year.
A closer connection โ stronger ties to that foreign country than to the US, based on the Part IV questions covered further down.
No steps toward a green card. If you applied for, or took any affirmative step toward, lawful permanent resident status during the year, you're automatically disqualified from claiming this exception, though a treaty-based route may still be open (more on that just below). [Source: irs.gov]
Claiming two foreign countries at once โ Part III. You can claim a closer connection to two foreign countries, but never more than two, if all of the following are true: you kept a tax home in one country as of January 1, moved your tax home to a second country during the year, kept it there for the rest of the year, had a closer connection to each country while you lived there, and were taxed as a resident under either country's laws for the full year, or under both countries' laws for the matching periods you lived in each one.
Form 8840 vs Form 8833 vs Form 8843 โ which one do you actually need? This trips people up constantly, so here's the short version.
Form | Use it when | Filed with |
|---|---|---|
Form 8840 | You met SPT, spent under 183 actual days in the US, and have a genuine closer connection abroad | Attached to Form 1040-NR, or mailed standalone |
Form 8833 | You met SPT โ including 183-plus days โ but a tax treaty's tie-breaker rule still makes you a foreign resident | Attached to Form 1040-NR |
Form 8843 | You're an exempt individual (student, teacher, trainee) or excluding medical-condition days from your SPT count | Attached to Form 1040-NR, or standalone if you owe no return |
If closer connection isn't available to you but a US tax treaty exists with your home country, the treaty's tie-breaker rules might still keep you a nonresident. That route runs through Form 8833, not Form 8840.
One more detail people miss: if you're married and both spouses qualify, each spouse files their own separate Form 8840. There's no joint version of this particular form.
Example 1 โ the common case: an H-1B professional who moved back mid-cycle. Ramesh worked in Austin on an H-1B visa through all of 2023 and 2024, spending roughly 300 days in the US each year. In January 2025, his employer reassigns him to the Bengaluru office for a client project, so he shifts his tax home back to India for the entire year, making only short US business trips that add up to 95 days in 2025.
Here's his SPT math: 95 days (2025) + 310 รท 3 (2024, about 103.3) + 300 รท 6 (2023, 50) = roughly 248.3 weighted days. That clears both the 31-day floor and the 183-day weighted threshold, so SPT applies to him. But his actual 2025 presence was only 95 days โ well under 183 โ and his tax home sat in Bengaluru the whole year. He never applied for a green card. Ramesh can file Form 8840 for 2025, claiming a closer connection to India: his family, permanent home, bank accounts, and driver's license all stayed in India, with only routine US business trips on record.
Example 2 โ the edge case most guides skip: two tax homes in one year. Farida, an IT consultant, kept her tax home in the UK from 1 January through 31 May 2025 for a client engagement in London, then moved her tax home to Pune from 1 June onward. Across the year, her US client visits added up to 120 days. Her prior two years looked like this: 200 days in 2024 and 150 days in 2023.
Her weighted SPT works out to 120 + 200 รท 3 (about 66.7) + 150 รท 6 (25), which comes to 211.7 โ well past the 183 threshold, so SPT applies. Her actual 2025 US presence, 120 days, is under 183, which clears the first gate for the closer connection exception. Because she genuinely held two separate tax homes in sequence, she'd use Part III instead of Part II, and she'd need to meet all five conditions listed above, including proof that she was taxed as a UK resident for the January-to-May stretch and as an Indian resident for June through December. Foreign tax-residency status like this depends entirely on each country's own domestic tax law, so this is exactly the kind of detail worth checking with a cross-border CA before filing, since the UK and Indian residency tests don't run on the same rules as the US test.
Pull your travel records for the current year and the two years before it โ boarding passes, passport stamps, or an export from a travel-tracking app all work fine.
Run the weighted SPT formula: current-year days, plus prior year divided by 3, plus the year before that divided by 6. If the total comes in under 183, you don't need Form 8840 at all โ you're already a nonresident.
Check your current-year actual count on its own. If it's 183 or more actual days, you're disqualified from the closer connection exception outright, no matter how strong your foreign ties are.
Confirm you haven't taken any green card steps. A "yes" here means stop โ Form 8840 isn't available to you this year.
Fill out Part II if you're claiming one country, or Part III if you're claiming two, naming the foreign tax home and the exact dates it applied.
Work through Part IV, Significant Contacts, one line at a time. It asks where your regular permanent home was, whether you had a second home, where your family lived, where your car was kept and registered, where your personal belongings and furniture sat, up to four routine personal banking locations, whether you did business outside your tax home, and where your driver's license (or licenses) were issued. It then covers your voter registration country, any US official forms you filed that might suggest resident status, US-source income, and where your investments were located.
Attach it and send it in. If you're filing Form 1040-NR, attach Form 8840 to it. If you don't owe a US return, mail Form 8840 by itself to the Department of the Treasury, Internal Revenue Service Center, Austin, TX 73301-0215.
You realize you crossed 183 actual days for the year. Closer connection is off the table completely โ there's no partial credit here. Check whether a US tax treaty covers your home country and pivot to Form 8833's tie-breaker test instead, filed alongside Form 1040-NR. That test looks at your permanent home, your center of vital interests, and your habitual abode, rather than a strict day count.
You missed the Form 8840 deadline. A late Form 8840 forfeits the exception, unless you can show โ by clear and convincing evidence โ that you took reasonable steps to learn about the filing requirement and acted quickly once you knew. File it the moment you catch the mistake, attach a signed statement explaining what happened and what you did about it, and hang on to your travel and mailing records as backup.
You filed Form 1040 by mistake instead of Form 1040-NR with Form 8840 attached. This is a common first-year slip for H-1B holders who assumed resident rules applied to them. File a corrected return under the proper nonresident rules, attach Form 8840 with your day-count evidence, and add a short cover statement explaining the correction. Fixing it yourself, before the IRS flags it, carries more weight than responding after a notice arrives.
Document | Digital copy accepted? | Where to get it |
|---|---|---|
Passport with entry and exit stamps, or a reconstructed travel log | Yes | Immigration stamps, or airline and visa records if stamps are missing |
Foreign lease or property deed | Yes | Your landlord, or the local sub-registrar/land records office |
Foreign bank statements | Yes | Your home-country bank's net-banking portal |
Foreign driver's license | Yes | Your local RTO (in India) or the equivalent licensing authority |
Foreign income tax return for the year | Yes | Your home country's tax portal โ India's e-filing portal for ITR copies |
Employer letter confirming your foreign work location or tax home | Yes | Your HR department |
Proof of family residence abroad | Yes | Utility bills, school records, or an address-linked government ID |
There's no fixed rupee-or-dollar fine attached to a late Form 8840, unlike some other filings. The real cost is losing the exception itself, unless you can show clear and convincing evidence of reasonable cause for the delay. Once that happens, you're pushed into resident-alien treatment: worldwide income taxed on Form 1040, FBAR reporting (FinCEN Form 114) once your combined foreign accounts cross $10,000, and FATCA reporting on Form 8938 starting at $50,000 or $75,000 for a single filer living in the US. Once you're filing as a resident, the usual late-filing and accuracy-related penalties that apply to any US return kick in too, so the downstream cost is real even without a standalone fine for Form 8840 itself.
It's a claim you file when you technically meet the Substantial Presence Test but spent under 183 actual days in the US that year and kept a genuine foreign tax home. Approved, it keeps you a nonresident alien instead of a US tax resident on worldwide income.
Anyone who clears the weighted three-year SPT formula, was present under 183 actual days in the current year, kept a foreign tax home all year, and never took steps toward a green card during that year.
No, and this trips a lot of people up. Line 6 of the form asks directly, and answering "yes" disqualifies you from the closer connection exception entirely, even if every other condition is met. A treaty-based claim through Form 8833 might still be possible, depending on your country's treaty with the US.
For a 2025 calendar-year filing done in 2026, the deadline is 15 April 2026 if you received US wages subject to withholding or had a US office, and 15 June 2026 otherwise. Filing Form 4868 pushes either deadline out to 15 October 2026.
File it as soon as you realize, with a signed statement showing reasonable cause and the steps you took once you became aware. Without that clear and convincing evidence, you lose the exception for that year and get treated as a resident alien.
Form 8840 relies on the closer-connection day-count test and only works if you're under 183 actual days. Form 8833 relies on a tax treaty's tie-breaker rules โ permanent home, center of vital interests, habitual abode โ and can apply even past 183 days if a treaty exists between the US and your country.
Form 8843 is for exempt individuals โ F-1/J-1 students, teachers, and trainees โ to exclude specific days from the SPT count itself. Form 8840 comes into play after SPT already applies, when you want to claim you're still not a resident despite meeting it.
Yes, if their actual current-year US presence dropped under 183 days โ often after a mid-year transfer back to their home country โ while they still cleared the weighted SPT total because of heavier US presence in prior years.
Only if you meet all five conditions under Part III: a genuine shift of your tax home from one foreign country to another during the year, a closer connection to each country during its respective period, and proof of resident tax status under each country's laws for the matching period.
Yes. It's not a one-time election that carries forward. Every calendar year you meet SPT and want the exception, you file a fresh Form 8840 based on that year's facts.
No. Form 8840 is a supporting statement, not a substitute for your return. If you have US-source income that requires filing, you still file Form 1040-NR and attach Form 8840 to it.
Closer connection isn't available to you, no matter how strong your foreign ties are otherwise. Your only remaining path to nonresident treatment is a treaty tie-breaker claim through Form 8833, if a treaty with your country covers this situation.
Pull your last three years of travel dates today, and run the weighted SPT formula before you assume either resident or nonresident status by default. If you're also weighing a move back to India, check how the numbers play out against Toolisky's guide on dual tax filing obligations for NRIs in India and the US, and against Toolisky's guide on RNOR status for NRIs returning from the US. For the form itself and the latest filing details, go straight to the IRS's official Form 8840 page.
For educational purposes only. Verify all figures at official sources before acting. Toolisky is not affiliated with any government body. Consult a qualified CA or legal professional before making compliance decisions. See toolisky.com/accuracy-and-limitations.

TDS rate chart FY 2026-27: All Section 393 rates, old-vs-new section mapping, 3 rate changes, payment due dates & worked โน examples. Updated July 2026.

NRI tax UK and India 2026: HMRC residency rules, the FIG regime replacing non-dom, DTAA relief, NRE/NRO taxation, and Self Assessment deadlines explained.
Jul 16, 2026

ESIC registration process 2025-26: the complete step-by-step online guide covering documents, fees, portal steps, deadlines, and employer penalties in India.
Jul 16, 2026