Your days in the U.S. count.
But not always the way you think.
How long you spend in the United States can affect whether you’re considered a resident or nonresident for federal tax purposes.
Use our free calculator to explore the IRS Substantial Presence Test and understand when additional residency rules may apply.
Free to use. No account required.
Find out where you stand.
Start by selecting your tax year and entering the number of days you were physically present in the United States during that year and the two preceding years.
Count every day you were physically present in the U.S., including part of a day.
- •U.S. citizen: U.S. citizens are taxed as U.S. persons, so the Substantial Presence Test doesn’t decide your status.
- •Green card: lawful permanent residents can be U.S. tax residents under the green card test, regardless of days.
- •Visa-based exclusions: whether your days can be excluded depends on your visa, prior years and IRS requirements.
- •Other excluded days: transit, medical and other exceptions have specific conditions.
- •Closer connection or treaty: an exception or treaty tie-breaker may change your treatment.
- •Possible dual-status year: your residency may have started or ended during the year.
This calculator provides preliminary information, not a final tax residency determination or personalized tax advice.
The IRS doesn’t simply count one year’s travel days.
Under the Substantial Presence Test, the IRS generally looks at your physical presence over three calendar years.
To meet the numerical test, you generally must have:
- At least 31 countable days in the current year; and
- At least 183 weighted days across the current year and the preceding two years.
Important: This is only one part of determining U.S. tax residency.
Not every day of U.S. presence counts toward the test.
Some individuals qualify to exclude certain days when applying the Substantial Presence Test. Examples may include:
Eligible Students
Qualifying individuals temporarily present under certain student visa categories may exclude days for a limited number of calendar years, subject to the applicable IRS requirements.
Teachers & Trainees
Certain exchange visitors, teachers and trainees may qualify for exclusions under different rules and limitations.
Certain Other Circumstances
Specific transit days, regular qualifying cross-border commuting, medical circumstances and other statutory exceptions may affect the number of days counted.
Your residency involves more than a formula.
The Substantial Presence Test is important, but other rules may affect your federal tax classification.
Green Card Test
Lawful permanent resident status can establish U.S. tax residency independently of the Substantial Presence Test, subject to the applicable rules.
Closer Connection Exception
Certain individuals who meet the numerical test may qualify for an exception based on their foreign tax home and closer connection to another country.
Tax Treaty Provisions
An applicable tax treaty may provide rules for resolving conflicting residency claims between countries.
Dual-Status Tax Years
If your U.S. tax residency begins or ends during the year, you may need to consider dual-status tax treatment.
The calculator is a starting point.
Your complete circumstances determine the appropriate filing treatment.
Know the result. Understand the filing.
Your preliminary residency calculation can help you identify which tax questions deserve attention next.
You May Be a Nonresident
Explore Form 1040-NR preparation and the filing requirements that may apply to your U.S. income.Nonresident Tax ReturnsYour Residency Changed During the Year
Learn how the resident and nonresident portions of a tax year can affect your filing.Dual-Status Tax ReturnsYou Have a Student or Exchange Visa
Review Form 8843, excluded-day rules and your potential income tax filing requirements.Students & Visa HoldersYour Situation Needs Individual Review
For treaty, green card, closer-connection or complex residency questions, book a professional tax consultation.Book a consultationCommon questions about your U.S. tax status.
Does spending 183 days in the United States automatically make me a tax resident?+
Not in every situation. The Substantial Presence Test uses a three-year calculation and includes exceptions for certain qualifying individuals and days. Green card rules and tax treaties may also affect the analysis.
Can I be a U.S. tax resident without spending 183 days there in one year?+
Yes. The weighted three-year calculation can result in meeting the numerical test even when you spend fewer than 183 days in the current year. The green card test is another possible basis for residency.
Does my visa determine whether I’m a tax resident?+
Not by itself. Visa status may affect which days count, but federal tax residency involves the applicable tests, exemptions, elections and treaty provisions.
Do students have to count every day in the United States?+
Not always. Certain qualifying students may exclude days under the applicable exempt-individual rules. The availability and duration of that treatment depend on their circumstances and prior U.S. presence.
What if I meet the numerical test but live in another country?+
You may need to evaluate whether a closer-connection exception or applicable tax treaty changes your federal income tax treatment.
Can I be a resident and nonresident during the same tax year?+
Yes. Certain individuals have dual-status tax years when their federal tax residency begins or ends during the year.
Does this calculator tell me which return to file?+
Not definitively. It evaluates the numerical Substantial Presence Test and flags possible exceptions. Your complete circumstances determine whether Form 1040, Form 1040-NR, a dual-status return or another filing treatment applies.
Is this calculator free?+
Yes. You can use it without purchasing a service or creating a client account.
Let’s make sense of
your U.S. tax residency.
If your residency status is unclear, your circumstances changed or you need help choosing the correct tax return, DuaTax can review your situation and explain the next steps.
Tax return preparation and personalized consultations are separately priced services.