presence test calculator

If you spend time in the United States and need to estimate whether you may be treated as a U.S. tax resident under the Substantial Presence Test (SPT), this presence test calculator can help. It gives you a quick estimate using the IRS day-count formula so you can plan ahead before filing season.

Substantial Presence Test Calculator

Enter your days physically present in the U.S. for each year. If you have exempt days (for example, certain student, teacher, diplomat, or medical exception days), enter them as well.

This tool is for education only and does not replace professional tax advice. It does not evaluate treaty tie-breakers or all IRS exceptions.

How the presence test formula works

The IRS generally treats you as meeting the substantial presence test when both of these conditions are true:

  • You were present in the U.S. for at least 31 days in the current year, and
  • Your weighted total is at least 183 days:
    • All adjusted days in the current year (100%)
    • Plus one-third of adjusted days in the 1st preceding year
    • Plus one-sixth of adjusted days in the 2nd preceding year

Adjusted days are your total days minus valid exempt days.

Who should use this calculator?

This presence test calculator is useful for:

  • Remote workers and digital nomads spending part of the year in the U.S.
  • International students and researchers tracking exempt periods
  • Cross-border consultants and business owners
  • Anyone checking likely U.S. tax residency status before filing

Example calculation

Sample numbers

  • Current year: 140 days
  • 1st preceding year: 120 days
  • 2nd preceding year: 90 days
  • Exempt days: 0 each year

Weighted total = 140 + (120 ÷ 3) + (90 ÷ 6) = 140 + 40 + 15 = 195.

Because current-year days are above 31 and weighted total is above 183, this example would generally meet the substantial presence test.

Important exceptions and planning notes

Exempt individuals and exempt days

Some people can exclude days from the count (for example, certain teachers, trainees, students, diplomats, and some medical situations). The rules are technical and can depend on visa type and the number of years in exempt status.

Closer connection exception

Even if your day count is high, you might still avoid U.S. tax residency in some situations if you can show a closer connection to another country and meet filing requirements (often involving Form 8840).

Tax treaty tie-breaker rules

If two countries could treat you as resident, a tax treaty may provide tie-breaker rules. This calculator does not determine treaty outcomes.

Common mistakes people make

  • Forgetting to track all travel days accurately
  • Counting exempt days incorrectly
  • Assuming immigration status and tax residency are the same thing
  • Ignoring filing deadlines for exceptions and disclosures

Best practices for accurate results

  • Keep a travel log with entry and exit dates
  • Save passport stamps, I-94 records, and flight receipts
  • Review visa-specific exemption rules each year
  • Speak with a cross-border tax professional when close to the threshold

Final thoughts

A reliable presence test calculator is a smart first step in cross-border tax planning. It helps you estimate whether you may pass the substantial presence test and alerts you early to potential filing obligations. Use this tool for planning, then confirm your exact position with a qualified advisor if your case is complex.

🔗 Related Calculators