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.

Substantial Presence TestYour days in the U.S.This year120 days× 1120Last year120 days× ⅓40Two years ago120 days× ⅙20180 weighted days183 neededNumerical test not met on these days aloneExceptions may applyDYour DuaTax specialist
Check your U.S. presence

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.

Additional considerationsBefore calculating, please indicate whether any of the following may apply:
Days that may be excluded (optional)Keep your total days above as all days you were physically present. Here, enter the days you believe may be excluded. Count each day only once, even if more than one exception could apply.
Your result
Your result will appear here.Select a tax year, enter your days and tick anything that may apply. Then choose “Calculate my U.S. presence”.
Tax year reviewed
Current-year days counted
Prior-year weighted days
Two-years-prior weighted days
Total weighted days of 183
Numerical Substantial Presence Test
Factors that need professional review
  • 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.
You may meet the Substantial Presence Test.Based on the qualifying days entered, you appear to meet the numerical requirements of the IRS Substantial Presence Test.However, excluded days, immigration history, tax treaty provisions and other exceptions may affect your final U.S. tax residency.Ask our team
You do not appear to meet the Substantial Presence Test based on these days.Your calculation falls below the numerical requirements for the selected year.This does not, by itself, establish your overall U.S. tax status. Green card rules, residency elections, treaty provisions and other factors may still apply.Explore nonresident tax returns
Your residency may require a closer look.Your circumstances involve rules that a basic day-count calculator cannot fully evaluate.A professional residency review may be appropriate before choosing a tax return or relying on this estimate.Contact us

This calculator provides preliminary information, not a final tax residency determination or personalized tax advice.

Understanding the calculation

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.

How days are counted
Current year100% of countable days
Previous yearOne-third of countable days
Two years earlierOne-sixth of countable days
ExampleIf you spent 120 countable days in the United States in each of three consecutive years:120 + 40 + 20 = 180 weighted daysYou would not meet the numerical Substantial Presence Test based on those days alone.
Exceptions matter

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.

Form 8843 may be required when claiming certain excluded days.
Explore student & visa tax services
Beyond the day count

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.

Explore dual-status tax returns
Tax residency questions

Common 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.

Need more than a calculation?

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.

Day countThree-year calculationExcluded daysVisa and other exceptionsOther rulesGreen card, treaty, closer connectionThe right returnExplained by our tax team
© 2026 duatax.com, LLCInformation on this site is general and is not advice for your situation.