The 183-day rule for tax residency is the IRS’s substantial presence test: a three-year weighted count of days you spent in the United States that, once it hits 183, classifies you as a U.S. tax resident and puts your worldwide income on the table. The count is weighted, not straight, so you can qualify without ever spending half a year in the country during any single calendar year. The rule is codified at 26 U.S.C. § 7701(b)(3).1Office of the Law Revision Counsel. 26 USC 7701 – Definitions
How the Weighted Day Count Works
Two conditions have to be true at the same time. You were physically present in the U.S. for at least 31 days during the current calendar year. And when you run the weighted formula across three years, the total reaches 183.1Office of the Law Revision Counsel. 26 USC 7701 – Definitions
The weighting: every day in the current year counts as a full day, each day from the prior year counts as one-third, and each day from two years back counts as one-sixth. Someone who never stayed longer than 130 days in any single year can still land above the threshold:
- 2026 (current year): 130 days × 1 = 130
- 2025 (first preceding year): 120 days × ⅓ = 40
- 2024 (second preceding year): 120 days × ⅙ = 20
That is 190 weighted days. Once you meet the test, the IRS treats you the same as a U.S. citizen for income tax purposes: tax on income earned anywhere in the world.1Office of the Law Revision Counsel. 26 USC 7701 – Definitions
Presence is counted generously. Any day you are physically on U.S. soil counts, even briefly. Arriving at 11:55 p.m. and leaving at 12:05 a.m. the next morning uses up two calendar days on your tally.2Internal Revenue Service. Substantial Presence Test Frequent cross-border travelers should log every entry and exit.
One boundary worth naming: the 183-day rule is not the only path to U.S. tax residency. If you hold a green card, you are a tax resident regardless of how many days you spend in the country.3Office of the Law Revision Counsel. 26 USC 7701 – Definitions The day count matters most for foreign nationals without a green card who spend real time in the U.S.
Days That Don’t Count
Some categories of presence are excluded from the count. The regulations carve these out for people whose time in the U.S. is temporary and not primarily economic.
- Foreign government-related individuals present because of diplomatic or full-time international organization work.
- Teachers and trainees on J or Q visas, generally for up to two calendar years out of any six-year lookback window.
- Students on F, J, M, or Q visas, generally for up to five calendar years.
- Days you intended to leave but could not, because of a medical condition that developed while you were in the U.S.4Office of the Law Revision Counsel. 26 USC 7701 – Definitions
- Time spent in the U.S. under 24 hours while traveling between two foreign countries.
- Days spent commuting to a U.S. workplace from a residence in Canada or Mexico.2Internal Revenue Service. Substantial Presence Test
The exclusions are not automatic. Exempt individuals and anyone claiming the medical-condition exception must file Form 8843 to document the basis for excluding those days. Skip it and the IRS can refuse the exclusion and count the days.5eCFR. 26 CFR 301.7701(b)-3 – Days of Presence in the United States That Are Excluded for Purposes of Section 7701(b) The only defense for a late filing is showing, by clear and convincing evidence, that you took reasonable steps to learn about the requirement and genuinely tried to comply.6Internal Revenue Service. About Form 8843, Statement for Exempt Individuals and Individuals With a Medical Condition
The Closer Connection Exception
Meeting the weighted threshold doesn’t automatically lock you into U.S. tax residency. If your actual physical presence during the current year was fewer than 183 days (even though the three-year weighted total crossed the line), you may qualify for the closer connection exception. You have to show that you maintained a tax home in a foreign country for the entire year and that your personal and economic ties to that country are stronger than your ties to the United States.7Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test
The IRS weighs factors like where your primary residence is, where your family lives, where your bank accounts and driver’s license are, and where you vote. You claim the exception by filing Form 8840 with your return. Miss the deadline and the exception is gone; the IRS taxes you on worldwide income.8Internal Revenue Service. About Form 8840, Closer Connection Exception Statement for Aliens
One disqualifier catches people off guard. You cannot claim the closer connection exception if you have applied for a green card or have an adjustment-of-status application pending. Filing Form I-485, Form I-140, or similar immigration petitions during the year signals intent to become a permanent resident, which the IRS treats as incompatible with claiming stronger ties abroad.7Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test
Treaty Tie-Breakers When Two Countries Both Claim You
You can end up a tax resident of both the United States and another country under each country’s own rules. Without a resolution, both would tax your entire worldwide income. Bilateral tax treaties address this with a hierarchy of tie-breakers.
The analysis runs in strict order. First, where do you have a permanent home available for your use. If you have one in both countries, the question shifts to your center of vital interests, meaning where your personal and economic relationships are strongest. If that is still inconclusive, the test looks at where you spend more time overall. Nationality is the final fallback, and if even that fails to resolve the question, the two tax authorities negotiate.
If you rely on a treaty tie-breaker to claim nonresident status, you must disclose the position by filing Form 8833 with your return. A dual-resident taxpayer claiming treaty benefits as a resident of the foreign country files Form 1040-NR with Form 8833 attached.9Internal Revenue Service. Form 8833, Treaty-Based Return Position Disclosure Failure to disclose a treaty-based position can carry a $1,000 penalty per failure under 26 U.S.C. § 6712.10Office of the Law Revision Counsel. 26 USC 6712 – Failure to Disclose Treaty-Based Return Positions
What Changes Once You’re a U.S. Tax Resident
Crossing into resident status does more than change which form you file. It changes what you have to report. U.S. tax residents owe federal income tax on all worldwide income: foreign wages, overseas rental income, interest from foreign bank accounts, dividends from foreign investments.11Internal Revenue Service. Reporting Foreign Income and Filing a Tax Return When Living Abroad Two reporting regimes sit alongside the income tax itself, and this is where accidental residents run into the biggest surprises.
Foreign Bank Account Reporting (FBAR)
If you have a financial interest in or signature authority over foreign accounts whose combined value exceeded $10,000 at any point during the year, you file FinCEN Form 114 (the FBAR) electronically through the BSA E-Filing System. The deadline is April 15, with an automatic extension to October 15.12Internal Revenue Service. Report of Foreign Bank and Financial Accounts (FBAR) Non-willful violations can draw penalties up to $10,000 per account per year. Willful violations can reach 50% of the highest account balance or $100,000, whichever is greater.
FATCA Reporting on Form 8938
Separately from the FBAR, the Foreign Account Tax Compliance Act requires U.S. tax residents to report specified foreign financial assets on Form 8938 above certain thresholds. For an unmarried taxpayer living in the U.S., the trigger is $50,000 in foreign assets on the last day of the year or $75,000 at any point during the year. For married couples filing jointly, those figures double to $100,000 and $150,000. Taxpayers living abroad face higher thresholds: $200,000 on the last day of the year, or $400,000 for joint filers.13Internal Revenue Service. Do I Need to File Form 8938, Statement of Specified Foreign Financial Assets?
Failing to file Form 8938 triggers a $10,000 penalty. If you still don’t file after the IRS sends a notice, the penalty grows by $10,000 for every 30-day period of continued non-compliance, up to $50,000.14Internal Revenue Service. International Information Reporting Penalties
Where People Lose the Argument
Most residency disputes are paperwork problems, not substantive fights over facts. The pattern is consistent: someone qualifies for an exception but forfeits it by missing a form.
- Missing Form 8843. Exempt individuals (students, teachers, diplomats) who file late can have their U.S. days counted toward the substantial presence test. That alone can flip status from nonresident to resident.
- Missing Form 8840. Without it, the closer connection exception is unavailable, even if the facts strongly favor you. The burden then shifts to proving by clear and convincing evidence that you tried to comply.
- Missing Form 8833. Failing to disclose a treaty-based return position carries a $1,000 penalty per failure.10Office of the Law Revision Counsel. 26 USC 6712 – Failure to Disclose Treaty-Based Return Positions
- Unreported foreign assets. Form 8938 penalties start at $10,000 and can reach $60,000 total if IRS notices go ignored. Willful FBAR penalties can reach half the account balance.14Internal Revenue Service. International Information Reporting Penalties
Track your days of presence, know which forms match your situation, and file them by the deadline. That is worth far more than trying to rebuild the argument after the IRS has already classified you as a resident.