Substantial Presence Test

What this page covers
The substantial presence test is one of the main ways the U.S. classifies you as a resident or nonresident for federal income tax. It looks simple, but it often catches people who think they only “came for a short time.
The formula uses days of physical presence in the U.S. in the current year and the two prior calendar years, with different weights and minimum thresholds built in. Because of this, short but frequent trips can unexpectedly push you into resident status.
This hub links to focused guides on day counting, examples, exceptions, and transition years. They help you see when you are treated as a resident or nonresident, what a dual‑status year is, and how cross‑border travel affects your U.S. tax filing obligations.
What to choose
- I want a clear overview of how the substantial presence test works, how it differs from the green card test, and why the IRS may treat me as a resident even if I do not feel like one.
- I already know the basics and want details: how days are counted over three years, which trips are included in the formula, and how this connects to dual‑status filing.
- I split my life between countries and worry about “accidentally” becoming a U.S. tax resident. I want examples, exceptions, and to understand when I can keep nonresident status and which forms are involved.
Where to go next
The substantial presence test is essentially a calendar‑based residency test. It relies on days of presence in the U.S. and can “catch up” with you through regular visits. In some years you may be treated as both a resident and a nonresident, leading to a dual‑status tax year.
The child pages below break down the key pieces: counting days, how transit and short visits are treated, typical scenarios, and exceptions such as the closer connection exception. This helps you move from an abstract “tax residency test” to concrete answers about which part of the year is in which status and what obligations attach to each part.
What matters
- The substantial presence test uses a weighted formula across the current year and the two prior years, so even “short” visits can add up to residency and an unexpected U.S. filing requirement.
- Even if you meet the substantial presence test, special regimes and exceptions such as a dual‑status year or the closer connection exception may allow a different classification if you meet strict conditions.
- For nonresident status, both the tax return form and the tax logic change. You generally use Form 1040‑NR, income is split into ECI and FDAP, and tax treaties can reduce or eliminate tax on certain income types when properly claimed.
