The IRS Substantial Presence Test makes a non-US citizen a US tax resident if they spend at least 31 days in the US during the current year and their 3-year weighted total—100% of current-year days plus one-third of prior-year days plus one-sixth of second-prior-year days—equals 183 days or more.
Count all calendar days present in the US this year (Jan 1 – Dec 31), including planned future trips.
Total days spent in the US last calendar year (multiplied by 1/3 in IRS formula).
Total days spent in the US two calendar years ago (multiplied by 1/6 in IRS formula).
Allows you to stay up to 182 days in the current year even if the 3-year weighted formula hits 183+.
With 95 current-year days + 40.0 (1/3 of 120) + 15.0 (1/6 of 90) = 150.0 weighted days, you do not trigger US tax residency this year. You can spend up to 127 total days in the US this year before hitting 183 weighted days.
Apply online for your Cambodia Tourist eVisa ($84.99), Cambodia 7-day e-Arrival Card (from $20), or Azerbaijan ASAN eVisa (from $59.99) with 24/7 document review.
Many Canadian snowbirds, European founders, and international investors believe they can spend 180 days every year in the United States on a B1/B2 visa without tax consequences. Because the IRS uses a 3-year weighted lookback formula, spending more than 121 days per year in the US triggers the Substantial Presence Test.
How current-year days and 3-year weighted totals interact with IRS forms and tax residency
| Current-Year US Days | 3-Year Weighted Total | IRS Tax Status | Required IRS Action |
|---|---|---|---|
| 0 – 30 Days | Any number (even >183) | Non-Resident Alien (Safe) | None — automatically exempt under 31-day rule |
| 31 – 121 Days (Every Year) | Up to 181.5 Weighted Days | Non-Resident Alien (Safe) | None — stays below 183 weighted threshold |
| 122 – 182 Days | 183.0+ Weighted Days | Conditionally Exempt if Closer Connection | Must file IRS Form 8840 by June 15 to avoid US tax |
| 122 – 182 Days (No Tax Home) | 183.0+ Weighted Days | US Resident Alien (Taxable Worldwide) | Subject to Form 1040, FBAR & FATCA unless treaty applies |
| 183+ Days in Current Year | 183.0+ Weighted Days | US Resident Alien (Form 8840 Disqualified) | Worldwide US tax unless Treaty Tie-Breaker Form 8833 filed |
Yes, unless you qualify for and file Form 8840 or a tax treaty tie-breaker. Spending 180 days in a single calendar year already puts you within 3 days of automatic residency, and if you spent even 9 days in the US the previous year (9 ÷ 3 = 3), your weighted total hits 183 days.
No. The IRS only excludes fractional days if the final sum of the 1/3 and 1/6 fractions leaves a fraction below 183 (for example, 182.67 days is under 183). When adding the 1/3 and 1/6 components together, you must keep the exact fractions before checking whether the total equals or exceeds 183.0.
If you become a US tax resident under the Substantial Presence Test, you are taxed on your worldwide income just like a US citizen or Green Card holder. Even worse, you become subject to FinCEN Form 114 (FBAR) on foreign bank accounts exceeding $10,000 and IRS information returns (Forms 5471, 8938, 3520) for foreign companies or trusts, which carry $10,000+ civil penalties per unfiled form.
Under the IRS international transit exception, if you are travelling between two foreign points and are physically present in the United States for less than 24 hours solely for the purpose of catching a connecting flight, that transit day does not count toward the Substantial Presence Test.
Calculate your exact remaining legal days in the Schengen Area under the rolling 180-day lookback window, including Bulgaria & Romania inclusion and EES automated tracking rules.
Evaluate your immigration red-flag risk before executing a same-day or weekend visa run in Thailand, Vietnam, Bali, Colombia, or the Balkans, and find the safest neighbor reset hub.
Track your cumulative days in any country against the statutory 183-day tax residency threshold and check whether a long-term apartment lease triggers earlier "Center of Vital Interests" tax liability.
Calculate your exact daily visa overstay fine in local currency and USD, compare voluntary airport surrender vs. checkpoint arrest penalties, and check whether your overstay triggers a re-entry blacklist ban.
Compare total cash cost, immigration queue hours, and extra stay days gained between an in-country visa extension and a weekend regional flight hop.
Calculate how many months and trips remain before your passport hits the critical 2-blank-page airline denial threshold, factoring in full-page sticker visas and biometric e-Gates.
Read our complete 2026 pillar guide to all 50+ calculators, calculate multi-country entry budgets, or file your official Cambodia and Azerbaijan travel documents with specialist review.
Master rolling 90/180-day stays, 183-day tax residency rules, flight PNR checks, and 2026 digital arrival card windows.
Compute per-person and group fees for Cambodia eVisa ($84.99), 7-day CeA (from $20), Azerbaijan ASAN eVisa ($59.99), and $0 regional arrival cards.
Compare 7-day Cambodia CeA vs. 72-hour Southeast Asia digital arrival card rules and official $0 government portals.